From ae4354f28a4899d86c8797341cbc02ba730516b2 Mon Sep 17 00:00:00 2001 From: XieYongHong <18010623010@163.com> Date: Fri, 8 Sep 2023 19:07:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug#18002=E3=80=8117889=E3=80=8117665?= =?UTF-8?q?=E3=80=8117684?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 放开设备区版中运维cpu、jvm * fix: 添加产品物模型规则TS,添加 tcp粘拆包TS * fix: bug#17584 * fix: bug#17605、规则属性脚本提示语 * fix: 系统管理菜单管理 * fix: tcp粘拆包TS * fix: 产品物模型规则TS * fix: bug#17631、17625、17578 * fix: bug#17631、17625、17578 * fix: 优化jetlinks-ui-components按需引入插件 * fix: bug#17651、17633、视频分享点位bug及样式 * fix: bug#17651、17633、视频分享点位bug及样式 * fix: 视频屏蔽RTC * fix: bug#17668 * fix: 视频屏蔽RTC * fix: 修改组件按需引入插件 * fix: bug#17687 fix: bug#17687 * fix: bug#17715、17705、17699、17696 * fix: bug#17696、17694、17693、17691、17676 * fix: bug#17715、17705、17699、17696 * fix: bug#17758 * fix: 提取ipv4和ipv6校验 * fix: bug#17758 * fix: 社区版优化告警,菜单 fix: 社区版优化告警,菜单 * fix: bug#18002、17889、17665、17684 * fix: bug#17781、17791、17847、17849、17666、17667、17670 * fix: bug#17617 * fix: bug#17665、17684 * fix: bug#17889 * fix: bug#18002 --- src/api/account/center.ts | 2 +- src/api/device/instance.ts | 7 +- src/components/Layout/components/Notice.vue | 3 +- .../Layout/components/NoticeInfo.vue | 18 +- src/utils/regular.ts | 8 +- src/utils/validate.ts | 9 +- .../ChildDevice/EdgeMap/PatchMapping.vue | 4 + .../Detail/ChildDevice/EdgeMap/index.vue | 4 +- .../Instance/Detail/ChildDevice/index.vue | 10 +- .../device/Instance/Detail/EdgeMap/index.vue | 10 +- .../components/Metadata/Base/columns.tsx | 12 + .../Metadata/Base/components/Source.vue | 36 +- src/views/edge/Device/index.vue | 6 +- src/views/init-home/InitData/index.vue | 8 +- src/views/init-home/Menu/index.vue | 11 +- .../AccessConfig/components/Media/GB28181.vue | 24 +- src/views/link/Type/Detail/index.vue | 24 +- src/views/link/Type/data.ts | 2 +- src/views/media/Cascade/Save/index.vue | 8 +- src/views/media/Device/Channel/Live/index.vue | 2 +- src/views/media/Stream/Detail/index.vue | 9 +- src/views/rule-engine/Alarm/Config/index.vue | 10 +- .../system/DataSource/Management/index.vue | 339 +++++++++--------- src/views/system/Menu/Setting/index.vue | 10 +- .../NoticeRule/components/Auth/index.vue | 2 +- .../NoticeRule/components/Save/index.vue | 2 +- src/views/user/Login/index.vue | 4 +- vite.config.ts | 1 + 28 files changed, 358 insertions(+), 227 deletions(-) diff --git a/src/api/account/center.ts b/src/api/account/center.ts index 5fa615d8..046d5715 100644 --- a/src/api/account/center.ts +++ b/src/api/account/center.ts @@ -10,7 +10,7 @@ export const updateMeInfo_api = (data:object) => server.put(`/user/detail`,data) // 修改登录用户密码 export const updateMepsd_api = (data:object) => server.put(`/user/passwd`,data); // 第三方账号解绑 -export const unBind_api = (appId: string) => server.post(`/application/sso/${appId}/unbind/me`); +export const unBind_api = (appId: string) => server.post(`/application/sso/${appId}/unbind/me`,[]); /** * 校验字段合法性 * @param type 类型 diff --git a/src/api/device/instance.ts b/src/api/device/instance.ts index 70e08c3f..f45325d3 100644 --- a/src/api/device/instance.ts +++ b/src/api/device/instance.ts @@ -270,6 +270,11 @@ export const queryDeviceMapping = (deviceId: string, data?: any) => server.post( */ export const saveDeviceMapping = (deviceId: string, data: any) => server.post(`/edge/operations/${deviceId}/device-mapping-save-batch/invoke`, data) +/** + *批量删除云端映射设备 + */ +export const deleteDeviceMapping = (deviceId: string, data:any) => server.post(`/edge/operations/${deviceId}/device-mapping-delete/invoke`, data) + /** * 获取产品列表 * @param data @@ -279,7 +284,7 @@ export const getProductListNoPage = (data: any) => server.post('/device/product/ /** * 修改设备 */ -export const editDevice = (parmas: any) => server.patch('/device-instance', parmas) +export const editDevice = (params: any) => server.patch('/device-instance', params) /** * 新增设备 diff --git a/src/components/Layout/components/Notice.vue b/src/components/Layout/components/Notice.vue index 5d8a2142..f5a78142 100644 --- a/src/components/Layout/components/Notice.vue +++ b/src/components/Layout/components/Notice.vue @@ -88,13 +88,12 @@ const subscribeNotice = () => { const read = (type: string, data: any) => { changeStatus_api('_read', [data.payload.id]).then((resp: any) => { if (resp.status !== 200) return; - notification.close(data.payload.id); getList(); if (type !== '_read') { menuStory.routerPush('account/center', { tabKey: 'StationMessage', - row: data.payload.detail, + row: data.payload, }); } }); diff --git a/src/components/Layout/components/NoticeInfo.vue b/src/components/Layout/components/NoticeInfo.vue index 7c3fffcf..758cb396 100644 --- a/src/components/Layout/components/NoticeInfo.vue +++ b/src/components/Layout/components/NoticeInfo.vue @@ -17,12 +17,12 @@
-