修改已知bug1
This commit is contained in:
@@ -103,6 +103,17 @@
|
|||||||
<a-col :md="8" :xs="24" style="margin-bottom: 12px;">
|
<a-col :md="8" :xs="24" style="margin-bottom: 12px;">
|
||||||
<!-- 下拉搜索 -->
|
<!-- 下拉搜索 -->
|
||||||
<j-search-select-tag v-if="item.type==='sel_search'" v-model="item.val" :dict="getDictInfo(item)" placeholder="请选择"/>
|
<j-search-select-tag v-if="item.type==='sel_search'" v-model="item.val" :dict="getDictInfo(item)" placeholder="请选择"/>
|
||||||
|
<a-tree-select
|
||||||
|
v-else-if="item.type==='tree'"
|
||||||
|
tree-node-filter-prop="title"
|
||||||
|
v-model="item.val"
|
||||||
|
:maxTagCount="1"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
style="width: 100%"
|
||||||
|
:tree-data="item.tree"
|
||||||
|
tree-checkable
|
||||||
|
:placeholder="$t('PleaseSelect')"
|
||||||
|
/>
|
||||||
<!-- 下拉多选 -->
|
<!-- 下拉多选 -->
|
||||||
<template v-else-if="item.type==='list_multi'">
|
<template v-else-if="item.type==='list_multi'">
|
||||||
<j-multi-select-tag v-if="item.options" v-model="item.val" :options="item.options" :placeholder="$t('pleaseSelect')"/>
|
<j-multi-select-tag v-if="item.options" v-model="item.val" :options="item.options" :placeholder="$t('pleaseSelect')"/>
|
||||||
|
|||||||
@@ -291,13 +291,6 @@
|
|||||||
console.log('刷新失败', e)
|
console.log('刷新失败', e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryAllDictItemsByCut() {
|
|
||||||
getAction('/sys/dict/queryAllDictItemsByCut', {}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/*update_end author:liushaoqian date:20200507 for: 刷新缓存*/
|
/*update_end author:liushaoqian date:20200507 for: 刷新缓存*/
|
||||||
moment,
|
moment,
|
||||||
changeLocale(localeval) {
|
changeLocale(localeval) {
|
||||||
@@ -310,6 +303,10 @@
|
|||||||
localStorage.setItem('language', 'en-us')
|
localStorage.setItem('language', 'en-us')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
getAction('/sys/dict/queryAllDictItemsByCut', {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
Vue.ls.remove(UI_CACHE_DB_DICT_DATA)
|
||||||
|
Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
|
||||||
store.dispatch('GetPermissionList').then(res => {
|
store.dispatch('GetPermissionList').then(res => {
|
||||||
const menuData = res.result.menu
|
const menuData = res.result.menu
|
||||||
resetRouter()
|
resetRouter()
|
||||||
@@ -323,12 +320,12 @@
|
|||||||
moment.locale(EN)
|
moment.locale(EN)
|
||||||
this.$i18n.locale = EN
|
this.$i18n.locale = EN
|
||||||
this.locale = enUS
|
this.locale = enUS
|
||||||
this.queryAllDictItemsByCut()
|
|
||||||
} else {
|
} else {
|
||||||
moment.locale(ZH)
|
moment.locale(ZH)
|
||||||
this.$i18n.locale = ZH
|
this.$i18n.locale = ZH
|
||||||
this.locale = zhCN
|
this.locale = zhCN
|
||||||
this.queryAllDictItemsByCut()
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user