| | |
| | | components: { |
| | | pickerAddress |
| | | }, |
| | | onBackPress(e){ |
| | | // console.log("监听返回按钮事件",e); |
| | | if(this.type){ |
| | | var eventChannel = this.$scope.eventChannel; |
| | | // const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.emit(this.type,""); |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: '新增', |
| | | param:{}, |
| | | type:'', |
| | | classAttrList:[], |
| | | classGridStyle:[], |
| | | edit_inital_event:"", //弹窗初始化事件ID |
| | |
| | | uni.setNavigationBarTitle({ title: options.titlename}); //设置顶部标题 |
| | | var param = JSON.parse(options.param); |
| | | this.$data.title = param.Add_BtnName?param.Add_BtnName:options.titlename; //设置按钮文字 |
| | | // console.log(param); |
| | | if(options.type){ |
| | | this.$data.type = options.type; |
| | | } |
| | | console.log(param); |
| | | if(!param.EditDlgMode){ |
| | | uni.showModal({title:"提示",content:"该功能点未配置编辑窗口,请重新配置!",showCancel:false,confirmText:"取消"}); |
| | | return; |
| | |
| | | var attrs = attrlist[i].attrs; |
| | | for (var s = 0; s < this.$data.classAttrList.length; s++) { |
| | | var clsattr = this.$data.classAttrList[s]; |
| | | if (name == clsattr.Name) { |
| | | // if (name == clsattr.Name) { |
| | | var attr = []; |
| | | for (var j = 0; j < attrs.length; j++) { |
| | | for (var l = 0; l < clsattr.Attr.length; l++) { |
| | |
| | | control_style:this.$data.classGridStyle.StyleDef.control_style, |
| | | title_p_wdith:this.$data.classGridStyle.StyleDef.title_p_wdith |
| | | }) |
| | | } |
| | | // } |
| | | } |
| | | } |
| | | if (newattrlist.length > 0) { |
| | |
| | | this.$refs.popup.close(); |
| | | }, |
| | | cancel(e){ |
| | | if(this.type){ |
| | | var eventChannel = this.$scope.eventChannel; |
| | | // const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.emit(this.type,""); |
| | | } |
| | | uni.navigateBack({ |
| | | delta:1 //返回层数,2则上上页 |
| | | }); |
| | |
| | | uni.redirectTo({ |
| | | url:'../modal/3018?param='+JSON.stringify(this.$data.param)+"&titlename="+this.$data.title |
| | | }); |
| | | // this.class_attr_init(); |
| | | // this.cancel(); |
| | | }else{ |
| | | uni.showModal({title:"错误",content:success.err_msg,showCancel:false,confirmText:"取消"}); |
| | | } |
| | |
| | | else uni.showModal({title:'提示',content:tip+',提示:'+data.ret,showCancel:false,confirmText:"取消"}); |
| | | return false |
| | | }else{ |
| | | let tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | if (tip) uni.showModal({title:'提示',content:tip,showCancel:false,confirmText:"取消"}); |
| | | |
| | | if(data.action){ |
| | |
| | | else uni.showModal({title:'提示',content:tip+',提示:'+data.ret,showCancel:false,confirmText:"取消"}); |
| | | return false |
| | | }else{ |
| | | let tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | if (tip) uni.showModal({title:'提示',content:tip,showCancel:false,confirmText:"取消"}); |
| | | |
| | | var actionlist = data.action; |
| | |
| | | else uni.showModal({title:'提示',content:tip+',提示:'+data.ret,showCancel:false,confirmText:"取消"}); |
| | | return false |
| | | }else{ |
| | | let tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | if (tip) uni.showModal({title:'提示',content:tip,showCancel:false,confirmText:"取消"}); |
| | | |
| | | var result = data.result; |
| | |
| | | else uni.showModal({title:'提示',content:tip+',提示:'+data.ret,showCancel:false,confirmText:"取消"}); |
| | | return false |
| | | }else{ |
| | | let tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join('<br/>') : ''; |
| | | if (tip) uni.showModal({title:'提示',content:tip,showCancel:false,confirmText:"取消"}); |
| | | |
| | | if (data != "") { |