flx:修改筛选参数
This commit is contained in:
parent
41618e737e
commit
e087b5c47f
@ -23,7 +23,7 @@ var COMPANY = ""; //通用
|
||||
// COMPANY = 'hfqc' //乌丹站舍(合肥启程)
|
||||
// COMPANY = 'mulei' //木垒
|
||||
// COMPANY = 'xjw' //新金湾
|
||||
// COMPANY = 'chaozhou' //潮州
|
||||
COMPANY = 'chaozhou' //潮州
|
||||
|
||||
var PROJECT = {
|
||||
local_test: "common", // 普通版
|
||||
|
||||
@ -198,7 +198,7 @@
|
||||
<div>
|
||||
<el-select
|
||||
@change="getCountSmallByMonthHiddenDangerStatisticsAndAnalysis()"
|
||||
v-model="searchDetail.smallId"
|
||||
v-model="searchDetail.smallName"
|
||||
clearable
|
||||
size="mini"
|
||||
filterable
|
||||
@ -208,7 +208,7 @@
|
||||
v-for="item in smallDangerList"
|
||||
:key="item.id"
|
||||
:label="item.dangerName"
|
||||
:value="item.id"
|
||||
:value="item.dangerName"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@ -591,7 +591,7 @@ export default {
|
||||
dayjs().format("YYYY-MM"),
|
||||
],
|
||||
dutyMajor: "",
|
||||
smallId: "",
|
||||
smallName: "",
|
||||
},
|
||||
countRisksInfo: [],
|
||||
riskAssessmentCalculatorList: [
|
||||
@ -742,7 +742,7 @@ export default {
|
||||
? this.searchDetail.effectiveTime3[1]
|
||||
: "",
|
||||
dutyMajor: this.searchDetail.dutyMajor,
|
||||
smallId: this.searchDetail.smallId,
|
||||
smallName: this.searchDetail.smallName,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.$nextTick(() => {
|
||||
@ -772,7 +772,13 @@ export default {
|
||||
recordStatus: 0,
|
||||
}).then((res) => {
|
||||
if (res.result.length > 0) {
|
||||
this.smallDangerList = res.result;
|
||||
this.smallDangerList = res.result.reduce((pre, cur) => {
|
||||
const findIndex = pre.findIndex((item) => item.dangerName == cur.dangerName);
|
||||
if(findIndex == -1) {
|
||||
pre.push(cur);
|
||||
}
|
||||
return pre
|
||||
}, []);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user