| | |
| | | </el-button> |
| | | <span v-if="tableHeadFindData.length > 0"> |
| | | <el-select slot="prepend" v-model="keyWordFind" placeholder="请选择" size="small"> |
| | | <el-option v-for="item in tableHeadFindData" :label="item.label" :value="item.prop"></el-option> |
| | | <el-option v-for="item in tableHeadFindData" :label="item.label" :value="item.prop" :key="item.id"></el-option> |
| | | </el-select> |
| | | <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询" |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px" |
| | |
| | | }, |
| | | tableHeadFindData: { |
| | | handler(newval, oldval) { |
| | | console.log('new',newval) |
| | | newval.forEach((record, _index) => { |
| | | if (record.field == 'id' && validatenull(record.templet)) { |
| | | if (record.queryField == 'id' && validatenull(record.templet)) { |
| | | //企业编码的默认添加超链接,暂未实现 |
| | | record.formatter = ''; |
| | | } else { |
| | |
| | | } |
| | | |
| | | if (_index == 0) { |
| | | this.keyWordFind = record.field |
| | | this.keyWordFind = record.queryField |
| | | } |
| | | }) |
| | | this.tableHeadFindDatas = newval; |
| | | // console.log('new',newval) |
| | | this.WupinFindValue = '' |
| | | }, |
| | | }, |
| | |
| | | this.List.forEach((item) => { |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.field, |
| | | prop: item.queryField, |
| | | type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth, |
| | |
| | | }, |
| | | // 排序 |
| | | sortChange(val) { |
| | | console.log(val) |
| | | this.isLoading = true; |
| | | let order = ""; |
| | | if (val.order == "ascending") { |