Commit 79da9894 authored by liwei's avatar liwei

将写死的小程序切换成数据字典

parent 82f90742
...@@ -146,8 +146,8 @@ ...@@ -146,8 +146,8 @@
<el-option <el-option
v-for="(item,index) in WeChatOptions" v-for="(item,index) in WeChatOptions"
:key="index" :key="index"
:label="item.label" :label="item.dictLabel"
:value="item.value" :value="item.dictValue"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -182,6 +182,7 @@ import { ...@@ -182,6 +182,7 @@ import {
delSysUnit, delSysUnit,
queryUnitAdminByBusinessId queryUnitAdminByBusinessId
} from '@/api/merchantManagement' } from '@/api/merchantManagement'
import {getDict} from "@/api/system/dict/data";
export default { export default {
name: 'SysUnit', name: 'SysUnit',
...@@ -189,8 +190,8 @@ export default { ...@@ -189,8 +190,8 @@ export default {
return { return {
userList: [], userList: [],
WeChatOptions: [ WeChatOptions: [
{ label: '鸿泽云智能推广系统', value: '1' }, // { label: '鸿泽云智能推广系统', value: '1' },
{ label: '星耀鸿泽文化智能推广系统', value: '2' } // { label: '星耀鸿泽文化智能推广系统', value: '2' }
], ],
userUnit: [], userUnit: [],
/** /**
...@@ -268,8 +269,15 @@ export default { ...@@ -268,8 +269,15 @@ export default {
created() { created() {
this.getUserList() this.getUserList()
this.getList() // 列表查询 this.getList() // 列表查询
this.getWeChartOptions()
}, },
methods: { methods: {
// 获取小程序选择
getWeChartOptions() {
getDict('wechart_options').then(res => {
this.WeChatOptions = res.data
})
},
getUserList() { getUserList() {
queryUnitAdmin().then(res => { queryUnitAdmin().then(res => {
this.userList = res.data this.userList = res.data
......
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