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 @@