Commit 571633af authored by caimeng's avatar caimeng

短信发送fix

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