| | |
| | | // 合并两个表单 |
| | | this.form = Object.assign(addFrom,this.form); |
| | | // console.log("endFilter",this.form.type); |
| | | //console.log(this.form); |
| | | // console.log(this.form); |
| | | }, |
| | | },{ |
| | | label: '是否开启持久化', |
| | | label: '是否持久化参照配置', |
| | | prop: 'isPersistence', |
| | | labelWidth: '142', |
| | | tip: 'true:开启持久化,对当前定义的参照配置进行持久化存储,下次可直接选取;false:仅对当前次码段新增生效。', |
| | | tipPlacement: 'bottom', |
| | | span: 6, |
| | | type: 'switch', |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | label: '编号', |
| | | label: '参照配置编号', |
| | | prop: 'id', |
| | | tip: '设置该参照配置持久化存储时的编号。', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(开启持久化时编号)必填项不能为空", |
| | |
| | | span: 6, |
| | | },{ |
| | | display: this.form.isPersistence | this.form.isPersistence=='true', |
| | | label: '名称', |
| | | label: '参照配置名称', |
| | | prop: 'name', |
| | | tip: '设置该参照配置持久化存储时的名称。', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(开启持久化时名称)必填项不能为空", |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // 麻的这个地方调死我了 |
| | | // 事件监听,实现表格行编辑点击表格区域外内容时退出编辑状态 |
| | | this.element = document.getElementById('refer-config-form'); |
| | | this.element.addEventListener("click", (e) => { |
| | | //<table cellspacing="0" cellpadding="0" border="0" class="el-table__body" style="width: 911px;"> |
| | |
| | | }, |
| | | /** 排序字段、显示的属性、查询条件的表格行选择之后回显 */ |
| | | echoSelectedAttr(data){ |
| | | console.log(data); |
| | | // console.log(data); |
| | | // 为【排序字段】选取值 |
| | | if(data.condition === 'sortField'){ |
| | | this.form.sortField = data.selectedArrary[0].id; |
| | |
| | | }else{ |
| | | // 选择显示字段 |
| | | data.selectedArrary.forEach(item => { |
| | | console.log(item); |
| | | this.codeShowFieldConfigVOS.push( |
| | | { |
| | | field: item.id, |
| | | title: item.id, |
| | | fieldType: item.attrType, |
| | | fieldTypeText: item.attrTypeText, |
| | | title: item.name, |
| | | // fieldType: item.attrType, |
| | | // fieldTypeText: item.attrTypeText, |
| | | fieldType: 'text', |
| | | fieldTypeText: '文本框', |
| | | sort: false, |
| | | attrSortField: item.id, |
| | | width: item.attrLength, |
| | | width: item.attributeLength, |
| | | isquery: false, |
| | | $cellEdit: false |
| | | } |