| | |
| | | btmtype: '', |
| | | code: "", |
| | | type: '', |
| | | // this.visibleDeactivate ?'ENABLE':this.visibleEnable ? 'DISABLE' :this.visibleRecovery ? 'ROLLBACK' :'PUBLIC' |
| | | processName: "", |
| | | vars: { |
| | | codeClassifyOid: "", |
| | |
| | | fileOptions: {}, |
| | | result: '', |
| | | elapsedTime: '', |
| | | conditionMap: [], |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | tableDataArray: { |
| | | handler(newval, oldval) { |
| | | // console.log('tableData',newval) |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout(); |
| | |
| | | }, |
| | | tableHeadFindData: { |
| | | handler(newval, oldval) { |
| | | // console.log(newval) |
| | | newval.forEach((record, _index) => { |
| | | if (record.queryField == 'id' && validatenull(record.templet)) { |
| | | //企业编码的默认添加超链接,暂未实现 |
| | |
| | | |
| | | if (_index == 0) { |
| | | this.keyWordFind = record.queryField; |
| | | console.log(record) |
| | | } |
| | | }) |
| | | this.tableHeadFindDatas = newval; |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 置空查询条件 |
| | | resetConditionMap() { |
| | | this.conditionMap = {}; |
| | | }, |
| | | |
| | | CodeLinkHandler(row) { |
| | | this.LinkObject = row; |
| | | this.LinkVisible = true; |
| | | this.LinkList = Object.keys(row).map(property => property) |
| | | |
| | | }, |
| | | //状态搜索 |
| | | cellSelectHandler(row) { |
| | |
| | | }, |
| | | cellStatusFind(lcstatus) { |
| | | this.isLoading = true; |
| | | this.conditionMap["conditionMap[lcstatus]"] = lcstatus; |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | ...this.conditionMap, /**带上分页查询条件 */ |
| | | }); |
| | | const endTime = performance.now(); |
| | | this.elapsedTime = Math.floor(endTime - startTime) * 1; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | // 将正在编辑的行的状态变为 null ,即退出编辑状态 |
| | | //将正在编辑的行的状态变为 null ,即退出编辑状态 |
| | | saveRow() { |
| | | this.editingRow = null; |
| | | }, |
| | |
| | | sort: val.prop, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | ...this.conditionMap |
| | | }); |
| | | this.data = data.data; |
| | | } finally { |
| | |
| | | //分页刷新 |
| | | async onLoad(val) { |
| | | this.isLoading = true; |
| | | |
| | | try { |
| | | let conditionMap = {}; |
| | | if (this.statusSelect !== 'all') { |
| | |
| | | }, |
| | | // 高级查询 |
| | | async echoContion(val) { |
| | | this.conditionMap = val; |
| | | try { |
| | | const res = await FindData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | ...val, |
| | | page: this.page.currentPage = 1,/** 每次点击高级查询都应该从第一页开始*/ |
| | | limit: this.page.pageSize |
| | | }); |
| | | this.tableData = res.data.data; |
| | | this.page.total = res.data.total |
| | |
| | | }, |
| | | //增加保存 |
| | | AddSumbit(val) { |
| | | // console.log('val',val) |
| | | if (func.notEmpty(val.ts)) { |
| | | val.ts = func.formattedDateTime(val.ts); |
| | | //console.log(val.ts); |
| | |
| | | tableFindInp() { |
| | | this.isLoading = true; |
| | | try { |
| | | // 存储查询条件,主要是为了点击页码时带上这个条件 |
| | | this.conditionMap["conditionMap[" + this.keyWordFind + "]"] = '*' + this.WupinFindValue + '*'; |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |