|
@@ -104,9 +104,9 @@
|
|
|
</el-table>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="隐患" :span="3">
|
|
|
- <el-radio v-model="unsafeChoice" label="1" style="margin-right: 10px;" :disabled="applyDisabled">不安全状态</el-radio>
|
|
|
+ <el-radio v-model="unsafeChoice" label="1" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全状态</el-radio>
|
|
|
<el-form-item prop="unsafeStatus" style="display: inline-block;">
|
|
|
- <el-select :disabled="applyDisabled" v-model="dataForm.unsafeStatus" placeholder="请选择不安全状态" style="margin-right: 20px;">
|
|
|
+ <el-select :disabled="applyDisabled" v-model="dataForm.unsafeStatus" placeholder="请选择不安全状态" style="margin-right: 20px;" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in unsafeStatusOptions"
|
|
|
:key="dict.dictValue"
|
|
@@ -115,9 +115,9 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-radio v-model="unsafeChoice" label="2" style="margin-right: 10px;" :disabled="applyDisabled">不安全行为</el-radio>
|
|
|
+ <el-radio v-model="unsafeChoice" label="2" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全行为</el-radio>
|
|
|
<el-form-item prop="unsafeAction" style="display: inline-block;">
|
|
|
- <el-select :disabled="applyDisabled" v-model="dataForm.unsafeAction" placeholder="请选择不安全行为">
|
|
|
+ <el-select :disabled="applyDisabled" v-model="dataForm.unsafeAction" placeholder="请选择不安全行为" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in unsafeActionOptions"
|
|
|
:key="dict.dictValue"
|
|
@@ -970,11 +970,11 @@ export default {
|
|
|
/** 不安全行为/状态单选按钮值改变事件 */
|
|
|
handleUnsafeChoiceChange() {
|
|
|
if (this.unsafeChoice == '1') {
|
|
|
- this.form.unsafeAction = null;
|
|
|
+ this.dataForm.unsafeAction = null;
|
|
|
this.unsafeStatusDisabled = false;
|
|
|
this.unsafeActionDisabled = true;
|
|
|
} else if (this.unsafeChoice == '2') {
|
|
|
- this.form.unsafeStatus = null;
|
|
|
+ this.dataForm.unsafeStatus = null;
|
|
|
this.unsafeStatusDisabled = true;
|
|
|
this.unsafeActionDisabled = false;
|
|
|
}
|