Commit 019b5da0 authored by wanghao's avatar wanghao

1 检查记录修改-隐患数量 回显一直为0 问题修复。

parent fc03ce85
...@@ -28,13 +28,14 @@ ...@@ -28,13 +28,14 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否执行" align="center" prop="fIsEnforcement"> <!-- 不明确什么意思,先去掉 -->
<!-- <el-table-column label="是否执行" align="center" prop="fIsEnforcement">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.fIsEnforcement == '1'">是</span> <span v-if="scope.row.fIsEnforcement == '1'">是</span>
<span v-else-if="scope.row.fIsEnforcement == '0'">否</span> <span v-else-if="scope.row.fIsEnforcement == '0'">否</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -231,7 +232,8 @@ ...@@ -231,7 +232,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <!-- 不明确什么意思,先去掉 -->
<!-- <el-col :span="12">
<el-form-item label="是否执行" prop="fIsEnforcement"> <el-form-item label="是否执行" prop="fIsEnforcement">
<el-select <el-select
v-model="form.fIsEnforcement" v-model="form.fIsEnforcement"
...@@ -242,7 +244,7 @@ ...@@ -242,7 +244,7 @@
<el-option label="否" value="0" /> <el-option label="否" value="0" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="12" v-if="$parent.$parent.$parent.form.fDoscNeedExecute == '1'"> <el-col :span="12" v-if="$parent.$parent.$parent.form.fDoscNeedExecute == '1'">
<el-form-item label="处罚措施" prop="fEnforcementType"> <el-form-item label="处罚措施" prop="fEnforcementType">
...@@ -362,7 +364,6 @@ ...@@ -362,7 +364,6 @@
} }
}, },
created(){ created(){
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
if(this.fCheckCode){ if(this.fCheckCode){
this.queryParams.fCheckCode = this.fCheckCode; this.queryParams.fCheckCode = this.fCheckCode;
this.getList(); this.getList();
...@@ -406,6 +407,7 @@ ...@@ -406,6 +407,7 @@
this.loading = true; this.loading = true;
listRef(this.queryParams).then(response => { listRef(this.queryParams).then(response => {
this.refList = response.rows; this.refList = response.rows;
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment