| | |
| | | |
| | | <template> |
| | | <view class="content"> |
| | | |
| | | |
| | | <view class="v-area" v-for="(classattr,index) in classAttrList"> |
| | | <div class="class_attr_title"> |
| | | <div class="title_line"></div> |
| | |
| | | </div> |
| | | |
| | | |
| | | <button type="default" @tap="sava" class="btn_add">新增</button> |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | this.$data.title = options.titlename; //设置按钮文字 |
| | | uni.setNavigationBarTitle({ title: options.titlename}); //设置顶部标题 |
| | | var param = JSON.parse(options.param); |
| | | // console.log(param); |
| | | if(!param.EditDlgMode){ |
| | | uni.showModal({title:"提示",content:"该功能点未配置编辑窗口,请重新配置!",showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | if(!param.Edit_dlg.Name){ |
| | | uni.showModal({title:"提示",content:"该功能点未配置窗口样式,请重新配置!",showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | this.$data.param = param; |
| | | var edit_dlg = { |
| | | Model: param.EditDlgMode, |
| | | Name: param.Edit_dlg.Name |
| | | Model: param.EditDlgMode, |
| | | Name: param.Edit_dlg.Name |
| | | } |
| | | var dataInfo = { |
| | | class_id: param.clsid |
| | |
| | | uni.showModal({title:"错误1.2",content:success.msg,showCancel:false,confirmText:"取消"}); |
| | | } |
| | | }).catch(ex=>{ |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | uni.showModal({title:"错误1.3",content:ex.errMsg,showCancel:false,confirmText:"取消"}); |
| | | }); |
| | | } |
| | |
| | | } |
| | | console.log(val); |
| | | for (var i = 0; i < val.length; i++) { |
| | | for (var l = 0; l < this.$data.classAttrList.Attr.length; l++) { |
| | | var ca = this.$data.classAttrList.Attr[l]; |
| | | if (val[i].attr == ca.Name) { |
| | | ca.value = val[i].value; |
| | | for (var a = 0; a < this.$data.classAttrList.length; a++) { |
| | | for (var l = 0; l < this.$data.classAttrList[a].Attr.length; l++) { |
| | | var ca = this.$data.classAttrList[a].Attr[l]; |
| | | if (val[i].attr == ca.Name) { |
| | | ca.value = val[i].value; |
| | | } |
| | | } |
| | | } |
| | | // if ($el_attr.data('type') == 'bool') { |
| | |
| | | } |
| | | } |
| | | } |
| | | if (action_type = 'open_select_userdlg') { |
| | | if (action_type == 'open_select_userdlg') { |
| | | uni.showModal({title:"错误2.2",content:"open_select_userdlg这个action_type还未处理!",showCancel:false,confirmText:"取消"}); |
| | | } |
| | | } |