Commit 58a170d3 authored by honghy's avatar honghy Committed by wux

短信节点调整

parent ff53ffc4
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-form-item label="国家" prop="countryId"> <el-form-item label="国家" prop="countryId">
<el-select filterable clearable v-model="queryParams.countryId" :placeholder="$t('请选择国家')"> <el-select filterable clearable v-model="queryParams.countryId" :placeholder="$t('请选择国家')">
<el-option key="0" label="全部" :value="parseInt(0)" /> <el-option key="0" label="全部" :value="parseInt(0)" />
<el-option key="-1" label="其他" :value="parseInt(-1)" /> <el-option key="-1" label="其他" :value="parseInt(1)" />
<el-option v-for="dict in countryList" <el-option v-for="dict in countryList"
:key="dict.id" :label="$l(dict, 'name')" :value="parseInt(dict.id)" /> :key="dict.id" :label="$l(dict, 'name')" :value="parseInt(dict.id)" />
</el-select> </el-select>
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<el-form-item label="国家" prop="countryIds"> <el-form-item label="国家" prop="countryIds">
<el-select filterable clearable multiple v-model="form.countryIds" :placeholder="$t('请选择国家')"> <el-select filterable clearable multiple v-model="form.countryIds" :placeholder="$t('请选择国家')">
<el-option key="0" label="全部" :value="parseInt(0)" /> <el-option key="0" label="全部" :value="parseInt(0)" />
<el-option key="-1" label="其他" :value="parseInt(-1)" /> <el-option key="-1" label="其他" :value="parseInt(1)" />
<el-option v-for="dict in countryList" <el-option v-for="dict in countryList"
:key="dict.id" :label="$l(dict, 'name')" :value="parseInt(dict.id)" /> :key="dict.id" :label="$l(dict, 'name')" :value="parseInt(dict.id)" />
</el-select> </el-select>
...@@ -412,7 +412,7 @@ export default { ...@@ -412,7 +412,7 @@ export default {
}) })
}) })
this.countryMap.set(0,{id:0,nameZh: '全部',tel:0}) this.countryMap.set(0,{id:0,nameZh: '全部',tel:0})
this.countryMap.set(-1,{id:-1,nameZh: '其他',tel:-1}) this.countryMap.set(1,{id:1,nameZh: '其他',tel:1})
getSmsTemplateList().then(res => { getSmsTemplateList().then(res => {
this.smsTemplateList = res.data this.smsTemplateList = res.data
for(var i=0;i<res.data.length;i++){ for(var i=0;i<res.data.length;i++){
...@@ -589,11 +589,12 @@ export default { ...@@ -589,11 +589,12 @@ export default {
if (!valid) { if (!valid) {
return; return;
} }
this.node['countryCode'] = this.sendSmsForm.countryCode var node = this.node
this.node['mobile'] = this.sendSmsForm.countryCode +''+this.sendSmsForm.mobile node['countryCode'] = this.sendSmsForm.countryCode
this.node['templateParams'] = JSON.parse(this.sendSmsForm.templateParams) node['mobile'] = this.sendSmsForm.countryCode +''+this.sendSmsForm.mobile
this.node['messageType'] = this.sendSmsForm.messageType node['templateParams'] = JSON.parse(this.sendSmsForm.templateParams)
this.node['nodeTemplateSn'] = this.sendSmsForm.nodeTemplateSn node['messageType'] = this.sendSmsForm.messageType
node['nodeTemplateSn'] = this.sendSmsForm.nodeTemplateSn
// 添加的提交 // 添加的提交
testSms(this.node).then(response => { testSms(this.node).then(response => {
this.$modal.msgSuccess("提交发送成功!"); this.$modal.msgSuccess("提交发送成功!");
......
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