Commit 571633af authored by caimeng's avatar caimeng

短信发送fix

parent 7e60ccfd
......@@ -40,13 +40,14 @@ export default {
},
methods: {
handleCancel() {
this.$emit('update:visible', false)
handleCancel() {
this.onCancel && this.onCancel()
this.$emit('update:visible', false)
},
handleSubmit() {
// this.$emit('update:visible', false)
this.onSubmit && this.onSubmit()
// this.$emit('update:visible', false)
},
}
......
......@@ -89,12 +89,10 @@
<!-- 短信发送 -->
<template v-if="MessageDialogVisible">
<BaseDialog width="45%" @onCancel="handleMsgCancel" :visible.sync="MessageDialogVisible" title="发短信">
<BaseDialog width="45%" :onCancel="handleMsgCancel" :visible.sync="MessageDialogVisible" title="发短信">
<el-form size="small" :model="MessageForm" :rules="MessageRules" ref="MessageForm" label-width="120px">
<el-row>
<el-col :span="18">
<el-form-item label="短信模板:" prop="templateCode">
<el-select style="width: 100%;" @change="handleSelectMsgTemplate" v-model="MessageForm.templateCode"
placeholder="请选择">
......@@ -108,10 +106,10 @@
<el-input v-model="MessageForm.complaintChannel" @blur="handleInput" placeholder="请填写短信渠道" />
</el-form-item>
</template>
<el-form-item label="短信内容:">
<el-form-item label="短信内容:" prop="context">
<el-input type="textarea" v-model="MessageForm.context" placeholder="请输入发送号码" :rows="4" disabled />
</el-form-item>
<el-form-item label="发送号码:">
<el-form-item label="发送号码:" prop="mobile">
<el-input placeholder="请输入发送号码" v-model="MessageForm.mobile" disabled />
</el-form-item>
<el-form-item>
......@@ -282,6 +280,7 @@ export default {
},
// 重置
handleMsgCancel() {
console.log('xx')
this.$refs['MessageForm'].resetFields();
},
// 发送短信提交
......@@ -303,7 +302,7 @@ export default {
this.MessageDialogVisible = false;
this.handleMsgCancel();
}
} catch (err) {
console.log(err, '短信发送失败')
......
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