| | |
| | | }, |
| | | SaveHandler(){ |
| | | let name = this.SearchObject.searchData[this.formInline.type].prop; |
| | | getList(this.page.currentPage, this.page.pageSize, { [`conditionMap['${name}_like']`]: this.formInline.text}).then(res => { |
| | | getList(this.page.currentPage, this.page.pageSize, { [`conditionMap[${name}_like]`]: this.formInline.text}).then(res => { |
| | | console.log(res); |
| | | }); |
| | | }, |
| | | handleSearch(){ |
| | | let formattedDate = this.$moment(this.formInline.Date).format('YYYY-M-D'); |
| | | console.log('formattedDate',formattedDate); |
| | | handleSearch() { |
| | | const { type, typeFlag, stateFlag, stateTaskDataFlag, dateFlag, lastDateFlag ,sendTypeFlga} = this.status; |
| | | const { currentPage, pageSize } = this.page; |
| | | const { cut, state, stateTask, Date, lastDate, taskCut } = this.formInline; |
| | | const requestParams = {}; |
| | | // 集成日志类型 |
| | | if (type === 'loge' && typeFlag) { |
| | | requestParams['conditionMap[type_like]'] = cut; |
| | | } |
| | | // 集成日志是否成功 |
| | | if (type === 'loge' && stateFlag) { |
| | | requestParams['conditionMap[interfaceStatus_like]'] = state; |
| | | } |
| | | // 集成任务 是否推送成功 集成数据 是否分解任务 |
| | | if ((type === 'task' || type === 'data') && stateTaskDataFlag) { |
| | | requestParams['conditionMap[sendFlag_like]'] = stateTask; |
| | | } |
| | | // 集成任务 创建日期 和 集成日志 记录时间 |
| | | if ((type === 'loge' || type === 'task') && dateFlag) { |
| | | const formattedDate = this.$moment(Date).format('YYYY-M-D'); |
| | | requestParams['conditionMap[createTime_like]'] = formattedDate; |
| | | } |
| | | // 集成任务 最后推送时间 |
| | | if (type === 'task' && lastDateFlag) { |
| | | const formattedDate = this.$moment(lastDate).format('YYYY-M-D'); |
| | | requestParams['conditionMap[lastModifyTime_like]'] = formattedDate; |
| | | } |
| | | // 集成任务 集成数据 推送类型 |
| | | if ((type === 'task' || type === 'data') && sendTypeFlga) { |
| | | requestParams['conditionMap[sendType_like]'] = taskCut; |
| | | } |
| | | // 请求 |
| | | getList(currentPage, pageSize, requestParams).then(res => { |
| | | let Data=res.data.data.records; |
| | | this.$emit('getList',Data) |
| | | }); |
| | | } |
| | | } |
| | | } |