|
|
@ -6,6 +6,7 @@ |
|
|
|
:inline="true" |
|
|
|
:model="formData" |
|
|
|
:disabled="formType === 'detail'" |
|
|
|
:rules="dataRule" |
|
|
|
class="form" |
|
|
|
> |
|
|
|
<el-form-item |
|
|
@ -65,7 +66,7 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="隔离状态" |
|
|
|
prop="reason" |
|
|
|
prop="isolatedState" |
|
|
|
label-width="150px" |
|
|
|
style="display: block" |
|
|
|
> |
|
|
@ -224,7 +225,17 @@ export default { |
|
|
|
this.formData = JSON.parse(JSON.stringify(row)); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm() { |
|
|
|
handleComfirm() { |
|
|
|
this.$refs["ref_form1"].validate((valid, messageObj) => { |
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj); |
|
|
|
} else { |
|
|
|
this.submit(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async submit() { |
|
|
|
if (this.formData.isSelChannel) { |
|
|
|
if (!this.formData.content) { |
|
|
|
this.$message({ |
|
|
@ -328,6 +339,9 @@ export default { |
|
|
|
mobile: [ |
|
|
|
{ required: true, message: "手机号不能为空", trigger: "blur" }, |
|
|
|
], |
|
|
|
isolatedState: [ |
|
|
|
{ required: true, message: "隔离状态必填", trigger: "blur" }, |
|
|
|
], |
|
|
|
|
|
|
|
channel: [{ required: false }], |
|
|
|
content: [{ required: false }], |
|
|
|