Commit 20dcd649 by xinla

菜单状态

1 parent 782f4b83
......@@ -59,3 +59,11 @@ export function delMenu(menuId) {
method: 'delete',
})
}
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request({
url: service + '/system/dict/data/type/' + dictType,
method: 'get',
})
}
......@@ -38,6 +38,7 @@ Vue.component('PhoneTemplate', () => import('@/components/PhoneTemplate'))
Vue.component('CardGroupIndex', () => import('@/components/CardGroupIndex'))
// 带 插入 表情/客户昵称 等扩展工具栏的文本内容框
Vue.component('TextareaExtend', () => import('@/components/TextareaExtend'))
// 全局方法挂载
import ClipboardJS from 'clipboard'
// class ClipboardJS extends clipboard {
......
......@@ -162,7 +162,7 @@
</template>
<script>
import { listMenu, getMenu, delMenu, addMenu, updateMenu } from '@/api/system/menu'
import { listMenu, getMenu, delMenu, addMenu, updateMenu, getDicts } from '@/api/system/menu'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import IconSelect from '@/components/IconSelect'
......@@ -214,10 +214,10 @@ export default {
},
created() {
this.getList()
// this.getDicts('sys_show_hide').then((response) => {
// getDicts('sys_show_hide').then((response) => {
// this.visibleOptions = response.data
// })
this.getDicts('sys_normal_disable').then((response) => {
getDicts('sys_normal_disable').then((response) => {
this.statusOptions = response.data
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!