| | |
| | | SaveHandler(){ |
| | | let name = this.SearchObject.searchData[this.formInline.type].prop; |
| | | const requestApi = (api) => { |
| | | api(this.page.currentPage, this.page.pageSize, { [`conditionMap[${name}_like]`]: this.formInline.text}).then(res => { |
| | | api(this.page.currentPage, this.page.pageSize,'createTime','desc',{[`conditionMap[${name}_like]`]: this.formInline.text}).then(res => { |
| | | if(!res.data.data.records){ |
| | | this.$message.error('暂未查到数据!') |
| | | }else { |
| | |
| | | } |
| | | }); |
| | | } |
| | | if(this.status.type=='logo'){ |
| | | //日志 |
| | | if(this.status.type=='loge'){ |
| | | requestApi(getLogoList); |
| | | } |
| | | //数据 |
| | | if(this.status.type=='data'){ |
| | | requestApi(getDataList); |
| | | } |
| | | //任务 |
| | | if(this.status.type=='task'){ |
| | | requestApi(getTaskList); |
| | | } |
| | |
| | | const { cut, state, stateTask, Date, lastDate, taskCut } = this.formInline; |
| | | const requestParams = {}; |
| | | const requestApi = (api) => { |
| | | api(currentPage, pageSize, requestParams).then(res => { |
| | | api(currentPage, pageSize,'createTime','desc',requestParams).then(res => { |
| | | if(!res.data.data.records){ |
| | | this.$message.error('暂未查到数据!'); |
| | | } else { |
| | |
| | | requestParams['conditionMap[sendType_like]'] = taskCut; |
| | | } |
| | | |
| | | if (type == 'logo') { |
| | | if (type == 'loge') { |
| | | requestApi(getLogoList); |
| | | } |
| | | if (type == 'data') { |