From 26878bead6115cdb04e0e349a64fd3090b94d37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 21 Apr 2025 14:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E7=AE=A1=E7=90=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0TpLink=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Form/src/jeecg/components/JSelectDept.vue | 4 +- .../iot/tplink/project/ProjectInfo.data.ts | 4 +- src/views/iot/tplink/region/RegionInfo.api.ts | 2 +- .../tplink/region/components/RegionForm.vue | 8 +- .../region/components/RegionInfoDrawer.vue | 8 +- .../depart/components/TplinkUserTab.vue | 102 ++++++++++++++++++ src/views/system/depart/depart.api.ts | 11 ++ src/views/system/depart/depart.data.ts | 95 ++++++++++++++++ src/views/system/depart/index.vue | 16 ++- 9 files changed, 232 insertions(+), 18 deletions(-) create mode 100644 src/views/system/depart/components/TplinkUserTab.vue diff --git a/src/components/Form/src/jeecg/components/JSelectDept.vue b/src/components/Form/src/jeecg/components/JSelectDept.vue index 3a96688..50729ee 100644 --- a/src/components/Form/src/jeecg/components/JSelectDept.vue +++ b/src/components/Form/src/jeecg/components/JSelectDept.vue @@ -30,7 +30,7 @@ props: { value: propTypes.oneOfType([propTypes.string, propTypes.array]), // 是否允许多选,默认 true - multiple: propTypes.bool.def(true), + multiple: propTypes.bool.def(false), }, emits: ['options-change', 'change', 'select', 'update:value'], setup(props, { emit, refs }) { @@ -159,7 +159,7 @@ // update-end--author:liaozhiyang---date:20240627---for:【TV360X-1648】用户编辑界面“所属部门”与“负责部门”联动出错(同步之前丢的代码) }; // update-end--author:liaozhiyang---date:20240527---for:【TV360X-414】部门设置了默认值,查询重置变成空了(同步JSelectUser组件改法) - + return { // state, attrs, diff --git a/src/views/iot/tplink/project/ProjectInfo.data.ts b/src/views/iot/tplink/project/ProjectInfo.data.ts index b4cb545..f837301 100644 --- a/src/views/iot/tplink/project/ProjectInfo.data.ts +++ b/src/views/iot/tplink/project/ProjectInfo.data.ts @@ -59,7 +59,7 @@ export const searchFormSchema: FormSchema[] = [ field: 'institutionId', component: 'JDictSelectTag', componentProps: { - dictCode: 'nu_admin_institution_area,inst_name,id,org_category = 1 order by inst_name asc', + dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc', placeholder: '请选择机构', }, }, @@ -107,7 +107,7 @@ export const formSchema: FormSchema[] = [ field: 'institutionId', component: 'JDictSelectTag', componentProps: { - dictCode: 'nu_admin_institution_area,inst_name,id,org_category = 1 order by inst_name asc', + dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc', placeholder: '请选择机构', }, }, diff --git a/src/views/iot/tplink/region/RegionInfo.api.ts b/src/views/iot/tplink/region/RegionInfo.api.ts index 5c1eac3..dd74287 100644 --- a/src/views/iot/tplink/region/RegionInfo.api.ts +++ b/src/views/iot/tplink/region/RegionInfo.api.ts @@ -11,7 +11,7 @@ enum Api { add = '/iot/regionInfo/add', edit = '/iot/regionInfo/edit', delete = '/iot/regionInfo/delete', - queryChildrenByParentId = '/admin/institutionArea/queryChildrenByParentId', + queryChildrenByParentId = '/sys/sysDepart/queryChildrenByParentId', } diff --git a/src/views/iot/tplink/region/components/RegionForm.vue b/src/views/iot/tplink/region/components/RegionForm.vue index c80be9c..a4c3c9a 100644 --- a/src/views/iot/tplink/region/components/RegionForm.vue +++ b/src/views/iot/tplink/region/components/RegionForm.vue @@ -5,8 +5,8 @@ 请选择… @@ -103,9 +103,9 @@ async function handleChange(value,option:Option,formData){ if(value == null){ - formData["regionName"] = model.value["regionName"]; + formData["departName"] = model.value["departName"]; }else{ - formData["regionName"] = option.label; + formData["departName"] = option.label; } } diff --git a/src/views/iot/tplink/region/components/RegionInfoDrawer.vue b/src/views/iot/tplink/region/components/RegionInfoDrawer.vue index 78931b2..4e264fb 100644 --- a/src/views/iot/tplink/region/components/RegionInfoDrawer.vue +++ b/src/views/iot/tplink/region/components/RegionInfoDrawer.vue @@ -12,8 +12,8 @@