| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (page, size, params) => { |
| | | export const getList = (page, limit, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/gridLoge', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | page, |
| | | size |
| | | limit |
| | | } |
| | | }) |
| | | } |
| | |
| | | format: formItem.dateFormate, |
| | | keyAttr: formItem.keyAttr, |
| | | value: (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || |
| | | ( TreeValue&& formItem.secType == "codelevelsec" ? TreeValue : null), |
| | | (formItem.secType == "codedatesec"?formItem.codeDateFormatStr: null) || ( TreeValue&& formItem.secType == "codelevelsec" ? TreeValue : null), |
| | | placeholder: formItem.inputTip, |
| | | comboxKey: formItem.comboxKey, |
| | | tip: formItem.tooltips, |
| | |
| | | }, |
| | | 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) |
| | | }); |
| | | } |
| | | } |
| | | } |
| | |
| | | components: {vciWebReferTree, vciWebReferTable, vciWebReferDefalut}, |
| | | data() { |
| | | return { |
| | | reterTypeLeavl:'213', |
| | | refertype: this.referConfig.options.type, |
| | | emitData:{}, |
| | | title:'', |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status"></vci-docking-search> |
| | | <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | dockingGetList(val){ |
| | | this.data=val; |
| | | }, |
| | | async cellDbClick(row, column, cell, event) { |
| | | for (const key in row) { |
| | | if (key === column.property) { |
| | |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :data="data || getList" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | ref="crud" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status"></vci-docking-search> |
| | | <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | dockingGetList(val){ |
| | | console.log(val,'val') |
| | | this.data=val; |
| | | }, |
| | | async cellDbClick(row, column, cell, event) { |
| | | for (const key in row) { |
| | | if (key === column.property) { |
| | |
| | | @click="handleSend">手动推送 |
| | | </el-button> |
| | | <div style="float: right;margin-left: 10px"> |
| | | <vci-docking-search :formInline="formInline" :SearchObject="SearchObject" :page="page" :status="status"></vci-docking-search> |
| | | <vci-docking-search :formInline="formInline" :SearchObject="SearchObject" :page="page" :status="status" @getList="dockingGetList"></vci-docking-search> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | dockingGetList(val){ |
| | | this.data=val; |
| | | }, |
| | | async cellDbClick(row, column, cell, event) { |
| | | for (const key in row) { |
| | | if (key === column.property) { |