From 411f065bfc9d3a7fdbbcb491e1beddb12181d11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Thu, 28 Dec 2023 00:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=98=E5=8C=96:=20?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8E=88=E6=9D=83=E8=BF=94=E5=9B=9E=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E7=88=B6=E7=BA=A7=E7=9A=84=E5=AE=8C=E6=95=B4=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/dept-format/index.vue | 1 + web/src/views/system/user/crud.tsx | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/web/src/components/dept-format/index.vue b/web/src/components/dept-format/index.vue index 1c71fcf..eeb6b5e 100644 --- a/web/src/components/dept-format/index.vue +++ b/web/src/components/dept-format/index.vue @@ -19,6 +19,7 @@ watch(()=>{ const result = await deptInfoStore.getParentDeptById(newVal) if(result?.nodes){ let name = "" + console.log(result) result.nodes.forEach((item:any,index:number)=>{ name += index>0?`/${item.name}`:item.name }) diff --git a/web/src/views/system/user/crud.tsx b/web/src/views/system/user/crud.tsx index 254add0..9e234f8 100644 --- a/web/src/views/system/user/crud.tsx +++ b/web/src/views/system/user/crud.tsx @@ -17,6 +17,7 @@ import {SystemConfigStore} from "/@/stores/systemConfig"; import {storeToRefs} from "pinia"; import {computed} from "vue"; import { Md5 } from 'ts-md5'; +import {commonCrudConfig} from "/@/utils/commonCrud"; export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps): CreateCrudOptionsRet { const pageRequest = async (query: UserPageQuery) => { return await api.GetList(query); @@ -372,6 +373,12 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps) show: false, }, }, + ...commonCrudConfig({ + dept_belong_id: { + form: true, + table: true + } + }) }, }, };