| | |
| | | }, |
| | | change: (val) => { |
| | | const list = ['showType', 'linkType', 'templateId', 'SubUILayout', 'searchObjType', 'queryTemplateName', 'controlPath', 'expandCols', 'rootContent', 'showAbs', 'showLinkAbs', 'separator'] |
| | | list.forEach(item => { |
| | | this.form[item] = ""; |
| | | }) |
| | | // list.forEach(item => { |
| | | // this.form[item] = ""; |
| | | // }) |
| | | const searchTarger = this.option.column.find(item => item.prop === 'searchTarger'); // 获取搜索类型配置项 |
| | | searchTarger.display = true; // 切换默认展示搜索类型 |
| | | // 模板类型为表格 |
| | |
| | | } |
| | | // 切换清空模板类型 |
| | | const list = ['showType', 'linkType', 'templateId', 'SubUILayout', 'queryTemplateName', 'searchObjType']; |
| | | list.forEach(item => { |
| | | this.form[item] = ''; |
| | | }) |
| | | // list.forEach(item => { |
| | | // this.form[item] = ''; |
| | | // }) |
| | | } |
| | | }, |
| | | { |
| | |
| | | |
| | | // 编辑打开表单前 |
| | | beforeOpen(done, type) { |
| | | if (type === 'edit') { |
| | | console.log('edit'); |
| | | // this.form.showType = 'Ludc'; |
| | | // this.$set(this.form, 'showType', "terminology"); |
| | | // this.$set(this.option.group[0].column[0],'value','Ludc'); |
| | | // this.option.group[0].column[0].value = 'Ludc'; |
| | | done(); |
| | | } else { |
| | | done(); |
| | | } |
| | | // if (type === 'edit') { |
| | | // console.log('edit'); |
| | | // this.form.showType = 'Ludc'; |
| | | // } |
| | | done(); |
| | | }, |
| | | |
| | | // 增加关闭对话框 清空event数组 |
| | |
| | | ...this.basicForm, |
| | | parentId: this.nodeTreeRow.oId === 'parentNode' ? '' : this.nodeTreeRow.parentId, |
| | | buttonParams: bottomParams, |
| | | tableOId:this.selectList[0].id |
| | | tableOId: this.selectList[0].id |
| | | } : { |
| | | ...this.basicForm, |
| | | buttonParams: bottomParams |