| | |
| | | <div class="panel_title">{{param.Sub_Cls.Title}}</div> |
| | | <!-- 从数据扫码区 --> |
| | | <view class="v-area class_attr_body" v-if="param.Sub_Cls.Can_Add_Delete == true"> |
| | | <h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">新增{{param.Sub_Cls.Name }}</h4> |
| | | <h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">{{`${translateSys('add2')}'${param.Sub_Cls.Name}'` }}</h4> |
| | | <view class="form-group"> |
| | | <!-- 左右布局 --> |
| | | <p class="tx_title2">{{param.Scan_Code.Name}}:</p> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <button type="default" @tap="cancel" class="btn_cancel" v-if="param.Sub_Cls.Can_Add_Delete == true">取消</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel" |
| | | v-if="param.Sub_Cls.Can_Add_Delete == true">{{translateSys('cancel')}}</button> |
| | | <button type="default" @tap="sava" class="btn_add" |
| | | v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_sava" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="popup-footer"> |
| | | <button type="default" @tap="popup_sava" class="btn_popup_add">确定</button> |
| | | <button type="default" @tap="popup_cancel" class="btn_popup_cancel">取消</button> |
| | | <button type="default" @tap="popup_sava" class="btn_popup_add">{{translateSys('ok')}}</button> |
| | | <button type="default" @tap="popup_cancel" |
| | | class="btn_popup_cancel">{{translateSys('cancel')}}</button> |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | |
| | | console.log(param); |
| | | if (!param.Master_Cls.View_Style) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "该功能点未配置界面窗口,请重新配置!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | | if (!param.Master_Cls.View_Style.Name) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "该功能点未配置窗口样式,请重新配置!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | }, 500); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1", |
| | | title: this.translateSys('error') + " 1", |
| | | content: success.err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误1.1", |
| | | title: this.translateSys('error') + " 1.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | }, 500); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1_1", |
| | | title: this.translateSys('error') + " 1_1", |
| | | content: success.err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误1_1.1", |
| | | title: this.translateSys('error') + " 1_1.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1.2", |
| | | title: this.translateSys('error') + " 1.2", |
| | | content: success.err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误1.3", |
| | | title: this.translateSys('error') + " 1.3", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | $this.viewParam('Mast'); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1.2", |
| | | title: this.translateSys('error') + " 1.2", |
| | | content: success.err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误1.3", |
| | | title: this.translateSys('error') + " 1.3", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | // $this.subClass_attr_init(); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1.2", |
| | | title: this.translateSys('error') + " 1.2", |
| | | content: success.err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误1.3", |
| | | title: this.translateSys('error') + " 1.3", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | } |
| | | // console.log(ca.dictitem); |
| | | } |
| | | if (utils.classUtils.attrTypeIsDate(ca |
| | | if (utils.classUtils.attrTypeIsDateTime(ca |
| | | .Type |
| | | )) // if(ca.Type=='日期' || ca.Type=='时间' ||ca.Type=='date' || ca.Type=='datetime') |
| | | { |
| | |
| | | ca.RelClsList = ca.RelCls; |
| | | ca.Value = '请选择'; |
| | | } |
| | | if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='省市区'|| ca.Type=='region') |
| | | if (utils.classUtils.attrTypeIsRegion(ca |
| | | .Type)) //if(ca.Type=='省市区'|| ca.Type=='region') |
| | | ca.Value = '请选择'; |
| | | if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='布尔值'|| ca.Type=='bool') |
| | | if (utils.classUtils.attrTypeIsBool(ca |
| | | .Type)) //if(ca.Type=='布尔值'|| ca.Type=='bool') |
| | | ca.Value = false; |
| | | |
| | | attr.push(ca); |
| | |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "未找到可显示的的属性", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | if (utils.classUtils.attrTypeIsDate(ca.Type)) //if(ca.Type=='日期' || ca.Type=='时间') |
| | | if (utils.classUtils.attrTypeIsDateTime(ca.Type)) //if(ca.Type=='日期' || ca.Type=='时间') |
| | | { |
| | | var nowDate = new Date(); |
| | | var date = { |
| | |
| | | ca.RelClsList = ca.RelCls; |
| | | ca.Value = '请'; |
| | | } |
| | | if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='省市区'||ca.Type=='region') |
| | | if (utils.classUtils.attrTypeIsRegion(ca |
| | | .Type)) //if(ca.Type=='省市区'||ca.Type=='region') |
| | | ca.Value = '请选择'; |
| | | if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='布尔值'||ca.Type=='bool') |
| | | ca.Value = false; |
| | |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "未找到可显示的的属性", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }, |
| | |
| | | var Before_Select_Event = $this.$data.param.Scan_Code.Before_Select_Event; |
| | | if (!Before_Select_Event) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "选择前事件为空!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择') { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar.DispName + "未选择数据!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar.DispName + '不能为空!', |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | var After_Select_Event = $this.$data.param.Scan_Code.After_Select_Event; |
| | | if (!After_Select_Event) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "选择后事件为空!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | } |
| | | if (data.length == 0) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "未选择数据!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择') { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar.DispName + "未选择数据!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | if (ret.err_code == 0) { |
| | | $this.$data.subPanelList.splice(index, 1); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "删除成功!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误9", |
| | | title: this.translateSys('error') + " 9", |
| | | content: success.msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: "提示9.1", |
| | | title: this.translateSys('tip') + "9.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | .button_callback; |
| | | if (!before_click_button) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "before_click_button-event_id为空!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | | if (!button_callback) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "button_callback-event_id为空!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | classAttr_AddRef(e) { |
| | | console.log(e.target); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: "此功能还未实现!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | // var value=this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.target.value]; |
| | | // this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value; |
| | |
| | | name: ar.Name, |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | { |
| | | } else { |
| | | const node = this.formatAttr(ar) |
| | | req.push({ |
| | | name: node.attr, |
| | |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar |
| | | .DispName + |
| | | '不能为空!', |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | // this.class_attr_init(); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误", |
| | | title: this.translateSys('error') + " ", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | if (data.action) { |
| | |
| | | 'open_select_userdlg' |
| | | ) { |
| | | uni.showModal({ |
| | | title: "错误2.2", |
| | | title: this.translateSys('error') + " 2.2", |
| | | content: "open_select_userdlg这个action_type还未处理!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误2", |
| | | title: this.translateSys('error') + " 2", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误2.1", |
| | | title: this.translateSys('error') + " 2.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | var actionlist = data |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误3", |
| | | title: this.translateSys('error') + " 3", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误3.1", |
| | | title: this.translateSys('error') + " 3.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | var result = data |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误4", |
| | | title: this.translateSys('error') + " 4", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误4.1", |
| | | title: this.translateSys('error') + " 4.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | if (data != "") { |
| | |
| | | var d = |
| | | dialog({ |
| | | title: '<i class="ace-icon fa fa-info-circle"></i> ' + |
| | | '提示', |
| | | this.translateSys('tip'), |
| | | content: action |
| | | .action_type + |
| | | '此action尚未处理!' |
| | |
| | | var d = |
| | | dialog({ |
| | | title: '<i class="ace-icon fa fa-info-circle"></i> ' + |
| | | '提示', |
| | | this.translateSys('tip'), |
| | | content: action |
| | | .action_type + |
| | | '此action尚未处理!' |
| | |
| | | var d = |
| | | dialog({ |
| | | title: '<i class="ace-icon fa fa-info-circle"></i> ' + |
| | | '提示', |
| | | this.translateSys('tip'), |
| | | content: action |
| | | .action_type + |
| | | '此action尚未处理!' |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "提示5.2", |
| | | title: this.translateSys('tip') + "5.2", |
| | | content: '调用 before_click_button 脚本返回空,event_id' + |
| | | eventid, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误5", |
| | | title: this.translateSys('error') + " 5", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "提示5.1", |
| | | title: this.translateSys('tip') + "5.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | var actionlist = data |
| | |
| | | 'open_select_userdlg' |
| | | ) { |
| | | uni.showModal({ |
| | | title: "错误6.2", |
| | | title: this.translateSys('error') + " 6.2", |
| | | content: "open_select_userdlg这个action_type还未处理!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误6", |
| | | title: this.translateSys('error') + " 6", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误6.1", |
| | | title: this.translateSys('error') + " 6.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | var actionlist = data |
| | |
| | | ] |
| | | .attr |
| | | ) { |
| | | if (utils.classUtils.attrTypeIsDict(attr[j].Type)) { |
| | | if (utils.classUtils.attrTypeIsDict(attr[j] |
| | | .Type)) { |
| | | var |
| | | dictItemList = []; |
| | | for ( |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误7", |
| | | title: this.translateSys('error') + " 7", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({ |
| | | title: "错误7.1", |
| | | title: this.translateSys('error') + " 7.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar |
| | | .DispName + |
| | | '不能为空!', |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | title: this.translateSys('tip') + "", |
| | | content: ar |
| | | .DispName + |
| | | '不能为空!', |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | '<br/>') : ''; |
| | | if (data.ret == 801) |
| | | uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | else uni.showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip + |
| | | ',提示:' + |
| | | data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | ''; |
| | | if (tip) uni |
| | | .showModal({ |
| | | title: '提示', |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | |
| | | var result = data |
| | |
| | | } |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误8", |
| | | title: this.translateSys('error') + " 8", |
| | | content: success |
| | | .err_msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: "错误8.1", |
| | | title: this.translateSys('error') + " 8.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | confirmText: this.translateSys('cancel') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | value: attr.Value ? attr.Value : '' |
| | | }; |
| | | }, |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | | }, |
| | | translateSys(t) { |
| | | if (typeof this.$t == "function") return this.$t(`sys.${t}`) |
| | | else return t; |
| | | }, |
| | | } |
| | | } |
| | | </script> |