|
@@ -12,7 +12,9 @@
|
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="检查角色"
|
|
<el-descriptions-item label="检查角色"
|
|
|
>{{
|
|
>{{
|
|
|
- taskInfo.checkRoles ? taskInfo.checkRoles.map((r) => r.name).join(",") : ""
|
|
|
|
|
|
|
+ taskInfo.checkRoles
|
|
|
|
|
+ ? taskInfo.checkRoles.map((r) => r.name).join(",")
|
|
|
|
|
+ : ""
|
|
|
}}
|
|
}}
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="开始日期"
|
|
<el-descriptions-item label="开始日期"
|
|
@@ -57,9 +59,12 @@
|
|
|
<span>{{ index + 1 }}、{{ item.itemName }}</span>
|
|
<span>{{ index + 1 }}、{{ item.itemName }}</span>
|
|
|
<div class="safetycheck_point" v-for="point in item.pointList">
|
|
<div class="safetycheck_point" v-for="point in item.pointList">
|
|
|
<div>
|
|
<div>
|
|
|
- <span class="pointName"
|
|
|
|
|
- ><i class="circle" /> {{ point.pointName }}</span
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div class="pointName">
|
|
|
|
|
+ <div style="display:flex;flex-direction:row">
|
|
|
|
|
+ <i class="circle" />
|
|
|
|
|
+ <pre>{{ point.pointName }}</pre>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<el-radio-group v-model="point.status" v-if="isRegister">
|
|
<el-radio-group v-model="point.status" v-if="isRegister">
|
|
|
<el-radio :label="0">正常</el-radio>
|
|
<el-radio :label="0">正常</el-radio>
|
|
|
<el-radio :label="1">异常</el-radio>
|
|
<el-radio :label="1">异常</el-radio>
|
|
@@ -136,7 +141,7 @@
|
|
|
<el-descriptions-item label="异常图片">
|
|
<el-descriptions-item label="异常图片">
|
|
|
<div class="imageList">
|
|
<div class="imageList">
|
|
|
<el-image
|
|
<el-image
|
|
|
- style="width: 100px; height: 100px;margin:10px;"
|
|
|
|
|
|
|
+ style="width: 100px; height: 100px; margin: 10px"
|
|
|
v-if="point.imgData"
|
|
v-if="point.imgData"
|
|
|
v-for="url in point.imgData"
|
|
v-for="url in point.imgData"
|
|
|
:src="url.imgPath"
|
|
:src="url.imgPath"
|
|
@@ -218,7 +223,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
showGrantBtn() {
|
|
showGrantBtn() {
|
|
|
let userRoleIds = this.roleList.map((r) => r.roleId);
|
|
let userRoleIds = this.roleList.map((r) => r.roleId);
|
|
|
- let taskRoleIds = this.taskInfo.checkRoles?this.taskInfo.checkRoles.map((r) => r.id):[];
|
|
|
|
|
|
|
+ let taskRoleIds = this.taskInfo.checkRoles
|
|
|
|
|
+ ? this.taskInfo.checkRoles.map((r) => r.id)
|
|
|
|
|
+ : [];
|
|
|
return (
|
|
return (
|
|
|
this.isRegister &&
|
|
this.isRegister &&
|
|
|
this.taskInfo.status != 3 &&
|
|
this.taskInfo.status != 3 &&
|
|
@@ -320,7 +327,7 @@ export default {
|
|
|
this.$message.info("没有可新增的检查内容");
|
|
this.$message.info("没有可新增的检查内容");
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- onClose(){
|
|
|
|
|
|
|
+ onClose() {
|
|
|
this.$tab.closePageAndPushPrev();
|
|
this.$tab.closePageAndPushPrev();
|
|
|
},
|
|
},
|
|
|
onDeletePoint(area, item, point) {
|
|
onDeletePoint(area, item, point) {
|
|
@@ -407,13 +414,13 @@ export default {
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
- flex-direction:column;
|
|
|
|
|
|
|
+ flex-direction: column;
|
|
|
}
|
|
}
|
|
|
.area_content {
|
|
.area_content {
|
|
|
- border: #B8BDC0 1px solid;
|
|
|
|
|
|
|
+ border: #b8bdc0 1px solid;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
|
- width:100%;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.content > .area_content:first-child {
|
|
.content > .area_content:first-child {
|
|
@@ -421,12 +428,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.content > .area_content:last-child {
|
|
.content > .area_content:last-child {
|
|
|
- border-bottom: #B8BDC0 1px solid;
|
|
|
|
|
|
|
+ border-bottom: #b8bdc0 1px solid;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.area_content > div:nth-child(1) {
|
|
.area_content > div:nth-child(1) {
|
|
|
background-color: #f7f7f7;
|
|
background-color: #f7f7f7;
|
|
|
- border-right: #B8BDC0 1px solid;
|
|
|
|
|
|
|
+ border-right: #b8bdc0 1px solid;
|
|
|
padding-top: auto;
|
|
padding-top: auto;
|
|
|
width: 15%;
|
|
width: 15%;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -453,13 +460,19 @@ export default {
|
|
|
// margin-bottom: 15px;
|
|
// margin-bottom: 15px;
|
|
|
// }
|
|
// }
|
|
|
.pointName {
|
|
.pointName {
|
|
|
- width: 200px;
|
|
|
|
|
|
|
+ width: 400px;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
|
|
+ margin-right: 50px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.pointName pre {
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ width:calc(100% - 15px)
|
|
|
}
|
|
}
|
|
|
.dialog-footer {
|
|
.dialog-footer {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
- border-top: #B8BDC0 1px solid;
|
|
|
|
|
|
|
+ border-top: #b8bdc0 1px solid;
|
|
|
padding-top: 10px;
|
|
padding-top: 10px;
|
|
|
padding-right: 30px;
|
|
padding-right: 30px;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -471,8 +484,9 @@ export default {
|
|
|
width: 5px;
|
|
width: 5px;
|
|
|
height: 5px;
|
|
height: 5px;
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
- background-color: #B8BDC0;
|
|
|
|
|
|
|
+ background-color: #b8bdc0;
|
|
|
border: none;
|
|
border: none;
|
|
|
margin-bottom: 3px;
|
|
margin-bottom: 3px;
|
|
|
|
|
+ margin-top:6px;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|