flx:修改安全检查
This commit is contained in:
parent
2fa33ad379
commit
52f715f6ce
@ -157,7 +157,7 @@ export default {
|
|||||||
getSecurityDangerFieldPageApi({
|
getSecurityDangerFieldPageApi({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: -1,
|
pageSize: -1,
|
||||||
projectSn: this.projectSn,
|
sn: this.projectSn,
|
||||||
companyProjectType: 1,
|
companyProjectType: 1,
|
||||||
recordType: this.recordType,
|
recordType: this.recordType,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
@ -173,6 +173,15 @@
|
|||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="蒸发量阈值(mm)" prop="evaporationRate">
|
||||||
|
<el-input
|
||||||
|
v-model="warningInfo.evaporationRate"
|
||||||
|
:placeholder="$t('message.alarmValueSet.placeholder')"
|
||||||
|
type="number"
|
||||||
|
oninput="if(value.length>20)value=value.slice(0,20)"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
<!-- pm2.5预警是否推送 pm2.5报警是否推送-->
|
<!-- pm2.5预警是否推送 pm2.5报警是否推送-->
|
||||||
<el-form-item :label="type == 2 ? $t('message.projectInfo.PM25warning') : $t('message.projectInfo.PM25alarm')">
|
<el-form-item :label="type == 2 ? $t('message.projectInfo.PM25warning') : $t('message.projectInfo.PM25alarm')">
|
||||||
<el-radio-group v-model="warningInfo.isNotPush">
|
<el-radio-group v-model="warningInfo.isNotPush">
|
||||||
|
|||||||
@ -156,6 +156,12 @@
|
|||||||
prop="windspeed"
|
prop="windspeed"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="蒸发量"
|
||||||
|
prop="evaporationRate"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
<!-- 上传时间 -->
|
<!-- 上传时间 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
|
|||||||
@ -70,7 +70,6 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
||||||
v-model="scope.row.displayFieldName"
|
v-model="scope.row.displayFieldName"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
></el-input>
|
></el-input>
|
||||||
@ -78,11 +77,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="defaultDataType" align="center" label="默认数据">
|
<el-table-column prop="defaultDataType" align="center" label="默认数据">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select v-model="scope.row.defaultDataType" placeholder="请选择">
|
||||||
|
|
||||||
v-model="scope.row.defaultDataType"
|
|
||||||
placeholder="请选择"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
:label="item.title"
|
:label="item.title"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
@ -94,26 +89,17 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="isRequired" align="center" label="是否必填">
|
<el-table-column prop="isRequired" align="center" label="是否必填">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch v-model="scope.row.isRequired"></el-switch>
|
||||||
|
|
||||||
v-model="scope.row.isRequired"
|
|
||||||
></el-switch>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="isEnabled" align="center" label="是否显示">
|
<el-table-column prop="isEnabled" align="center" label="是否显示">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch v-model="scope.row.isEnabled"></el-switch>
|
||||||
|
|
||||||
v-model="scope.row.isEnabled"
|
|
||||||
></el-switch>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="isPinned" align="center" label="是否固定到列表">
|
<el-table-column prop="isPinned" align="center" label="是否固定到列表">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch v-model="scope.row.isPinned"></el-switch>
|
||||||
|
|
||||||
v-model="scope.row.isPinned"
|
|
||||||
></el-switch>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
@ -169,6 +155,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
syncCompanyClick() {
|
syncCompanyClick() {
|
||||||
|
this.$confirm(
|
||||||
|
"此操作将会同步企业配置覆盖到项目,此操作不可恢复,请谨慎操作!",
|
||||||
|
"提示",
|
||||||
|
{
|
||||||
|
confirmButtonText: this.$t("message.safeMangeCheck.dialog.confirm"),
|
||||||
|
cancelButtonText: this.$t("message.safeMangeCheck.dialog.cancel"),
|
||||||
|
type: "warning",
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
let params = {
|
let params = {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
};
|
};
|
||||||
@ -180,6 +175,7 @@ export default {
|
|||||||
this.getSecurityDangerFieldPage();
|
this.getSecurityDangerFieldPage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
saveConfigClick() {
|
saveConfigClick() {
|
||||||
const resultList = this.tableData.map((item) => {
|
const resultList = this.tableData.map((item) => {
|
||||||
|
|||||||
@ -504,7 +504,12 @@
|
|||||||
:prop="item.fieldName"
|
:prop="item.fieldName"
|
||||||
v-else-if="item.originalFieldName == '问题分类'"
|
v-else-if="item.originalFieldName == '问题分类'"
|
||||||
>
|
>
|
||||||
<el-cascader
|
<el-input
|
||||||
|
style="width: 400px"
|
||||||
|
v-model="addForm1.dangerItemContent"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
|
<!-- <el-cascader
|
||||||
disabled
|
disabled
|
||||||
v-model="addForm1[item.fieldName]"
|
v-model="addForm1[item.fieldName]"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@ -516,7 +521,7 @@
|
|||||||
:props="checkClassifyProps"
|
:props="checkClassifyProps"
|
||||||
@clear="addForm1[item.fieldName] = []"
|
@clear="addForm1[item.fieldName] = []"
|
||||||
:options="classifyList"
|
:options="classifyList"
|
||||||
></el-cascader>
|
></el-cascader> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="
|
:label="
|
||||||
@ -1910,14 +1915,18 @@ export default {
|
|||||||
const resultList = this.getAlls(this.checkPointList);
|
const resultList = this.getAlls(this.checkPointList);
|
||||||
console.log(resultList);
|
console.log(resultList);
|
||||||
if (this.recordType == 1) {
|
if (this.recordType == 1) {
|
||||||
this.addForm1.notifyPerson = resultList.map(item => item.intendanceIds);
|
this.addForm1.notifyPerson = resultList.map(
|
||||||
|
(item) => item.intendanceIds
|
||||||
|
);
|
||||||
this.unitRegionId = this.addForm1.regionIds;
|
this.unitRegionId = this.addForm1.regionIds;
|
||||||
this.getReviewPeopleList(this.addForm1.regionIds);
|
this.getReviewPeopleList(this.addForm1.regionIds);
|
||||||
} else if (this.recordType == 2) {
|
} else if (this.recordType == 2) {
|
||||||
this.unitRegionId = this.addForm2.regionIds;
|
this.unitRegionId = this.addForm2.regionIds;
|
||||||
this.getReviewPeopleList(this.addForm2.regionIds);
|
this.getReviewPeopleList(this.addForm2.regionIds);
|
||||||
}
|
}
|
||||||
const securityEnterpriseIds = resultList.map(item => item.securityEnterpriseIds).join(',');
|
const securityEnterpriseIds = resultList
|
||||||
|
.map((item) => item.securityEnterpriseIds)
|
||||||
|
.join(",");
|
||||||
if (securityEnterpriseIds) {
|
if (securityEnterpriseIds) {
|
||||||
this.getDivisionUnitFn(securityEnterpriseIds);
|
this.getDivisionUnitFn(securityEnterpriseIds);
|
||||||
} else {
|
} else {
|
||||||
@ -2047,7 +2056,12 @@ export default {
|
|||||||
|
|
||||||
console.log("整改时限", cascaderAddr.getCheckedNodes()[0].data);
|
console.log("整改时限", cascaderAddr.getCheckedNodes()[0].data);
|
||||||
// changeLimitTime
|
// changeLimitTime
|
||||||
this.addForm1.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.addForm1.problemDescription = pathLabels[0].label;
|
||||||
|
this.addForm1.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
|
|||||||
@ -231,6 +231,15 @@ export default {
|
|||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
syncCompanyClick(type) {
|
syncCompanyClick(type) {
|
||||||
|
this.$confirm(
|
||||||
|
"此操作将会同步企业配置覆盖到项目,此操作不可恢复,请谨慎操作!",
|
||||||
|
"提示",
|
||||||
|
{
|
||||||
|
confirmButtonText: this.$t("message.safeMangeCheck.dialog.confirm"),
|
||||||
|
cancelButtonText: this.$t("message.safeMangeCheck.dialog.cancel"),
|
||||||
|
type: "warning",
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
let params = {
|
let params = {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
modType: type,
|
modType: type,
|
||||||
@ -243,6 +252,7 @@ export default {
|
|||||||
this.getXzSecurityDangerReviewVerifyList();
|
this.getXzSecurityDangerReviewVerifyList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getXzSecurityDangerReviewVerifyList() {
|
getXzSecurityDangerReviewVerifyList() {
|
||||||
getEffectiveConfigSecurityDangerReviewVerifyApi({
|
getEffectiveConfigSecurityDangerReviewVerifyApi({
|
||||||
@ -383,7 +393,7 @@ export default {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
height: initial;
|
height: initial;
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
background-color: #FBFBFB;
|
background-color: #fbfbfb;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.el-collapse-item__wrap {
|
.el-collapse-item__wrap {
|
||||||
@ -396,7 +406,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.tables-box {
|
.tables-box {
|
||||||
.table_box:nth-child(odd) {
|
.table_box:nth-child(odd) {
|
||||||
background-color: #FBFBFB;
|
background-color: #fbfbfb;
|
||||||
}
|
}
|
||||||
.table_box {
|
.table_box {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -39,7 +39,10 @@
|
|||||||
class="demo-form-inline"
|
class="demo-form-inline"
|
||||||
style="display: flex"
|
style="display: flex"
|
||||||
>
|
>
|
||||||
<el-form-item v-if="securityDangerListUp('检查时间')" :label="securityDangerListUp('检查时间')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('检查时间')"
|
||||||
|
:label="securityDangerListUp('检查时间')"
|
||||||
|
>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
style="width: 335px"
|
style="width: 335px"
|
||||||
v-model="time"
|
v-model="time"
|
||||||
@ -52,7 +55,10 @@
|
|||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="securityDangerListUp('问题等级')" :label="securityDangerListUp('问题等级')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('问题等级')"
|
||||||
|
:label="securityDangerListUp('问题等级')"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
v-model="formInline.level"
|
v-model="formInline.level"
|
||||||
@ -88,7 +94,10 @@
|
|||||||
<el-option label="合格" :value="5"></el-option>
|
<el-option label="合格" :value="5"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="securityDangerListUp('紧急程度')" :label="securityDangerListUp('紧急程度')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('紧急程度')"
|
||||||
|
:label="securityDangerListUp('紧急程度')"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
v-model="formInline.urgentLevel"
|
v-model="formInline.urgentLevel"
|
||||||
@ -534,8 +543,13 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('message.quality.questionClassification')"
|
:label="$t('message.quality.questionClassification')"
|
||||||
>
|
>
|
||||||
|
<el-input
|
||||||
|
style="width: 400px"
|
||||||
|
v-model="addForm1.dangerItemContent"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
<!-- prop="dangerItemId" -->
|
<!-- prop="dangerItemId" -->
|
||||||
<el-cascader
|
<!-- <el-cascader
|
||||||
disabled
|
disabled
|
||||||
v-model="addForm1.dangerItemId"
|
v-model="addForm1.dangerItemId"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@ -547,7 +561,7 @@
|
|||||||
:props="checkClassifyProps"
|
:props="checkClassifyProps"
|
||||||
@clear="addForm1.dangerItemId = []"
|
@clear="addForm1.dangerItemId = []"
|
||||||
:options="classifyList"
|
:options="classifyList"
|
||||||
></el-cascader>
|
></el-cascader> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('message.quality.moreInfo')"
|
:label="$t('message.quality.moreInfo')"
|
||||||
@ -2284,7 +2298,10 @@ import {
|
|||||||
addXZSecurityPostponeRectifyApplyApi,
|
addXZSecurityPostponeRectifyApplyApi,
|
||||||
updateChangeIdXzSecurityQualityInspectionRecordApi,
|
updateChangeIdXzSecurityQualityInspectionRecordApi,
|
||||||
} from "@/assets/js/api/quality.js";
|
} from "@/assets/js/api/quality.js";
|
||||||
import { getEffectiveConfigSecurityDangerFieldApi, getEffectiveConfigSecurityDangerReviewVerifyApi } from "@/assets/js/api/safeManage";
|
import {
|
||||||
|
getEffectiveConfigSecurityDangerFieldApi,
|
||||||
|
getEffectiveConfigSecurityDangerReviewVerifyApi,
|
||||||
|
} from "@/assets/js/api/safeManage";
|
||||||
import { getDictionaryItemApi } from "@/assets/js/api/companyDiagram";
|
import { getDictionaryItemApi } from "@/assets/js/api/companyDiagram";
|
||||||
import {
|
import {
|
||||||
getProjectChilderSystemUserListApi,
|
getProjectChilderSystemUserListApi,
|
||||||
@ -2606,7 +2623,7 @@ export default {
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const data = res.result;
|
const data = res.result;
|
||||||
this.dangerReviewInfo = {
|
this.dangerReviewInfo = {
|
||||||
...data
|
...data,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -3019,9 +3036,14 @@ export default {
|
|||||||
arr.forEach((element, index) => {
|
arr.forEach((element, index) => {
|
||||||
// console.log(22222, element)
|
// console.log(22222, element)
|
||||||
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
||||||
let result = arr[index].substring(arr[index].indexOf("*") + 1, arr[index].length);
|
let result = arr[index].substring(
|
||||||
|
arr[index].indexOf("*") + 1,
|
||||||
|
arr[index].length
|
||||||
|
);
|
||||||
// console.log(3333, result)
|
// console.log(3333, result)
|
||||||
arr[index] = result.includes("http://") ? result : this.$store.state.FILEURL + result;
|
arr[index] = result.includes("http://")
|
||||||
|
? result
|
||||||
|
: this.$store.state.FILEURL + result;
|
||||||
});
|
});
|
||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
@ -3802,10 +3824,16 @@ export default {
|
|||||||
enterpriseId: this.unitEnterpriseId.join(","),
|
enterpriseId: this.unitEnterpriseId.join(","),
|
||||||
safeQualityRegionIdForDuty: this.unitRegionId.join(","),
|
safeQualityRegionIdForDuty: this.unitRegionId.join(","),
|
||||||
};
|
};
|
||||||
if (this.dangerReviewInfo.enableVerify == 1 && this.dealForm.status == 4) {
|
if (
|
||||||
|
this.dangerReviewInfo.enableVerify == 1 &&
|
||||||
|
this.dealForm.status == 4
|
||||||
|
) {
|
||||||
data.roleName = this.dangerReviewInfo.verifyRoleName;
|
data.roleName = this.dangerReviewInfo.verifyRoleName;
|
||||||
}
|
}
|
||||||
if (this.dangerReviewInfo.enableReview == 1 && this.dealForm.status == 3) {
|
if (
|
||||||
|
this.dangerReviewInfo.enableReview == 1 &&
|
||||||
|
this.dealForm.status == 3
|
||||||
|
) {
|
||||||
data.roleName = this.dangerReviewInfo.reviewRoleName;
|
data.roleName = this.dangerReviewInfo.reviewRoleName;
|
||||||
}
|
}
|
||||||
getProjectChilderSystemUserListApi(data).then((res) => {
|
getProjectChilderSystemUserListApi(data).then((res) => {
|
||||||
@ -3851,10 +3879,13 @@ export default {
|
|||||||
this.dealForm.remark =
|
this.dealForm.remark =
|
||||||
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
||||||
|
|
||||||
this.dealForm.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.dealForm.problemDescription = pathLabels[0].label;
|
||||||
|
this.dealForm.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
console.log(pathLabels);
|
|
||||||
console.log(item, 1632);
|
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
.join("/");
|
.join("/");
|
||||||
@ -3910,10 +3941,13 @@ export default {
|
|||||||
this.addForm1.remark =
|
this.addForm1.remark =
|
||||||
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
||||||
|
|
||||||
this.addForm1.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.addForm1.problemDescription = pathLabels[0].label;
|
||||||
|
this.addForm1.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
console.log(pathLabels);
|
|
||||||
console.log(item, 1632);
|
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
.join("/");
|
.join("/");
|
||||||
|
|||||||
@ -7,7 +7,10 @@
|
|||||||
class="demo-form-inline"
|
class="demo-form-inline"
|
||||||
style="display: flex"
|
style="display: flex"
|
||||||
>
|
>
|
||||||
<el-form-item v-if="securityDangerListUp('检查时间')" :label="securityDangerListUp('检查时间')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('检查时间')"
|
||||||
|
:label="securityDangerListUp('检查时间')"
|
||||||
|
>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
style="width: 335px"
|
style="width: 335px"
|
||||||
v-model="time"
|
v-model="time"
|
||||||
@ -20,7 +23,10 @@
|
|||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="securityDangerListUp('问题等级')" :label="securityDangerListUp('问题等级')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('问题等级')"
|
||||||
|
:label="securityDangerListUp('问题等级')"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
v-model="formInline.level"
|
v-model="formInline.level"
|
||||||
@ -56,7 +62,10 @@
|
|||||||
<el-option label="合格" :value="5"></el-option>
|
<el-option label="合格" :value="5"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="securityDangerListUp('紧急程度')" :label="securityDangerListUp('紧急程度')">
|
<el-form-item
|
||||||
|
v-if="securityDangerListUp('紧急程度')"
|
||||||
|
:label="securityDangerListUp('紧急程度')"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
v-model="formInline.urgentLevel"
|
v-model="formInline.urgentLevel"
|
||||||
@ -481,8 +490,13 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('message.quality.questionClassification')"
|
:label="$t('message.quality.questionClassification')"
|
||||||
>
|
>
|
||||||
|
<el-input
|
||||||
|
style="width: 400px"
|
||||||
|
v-model="addForm1.dangerItemContent"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
<!-- prop="dangerItemId" -->
|
<!-- prop="dangerItemId" -->
|
||||||
<el-cascader
|
<!-- <el-cascader
|
||||||
disabled
|
disabled
|
||||||
v-model="addForm1.dangerItemId"
|
v-model="addForm1.dangerItemId"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@ -494,7 +508,7 @@
|
|||||||
:props="checkClassifyProps"
|
:props="checkClassifyProps"
|
||||||
@clear="addForm1.dangerItemId = []"
|
@clear="addForm1.dangerItemId = []"
|
||||||
:options="classifyList"
|
:options="classifyList"
|
||||||
></el-cascader>
|
></el-cascader> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('message.quality.moreInfo')"
|
:label="$t('message.quality.moreInfo')"
|
||||||
@ -2565,11 +2579,13 @@ export default {
|
|||||||
recordType: recordType ? recordType : this.recordType,
|
recordType: recordType ? recordType : this.recordType,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.securityDangerList = res.result
|
this.securityDangerList = res.result.filter(
|
||||||
.filter((item) => item.isEnabled == 1);
|
(item) => item.isEnabled == 1
|
||||||
|
);
|
||||||
if (this.securityDangerPinnedList.length == 0) {
|
if (this.securityDangerPinnedList.length == 0) {
|
||||||
this.securityDangerPinnedList = res.result
|
this.securityDangerPinnedList = res.result
|
||||||
.filter((item) => item.isPinned == 1).filter((item) => item.recordType == 1);
|
.filter((item) => item.isPinned == 1)
|
||||||
|
.filter((item) => item.recordType == 1);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.multipleTable.doLayout();
|
this.$refs.multipleTable.doLayout();
|
||||||
});
|
});
|
||||||
@ -2917,9 +2933,14 @@ export default {
|
|||||||
arr.forEach((element, index) => {
|
arr.forEach((element, index) => {
|
||||||
// console.log(22222, element)
|
// console.log(22222, element)
|
||||||
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
||||||
let result = arr[index].substring(arr[index].indexOf("*") + 1, arr[index].length);
|
let result = arr[index].substring(
|
||||||
|
arr[index].indexOf("*") + 1,
|
||||||
|
arr[index].length
|
||||||
|
);
|
||||||
// console.log(3333, result)
|
// console.log(3333, result)
|
||||||
arr[index] = result.includes("http://") ? result : this.$store.state.FILEURL + result;
|
arr[index] = result.includes("http://")
|
||||||
|
? result
|
||||||
|
: this.$store.state.FILEURL + result;
|
||||||
});
|
});
|
||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
@ -3745,10 +3766,13 @@ export default {
|
|||||||
this.dealForm.remark =
|
this.dealForm.remark =
|
||||||
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
||||||
|
|
||||||
this.dealForm.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.dealForm.problemDescription = pathLabels[0].label;
|
||||||
|
this.dealForm.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
console.log(pathLabels);
|
|
||||||
console.log(item, 1632);
|
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
.join("/");
|
.join("/");
|
||||||
@ -3804,10 +3828,13 @@ export default {
|
|||||||
this.addForm1.remark =
|
this.addForm1.remark =
|
||||||
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
this.$refs["cascaderAddr"].getCheckedNodes()[0].data.remark;
|
||||||
|
|
||||||
this.addForm1.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.addForm1.problemDescription = pathLabels[0].label;
|
||||||
|
this.addForm1.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
console.log(pathLabels);
|
|
||||||
console.log(item, 1632);
|
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
.join("/");
|
.join("/");
|
||||||
|
|||||||
@ -589,7 +589,12 @@
|
|||||||
:prop="item.fieldName"
|
:prop="item.fieldName"
|
||||||
v-else-if="item.originalFieldName == '问题分类'"
|
v-else-if="item.originalFieldName == '问题分类'"
|
||||||
>
|
>
|
||||||
<el-cascader
|
<el-input
|
||||||
|
style="width: 400px"
|
||||||
|
v-model="addForm1.dangerItemContent"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
|
<!-- <el-cascader
|
||||||
disabled
|
disabled
|
||||||
v-model="addForm1[item.fieldName]"
|
v-model="addForm1[item.fieldName]"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@ -601,7 +606,7 @@
|
|||||||
:props="checkClassifyProps"
|
:props="checkClassifyProps"
|
||||||
@clear="addForm1[item.fieldName] = []"
|
@clear="addForm1[item.fieldName] = []"
|
||||||
:options="classifyList"
|
:options="classifyList"
|
||||||
></el-cascader>
|
></el-cascader> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="
|
:label="
|
||||||
@ -3192,7 +3197,7 @@ export default {
|
|||||||
|
|
||||||
// this.getPeopleUpdateList();
|
// this.getPeopleUpdateList();
|
||||||
this.getRoutineInspect();
|
this.getRoutineInspect();
|
||||||
this.dealTitle = "新增";
|
this.dealTitle = "补录";
|
||||||
this.dealShow = true;
|
this.dealShow = true;
|
||||||
},
|
},
|
||||||
submitDealForm() {
|
submitDealForm() {
|
||||||
@ -3573,7 +3578,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
parseImage2(urls) {
|
parseImage2(urls) {
|
||||||
console.log(112233, urls)
|
console.log(112233, urls);
|
||||||
let arr = [];
|
let arr = [];
|
||||||
if (urls) {
|
if (urls) {
|
||||||
arr = urls.split(",");
|
arr = urls.split(",");
|
||||||
@ -3581,9 +3586,14 @@ export default {
|
|||||||
arr.forEach((element, index) => {
|
arr.forEach((element, index) => {
|
||||||
// console.log(22222, element)
|
// console.log(22222, element)
|
||||||
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
// arr[index] = element.includes("http://") ? element : this.$store.state.FILEURL + element;
|
||||||
let result = arr[index].substring(arr[index].indexOf("*") + 1, arr[index].length);
|
let result = arr[index].substring(
|
||||||
|
arr[index].indexOf("*") + 1,
|
||||||
|
arr[index].length
|
||||||
|
);
|
||||||
// console.log(3333, result)
|
// console.log(3333, result)
|
||||||
arr[index] = result.includes("http://") ? result : this.$store.state.FILEURL + result;
|
arr[index] = result.includes("http://")
|
||||||
|
? result
|
||||||
|
: this.$store.state.FILEURL + result;
|
||||||
});
|
});
|
||||||
console.log(11222444, arr);
|
console.log(11222444, arr);
|
||||||
return arr;
|
return arr;
|
||||||
@ -4514,7 +4524,12 @@ export default {
|
|||||||
|
|
||||||
console.log("整改时限", cascaderAddr.getCheckedNodes()[0].data);
|
console.log("整改时限", cascaderAddr.getCheckedNodes()[0].data);
|
||||||
// changeLimitTime
|
// changeLimitTime
|
||||||
this.dealForm.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.dealForm.problemDescription = pathLabels[0].label;
|
||||||
|
this.dealForm.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
@ -4562,10 +4577,13 @@ export default {
|
|||||||
.add(data.changeLimit, "day")
|
.add(data.changeLimit, "day")
|
||||||
.format("YYYY-MM-DD HH:mm:ss");
|
.format("YYYY-MM-DD HH:mm:ss");
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("整改时限", cascaderAddr.getCheckedNodes()[0].data);
|
|
||||||
// changeLimitTime
|
// changeLimitTime
|
||||||
this.addForm1.dangerItemContent = pathLabels[0].pathLabels
|
const pathLabelList = pathLabels[0].pathLabels.filter(
|
||||||
|
(item) => item != pathLabels[0].label
|
||||||
|
);
|
||||||
|
console.log("整改时限", pathLabels, pathLabelList);
|
||||||
|
this.addForm1.problemDescription = pathLabels[0].label;
|
||||||
|
this.addForm1.dangerItemContent = pathLabelList
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user