Commit ff53ffc4 authored by honghy's avatar honghy Committed by wux

添加短信节点,没有根据运输方式带出模板

parent 93c745ff
......@@ -159,7 +159,7 @@
</el-select>
</el-form-item>
<el-form-item :label="$t('运输方式')" prop="transportId">
<el-form-item :label="$t('运输方式')" prop="transportId" @change="handleChangeTransportId">
<el-select v-model="form.transportId" :placeholder="$t('请选择运输方式类型')">
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key="dict.value" :label="dict.label" :value="parseInt(dict.value)" />
......@@ -489,6 +489,7 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.smsTemplateList2 = []
this.reset();
this.open = true;
this.title = "添加短信节点";
......@@ -498,7 +499,7 @@ export default {
this.reset();
const id = row.id;
getSmsNode(id).then(response => {
this.smsTemplateList2 = this.smsTemplateList.filter(a=>a.nodeValue == response.data.nodeValue)
this.smsTemplateList2 = this.smsTemplateList.filter(a=>(a.nodeValue == response.data.nodeValue)&&(a.transportId == response.data.transportId))
this.form = response.data;
this.open = true;
this.title = "修改短信节点";
......@@ -562,7 +563,10 @@ export default {
},
// 切换节点
handleChangeNode(val) {
this.smsTemplateList2 = this.smsTemplateList.filter(a=>a.nodeValue == val)
this.smsTemplateList2 = this.smsTemplateList.filter(a=>(a.nodeValue == this.form.nodeValue)&&(a.transportId == this.form.transportId))
},
handleChangeTransportId(val) {
this.smsTemplateList2 = this.smsTemplateList.filter(a=>(a.nodeValue == this.form.nodeValue)&&(a.transportId == this.form.transportId))
},
test(row) {
this.sendSmsForm = {
......
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