From 1b2c2b4257de303e32e24c397635a9e5f8d3b65f Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 21 Jul 2022 16:51:58 +0800 Subject: [PATCH] fix: datetimerange type error --- .../src/views/system/dept/index.vue | 5 ++- .../views/system/errorCode/errorCode.data.ts | 17 +------- .../views/system/loginlog/loginLog.data.ts | 17 +------- .../src/views/system/menu/index.vue | 20 +++++---- .../src/views/system/oauth2/client/index.vue | 12 +++++- .../src/views/system/operatelog/index.vue | 2 +- .../system/operatelog/operatelog.data.ts | 42 +++++++++---------- .../src/views/system/role/role.data.ts | 7 +++- .../system/sms/smsChannel/sms.channel.data.ts | 17 +------- .../views/system/sms/smsLog/sms.log.data.ts | 14 +------ .../sms/smsTemplate/sms.template.data.ts | 17 +------- 11 files changed, 62 insertions(+), 108 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/dept/index.vue b/yudao-ui-admin-vue3/src/views/system/dept/index.vue index 1bef630bc..8f3c8fb93 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/dept/index.vue @@ -29,10 +29,10 @@ const formRef = ref() // ========== 创建部门树结构 ========== const filterText = ref('') -const deptOptions = ref([]) // 树形结构 +const deptOptions = ref() // 树形结构 const treeRef = ref>() const getTree = async () => { - const res = await DeptApi.listSimpleDeptApi() + const res = await DeptApi.getDeptPageApi(null) deptOptions.value = handleTree(res) } const filterNode = (value: string, data: Tree) => { @@ -118,6 +118,7 @@ onMounted(async () => { :highlight-current="true" default-expand-all :filter-node-method="filterNode" + :expand-on-click-node="false" >