Commit e4b971d6 by liuchenxi

update: 渠道排序修改

parent f2191cbb
......@@ -12,8 +12,8 @@
<el-checkbox v-for="v in channelList" :key="v.channelId" :label="v.channelId" :disabled="disabledCheckBox.includes(v.channelId)">{{ v.channelName }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="短信模板数量" prop="maxTemplateCount">
<el-input-number v-model="form.maxTemplateCount" controls-position="right" :min="form.limitTemplateCount" class="w90" />
<el-form-item label="短信模板数量" prop="useTemplateCount">
<el-input-number v-model="form.useTemplateCount" controls-position="right" :min="form.limitTemplateCount" class="w90" />
<span class="tips">该商户在商户后台看到的短信模板数量</span>
</el-form-item>
<el-form-item label="短信发送优先级" prop="sendSmsType">
......@@ -60,7 +60,7 @@ export default {
smsSignId: '',
smsSignText: '',
channelSignList: [],
maxTemplateCount: 0,
useTemplateCount: 0,
limitTemplateCount: 0, // 输入限制模板数量
sendSmsType: 0,
appointChannel: null, // 指定通道时的类型
......@@ -72,7 +72,7 @@ export default {
smsSignId: { required: true, message: '请输入签名Id', trigger: 'blur' },
smsSignText: { required: true, message: '请输入短信签名', trigger: 'blur' },
channelSignList: { required: true, message: '请选择签名应用通道', trigger: 'blur' },
maxTemplateCount: { required: true, message: '请输短信模板数量', trigger: 'blur' },
useTemplateCount: { required: true, message: '请输短信模板数量', trigger: 'blur' },
sendSmsType: { validator: sendSmsTypeValidate, trigger: 'change' }
}
};
......@@ -92,7 +92,7 @@ export default {
this.form[key] = this.form[key].split(',').map((el) => +el);
this.disabledCheckBox = this.form[key];
}
if (key == 'maxTemplateCount') this.form['limitTemplateCount'] = this.form[key] || 0;
if (key == 'useTemplateCount') this.form['limitTemplateCount'] = this.form[key] || 0;
if (key == 'sendSmsType' && this.form[key] != 0) {
this.form['appointChannel'] = this.form[key];
this.form[key] = 1;
......
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