| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (page, size, params) => { |
| | | export const getDataList = (page, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/gridDockingData', |
| | | method: 'get', |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (page, limit, params) => { |
| | | export const getLogoList = (page, limit, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/gridLoge', |
| | | method: 'get', |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (page, size, params) => { |
| | | export const getTaskList = (page, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/gridDockingTask', |
| | | method: 'get', |
| | |
| | | </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, { [`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=='logo'){ |
| | | 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, 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 == 'logo') { |
| | | requestApi(getLogoList); |
| | | } |
| | | if (type == 'data') { |
| | | requestApi(getDataList); |
| | | } |
| | | if (type == 'task') { |
| | | requestApi(getTaskList); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <div style="font-size: 15px"> |
| | | <el-image src="/img/pageLogo.jpeg" style="width: 360px; height: 280px"></el-image> |
| | | </div> |
| | | <!-- <div style="font-size: 15px" class="image-container">--> |
| | | <!-- <el-image class="background-image" src="/img/pageLogo.jpeg" ></el-image>--> |
| | | <!-- </div>--> |
| | | <!--<img class="img" src="/img/logo.png" alt="">--> |
| | | </div> |
| | | <div class="login-border"> |
| | | <div class="login-main"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList} from "@/api/docking/data"; |
| | | import {getDataList} from "@/api/docking/data"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import {mapGetters} from "vuex"; |
| | | import website from "@/config/website"; |
| | |
| | | query['conditionMap["' + key + '"]'] = this.query[key]; |
| | | } |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { |
| | | getDataList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList} from "@/api/docking/loge"; |
| | | import {getLogoList} from "@/api/docking/loge"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | |
| | | query['conditionMap["' + key + '"]'] = this.query[key]; |
| | | } |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { |
| | | getLogoList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList,sendData} from "@/api/docking/task"; |
| | | import {getTaskList,sendData} from "@/api/docking/task"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import {mapGetters} from "vuex"; |
| | | import {remove} from "@/api/code/codeSynonym"; |
| | |
| | | query['conditionMap["' + key + '"]'] = this.query[key]; |
| | | } |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.params, query, this.query)).then(res => { |
| | | getTaskList(page.currentPage, page.pageSize, Object.assign(params, this.params, query, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | if (!this.countByServer) { |
| | | // 是前端查询 |
| | | getList(record.countUrl, {}).then(res => { |
| | | console.log('res',res) |
| | | // console.log('res',res) |
| | | if (res.data.data.success) { |
| | | record.count = res.data.data.obj; |
| | | } else { |