From 3c647d3837f7a1c2c146b7d4c39a87174782215f Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Tue, 23 Aug 2022 11:15:51 +0800
Subject: [PATCH] lct
---
src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue b/src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue
index f1f4134..004c809 100644
--- a/src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue
+++ b/src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue
@@ -15,7 +15,7 @@
>
<el-table-column label="序号" type="index" width="150" align="center">
</el-table-column>
- <el-table-column label="隐患排查内容" prop="checkContent" align="center">
+ <el-table-column label="隐患排查内容" prop="checkContent" align="center" show-overflow-tooltip>
</el-table-column>
<el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width">
<template slot-scope="scope">
@@ -32,7 +32,7 @@
</template>
<script>
- import controlAction from '../../../riskLevelManage/controlAction/index'
+ import controlAction from '../../../riskLevelManage/controlAction/controlActionSelect/index'
import { addInspectionControlAction, deleteInspectionControlAction ,getInspectionControlAction } from '../../../../../api/inspectionTask'
export default {
props:['title','inspectionTaskForm'],
@@ -61,7 +61,7 @@
showControlAction (){
this.controlActionVisible = true
setTimeout( () => {
- this.$refs.controlAction.ifShowButton(this.inspectionPointData)
+ this.$refs.controlAction.ifShowButton(this.inspectionPointData,this.title)
})
},
showMeasureDetail(val){
@@ -70,25 +70,26 @@
this.$refs.controlAction.showMeasureDetail(val)
this.$refs.controlAction.ifShowSelf = false
})
-
},
closeDialog(){
this.controlActionVisible = false
},
async receiveRiskControlId(value) {
this.controlActionVisible = false
- if(value){
- this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => {
- return {
- id:item.id,
- checkContent:item.checkContent
- }
- })))
- this.$emit('giveToForm',this.inspectionPointData)
- }
+ // if(value){
+ // this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => {
+ // return {
+ // id:item.id,
+ // checkContent:item.checkContent
+ // }
+ // })))
+ this.inspectionPointData = value
+ this.$emit('giveToForm',value)
+ // }
},
deleteById(value,scope){
- this.inspectionPointData.splice(value,1)
+ this.inspectionPointData.splice(value,1)
+ this.$emit('giveToForm',this.inspectionPointData)
},
async getControlActionList(){
let res = await getInspectionControlAction(this.inspectionTaskForm.workId)
--
Gitblit v1.9.2