diff --git a/src/store/department.ts b/src/store/department.ts index d8f49c97..72abbff5 100644 --- a/src/store/department.ts +++ b/src/store/department.ts @@ -5,6 +5,7 @@ type DepartmentStateType = { productId: string; optType: string | undefined; crossPageKeys: string[]; + changedApis: any; } export const useDepartmentStore = defineStore({ @@ -16,6 +17,7 @@ export const useDepartmentStore = defineStore({ // 2. optType === ': 产品资产分配后, 自动弹出设备资产分配 optType: '', crossPageKeys: [], // 表格跨页多选的keys + changedApis: {}, }), actions: { setProductId(value: string) { @@ -27,6 +29,9 @@ export const useDepartmentStore = defineStore({ setSelectedKeys(value: string[], type?: string) { // 分页保留选中项 this.crossPageKeys = type === 'concat' ? [...new Set([...this.crossPageKeys, ...value])] : value; + }, + setChangedApis(value: any) { + this.changedApis = { ...this.changedApis, ...value }; } } }) \ No newline at end of file diff --git a/src/views/Northbound/AliCloud/Detail/doc.vue b/src/views/Northbound/AliCloud/Detail/doc.vue index f70a393f..89b4f2a2 100644 --- a/src/views/Northbound/AliCloud/Detail/doc.vue +++ b/src/views/Northbound/AliCloud/Detail/doc.vue @@ -57,7 +57,7 @@ import { getImage } from '@/utils/comm'; \ No newline at end of file diff --git a/src/views/Northbound/AliCloud/index.vue b/src/views/Northbound/AliCloud/index.vue index ea02f6cc..1bdcd457 100644 --- a/src/views/Northbound/AliCloud/index.vue +++ b/src/views/Northbound/AliCloud/index.vue @@ -5,119 +5,133 @@ target="northbound-aliyun" @search="handleSearch" /> - - + + diff --git a/src/views/Northbound/DuerOS/Detail/doc.vue b/src/views/Northbound/DuerOS/Detail/doc.vue index ec2dc145..92624782 100644 --- a/src/views/Northbound/DuerOS/Detail/doc.vue +++ b/src/views/Northbound/DuerOS/Detail/doc.vue @@ -64,7 +64,7 @@ import { getImage } from '@/utils/comm'; \ No newline at end of file diff --git a/src/views/Northbound/DuerOS/index.vue b/src/views/Northbound/DuerOS/index.vue index 4e4f2158..409a476d 100644 --- a/src/views/Northbound/DuerOS/index.vue +++ b/src/views/Northbound/DuerOS/index.vue @@ -5,122 +5,138 @@ target="northbound-dueros" @search="handleSearch" /> - - - + + + + diff --git a/src/views/device/Category/index.vue b/src/views/device/Category/index.vue index 8ddab919..dfb9051c 100644 --- a/src/views/device/Category/index.vue +++ b/src/views/device/Category/index.vue @@ -6,61 +6,65 @@ target="category" @search="handleSearch" /> - - - + + + + - - +
+ -
- - - + + +
- diff --git a/src/views/device/Instance/Detail/Diagnose/index.vue b/src/views/device/Instance/Detail/Diagnose/index.vue index fd3a554d..fbdd85a3 100644 --- a/src/views/device/Instance/Detail/Diagnose/index.vue +++ b/src/views/device/Instance/Detail/Diagnose/index.vue @@ -1,96 +1,84 @@ diff --git a/src/views/device/Instance/Detail/EdgeMap/index.vue b/src/views/device/Instance/Detail/EdgeMap/index.vue index 3f6f9e3f..c788901b 100644 --- a/src/views/device/Instance/Detail/EdgeMap/index.vue +++ b/src/views/device/Instance/Detail/EdgeMap/index.vue @@ -1,6 +1,6 @@ + + + + + +
{ // 设备资产分配弹窗操作类型: type = 'handle': 手动点击资产分配按钮, !type产品资产分配后, 自动弹出设备资产分配 - departmentStore.setType(type) + departmentStore.setType(type); dialogs.addShow = true; }, clickEdit: (row?: any) => { diff --git a/src/views/system/Department/product/index.vue b/src/views/system/Department/product/index.vue index 53ab716a..a57f31e9 100644 --- a/src/views/system/Department/product/index.vue +++ b/src/views/system/Department/product/index.vue @@ -5,193 +5,199 @@ target="category" @search="(params:any)=>queryParams = {...params}" /> - - - - - - - - + + + + + + + + + + +
- - - - + + + +
{ - queryParams.value = params -} + queryParams.value = params; +}; // 表格 const tableRef = ref>({}); // 表格实例 @@ -174,7 +176,7 @@ const table = reactive({ value: props.parentId, }, ], - type: 'and' + type: 'and', }, ], }; diff --git a/src/views/system/Menu/index.vue b/src/views/system/Menu/index.vue index c7875e19..021a0f6c 100644 --- a/src/views/system/Menu/index.vue +++ b/src/views/system/Menu/index.vue @@ -6,70 +6,73 @@ target="category" @search="handleSearch" /> - - - - - + + + +
diff --git a/src/views/system/Permission/index.vue b/src/views/system/Permission/index.vue index 98d72c05..7f6dc35f 100644 --- a/src/views/system/Permission/index.vue +++ b/src/views/system/Permission/index.vue @@ -6,134 +6,136 @@ target="system-permission" @search="handleSearch" /> - - -