From e78becf6b0ebecf16e1af8ccc693f2fe41009b7f Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Mon, 8 Nov 2021 13:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E5=8D=95=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/unqualProcess.js | 8 +++++ .../localProductsOrProjectLibrary/index.vue | 31 ++++++++++++++++--- .../pages/details.vue | 2 +- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/api/unqualProcess.js b/src/api/unqualProcess.js index e28290abc..e736a6638 100644 --- a/src/api/unqualProcess.js +++ b/src/api/unqualProcess.js @@ -38,3 +38,11 @@ export function StandardsInfoPage (data) { params: data }) } + +export function solostarData (data) { + return axios({ + url: 'api/sarStandProjectLibrary/solostar', + method: 'get', + params: data + }) +} diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue index 9e7cdd3d6..60464dd9a 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue @@ -303,6 +303,7 @@ import eventHub from "@/common/eventHub"; import ProjectRelatedPersonnel from "@/components/CustomFormComponents/ProjectRelatedPersonnel"; import { dateFormat } from "@/common/date/index"; import moment from "moment"; +import { solostarData } from "@/api/unqualProcess"; function checkFD(rules, value, callback) { this.value = value; @@ -850,7 +851,11 @@ export default { } ], threeOptions: [], - loading: false + loading: false, + + // 项目分类数组 + notProjectData: [], + projectData: [] }; }, methods: { @@ -880,7 +885,7 @@ export default { this.energyKindOptions = res.data.ENERGYTYPES; this.protypeOptions = res.data.PROTYPE; this.probaseOptions = res.data.PROBASE; - this.productTypeOptions = res.data.XMLB; + // this.productTypeOptions = res.data.XMLB; this.targetMarketOptions = res.data.SCXX; }) }, @@ -1207,11 +1212,12 @@ export default { }, res => { if (this.localProTableSearch.prodectCode === "Maintenance") { this.localProTableList = res.data.Maintenance.records; + this.productTypeOptions = this.projectData this.total = res.data.Maintenance.total; } else if (this.localProTableSearch.prodectCode === "notMaintenance") { this.localProTableList = res.data.notMaintenance.records; + this.productTypeOptions = this.notProjectData this.total = res.data.notMaintenance.total; - } // this.localProTableList.map((item) => { // this.xmztOptions.map((opr) => { @@ -1385,7 +1391,6 @@ export default { }, // 分页点击后方法 pageChange(page) { - console.log(page); this.page = page; this.getLocalProductTable(); }, @@ -1538,10 +1543,26 @@ export default { }); this.localProEO.productManager = userIdList.join(","); this.localProEO.productManagerShow = userNameList.join(","); + }, + selectSort() { + solostarData().then(res=>{ + res.data.MaintenanceProjectStatus.forEach((item, index)=>{ + this.projectData.push({ + label: item, + value: index + }) + }) + res.data.notMaintenanceProjectStatus.forEach((item, index)=>{ + this.notProjectData.push({ + label: item, + value: index + }) + }) + }) } }, created() { - console.log(this.productTypeOptions) + this.selectSort() this.getDept().then(res => { this.getUser(res); }, e => { diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue index 06c924df7..ab9c3998e 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue @@ -1065,7 +1065,7 @@ export default { } .pagination { - position: unset; + position: absolute!important; } .el-steps.el-steps--simple {