update:新增微信模板信息编辑传参,更新表格展示
This commit is contained in:
parent
d2d5bec659
commit
791d965b06
@ -9,6 +9,22 @@
|
|||||||
<el-form-item :label="__('模版编号')" prop="tplmsg_tpl_id">
|
<el-form-item :label="__('模版编号')" prop="tplmsg_tpl_id">
|
||||||
<el-input v-model="form.tplmsg_tpl_id" :placeholder="__('模版编号')" />
|
<el-input v-model="form.tplmsg_tpl_id" :placeholder="__('模版编号')" />
|
||||||
</el-form-item>
|
</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>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="close">{{ __('取消') }}</el-button>
|
<el-button @click="close">{{ __('取消') }}</el-button>
|
||||||
@ -21,7 +37,7 @@
|
|||||||
import { translateTitle as __ } from '@/utils/i18n'
|
import { translateTitle as __ } from '@/utils/i18n'
|
||||||
|
|
||||||
import { doEdit } from '@/api/wechat/tplmsg'
|
import { doEdit } from '@/api/wechat/tplmsg'
|
||||||
|
import GoodsToolApi from '@/api/goodsTool'
|
||||||
export default {
|
export default {
|
||||||
name: 'WechatTplmsgEdit',
|
name: 'WechatTplmsgEdit',
|
||||||
data() {
|
data() {
|
||||||
@ -30,11 +46,13 @@
|
|||||||
rules: {},
|
rules: {},
|
||||||
title: '',
|
title: '',
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
|
shopList:[],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
this.getShopList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
__,
|
__,
|
||||||
@ -65,6 +83,10 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
async getShopList() {
|
||||||
|
let res = await GoodsToolApi.getShopList()
|
||||||
|
this.shopList = res.data.items
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -34,7 +34,7 @@
|
|||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('模版编号')"
|
:label="__('微信模版编号')"
|
||||||
prop="tplmsg_tpl_id"
|
prop="tplmsg_tpl_id"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="150"
|
width="150"
|
||||||
@ -76,6 +76,12 @@
|
|||||||
prop="tplmsg_is_buildin"
|
prop="tplmsg_is_buildin"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
:label="__('跳转路径')"
|
||||||
|
prop="link_url"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('备注')"
|
:label="__('备注')"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user