From c22898668652344ca1def6bd69cfd898f476857a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=91=A8=E4=BF=8A=E6=9D=B0?=
<9463626+zhou-junjiezjj@user.noreply.gitee.com>
Date: Mon, 31 Jul 2023 09:57:33 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=80=89=E6=8B=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../service/impl/DeviceServiceImpl.java | 3 ++
.../nl/acs/device/wql/Qdevice_query_002.wql | 9 +++-
acs/nladmin-ui/src/views/acs/device/index.vue | 47 +++++++++++++++----
3 files changed, 48 insertions(+), 11 deletions(-)
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java
index 3eea3af..c51ff77 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device/service/impl/DeviceServiceImpl.java
@@ -89,6 +89,9 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
if (whereJson.get("device_type") != null) {
param.put("device_type", whereJson.get("device_type"));
}
+ if (whereJson.get("is_config") != null) {
+ param.put("is_config", whereJson.get("is_config"));
+ }
JSONObject json = WQL.getWO("Qdevice_query_002").addParamMap(param).pageQuery(WqlUtil.getHttpContext(page), "is_config asc,seq_num desc,update_time desc");
return json;
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device/wql/Qdevice_query_002.wql b/acs/nladmin-system/src/main/java/org/nl/acs/device/wql/Qdevice_query_002.wql
index 57817df..2f4f6eb 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device/wql/Qdevice_query_002.wql
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device/wql/Qdevice_query_002.wql
@@ -24,6 +24,7 @@
输入.methods_id TYPEAS s_string
输入.blurry TYPEAS s_string
输入.region TYPEAS s_string
+ 输入.is_config TYPEAS s_string
[临时表]
--这边列出来的临时表就会在运行期动态创建
@@ -49,13 +50,16 @@
PAGEQUERY
SELECT
d.*, dict.label AS device_type_name,
- dict2.label AS region_name
+ dict2.label AS region_name,
+ dict3.label AS config
FROM
ACS_DEVICE d
LEFT JOIN sys_dict_detail dict ON dict.value = d.device_type
AND dict.`name` = 'device_type'
LEFT JOIN sys_dict_detail dict2 ON dict2.value = d.region
AND dict2.`name` = 'region_type'
+ LEFT JOIN sys_dict_detail dict3 ON dict3.value = d.is_config
+ AND dict3.`name` = 'is_config'
WHERE
is_delete = '0'
OPTION 输入.blurry <> ""
@@ -67,6 +71,9 @@
OPTION 输入.device_type <> ""
d.device_type = 输入.device_type
ENDOPTION
+ OPTION 输入.is_config <> ""
+ d.is_config = 输入.is_config
+ ENDOPTION
ENDSELECT
ENDPAGEQUERY
ENDIF
diff --git a/acs/nladmin-ui/src/views/acs/device/index.vue b/acs/nladmin-ui/src/views/acs/device/index.vue
index 24fb48d..4917edd 100644
--- a/acs/nladmin-ui/src/views/acs/device/index.vue
+++ b/acs/nladmin-ui/src/views/acs/device/index.vue
@@ -38,17 +38,29 @@
>
+
+
+
导出模型
+ slot="right"
+ class="filter-item"
+ size="mini"
+ type="warning"
+ icon="el-icon-download"
+ @click="crud.doExport"
+ >导出模型
+
+
+
+
+
@@ -194,8 +216,8 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import { get } from '@/api/system/dictDetail'
import UploadDialog from '@/views/acs/device/UploadDialog'
-import {download} from '@/api/data'
-import {downloadFile} from '@/utils'
+import { download } from '@/api/data'
+import { downloadFile } from '@/utils'
const defaultForm = {
manufacturer: null,
@@ -239,8 +261,9 @@ export default {
},
device_types: [],
regions: [],
+ is_configs: [],
uploadShow: false,
-
+
regions: [],
rules: {
device_code: [
@@ -268,6 +291,10 @@ export default {
get('region').then(data => {
this.regions = data.content
})
+ //获取是否配置
+ get('is_config').then(data => {
+ this.is_configs = data.content
+ })
})
},
methods: {