fe32fb49 by 任超

style:字典

1 parent 141b23f4
/*
获取全部字典数据
*/
export function getAllDict () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict',
method: 'post'
})
}
export function getQlxxDictList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList',
method: 'post',
data
})
}
/*
获取字典子级列表
*/
export function getChildDictList (bsmDict) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList',
method: 'get',
params: {
bsmDict: bsmDict
}
})
}
/*
编辑字典数据
*/
export function editDictNode (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode',
method: 'post',
data
})
}
/*
刷新字典缓存
*/
export function refreshDictCache () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache',
method: 'get'
})
}
\ No newline at end of file
......@@ -14,52 +14,4 @@ export function getMenuInfo () {
url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus',
method: 'get',
})
}
/*
获取全部字典数据
*/
export function getAllDict () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict',
method: 'post'
})
}
export function getQlxxDictList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList',
method: 'post',
data
})
}
/*
获取字典子级列表
*/
export function getChildDictList (bsmDict) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList',
method: 'get',
params: {
bsmDict: bsmDict
}
})
}
/*
编辑字典数据
*/
export function editDictNode (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode',
method: 'post',
data
})
}
/*
刷新字典缓存
*/
export function refreshDictCache () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache',
method: 'get'
})
}
\ No newline at end of file
......
......@@ -63,7 +63,6 @@ export const asyncRoutes = [
children: [
{
path: 'index',
component: () => import('@/views/jsbwcx/index.vue'),
name: 'jsbwcx',
meta: { title: '接收报文查询', icon: 'zsgl' }
}
......@@ -92,7 +91,7 @@ export const asyncRoutes = [
{
path: '/jktj',
component: Layout,
meta: { title: '统计监控', icon: 'sqcx'},
meta: { title: '统计监控', icon: 'sqcx' },
children: [
{
path: 'ywltj',
......@@ -177,7 +176,7 @@ export const asyncRoutes = [
{
path: '/busineInfo',
component: Layout,
meta: { title: '不动产数据', icon: 'sqcx'},
meta: { title: '不动产数据', icon: 'sqcx' },
redirect: '/busineInfo/landOwnership',
alwaysShow: true,
name: 'busineInfo',
......
import { getAllDict } from '@/api/user'
import { getAllDict } from '@/api/dict'
const state = {
dicData: {},
addDict: false,
......
......@@ -24,7 +24,7 @@
<script>
import { getUuid, judgeSort, realMove, findParents, removeTreeListItem } from '@/utils/operation'
import { editDictNode, getChildDictList } from '@/api/user'
import { editDictNode, getChildDictList } from '@/api/dict'
export default {
props: {
value: { type: Boolean, default: false },
......
......@@ -35,7 +35,7 @@
</template>
<script>
import table from "@/utils/mixin/table"
import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js"
import { getQlxxDictList, refreshDictCache } from "@/api/dict.js"
import { datas, sendThis } from "./dictionaries"
import editDialog from "./components/editDialog.vue"
export default {
......