vue2 弹窗关闭不了 重新赋值解决问题
1.v-if 控制
或者
<el-col :span="8" class="tab_group">
<el-form-item label="案件编号">
<el-input v-model.trim="ruleForm.publicEventInfoDO.xxx" placeholder="请输入" clearable :disabled="true"></el-input>
</el-form-item>
</el-col>
会导致无法关闭
<el-col :span="8" class="tab_group">
<el-form-item label="案件编号">
<el-input v-model.trim="publicEventInfoDO.xxx" placeholder="请输入" clearable :disabled="true"></el-input>
</el-form-item>
</el-col>
重新赋值可以关闭
2.if (val.dialogState == "update") {
this.disabled = false;
_this.ruleForm = Object.assign({}, val.dialogDate);
_this.publicEventInfoDO = _this.ruleForm.publicEventInfoDO;
_this.publicEventAssistDO = _this.ruleForm.publicEventAssistDO;
}