| | |
| | | <el-option label="分类查询" value="queryClassify"></el-option> |
| | | <el-option label="含编码规则的分类查询" value="queryClassifyRule"></el-option> |
| | | <el-option label="数据查询" value="queryData"></el-option> |
| | | <el-option label="标准申请" value="applyCodeForBZ"></el-option> |
| | | <el-option label="部门申请" value="syncDataForOrg"></el-option> |
| | | <el-option label="人员申请" value="syncDataForPerson"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 集成任务 是否推送成功 集成数据 是否分解任务--> |
| | | <!-- 集成任务 是否推送成功 |
| | | 集成数据 是否分解任务--> |
| | | <el-form-item v-if="((status.type == 'task' || status.type == 'data')&& status.stateTaskDataFlag)" size="small"> |
| | | <el-select v-model="formInline.stateTask" placeholder="请选择状态"> |
| | | <el-option label="是" value="true"></el-option> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList} from "@/api/docking/loge"; |
| | | import {getLogoList} from "@/api/docking/loge"; |
| | | import {getDataList} from "@/api/docking/data"; |
| | | import {getTaskList} from "@/api/docking/task"; |
| | | export default { |
| | | name: "VciDockingSearch", |
| | | props:['SearchObject','page','formInline','status'], |
| | |
| | | }, |
| | | 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 => { |
| | | if(!res.data.data.records){ |
| | | this.$message.error('暂未查到数据!') |
| | | }else { |
| | | let Data=res.data.data; |
| | | this.$emit('getList',Data); |
| | | } |
| | | }); |
| | | const requestApi = (api) => { |
| | | 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 { |
| | | let Data=res.data.data; |
| | | this.$emit('getList',Data); |
| | | } |
| | | }); |
| | | } |
| | | //日志 |
| | | if(this.status.type=='loge'){ |
| | | requestApi(getLogoList); |
| | | } |
| | | //数据 |
| | | if(this.status.type=='data'){ |
| | | requestApi(getDataList); |
| | | } |
| | | //任务 |
| | | if(this.status.type=='task'){ |
| | | requestApi(getTaskList); |
| | | } |
| | | }, |
| | | handleSearch() { |
| | | const { type, typeFlag, stateFlag, stateTaskDataFlag, dateFlag, lastDateFlag ,sendTypeFlga} = this.status; |
| | | 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 = {}; |
| | | const requestApi = (api) => { |
| | | api(currentPage, pageSize,'createTime','desc',requestParams).then(res => { |
| | | if(!res.data.data.records){ |
| | | this.$message.error('暂未查到数据!'); |
| | | } else { |
| | | let Data=res.data.data; |
| | | this.$emit('getList',Data); |
| | | } |
| | | }); |
| | | } |
| | | // 集成日志类型 |
| | | if (type === 'loge' && typeFlag) { |
| | | requestParams['conditionMap[type_like]'] = cut; |
| | |
| | | if ((type === 'task' || type === 'data') && sendTypeFlga) { |
| | | requestParams['conditionMap[sendType_like]'] = taskCut; |
| | | } |
| | | // 请求 |
| | | getList(currentPage, pageSize, requestParams).then(res => { |
| | | if(!res.data.data.records){ |
| | | this.$message.error('暂未查到数据!') |
| | | }else { |
| | | let Data=res.data.data; |
| | | this.$emit('getList',Data); |
| | | } |
| | | }); |
| | | |
| | | if (type == 'loge') { |
| | | requestApi(getLogoList); |
| | | } |
| | | if (type == 'data') { |
| | | requestApi(getDataList); |
| | | } |
| | | if (type == 'task') { |
| | | requestApi(getTaskList); |
| | | } |
| | | } |
| | | } |
| | | } |