feat: 榕图江坑添加风险提醒文本
This commit is contained in:
parent
8e10b65a0e
commit
227b6e7c4d
@ -186,7 +186,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="300" label="操作" align="center">
|
<el-table-column width="350" label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
@click.native.stop="addBefore(2, scope.row)"
|
@click.native.stop="addBefore(2, scope.row)"
|
||||||
@ -197,6 +197,14 @@
|
|||||||
>
|
>
|
||||||
子分项
|
子分项
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-document"
|
||||||
|
@click.native.stop="openRiskTipDialog(scope.row)"
|
||||||
|
>
|
||||||
|
风险提示
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -238,6 +246,66 @@
|
|||||||
background
|
background
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 风险提示 -->
|
||||||
|
<el-dialog
|
||||||
|
:modal-append-to-body="false"
|
||||||
|
title="风险提示"
|
||||||
|
:visible.sync="riskTipVisible"
|
||||||
|
width="667px"
|
||||||
|
@close="closeRiskTipDialog"
|
||||||
|
>
|
||||||
|
<div class="dialog_content">
|
||||||
|
<el-form
|
||||||
|
ref="riskEditForm"
|
||||||
|
label-width="100px"
|
||||||
|
size="medium"
|
||||||
|
class="dialogFormBox"
|
||||||
|
:rules="riskEditRules"
|
||||||
|
:model="riskTipInfo"
|
||||||
|
>
|
||||||
|
<el-form-item label="危险点辨识" prop="dangerPointIdentification">
|
||||||
|
<el-input
|
||||||
|
v-model="riskTipInfo.dangerPointIdentification"
|
||||||
|
placeholder="请输入"
|
||||||
|
:rows="3"
|
||||||
|
type="textarea"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="风险控制措施" prop="riskControlMeasure">
|
||||||
|
<el-input
|
||||||
|
v-model="riskTipInfo.riskControlMeasure"
|
||||||
|
placeholder="请输入"
|
||||||
|
:rows="3"
|
||||||
|
type="textarea"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="施工要点" prop="constructionKeyPoint">
|
||||||
|
<el-input
|
||||||
|
v-model="riskTipInfo.constructionKeyPoint"
|
||||||
|
placeholder="请输入"
|
||||||
|
:rows="3"
|
||||||
|
type="textarea"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<div class="dialog-footer">
|
||||||
|
<el-button
|
||||||
|
class="cancleBtn"
|
||||||
|
@click="riskTipVisible = false"
|
||||||
|
icon="el-icon-circle-close"
|
||||||
|
size="medium"
|
||||||
|
>取消
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-circle-check"
|
||||||
|
@click="submitRiskTipBtn"
|
||||||
|
size="medium"
|
||||||
|
>确定
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
<!-- '新增父子级工程弹框' -->
|
<!-- '新增父子级工程弹框' -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:modal-append-to-body="false"
|
:modal-append-to-body="false"
|
||||||
@ -517,6 +585,7 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
riskTipVisible: false,
|
||||||
selectedHideList: [],
|
selectedHideList: [],
|
||||||
selectedColorList: [],
|
selectedColorList: [],
|
||||||
typeOptions: [
|
typeOptions: [
|
||||||
@ -576,6 +645,11 @@ export default {
|
|||||||
uploadUrl: "",
|
uploadUrl: "",
|
||||||
fileUrl: "",
|
fileUrl: "",
|
||||||
dialogVisible: false, //新增弹窗
|
dialogVisible: false, //新增弹窗
|
||||||
|
riskTipInfo: {
|
||||||
|
dangerPointIdentification: '',
|
||||||
|
riskControlMeasure: '',
|
||||||
|
constructionKeyPoint: ''
|
||||||
|
},
|
||||||
workerInfo: {
|
workerInfo: {
|
||||||
taskName: "",
|
taskName: "",
|
||||||
startDate: "",
|
startDate: "",
|
||||||
@ -598,6 +672,29 @@ export default {
|
|||||||
actualFinishDate: "",
|
actualFinishDate: "",
|
||||||
},
|
},
|
||||||
type: "add",
|
type: "add",
|
||||||
|
riskEditRules: {
|
||||||
|
taskName: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("message.personnelPosition.required"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
startDate: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("message.personnelPosition.required"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
finishDate: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("message.personnelPosition.required"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
addEditRules: {
|
addEditRules: {
|
||||||
taskName: [
|
taskName: [
|
||||||
{
|
{
|
||||||
@ -857,6 +954,12 @@ export default {
|
|||||||
this.selectedList.splice(index, 1);
|
this.selectedList.splice(index, 1);
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
|
// 风险提示
|
||||||
|
openRiskTipDialog(val) {
|
||||||
|
console.log(val)
|
||||||
|
this.riskTipInfo = JSON.parse(JSON.stringify(val));
|
||||||
|
this.riskTipVisible = true;
|
||||||
|
},
|
||||||
// 关联构件
|
// 关联构件
|
||||||
async relativeComponent(row) {
|
async relativeComponent(row) {
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -916,6 +1019,19 @@ export default {
|
|||||||
this.workerInfo.status = val.status;
|
this.workerInfo.status = val.status;
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
|
// 编辑风险提示
|
||||||
|
submitRiskTipBtn() {
|
||||||
|
let reqeustData = {
|
||||||
|
...this.riskTipInfo,
|
||||||
|
};
|
||||||
|
editTaskProgressRtApi(reqeustData).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.riskTipVisible = false;
|
||||||
|
this.getProgressListData();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
//编辑
|
//编辑
|
||||||
submitBtn() {
|
submitBtn() {
|
||||||
this.$refs.addEditForm.validate((valid) => {
|
this.$refs.addEditForm.validate((valid) => {
|
||||||
@ -992,6 +1108,9 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
|
closeRiskTipDialog() {
|
||||||
|
this.riskTipVisible = false;
|
||||||
|
},
|
||||||
close() {
|
close() {
|
||||||
this.workerInfo = {};
|
this.workerInfo = {};
|
||||||
this.workerInfo.parentId = 0;
|
this.workerInfo.parentId = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user