From c694bf822233a5483c3218cafbb0de5f9fdb309e Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Thu, 30 Mar 2023 16:19:41 +0800 Subject: [PATCH 01/12] =?UTF-8?q?fix:=20bug=20=E8=AE=BE=E5=A4=87=E6=8E=A5?= =?UTF-8?q?=E5=85=A5=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Product/Detail/DeviceAccess/index.vue | 41 ++++--------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/src/views/device/Product/Detail/DeviceAccess/index.vue b/src/views/device/Product/Detail/DeviceAccess/index.vue index 7410cbd0..22d10f64 100644 --- a/src/views/device/Product/Detail/DeviceAccess/index.vue +++ b/src/views/device/Product/Detail/DeviceAccess/index.vue @@ -8,12 +8,6 @@ v-if=" permissionStore.hasPermission( 'device/Product:update', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:add', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:update', ) " > @@ -60,35 +54,15 @@ productStore.current?.count && productStore.current?.count > 0 ? '产品下有设备实例时不能更换接入方式' - : !(permissionStore.hasPermission( - 'device/Product:update', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:add', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:update', - )) - ? '暂无权限,请联系管理员' : '', }" :disabled=" - (productStore.current?.count && - productStore.current?.count > 0) || - !( - permissionStore.hasPermission( - 'device/Product:update', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:add', - ) && - permissionStore.hasPermission( - 'link/AccessConfig:update', - ) - ) + productStore.current?.count && + productStore.current?.count > 0 " ghost @click="showDevice" + hasPermission="device/Product:update" > 更换 @@ -349,8 +323,11 @@ :gridColumns="[2]" > 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/Instance/Detail/ChildDevice/index.vue b/src/views/device/Instance/Detail/ChildDevice/index.vue index c39b0489..7164bb29 100644 --- a/src/views/device/Instance/Detail/ChildDevice/index.vue +++ b/src/views/device/Instance/Detail/ChildDevice/index.vue @@ -1,114 +1,113 @@ - 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" /> - - -