From 8130823e7e4c36e1c10705c734b0b60b5f193958 Mon Sep 17 00:00:00 2001 From: zhy <luhan1008611> Date: 星期三, 25 十月 2023 17:30:36 +0800 Subject: [PATCH] feat: 本地修改测试 --- admin-web/src/views/systemSetting/dict/index.vue | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/admin-web/src/views/systemSetting/dict/index.vue b/admin-web/src/views/systemSetting/dict/index.vue index 73bece6..0a98279 100644 --- a/admin-web/src/views/systemSetting/dict/index.vue +++ b/admin-web/src/views/systemSetting/dict/index.vue @@ -1,5 +1,13 @@ <template> <div class="app-container"> + <!--宸︿晶鏍戝舰寮�濮�--> + <el-col :span="5"> + <el-card class="box-card" shadow="never"> + <my-tree ref="searchTree" :tree-list="treeDataList" @setNode="nodeClick" @search="search"></my-tree> + </el-card> + </el-col> + <!--宸︿晶鏍戝舰缁撴潫--> + <!--鍙充晶鍒楄〃寮�濮�--> <el-container> <el-card class="box-card" style="width: 100%" shadow="never"> <!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">--> @@ -119,16 +127,20 @@ </template> <script> +import myTree from '@/components/myTree/index'; import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"; import * as DateFormatter from "@/utils/DateFormatter"; import MyTableV2 from "@/components/myTable/myTableV2"; import SettingIplatform from '@/utils/settingIplatform'; import items from './items' +import * as finsystenant from '@/api/baseSetting/finsystenant'; export default { name: "Dict", - components: { MyTableV2 }, + components: { MyTableV2, myTree }, data() { return { + // 鏍戞暟鎹� + treeDataList: [], constants: this.$constants, // 閬僵灞� loading: true, @@ -246,8 +258,26 @@ }; }, created() { + this.initTreeData() }, methods: { + // 宸︿晶鏍戝垵濮嬪寲 + initTreeData() { + finsystenant.getTree().then((res) => { + const content = res || []; + this.treeDataList.splice(0, this.treeDataList.length); + this.treeDataList = content; + if (this.treeDataList && this.treeDataList.length > 0) { + this.tenantId = this.treeDataList[0].id; + this.tenantName = this.treeDataList[0].label; + this.tenantCode = this.treeDataList[0].code; + } + }); + }, + nodeClick(param) { + console.log(param,'param'); + this.search(1) + }, fifterForm(params) { this.queryParams = Object.assign(this.queryParams, params) this.search(1) -- Gitblit v1.9.1