diff --git a/package.json b/package.json index ff972c4b..581ec969 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.16", + "jetlinks-ui-components": "^1.0.18", "js-cookie": "^3.0.1", "less": "^4.1.3", "less-loader": "^11.1.0", diff --git a/src/api/account/notificationRecord.ts b/src/api/account/notificationRecord.ts index 25f14b70..286fa668 100644 --- a/src/api/account/notificationRecord.ts +++ b/src/api/account/notificationRecord.ts @@ -1,7 +1,7 @@ import server from '@/utils/request' // 获取记录列表 -export const getList_api = (data: object): any => server.get(`/notifications/_query`, encodeParams(data)) +export const getList_api = (data: object): any => server.post(`/notifications/_query`, data) // 获取未读记录列表 export const getListByUnRead_api = (data: object): any => server.post(`/notifications/_query`, data) // 修改记录状态 diff --git a/src/store/department.ts b/src/store/department.ts index 72abbff5..ca278f37 100644 --- a/src/store/department.ts +++ b/src/store/department.ts @@ -2,7 +2,7 @@ import { defineStore } from "pinia"; type DepartmentStateType = { - productId: string; + productId?: string[]; optType: string | undefined; crossPageKeys: string[]; changedApis: any; @@ -11,7 +11,7 @@ type DepartmentStateType = { export const useDepartmentStore = defineStore({ id: 'department', state: (): DepartmentStateType => ({ - productId: '', + productId: undefined, // 设备资产分配弹窗操作类型: // 1. optType === 'handle': 手动点击资产分配按钮; // 2. optType === ': 产品资产分配后, 自动弹出设备资产分配 @@ -20,7 +20,7 @@ export const useDepartmentStore = defineStore({ changedApis: {}, }), actions: { - setProductId(value: string) { + setProductId(value?: string[]) { this.productId = value; }, setType(value: string | undefined) { diff --git a/src/views/DataCollect/Collector/Tree/Save/index.vue b/src/views/DataCollect/Collector/Tree/Save/index.vue index 42c95c48..658f9ce1 100644 --- a/src/views/DataCollect/Collector/Tree/Save/index.vue +++ b/src/views/DataCollect/Collector/Tree/Save/index.vue @@ -186,7 +186,7 @@ const endianData = computed(() => { if (endian === 'BIG') { return endianIn === 'BIG' ? 'ABCD' : 'BADC'; } else { - return endianIn === 'BIG' ? 'CDBA' : 'DCBA'; + return endianIn === 'BIG' ? 'CDAB' : 'DCBA'; } } else { return endian === 'BIG' ? 'ABCD' : 'DCBA'; diff --git a/src/views/account/NotificationRecord/index.vue b/src/views/account/NotificationRecord/index.vue index e6a412aa..867dcbfa 100644 --- a/src/views/account/NotificationRecord/index.vue +++ b/src/views/account/NotificationRecord/index.vue @@ -14,8 +14,9 @@ model="TABLE" :params="queryParams" :defaultParams="{ - 'sorts[0].name': 'notifyTime', - 'sorts[0].order': 'desc', + sorts: [{ + name: 'notifyTime', order: 'desc' + }] }" >