feat: 数据字典 树形结构

This commit is contained in:
super_liu
2021-07-08 13:59:50 +08:00
parent 9ed20ec430
commit bdbe66eac4
4 changed files with 1285 additions and 16 deletions
@@ -381,16 +381,25 @@ export default {
}, },
goNuwPage (item) { goNuwPage (item) {
this.$store.commit('setDetailMap', this.$route.path) this.$store.commit('setDetailMap', this.$route.path)
this.$router.push({ const params = {
name: 'StandLawsAttrDetails', id: item.id,
params: { dictionaryName: item.dictionaryName,
id: item.id, dictionType: item.dictionType,
dictionaryName: item.dictionaryName, isRelate: item.isRelate,
dictionType: item.dictionType, relateDicId: item.relateDicId
isRelate: item.isRelate, }
relateDicId: item.relateDicId if(item.dictionType && item.dictionType === 'TREE'){
} this.$router.push({
}) name: 'standLawsAttrTreeDetails',
params: params
})
}else {
this.$router.push({
name: 'StandLawsAttrDetails',
params: params
})
}
}, },
handleSelectone (data) { handleSelectone (data) {
this.selectedList = [] this.selectedList = []
File diff suppressed because it is too large Load Diff
@@ -76,12 +76,12 @@
</div> </div>
</table-tools-bar> </table-tools-bar>
<div class="action-bar"> <div class="action-bar">
<el-button type="primary" <!-- <el-button type="primary"-->
class="common-button-primary add-button" <!-- class="common-button-primary add-button"-->
@click="addModal" <!-- @click="addModal"-->
size="mini" <!-- size="mini"-->
v-btn-permission="'57f40856850c95912be0760a082db0e0'" <!-- v-btn-permission="'57f40856850c95912be0760a082db0e0'"-->
:disabled="addBtnDisabled"><i class="iconfont">&#xe84e;</i>新增</el-button> <!-- :disabled="addBtnDisabled"><i class="iconfont">&#xe84e;</i>新增</el-button>-->
<el-button class="common-button-default in-button" <el-button class="common-button-default in-button"
:loading="searching" :loading="searching"
size="mini" size="mini"
+11
View File
@@ -1027,6 +1027,17 @@ const routes = [
title: '标准法规属性管理详情页' title: '标准法规属性管理详情页'
} }
}, },
{
path: '/standLawsAttrTreeDetails/:id?/:dictionaryName?/:dictionType?/:isRelate?/:relateDicId?',
name: 'standLawsAttrTreeDetails',
component: () =>
import('@/pages/config/pages/standLawsAttrManage/pages/standLawsAttrTreeDetails'),
meta: {
requireAuth: true,
parentPath: '/standLawsAttrManage',
title: '标准法规属性管理详情页'
}
},
{ {
path: '/attributeCustom', path: '/attributeCustom',
name: 'AttributeCustom', name: 'AttributeCustom',