清单列表查询字段

This commit is contained in:
shenyanpei
2021-11-08 13:41:30 +08:00
parent 3c35c536e7
commit e78becf6b0
3 changed files with 35 additions and 6 deletions
+8
View File
@@ -38,3 +38,11 @@ export function StandardsInfoPage (data) {
params: data params: data
}) })
} }
export function solostarData (data) {
return axios({
url: 'api/sarStandProjectLibrary/solostar',
method: 'get',
params: data
})
}
@@ -303,6 +303,7 @@ import eventHub from "@/common/eventHub";
import ProjectRelatedPersonnel from "@/components/CustomFormComponents/ProjectRelatedPersonnel"; import ProjectRelatedPersonnel from "@/components/CustomFormComponents/ProjectRelatedPersonnel";
import { dateFormat } from "@/common/date/index"; import { dateFormat } from "@/common/date/index";
import moment from "moment"; import moment from "moment";
import { solostarData } from "@/api/unqualProcess";
function checkFD(rules, value, callback) { function checkFD(rules, value, callback) {
this.value = value; this.value = value;
@@ -850,7 +851,11 @@ export default {
} }
], ],
threeOptions: [], threeOptions: [],
loading: false loading: false,
// 项目分类数组
notProjectData: [],
projectData: []
}; };
}, },
methods: { methods: {
@@ -880,7 +885,7 @@ export default {
this.energyKindOptions = res.data.ENERGYTYPES; this.energyKindOptions = res.data.ENERGYTYPES;
this.protypeOptions = res.data.PROTYPE; this.protypeOptions = res.data.PROTYPE;
this.probaseOptions = res.data.PROBASE; this.probaseOptions = res.data.PROBASE;
this.productTypeOptions = res.data.XMLB; // this.productTypeOptions = res.data.XMLB;
this.targetMarketOptions = res.data.SCXX; this.targetMarketOptions = res.data.SCXX;
}) })
}, },
@@ -1207,11 +1212,12 @@ export default {
}, res => { }, res => {
if (this.localProTableSearch.prodectCode === "Maintenance") { if (this.localProTableSearch.prodectCode === "Maintenance") {
this.localProTableList = res.data.Maintenance.records; this.localProTableList = res.data.Maintenance.records;
this.productTypeOptions = this.projectData
this.total = res.data.Maintenance.total; this.total = res.data.Maintenance.total;
} else if (this.localProTableSearch.prodectCode === "notMaintenance") { } else if (this.localProTableSearch.prodectCode === "notMaintenance") {
this.localProTableList = res.data.notMaintenance.records; this.localProTableList = res.data.notMaintenance.records;
this.productTypeOptions = this.notProjectData
this.total = res.data.notMaintenance.total; this.total = res.data.notMaintenance.total;
} }
// this.localProTableList.map((item) => { // this.localProTableList.map((item) => {
// this.xmztOptions.map((opr) => { // this.xmztOptions.map((opr) => {
@@ -1385,7 +1391,6 @@ export default {
}, },
// 分页点击后方法 // 分页点击后方法
pageChange(page) { pageChange(page) {
console.log(page);
this.page = page; this.page = page;
this.getLocalProductTable(); this.getLocalProductTable();
}, },
@@ -1538,10 +1543,26 @@ export default {
}); });
this.localProEO.productManager = userIdList.join(","); this.localProEO.productManager = userIdList.join(",");
this.localProEO.productManagerShow = userNameList.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() { created() {
console.log(this.productTypeOptions) this.selectSort()
this.getDept().then(res => { this.getDept().then(res => {
this.getUser(res); this.getUser(res);
}, e => { }, e => {
@@ -1065,7 +1065,7 @@ export default {
} }
.pagination { .pagination {
position: unset; position: absolute!important;
} }
.el-steps.el-steps--simple { .el-steps.el-steps--simple {