| | |
| | | > |
| | | >; |
| | | type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K]; } & {}; |
| | | type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny< |
| | | '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any |
| | | , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any |
| | | >>; |
| | | type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>; |
| | | |
| | | function __VLS_getVForSourceType(source: number): [number, number, number][]; |
| | | function __VLS_getVForSourceType(source: string): [string, number, number][]; |
| | |
| | | function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>; |
| | | // @ts-ignore |
| | | function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0]; |
| | | function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any |
| | | ? T | __VLS_unknownDirective |
| | | : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>; |
| | | function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective |
| | | ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> |
| | | : T extends (...args: any) => any |
| | | ? T |
| | | : __VLS_unknownDirective; |
| | | function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K; |
| | | function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] }; |
| | | function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T; |
| | |
| | | : (_: {} & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record<string, unknown> } }; |
| | | function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void; |
| | | function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : []; |
| | | function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny< |
| | | '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any |
| | | , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any |
| | | >>; |
| | | function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S; |
| | | function __VLS_tryAsConstant<const T>(t: T): T; |
| | | } |
| | |
| | | <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | |
| | | <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | |
| | | }; |
| | | console.log(dataInfo); |
| | | // return |
| | | DataObjCreate(dataInfo).then((result) => { |
| | | console.log(result); |
| | | DataObjCreate(dataInfo).then((res) => { |
| | | console.log(res); |
| | | uni.hideLoading(); |
| | | if (result.action) { |
| | | var action = JSON.parse(result.action); |
| | | console.log(action); |
| | | if (action.ret == '0') { |
| | | if (action.ret != 0) { |
| | | uni.showModal({ |
| | | let data = res.lua_result |
| | | if (data.ret != 0) { |
| | | var tip = data.err_info ? typeof data.err_info == 'string' ? data |
| | | .err_info : |
| | | data |
| | | .err_info.join('<br/>') : ''; |
| | | if (data.ret == 801) uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('execute_script_failed') + |
| | | this |
| | | .translateSys('comma') + this.translate( |
| | | 'result') + |
| | | this |
| | | .translateSys('colon') + action.result, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | | if (action.info) { |
| | | uni.showModal({ |
| | | else uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('execute_script_failed') + |
| | | this |
| | | .translateSys('comma') + |
| | | this.translateSys('colon') + action.info, |
| | | content: tip + ',' + this.translateSys('tip') + ':' + data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | | if (action.result_type == '0') { |
| | | uni.showToast({ |
| | | title: action.result, |
| | | icon: "success", |
| | | duration: 3000 |
| | | return false |
| | | } else { |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data |
| | | .info |
| | | .join( |
| | | '<br/>') : ''; |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | |
| | | // "{"ret":0, "result_type":0, "result":"创建成功123123123","info":""}" |
| | | } |
| | | } else |
| | | uni.showToast({ |
| | | title: this.translate('create_success'), |
| | | icon: "success", |
| | | duration: 3000 |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //刷新 |
| | | uni.redirectTo({ |
| | | url: '../modal/3018?param=' + JSON.stringify(this.$data |