From ab5fcf009fd3478e47e4bd95b4af3a604245b9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 12 Mar 2026 14:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/tplink/camera/camera.data.ts | 2 +- src/views/iot/tplink/network/network.data.ts | 2 +- src/views/iot/weihu/components/Reamrks.api.ts | 54 ---- .../iot/weihu/components/Reamrks.data.ts | 62 ----- .../iot/weihu/components/ReamrksFormModal.vue | 81 ------ .../iot/weihu/components/ReamrksListModal.vue | 2 +- .../iot/weihu/components/RemarksForm.vue | 181 -------------- .../iot/weihu/components/RemarksList.vue | 162 ++---------- .../iot/weihu/components/SendOrgDrawer.vue | 88 ------- src/views/iot/weihu/index.vue | 37 ++- src/views/iot/weihu/weihu.api.ts | 7 + src/views/iot/weihu/weihu.data.ts | 234 +++++++++--------- 12 files changed, 161 insertions(+), 751 deletions(-) delete mode 100644 src/views/iot/weihu/components/Reamrks.api.ts delete mode 100644 src/views/iot/weihu/components/Reamrks.data.ts delete mode 100644 src/views/iot/weihu/components/ReamrksFormModal.vue delete mode 100644 src/views/iot/weihu/components/RemarksForm.vue delete mode 100644 src/views/iot/weihu/components/SendOrgDrawer.vue diff --git a/src/views/iot/tplink/camera/camera.data.ts b/src/views/iot/tplink/camera/camera.data.ts index e8f155c..c31f1e0 100644 --- a/src/views/iot/tplink/camera/camera.data.ts +++ b/src/views/iot/tplink/camera/camera.data.ts @@ -17,7 +17,7 @@ export const columns: BasicColumn[] = [ { title: '设备标识', align: "center", - dataIndex: 'deviceName' + dataIndex: 'mac' }, { title: '设备型号', diff --git a/src/views/iot/tplink/network/network.data.ts b/src/views/iot/tplink/network/network.data.ts index 4b67788..1936bfd 100644 --- a/src/views/iot/tplink/network/network.data.ts +++ b/src/views/iot/tplink/network/network.data.ts @@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [ { title: '设备标识', align: "center", - dataIndex: 'deviceName' + dataIndex: 'mac' }, { title: '设备型号', diff --git a/src/views/iot/weihu/components/Reamrks.api.ts b/src/views/iot/weihu/components/Reamrks.api.ts deleted file mode 100644 index 69207a4..0000000 --- a/src/views/iot/weihu/components/Reamrks.api.ts +++ /dev/null @@ -1,54 +0,0 @@ -import {defHttp} from '/@/utils/http/axios'; -import { useMessage } from "/@/hooks/web/useMessage"; - -const { createConfirm } = useMessage(); - -enum Api { - list = '/iot/weihu/deviceMaintain/remarksList', - save='/iot/weihu/deviceMaintain/add', - edit='/iot/weihu/deviceMaintain/edit', - deleteOne = '/iot/weihu/deviceMaintain/delete', - deleteBatch = '/iot/weihu/deviceMaintain/deleteBatch', -} - -/** - * 列表接口 - * @param params - */ -export const list = (params) => - defHttp.get({url: Api.list, params}); - -/** - * 删除单个 - */ -export const deleteOne = (params,handleSuccess) => { - return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { - handleSuccess(); - }); -} -/** - * 批量删除 - * @param params - */ -export const batchDelete = (params, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认删除', - content: '是否删除选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { - handleSuccess(); - }); - } - }); -} -/** - * 保存或者更新 - * @param params - */ -export const saveOrUpdate = (params, isUpdate) => { - let url = isUpdate ? Api.edit : Api.save; - return defHttp.post({url: url, params}, { isTransformResponse: false }); -} diff --git a/src/views/iot/weihu/components/Reamrks.data.ts b/src/views/iot/weihu/components/Reamrks.data.ts deleted file mode 100644 index 54b6a46..0000000 --- a/src/views/iot/weihu/components/Reamrks.data.ts +++ /dev/null @@ -1,62 +0,0 @@ -import {BasicColumn} from '/@/components/Table'; -import {FormSchema} from '/@/components/Table'; -import { rules} from '/@/utils/helper/validator'; -import { render } from '/@/utils/common/renderUtils'; -import { getWeekMonthQuarterYear } from '/@/utils'; -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '设备类型', - align: "center", - dataIndex: 'type' - }, - { - title: '设备编码', - align: "center", - dataIndex: 'deviceId' - }, - { - title: 'SN', - align: "center", - dataIndex: 'sn' - }, - { - title: '发往机构名', - align: "center", - dataIndex: 'reserveDepartName' - }, - { - title: '更新时间', - align:"center", - dataIndex: 'updateDate', - width: 160 - }, - { - title: '备注', - align:"center", - dataIndex: 'remark' - }, -]; -//查询数据 -export const searchFormSchema: FormSchema[] = [ - { - label: '删除', - field: 'delFlag', - component: 'Select', - componentProps: { - options: [ - { - label: '正常', - value: '0', - key: '0', - }, - { - label: '删除', - value: '1', - key: '1', - }, - ], - }, - colProps: { span: 6 }, - }, -]; diff --git a/src/views/iot/weihu/components/ReamrksFormModal.vue b/src/views/iot/weihu/components/ReamrksFormModal.vue deleted file mode 100644 index a05a127..0000000 --- a/src/views/iot/weihu/components/ReamrksFormModal.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - diff --git a/src/views/iot/weihu/components/ReamrksListModal.vue b/src/views/iot/weihu/components/ReamrksListModal.vue index 78749dd..8eb481f 100644 --- a/src/views/iot/weihu/components/ReamrksListModal.vue +++ b/src/views/iot/weihu/components/ReamrksListModal.vue @@ -36,7 +36,7 @@ function add() { * @param record */ function edit(record) { - title.value = '运维列表'; + title.value = '物联设备维护日志列表'; visible.value = true; nextTick(() => { remarksList.value.init(record); diff --git a/src/views/iot/weihu/components/RemarksForm.vue b/src/views/iot/weihu/components/RemarksForm.vue deleted file mode 100644 index 7620b4a..0000000 --- a/src/views/iot/weihu/components/RemarksForm.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - diff --git a/src/views/iot/weihu/components/RemarksList.vue b/src/views/iot/weihu/components/RemarksList.vue index aaa5f3e..463d627 100644 --- a/src/views/iot/weihu/components/RemarksList.vue +++ b/src/views/iot/weihu/components/RemarksList.vue @@ -1,48 +1,9 @@