update:新增微信模板信息编辑传参,更新表格展示

This commit is contained in:
lihaoyuan 2025-09-19 15:39:02 +08:00
parent d2d5bec659
commit 791d965b06
2 changed files with 30 additions and 2 deletions

View File

@ -9,6 +9,22 @@
<el-form-item :label="__('模版编号')" prop="tplmsg_tpl_id">
<el-input v-model="form.tplmsg_tpl_id" :placeholder="__('模版编号')" />
</el-form-item>
<el-form-item :label="__('店铺')" prop="store_id">
<el-select
v-model="form.store_id"
clearable
filterable
placeholder="选择店铺">
<el-option
v-for="item in shopList"
:key="item.store_id"
:label="item.store_name"
:value="item.store_id"/>
</el-select>
</el-form-item>
<el-form-item :label="__('跳转路径')" prop="link_url">
<el-input v-model="form.link_url" :placeholder="__('微信公众号或者小程序跳转路径')" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="close">{{ __('取消') }}</el-button>
@ -21,7 +37,7 @@
import { translateTitle as __ } from '@/utils/i18n'
import { doEdit } from '@/api/wechat/tplmsg'
import GoodsToolApi from '@/api/goodsTool'
export default {
name: 'WechatTplmsgEdit',
data() {
@ -30,11 +46,13 @@
rules: {},
title: '',
dialogFormVisible: false,
shopList:[],
}
},
created() {},
mounted() {
this.$forceUpdate()
this.getShopList()
},
methods: {
__,
@ -65,6 +83,10 @@
}
})
},
async getShopList() {
let res = await GoodsToolApi.getShopList()
this.shopList = res.data.items
},
},
}
</script>

View File

@ -34,7 +34,7 @@
/>
<el-table-column
align="center"
:label="__('模版编号')"
:label="__('微信模版编号')"
prop="tplmsg_tpl_id"
show-overflow-tooltip
width="150"
@ -76,6 +76,12 @@
prop="tplmsg_is_buildin"
show-overflow-tooltip
/>
<el-table-column
align="center"
:label="__('跳转路径')"
prop="link_url"
show-overflow-tooltip
/>
<el-table-column
align="center"
:label="__('备注')"