From a107323e36d443acc8e8c8c9b6bbde284561f34a Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Tue, 24 Jun 2025 14:52:45 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => assetManage}/application/index.ts | 0 .../{ => assetManage}/application/model.d.ts | 0 .../property/{ => assetManage}/asset/index.ts | 0 .../{ => assetManage}/asset/model.d.ts | 0 .../property/{ => assetManage}/depot/index.ts | 0 .../{ => assetManage}/depot/model.d.ts | 0 .../property/{ => assetManage}/log/index.ts | 0 .../property/{ => assetManage}/log/model.d.ts | 0 .../{ => assetManage}/suppliers/index.ts | 0 .../{ => assetManage}/suppliers/model.d.ts | 0 ...ntrol-modal.vue => accessControlModal.vue} | 0 .../property/accessControl/device/data.ts | 125 ++++-------------- .../property/accessControl/device/index.vue | 14 +- .../application/application-modal.vue | 2 +- .../{ => assetManage}/application/data.ts | 0 .../{ => assetManage}/application/index.vue | 25 +--- .../{ => assetManage}/asset/asset-modal.vue | 2 +- .../property/{ => assetManage}/asset/data.ts | 76 +++-------- .../{ => assetManage}/asset/index.vue | 30 +---- .../views/property/assetManage/depot/data.ts | 110 +++++++++++++++ .../assetManage/depot/depot-detail.vue | 69 ++++++++++ .../{ => assetManage}/depot/depot-modal.vue | 8 +- .../{ => assetManage}/depot/index.vue | 60 ++++++--- .../property/{ => assetManage}/log/data.ts | 0 .../property/{ => assetManage}/log/index.vue | 12 +- .../{ => assetManage}/log/log-modal.vue | 2 +- .../{ => assetManage}/suppliers/data.ts | 100 +++++++------- .../{ => assetManage}/suppliers/index.vue | 60 +++++---- .../suppliers/suppliers-detail.vue | 77 +++++++++++ .../suppliers/suppliers-modal.vue | 8 +- .../web-antd/src/views/property/depot/data.ts | 95 ------------- .../views/property/resident/person/index.vue | 5 + .../property/resident/person/person-modal.vue | 5 +- .../resident/person/query-unit-list.vue | 26 +--- .../resident/person/query-user-list.vue | 52 ++++++-- .../src/views/property/resident/unit/data.ts | 3 +- .../views/property/resident/unit/index.vue | 9 +- 37 files changed, 521 insertions(+), 454 deletions(-) rename apps/web-antd/src/api/property/{ => assetManage}/application/index.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/application/model.d.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/asset/index.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/asset/model.d.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/depot/index.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/depot/model.d.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/log/index.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/log/model.d.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/suppliers/index.ts (100%) rename apps/web-antd/src/api/property/{ => assetManage}/suppliers/model.d.ts (100%) rename apps/web-antd/src/views/property/accessControl/device/{accessControl-modal.vue => accessControlModal.vue} (100%) rename apps/web-antd/src/views/property/{ => assetManage}/application/application-modal.vue (98%) rename apps/web-antd/src/views/property/{ => assetManage}/application/data.ts (100%) rename apps/web-antd/src/views/property/{ => assetManage}/application/index.vue (86%) rename apps/web-antd/src/views/property/{ => assetManage}/asset/asset-modal.vue (99%) rename apps/web-antd/src/views/property/{ => assetManage}/asset/data.ts (67%) rename apps/web-antd/src/views/property/{ => assetManage}/asset/index.vue (82%) create mode 100644 apps/web-antd/src/views/property/assetManage/depot/data.ts create mode 100644 apps/web-antd/src/views/property/assetManage/depot/depot-detail.vue rename apps/web-antd/src/views/property/{ => assetManage}/depot/depot-modal.vue (96%) rename apps/web-antd/src/views/property/{ => assetManage}/depot/index.vue (76%) rename apps/web-antd/src/views/property/{ => assetManage}/log/data.ts (100%) rename apps/web-antd/src/views/property/{ => assetManage}/log/index.vue (95%) rename apps/web-antd/src/views/property/{ => assetManage}/log/log-modal.vue (96%) rename apps/web-antd/src/views/property/{ => assetManage}/suppliers/data.ts (67%) rename apps/web-antd/src/views/property/{ => assetManage}/suppliers/index.vue (76%) create mode 100644 apps/web-antd/src/views/property/assetManage/suppliers/suppliers-detail.vue rename apps/web-antd/src/views/property/{ => assetManage}/suppliers/suppliers-modal.vue (95%) delete mode 100644 apps/web-antd/src/views/property/depot/data.ts diff --git a/apps/web-antd/src/api/property/application/index.ts b/apps/web-antd/src/api/property/assetManage/application/index.ts similarity index 100% rename from apps/web-antd/src/api/property/application/index.ts rename to apps/web-antd/src/api/property/assetManage/application/index.ts diff --git a/apps/web-antd/src/api/property/application/model.d.ts b/apps/web-antd/src/api/property/assetManage/application/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/application/model.d.ts rename to apps/web-antd/src/api/property/assetManage/application/model.d.ts diff --git a/apps/web-antd/src/api/property/asset/index.ts b/apps/web-antd/src/api/property/assetManage/asset/index.ts similarity index 100% rename from apps/web-antd/src/api/property/asset/index.ts rename to apps/web-antd/src/api/property/assetManage/asset/index.ts diff --git a/apps/web-antd/src/api/property/asset/model.d.ts b/apps/web-antd/src/api/property/assetManage/asset/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/asset/model.d.ts rename to apps/web-antd/src/api/property/assetManage/asset/model.d.ts diff --git a/apps/web-antd/src/api/property/depot/index.ts b/apps/web-antd/src/api/property/assetManage/depot/index.ts similarity index 100% rename from apps/web-antd/src/api/property/depot/index.ts rename to apps/web-antd/src/api/property/assetManage/depot/index.ts diff --git a/apps/web-antd/src/api/property/depot/model.d.ts b/apps/web-antd/src/api/property/assetManage/depot/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/depot/model.d.ts rename to apps/web-antd/src/api/property/assetManage/depot/model.d.ts diff --git a/apps/web-antd/src/api/property/log/index.ts b/apps/web-antd/src/api/property/assetManage/log/index.ts similarity index 100% rename from apps/web-antd/src/api/property/log/index.ts rename to apps/web-antd/src/api/property/assetManage/log/index.ts diff --git a/apps/web-antd/src/api/property/log/model.d.ts b/apps/web-antd/src/api/property/assetManage/log/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/log/model.d.ts rename to apps/web-antd/src/api/property/assetManage/log/model.d.ts diff --git a/apps/web-antd/src/api/property/suppliers/index.ts b/apps/web-antd/src/api/property/assetManage/suppliers/index.ts similarity index 100% rename from apps/web-antd/src/api/property/suppliers/index.ts rename to apps/web-antd/src/api/property/assetManage/suppliers/index.ts diff --git a/apps/web-antd/src/api/property/suppliers/model.d.ts b/apps/web-antd/src/api/property/assetManage/suppliers/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/suppliers/model.d.ts rename to apps/web-antd/src/api/property/assetManage/suppliers/model.d.ts diff --git a/apps/web-antd/src/views/property/accessControl/device/accessControl-modal.vue b/apps/web-antd/src/views/property/accessControl/device/accessControlModal.vue similarity index 100% rename from apps/web-antd/src/views/property/accessControl/device/accessControl-modal.vue rename to apps/web-antd/src/views/property/accessControl/device/accessControlModal.vue diff --git a/apps/web-antd/src/views/property/accessControl/device/data.ts b/apps/web-antd/src/views/property/accessControl/device/data.ts index 44097fbd..aec4898c 100644 --- a/apps/web-antd/src/views/property/accessControl/device/data.ts +++ b/apps/web-antd/src/views/property/accessControl/device/data.ts @@ -1,100 +1,49 @@ -import type { FormSchemaGetter } from '#/adapter/form'; -import type { VxeGridProps } from '#/adapter/vxe-table'; +import type {FormSchemaGetter} from '#/adapter/form'; +import type {VxeGridProps} from '#/adapter/vxe-table'; -import { getDictOptions } from '#/utils/dict'; -import { renderDict } from '#/utils/render'; +import {getDictOptions} from '#/utils/dict'; +import {renderDict} from '#/utils/render'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'accessCode', - label: '门禁设备编码', + label: '设备编码', }, { component: 'Input', fieldName: 'accessName', - label: '门禁名称', - }, - { - component: 'Input', - fieldName: 'communityCode', - label: '园区编码', - }, - { - component: 'Input', - fieldName: 'buildingCode', - label: '建筑编码', - }, - { - component: 'Input', - fieldName: 'accessIp', - label: '门禁设备ip', - }, - { - component: 'Input', - fieldName: 'accessPort', - label: '端口', - }, - { - component: 'Input', - fieldName: 'accessType', - label: '门禁设备类型', - }, - { - component: 'Input', - fieldName: 'factoryCode', - label: '工厂编码', + label: '设备名称', }, { component: 'Select', + fieldName: 'controlType', componentProps: { - // 可选从DictEnum中获取 DictEnum.WY_KZKLX 便于维护 options: getDictOptions('wy_kzklx'), }, - fieldName: 'controlType', - label: '控制卡类型:1-系统,2-E8', - }, - { - component: 'Input', - fieldName: 'controlCode', - label: '控制卡类型编码', - }, - { - component: 'Input', - fieldName: 'outCode', - label: '外部编码', - }, - { - component: 'Input', - fieldName: 'orgCode', - label: '组织编码', - }, - { - component: 'Input', - fieldName: 'dataState', - label: '数据状态:1有效,0无效', - }, - { - component: 'Input', - fieldName: 'searchValue', - label: '搜索值', + label: '控制卡类型', }, ]; // 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 // export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ - { type: 'checkbox', width: 60 }, + {type: 'checkbox', width: 60}, { - title: '主键', + title: '序号', field: 'id', + slots: { + default: ({rowIndex}) => { + return rowIndex + 1; + }, + }, }, { - title: '门禁设备编码', + title: '设备编码', field: 'accessCode', }, { - title: '门禁名称', + title: '设备名称', field: 'accessName', }, { @@ -106,7 +55,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'buildingCode', }, { - title: '门禁设备ip', + title: '设备IP', field: 'accessIp', }, { @@ -114,7 +63,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'accessPort', }, { - title: '门禁设备类型', + title: '设备类型', field: 'accessType', }, { @@ -122,11 +71,10 @@ export const columns: VxeGridProps['columns'] = [ field: 'factoryCode', }, { - title: '控制卡类型:1-系统,2-E8', + title: '控制卡类型', field: 'controlType', slots: { - default: ({ row }) => { - // 可选从DictEnum中获取 DictEnum.WY_KZKLX 便于维护 + default: ({row}) => { return renderDict(row.controlType, 'wy_kzklx'); }, }, @@ -143,18 +91,10 @@ export const columns: VxeGridProps['columns'] = [ title: '组织编码', field: 'orgCode', }, - { - title: '数据状态:1有效,0无效', - field: 'dataState', - }, - { - title: '搜索值', - field: 'searchValue', - }, { field: 'action', fixed: 'right', - slots: { default: 'action' }, + slots: {default: 'action'}, title: '操作', width: 180, }, @@ -171,13 +111,13 @@ export const modalSchema: FormSchemaGetter = () => [ }, }, { - label: '门禁设备编码', + label: '设备编码', fieldName: 'accessCode', component: 'Input', rules: 'required', }, { - label: '门禁名称', + label: '设备名称', fieldName: 'accessName', component: 'Input', rules: 'required', @@ -195,7 +135,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', }, { - label: '门禁设备ip', + label: '设备IP', fieldName: 'accessIp', component: 'Input', }, @@ -205,7 +145,7 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'Input', }, { - label: '门禁设备类型', + label: '设备类型', fieldName: 'accessType', component: 'Input', rules: 'required', @@ -217,7 +157,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', }, { - label: '控制卡类型:1-系统,2-E8', + label: '控制卡类型', fieldName: 'controlType', component: 'Select', componentProps: { @@ -242,15 +182,4 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'Input', rules: 'required', }, - { - label: '数据状态:1有效,0无效', - fieldName: 'dataState', - component: 'Input', - rules: 'required', - }, - { - label: '搜索值', - fieldName: 'searchValue', - component: 'Input', - }, ]; diff --git a/apps/web-antd/src/views/property/accessControl/device/index.vue b/apps/web-antd/src/views/property/accessControl/device/index.vue index 75d41e97..585d04cd 100644 --- a/apps/web-antd/src/views/property/accessControl/device/index.vue +++ b/apps/web-antd/src/views/property/accessControl/device/index.vue @@ -9,10 +9,10 @@ import { getVxePopupContainer } from '@vben/utils'; import { Modal, Popconfirm, Space } from 'ant-design-vue'; import dayjs from 'dayjs'; -import { +import { useVbenVxeGrid, vxeCheckboxChecked, - type VxeGridProps + type VxeGridProps } from '#/adapter/vxe-table'; import { @@ -23,12 +23,12 @@ import { import type { AccessControlForm } from '#/api/property/accessControl/model'; import { commonDownloadExcel } from '#/utils/file/download'; -import accessControlModal from './accessControl-modal.vue'; +import accessControlModal from './accessControlModal.vue'; import { columns, querySchema } from './data'; const formOptions: VbenFormProps = { commonConfig: { - labelWidth: 80, + labelWidth: 100, componentProps: { allowClear: true, }, @@ -126,7 +126,7 @@ function handleDownloadExcel() {