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