| | |
| | | <template> |
| | | <!-- 第二层对话框,属性码段,公式编辑框弹窗 --> |
| | | <el-dialog |
| | | :close-on-click-modal="false" |
| | | title="参照配置" |
| | | append-to-body |
| | | :visible.sync="isShowReferConfigForm" |
| | | width="90%" |
| | | id="refer-config-form" |
| | | top="0" |
| | | class= "avue-dialog avue-dialog--top" |
| | | destroy-on-close |
| | | @close="recoveryDataAndForm('initData')" |
| | | style="height: 115vh; margin-top: -14vh; overflow-y: hidden"> |
| | |
| | | span: 6, |
| | | type: 'switch', |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | display: this.form.isPersistence || this.form.isPersistence=='true', |
| | | label: '参照配置编号', |
| | | prop: 'id', |
| | | tip: '设置该参照配置持久化存储时的编号。', |
| | |
| | | }], |
| | | span: 6, |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | display: this.form.isPersistence || this.form.isPersistence=='true', |
| | | label: '参照配置名称', |
| | | prop: 'name', |
| | | tip: '设置该参照配置持久化存储时的名称。', |
| | |
| | | }, |
| | | // 监听父组件传的窗口显示隐藏的值 |
| | | isShowReferConfigForm (){ |
| | | if(this.isShowReferConfigForm){ |
| | | if(this.isShowReferConfigForm && this.codeShowFieldConfigVOS.length <= 0){ |
| | | this.onloadAttrData(); |
| | | } |
| | | } |
| | |
| | | // console.log(val.referConfig); |
| | | if(func.notEmpty(val.referConfig)){ |
| | | this.form = JSON.parse(val.referConfig); |
| | | this.form.isPersistence = this.form.isPersistence == 'true'||this.form.isPersistence ? true:false; |
| | | // 参照引用的业务类型不可选 |
| | | // this.referTypeIsReadOnly = true; |
| | | if((this.form.type == 'default' || this.form.type == 'grid') && (this.form.codeShowFieldConfigVOS != undefined && this.form.codeShowFieldConfigVOS.length > 0)){ |
| | |
| | | return; |
| | | } |
| | | Object.assign(this.$data,this.$options.data()); |
| | | //this.preClickAttrRow.$cellEdit = false; |
| | | //console.log(this.preClickAttrRow.$cellEdit); |
| | | // 移除绑定在该页面对话框上的全局监听事件 |
| | | if(this.element != ''){ |
| | | let te = window.removeEventListener('click', this.element) |
| | |
| | | ]; |
| | | } |
| | | // 开启持久化参照配置 |
| | | if(oldForm.isPersistence=='true' | oldForm.isPersistence){ |
| | | if(oldForm.isPersistence=='true' || oldForm.isPersistence){ |
| | | submittDefaultForm = submittDefaultForm.concat(['id','name']) |
| | | } |
| | | submittDefaultForm = submittDefaultForm.concat(addArray); |
| | |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | |
| | | } |
| | | }; |