修改已知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,25 +303,29 @@
|
|||||||
localStorage.setItem('language', 'en-us')
|
localStorage.setItem('language', 'en-us')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
store.dispatch('GetPermissionList').then(res => {
|
getAction('/sys/dict/queryAllDictItemsByCut', {}).then((res) => {
|
||||||
const menuData = res.result.menu
|
if (res.success) {
|
||||||
resetRouter()
|
Vue.ls.remove(UI_CACHE_DB_DICT_DATA)
|
||||||
let constRoutes = []
|
Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
|
||||||
constRoutes = generateIndexRouter(menuData)
|
store.dispatch('GetPermissionList').then(res => {
|
||||||
router.addRoutes(constRoutes)
|
const menuData = res.result.menu
|
||||||
this.$root.Bus.$emit('switchLanguage', localeval)
|
resetRouter()
|
||||||
this.isLoading = false
|
let constRoutes = []
|
||||||
this.localeval = localeval
|
constRoutes = generateIndexRouter(menuData)
|
||||||
if (localeval === EN) {
|
router.addRoutes(constRoutes)
|
||||||
moment.locale(EN)
|
this.$root.Bus.$emit('switchLanguage', localeval)
|
||||||
this.$i18n.locale = EN
|
this.isLoading = false
|
||||||
this.locale = enUS
|
this.localeval = localeval
|
||||||
this.queryAllDictItemsByCut()
|
if (localeval === EN) {
|
||||||
} else {
|
moment.locale(EN)
|
||||||
moment.locale(ZH)
|
this.$i18n.locale = EN
|
||||||
this.$i18n.locale = ZH
|
this.locale = enUS
|
||||||
this.locale = zhCN
|
} else {
|
||||||
this.queryAllDictItemsByCut()
|
moment.locale(ZH)
|
||||||
|
this.$i18n.locale = ZH
|
||||||
|
this.locale = zhCN
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user