Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2021-11-09 14:54:39 +08:00
@@ -855,7 +855,9 @@ export default {
// 项目分类数组 // 项目分类数组
notProjectData: [], notProjectData: [],
projectData: [] projectStatus: [],
projectData: [],
notProjectStatus: [],
}; };
}, },
methods: { methods: {
@@ -879,7 +881,7 @@ export default {
// 获取标准类别List数据 // 获取标准类别List数据
getAllInforList() { getAllInforList() {
this.$http.get("sys/dictype/getDicTypeListCode", {}, { _this: this }, res => { this.$http.get("sys/dictype/getDicTypeListCode", {}, { _this: this }, res => {
this.xmztOptions = res.data.XMZT; // this.xmztOptions = res.data.XMZT;
this.scxxOptions = res.data.SCXX; this.scxxOptions = res.data.SCXX;
this.countryList = res.data.COUNTRY; this.countryList = res.data.COUNTRY;
this.energyKindOptions = res.data.ENERGYTYPES; this.energyKindOptions = res.data.ENERGYTYPES;
@@ -1213,10 +1215,12 @@ export default {
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.productTypeOptions = this.projectData
this.xmztOptions = this.projectStatus
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.productTypeOptions = this.notProjectData
this.xmztOptions = this.notProjectStatus
this.total = res.data.notMaintenance.total; this.total = res.data.notMaintenance.total;
} }
// this.localProTableList.map((item) => { // this.localProTableList.map((item) => {
@@ -1546,18 +1550,30 @@ export default {
}, },
selectSort() { selectSort() {
solostarData().then(res=>{ solostarData().then(res=>{
res.data.MaintenanceProjectStatus.forEach((item, index)=>{ res.data.MaintenanceProjectClassification.forEach((item, index)=>{
this.projectData.push({ this.projectData.push({
label: item, label: item,
value: index value: index
}) })
}) })
res.data.notMaintenanceProjectStatus.forEach((item, index)=>{ res.data.MaintenanceProjectStatus.forEach((item, index)=>{
this.projectStatus.push({
label: item,
value: index
})
})
res.data.notMaintenanceProjectClassification.forEach((item, index)=>{
this.notProjectData.push({ this.notProjectData.push({
label: item, label: item,
value: index value: index
}) })
}) })
res.data.notMaintenanceProjectStatus.forEach((item, index)=>{
this.notProjectStatus.push({
label: item,
value: index
})
})
}) })
} }
}, },