style:字典
Showing
6 changed files
with
53 additions
and
54 deletions
src/api/dict.js
0 → 100644
1 | /* | ||
2 | 获取全部字典数据 | ||
3 | */ | ||
4 | export function getAllDict () { | ||
5 | return request({ | ||
6 | url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict', | ||
7 | method: 'post' | ||
8 | }) | ||
9 | } | ||
10 | export function getQlxxDictList (data) { | ||
11 | return request({ | ||
12 | url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList', | ||
13 | method: 'post', | ||
14 | data | ||
15 | }) | ||
16 | } | ||
17 | /* | ||
18 | 获取字典子级列表 | ||
19 | */ | ||
20 | export function getChildDictList (bsmDict) { | ||
21 | return request({ | ||
22 | url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList', | ||
23 | method: 'get', | ||
24 | params: { | ||
25 | bsmDict: bsmDict | ||
26 | } | ||
27 | }) | ||
28 | } | ||
29 | /* | ||
30 | 编辑字典数据 | ||
31 | */ | ||
32 | export function editDictNode (data) { | ||
33 | return request({ | ||
34 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', | ||
35 | method: 'post', | ||
36 | data | ||
37 | }) | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | 刷新字典缓存 | ||
42 | */ | ||
43 | export function refreshDictCache () { | ||
44 | return request({ | ||
45 | url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache', | ||
46 | method: 'get' | ||
47 | }) | ||
48 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -14,52 +14,4 @@ export function getMenuInfo () { | ... | @@ -14,52 +14,4 @@ export function getMenuInfo () { |
14 | url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus', | 14 | url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus', |
15 | method: 'get', | 15 | method: 'get', |
16 | }) | 16 | }) |
17 | } | ||
18 | /* | ||
19 | 获取全部字典数据 | ||
20 | */ | ||
21 | export function getAllDict () { | ||
22 | return request({ | ||
23 | url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict', | ||
24 | method: 'post' | ||
25 | }) | ||
26 | } | ||
27 | export function getQlxxDictList (data) { | ||
28 | return request({ | ||
29 | url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList', | ||
30 | method: 'post', | ||
31 | data | ||
32 | }) | ||
33 | } | ||
34 | /* | ||
35 | 获取字典子级列表 | ||
36 | */ | ||
37 | export function getChildDictList (bsmDict) { | ||
38 | return request({ | ||
39 | url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList', | ||
40 | method: 'get', | ||
41 | params: { | ||
42 | bsmDict: bsmDict | ||
43 | } | ||
44 | }) | ||
45 | } | ||
46 | /* | ||
47 | 编辑字典数据 | ||
48 | */ | ||
49 | export function editDictNode (data) { | ||
50 | return request({ | ||
51 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', | ||
52 | method: 'post', | ||
53 | data | ||
54 | }) | ||
55 | } | ||
56 | |||
57 | /* | ||
58 | 刷新字典缓存 | ||
59 | */ | ||
60 | export function refreshDictCache () { | ||
61 | return request({ | ||
62 | url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache', | ||
63 | method: 'get' | ||
64 | }) | ||
65 | } | 17 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -63,7 +63,6 @@ export const asyncRoutes = [ | ... | @@ -63,7 +63,6 @@ export const asyncRoutes = [ |
63 | children: [ | 63 | children: [ |
64 | { | 64 | { |
65 | path: 'index', | 65 | path: 'index', |
66 | component: () => import('@/views/jsbwcx/index.vue'), | ||
67 | name: 'jsbwcx', | 66 | name: 'jsbwcx', |
68 | meta: { title: '接收报文查询', icon: 'zsgl' } | 67 | meta: { title: '接收报文查询', icon: 'zsgl' } |
69 | } | 68 | } |
... | @@ -92,7 +91,7 @@ export const asyncRoutes = [ | ... | @@ -92,7 +91,7 @@ export const asyncRoutes = [ |
92 | { | 91 | { |
93 | path: '/jktj', | 92 | path: '/jktj', |
94 | component: Layout, | 93 | component: Layout, |
95 | meta: { title: '统计监控', icon: 'sqcx'}, | 94 | meta: { title: '统计监控', icon: 'sqcx' }, |
96 | children: [ | 95 | children: [ |
97 | { | 96 | { |
98 | path: 'ywltj', | 97 | path: 'ywltj', |
... | @@ -177,7 +176,7 @@ export const asyncRoutes = [ | ... | @@ -177,7 +176,7 @@ export const asyncRoutes = [ |
177 | { | 176 | { |
178 | path: '/busineInfo', | 177 | path: '/busineInfo', |
179 | component: Layout, | 178 | component: Layout, |
180 | meta: { title: '不动产数据', icon: 'sqcx'}, | 179 | meta: { title: '不动产数据', icon: 'sqcx' }, |
181 | redirect: '/busineInfo/landOwnership', | 180 | redirect: '/busineInfo/landOwnership', |
182 | alwaysShow: true, | 181 | alwaysShow: true, |
183 | name: 'busineInfo', | 182 | name: 'busineInfo', | ... | ... |
... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
24 | 24 | ||
25 | <script> | 25 | <script> |
26 | import { getUuid, judgeSort, realMove, findParents, removeTreeListItem } from '@/utils/operation' | 26 | import { getUuid, judgeSort, realMove, findParents, removeTreeListItem } from '@/utils/operation' |
27 | import { editDictNode, getChildDictList } from '@/api/user' | 27 | import { editDictNode, getChildDictList } from '@/api/dict' |
28 | export default { | 28 | export default { |
29 | props: { | 29 | props: { |
30 | value: { type: Boolean, default: false }, | 30 | value: { type: Boolean, default: false }, | ... | ... |
... | @@ -35,7 +35,7 @@ | ... | @@ -35,7 +35,7 @@ |
35 | </template> | 35 | </template> |
36 | <script> | 36 | <script> |
37 | import table from "@/utils/mixin/table" | 37 | import table from "@/utils/mixin/table" |
38 | import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js" | 38 | import { getQlxxDictList, refreshDictCache } from "@/api/dict.js" |
39 | import { datas, sendThis } from "./dictionaries" | 39 | import { datas, sendThis } from "./dictionaries" |
40 | import editDialog from "./components/editDialog.vue" | 40 | import editDialog from "./components/editDialog.vue" |
41 | export default { | 41 | export default { | ... | ... |
-
Please register or sign in to post a comment