|
|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body @close="cancel">
|
|
|
- <el-descriptions :column="2" class="contentArea">
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body @close="cancel">
|
|
|
+ <div class="question-dialog-body">
|
|
|
+ <el-descriptions :column="2" class="contentArea">
|
|
|
<el-descriptions-item label="隐患所属机构">{{
|
|
|
data.orgName
|
|
|
}}</el-descriptions-item>
|
|
|
@@ -45,7 +46,7 @@
|
|
|
<el-descriptions-item label="确认人">{{
|
|
|
data.confirm.executorName
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="描述">{{
|
|
|
+ <el-descriptions-item label="异议内容" :span="2" v-if="data.confirm.executeStatus==1">{{
|
|
|
data.confirm.description
|
|
|
}}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
@@ -56,7 +57,7 @@
|
|
|
<el-descriptions-item label="审核人">{{
|
|
|
data.confirmDissent.executorName
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="描述">{{
|
|
|
+ <el-descriptions-item label="描述" :span="2" v-if="data.confirmDissent.executeStatus==1">{{
|
|
|
data.confirmDissent.description
|
|
|
}}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
@@ -67,10 +68,10 @@
|
|
|
<el-descriptions-item label="整改状态">{{
|
|
|
data.reform.executeStatus == 0 ? "已整改" : "未整改"
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="描述">{{
|
|
|
+ <el-descriptions-item label="描述" :span="2">{{
|
|
|
data.reform.description
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="整改图片">
|
|
|
+ <el-descriptions-item label="整改图片" :span="2">
|
|
|
<div class="imageList">
|
|
|
<el-image
|
|
|
style="width: 100px; height: 100px"
|
|
|
@@ -128,6 +129,7 @@
|
|
|
>
|
|
|
<el-input
|
|
|
v-model="confirmDissentData.description"
|
|
|
+ placeHolder="请输入原因"
|
|
|
maxlength="255"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -164,8 +166,10 @@
|
|
|
></imgUpload>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+
|
|
|
+ </div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm" v-if="type!='detail'">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -211,13 +215,13 @@ export default {
|
|
|
},
|
|
|
confirmRule: {
|
|
|
description: [
|
|
|
- { required: false, message: "请输入异议内容", trigger: "blur" },
|
|
|
+ { required: true, message: "请输入异议内容", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
|
|
|
confirmDissentRule: {
|
|
|
description: [
|
|
|
- { required: false, message: "请输入原因", trigger: "blur" },
|
|
|
+ { required: true, message: "请输入原因", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
reformRule: {
|
|
|
@@ -246,10 +250,12 @@ export default {
|
|
|
this.setTitle(type);
|
|
|
getQuestion(row.id).then((r) => {
|
|
|
this.data = r.data;
|
|
|
- this.data.confirmDissent = r.data.flows.find((d) => d.executeStep == 1);
|
|
|
- this.data.confirm = r.data.flows.find((d) => d.executeStep == 2);
|
|
|
- this.data.reform = r.data.flows.find((d) => d.executeStep == 10);
|
|
|
- debugger
|
|
|
+ this.data.confirmDissent = r.data.flows.find((d) => d.executeStep == 2);
|
|
|
+ this.data.confirm = r.data.flows.find((d) => d.executeStep == 1);
|
|
|
+ this.data.reform = r.data.flows.find((d) => d.executeStep == 11);
|
|
|
+ if(this.data.reform && this.data.reform.images) {
|
|
|
+ this.data.reform.images=this.data.reform.images.split(",")
|
|
|
+ }
|
|
|
this.open = true;
|
|
|
});
|
|
|
},
|
|
|
@@ -367,7 +373,20 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.contentArea {
|
|
|
+.form {
|
|
|
+ padding-top: 20px;
|
|
|
+}
|
|
|
+.imageList div {
|
|
|
+ margin-left: 5px;
|
|
|
+ margin-right: 5px;
|
|
|
+}
|
|
|
+.question-dialog-body{
|
|
|
+ max-height: 500px;
|
|
|
+ overflow-y: auto;
|
|
|
+ padding-right: 15px;
|
|
|
+}
|
|
|
+
|
|
|
+.question-dialog-body>div{
|
|
|
border-bottom: 1px solid #606266;
|
|
|
padding-bottom: 20px;
|
|
|
|
|
|
@@ -377,11 +396,11 @@ export default {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
}
|
|
|
-.form {
|
|
|
- padding-top: 20px;
|
|
|
+
|
|
|
+.question-dialog-body>div:not(:first-child){
|
|
|
+ padding-top: 15px;
|
|
|
}
|
|
|
-.imageList div {
|
|
|
- margin-left: 5px;
|
|
|
- margin-right: 5px;
|
|
|
+.question-dialog-body>div:last-child{
|
|
|
+ border: none;
|
|
|
}
|
|
|
</style>
|