| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="查询模板"> |
| | | <el-select v-model="form.itemQtName" placeholder="请选择查询模板" size="mini"> |
| | | <el-option v-for="(item,index) in searchQtNameList" :key="index" :label="item.qtName" :value="item.qtName"></el-option> |
| | | <el-option v-for="(item,index) in searchQtNameList" :key="index" :label="item.qtName" |
| | | :value="item.qtName"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | searchQtNameList:[], |
| | | searchQtNameList: [], |
| | | formLoading: false, |
| | | itemImgHeight: '', |
| | | itemImgWidth: '', |
| | |
| | | }, |
| | | |
| | | // 查询模板下拉接口查询 |
| | | getSearchSelectList(){ |
| | | getSearchSelectList() { |
| | | getObjTypeQTs({btName: this.treeRadio === '0' ? this.TreeNodeRow.id : this.TreeNodeRow.name}).then(res => { |
| | | this.searchQtNameList = res.data.data; |
| | | }) |
| | |
| | | this.$message.error('请选择一条数据'); |
| | | return; |
| | | } |
| | | |
| | | |
| | | const onlyFlag = this.form.itemOutFieldList.some(item => item.id === this.showLabelLeftRow.id); |
| | | |
| | | if (onlyFlag) { |
| | | this.$message.error('请检查是否有重复项'); |
| | | this.form.itemSelectOutFieldList = this.form.itemSelectOutFieldList.filter(selectItem => |
| | | !this.form.itemOutFieldList.some(outItem => outItem.id === selectItem.id) |
| | | ) |
| | | return; |
| | | } |
| | | |
| | | this.form.itemOutFieldList.push(this.showLabelLeftRow); |
| | | this.form.itemSearchFieldList = this.form.itemOutFieldList; |
| | | |
| | |
| | | |
| | | // 查询模板添加 |
| | | searchAddClickHandler() { |
| | | if(!this.form.searchLabel){ |
| | | if (!this.form.searchLabel) { |
| | | this.$message.error('查询字段不能为空!'); |
| | | return; |
| | | } |