Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 20dcd649
authored
Mar 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
菜单状态
1 parent
782f4b83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
linkwe-pc/src/api/system/menu.js
linkwe-pc/src/main.js
linkwe-pc/src/views/system/menu/index.vue
linkwe-pc/src/api/system/menu.js
View file @
20dcd64
...
@@ -59,3 +59,11 @@ export function delMenu(menuId) {
...
@@ -59,3 +59,11 @@ export function delMenu(menuId) {
method
:
'delete'
,
method
:
'delete'
,
})
})
}
}
// 根据字典类型查询字典数据信息
export
function
getDicts
(
dictType
)
{
return
request
({
url
:
service
+
'/system/dict/data/type/'
+
dictType
,
method
:
'get'
,
})
}
linkwe-pc/src/main.js
View file @
20dcd64
...
@@ -38,6 +38,7 @@ Vue.component('PhoneTemplate', () => import('@/components/PhoneTemplate'))
...
@@ -38,6 +38,7 @@ Vue.component('PhoneTemplate', () => import('@/components/PhoneTemplate'))
Vue
.
component
(
'CardGroupIndex'
,
()
=>
import
(
'@/components/CardGroupIndex'
))
Vue
.
component
(
'CardGroupIndex'
,
()
=>
import
(
'@/components/CardGroupIndex'
))
// 带 插入 表情/客户昵称 等扩展工具栏的文本内容框
// 带 插入 表情/客户昵称 等扩展工具栏的文本内容框
Vue
.
component
(
'TextareaExtend'
,
()
=>
import
(
'@/components/TextareaExtend'
))
Vue
.
component
(
'TextareaExtend'
,
()
=>
import
(
'@/components/TextareaExtend'
))
// 全局方法挂载
// 全局方法挂载
import
ClipboardJS
from
'clipboard'
import
ClipboardJS
from
'clipboard'
// class ClipboardJS extends clipboard {
// class ClipboardJS extends clipboard {
...
...
linkwe-pc/src/views/system/menu/index.vue
View file @
20dcd64
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
</template>
</template>
<
script
>
<
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
Treeselect
from
'@riophae/vue-treeselect'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
import
IconSelect
from
'@/components/IconSelect'
import
IconSelect
from
'@/components/IconSelect'
...
@@ -214,10 +214,10 @@ export default {
...
@@ -214,10 +214,10 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
//
this.
getDicts('sys_show_hide').then((response) => {
// getDicts('sys_show_hide').then((response) => {
// this.visibleOptions = response.data
// this.visibleOptions = response.data
// })
// })
this
.
getDicts
(
'sys_normal_disable'
).
then
((
response
)
=>
{
getDicts
(
'sys_normal_disable'
).
then
((
response
)
=>
{
this
.
statusOptions
=
response
.
data
this
.
statusOptions
=
response
.
data
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment