From 387e3ae3927f50ac807b26c328555a1672755795 Mon Sep 17 00:00:00 2001 From: 18512435990 Date: Fri, 12 Jan 2024 11:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 9 +- src/api/model/asset/info.js | 53 +++ src/api/model/asset/params.js | 53 +++ src/assets/icons/png/simple.png | Bin 0 -> 4338 bytes src/assets/icons/svg/wifi-green.svg | 1 + src/assets/icons/svg/wifi-red.svg | 1 + src/components/CustomMonitorView/index.vue | 101 +++++ src/components/luckysheet/index.vue | 375 +++++++++++++----- src/views/model/asset/index.vue | 341 ++++++++++++++++ src/views/model/asset/params.vue | 285 +++++++++++++ .../model/heatapiconf/heatMainOperatorLog.vue | 10 +- src/views/model/params/index.vue | 2 + 12 files changed, 1127 insertions(+), 104 deletions(-) create mode 100644 src/api/model/asset/info.js create mode 100644 src/api/model/asset/params.js create mode 100644 src/assets/icons/png/simple.png create mode 100644 src/assets/icons/svg/wifi-green.svg create mode 100644 src/assets/icons/svg/wifi-red.svg create mode 100644 src/components/CustomMonitorView/index.vue create mode 100644 src/views/model/asset/index.vue create mode 100644 src/views/model/asset/params.vue diff --git a/package.json b/package.json index 94ea10e..1220b45 100644 --- a/package.json +++ b/package.json @@ -31,19 +31,22 @@ "jsencrypt": "3.3.1", "nprogress": "0.2.0", "pinia": "2.0.22", + "splitpanes": "^3.1.5", "vee-validate": "4.5.8", "vkbeautify": "^0.99.3", "vue": "3.2.45", "vue-baidu-map-3x": "^1.0.34", "vue-cropper": "1.0.3", - "vue-router": "4.1.4" + "vue-draggable-plus": "^0.3.0", + "vue-router": "4.1.4", + "vuedraggable": "^2.24.3" }, "devDependencies": { "@vitejs/plugin-vue": "3.1.0", "@vue/compiler-sfc": "3.2.45", "sass": "1.56.1", - "unplugin-auto-import": "0.11.4", - "vite": "3.2.3", + "unplugin-auto-import": "^0.11.5", + "vite": "^3.2.3", "vite-plugin-compression": "0.5.1", "vite-plugin-svg-icons": "2.0.1", "vite-plugin-vue-setup-extend": "0.4.0" diff --git a/src/api/model/asset/info.js b/src/api/model/asset/info.js new file mode 100644 index 0000000..cd17192 --- /dev/null +++ b/src/api/model/asset/info.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询资产信息列表 +export function listInfo(query) { + return request({ + url: '/model/dcBaseAssetInfo/list', + method: 'get', + params: query + }) +} + +// 查询资产信息详细 +export function getInfo(id) { + return request({ + url: '/model/dcBaseAssetInfo/' + id, + method: 'get' + }) +} + +// 新增资产信息 +export function addInfo(data) { + return request({ + url: '/model/dcBaseAssetInfo', + method: 'post', + data: data + }) +} + +// 修改资产信息 +export function updateInfo(data) { + return request({ + url: '/model/dcBaseAssetInfo', + method: 'put', + data: data + }) +} + +// 删除资产信息 +export function delInfo(id) { + return request({ + url: '/model/dcBaseAssetInfo/' + id, + method: 'delete' + }) +} + +// 导出资产信息 +export function exportInfo(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/model/asset/params.js b/src/api/model/asset/params.js new file mode 100644 index 0000000..1d027d9 --- /dev/null +++ b/src/api/model/asset/params.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询资产参数列表 +export function listParams(query) { + return request({ + url: '/model/dcBaseAssetParams/list', + method: 'get', + params: query + }) +} + +// 查询资产参数详细 +export function getParams(id) { + return request({ + url: '/model/dcBaseAssetParams/' + id, + method: 'get' + }) +} + +// 新增资产参数 +export function addParams(data) { + return request({ + url: '/model/dcBaseAssetParams', + method: 'post', + data: data + }) +} + +// 修改资产参数 +export function updateParams(data) { + return request({ + url: '/model/dcBaseAssetParams', + method: 'put', + data: data + }) +} + +// 删除资产参数 +export function delParams(id) { + return request({ + url: '/model/dcBaseAssetParams/' + id, + method: 'delete' + }) +} + +// 导出资产参数 +export function exportParams(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/assets/icons/png/simple.png b/src/assets/icons/png/simple.png new file mode 100644 index 0000000000000000000000000000000000000000..e9e4f881813b9ad2ceb115ee1d21156bf9f49e44 GIT binary patch literal 4338 zcmZ`-cQ_l+*QRz*yVPoG#;DbzW(bW~MbxNSQcBI#D5`esQKDvzv_=&{YotgiA!^jB z5xY^VMwOs7+E2gl`TqGm&+m_O&-30t?z#89=e*}WH_80A0V{wXKt)BxY6#PZpL^`N z88OnIk0K<$uyaQp05^b8VLuCQoCDeix~95RR1F!-r!I8on8_b@H-L(YGw`2LFSuU` zp`v0>Fx1z*6XLY(;Akd5y1dFparHaqwX1^rhFR50Z#!1w?W<-EEBc4tR5L2WRtGNqw1b`6g$$3Vv2B?e|$Kzkkf3 zJ+bkJ;m|k#Vw#4(1_K5#uvU3l@a-@O5#KY%basl(9 z)*{dMi}OPRmCcasAz$GCzpYJc7d!-2%jx!6X9=xT>th81+&RP)1CfD3p1_@=K1Cji z9)E(B`4O^Mer$bFjrFEh{ETqyQUb68h}9sRX_`IcDEeIklg{Y?JagziBi2dTVd3S| z--aqM`VV%IQUUod?7QKNiJBr{!|!+{S+h&jb8}gy1$y*7*j;fkz&dk9+J6%Khe_kO@{vTzWP|2 zdx~C8$~SpOUT8!t`(>xGFn0y~H2q?_nN$Gn!SttbrEq%}RpZCyvh?ezN_?p+xqNXV ziM1=9TgK18g_U%d>Y>@NJYpZ8BuD_C%VQ! zynyh;zhmKU4DW)xlP0s@i!aH6i|54eup+@hP^(`pbO)({^MXJt4NQ?=sHY|k5+kcl zPn&Gl**RY_i~02Q*G=y`U#=Btx3=7RWe76=o#*cC?x~rsl$Fr9JJIa(bO&)|f%8Y$ z9Z}v6@Ethnct1DF@R=RB+BKH0+)L!zt8(%oV+>A}J|_Y+?hP=$c4vZUa1ix}kq-M! zH%1ATiQ?&miXS_J1agL@PlfFP(58NYOM=6t9-*>Dr|%h)YhJOO9BXzi`xFo=U}oE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{Ld|L-Y@F2 zT{Cc5N%$Ww*G=n^gj@m5g`ISpeV)89A;1M82#3<&43VZ7F5 z7jgxLV(Hmm^RC?Wc@OY-#BY7scBX=b`31;1-Nvj@K5;_yrHe_4P9RXOWT{xzpp;_E zF~SfbyHVg6!TjP&HO#g_j1g$10b1n)$!V-Sn zXE&G3b+l7mdSqPgrzO?K6*7ShUVn_&JI#pdY@`2*Y>V5)9d0;bz9P3d{Y0m)gzC*P zFS_OKD7Qbf(V(k>O7L| zP$!}24go$qwaX57jb%&MCn zcE6E0t6pOv8mg}EDTDkvl+6l~md+Lf)A8yKO68Aj4XY^Hi#xe01VEai7wJFcmI}Y> z0|QV_F(Ls(Tc}!!i)rOZ0g^r%;wS5S2RXMy zZi=U+-+Nn%wWVMaJa%z}Sy?3D|k#&)kU3LSP%(6|hz z;VG|xjY876VwN7_#@H{tq*}!&0v>v`72x&n%@U`qZmuob$v~{Aho*_X6Q&yiUz_pC8BLr)OMR;*F|ctTJ+u|IF6L>pB7;{4UD8TAv%ZGW z$z-034E;0Q6q~|D&OC3Q-zh}PmFU{fc Xk!Hb6r_T951(o5g+xl3@y_o+2`3GA2 literal 0 HcmV?d00001 diff --git a/src/assets/icons/svg/wifi-green.svg b/src/assets/icons/svg/wifi-green.svg new file mode 100644 index 0000000..e5f8dc0 --- /dev/null +++ b/src/assets/icons/svg/wifi-green.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/wifi-red.svg b/src/assets/icons/svg/wifi-red.svg new file mode 100644 index 0000000..3b5c2c0 --- /dev/null +++ b/src/assets/icons/svg/wifi-red.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/CustomMonitorView/index.vue b/src/components/CustomMonitorView/index.vue new file mode 100644 index 0000000..23a5d09 --- /dev/null +++ b/src/components/CustomMonitorView/index.vue @@ -0,0 +1,101 @@ + + + + + + \ No newline at end of file diff --git a/src/components/luckysheet/index.vue b/src/components/luckysheet/index.vue index bf056a5..492bcd6 100644 --- a/src/components/luckysheet/index.vue +++ b/src/components/luckysheet/index.vue @@ -1,16 +1,50 @@ diff --git a/src/views/model/asset/index.vue b/src/views/model/asset/index.vue new file mode 100644 index 0000000..028efc7 --- /dev/null +++ b/src/views/model/asset/index.vue @@ -0,0 +1,341 @@ + + + diff --git a/src/views/model/asset/params.vue b/src/views/model/asset/params.vue new file mode 100644 index 0000000..fb271b3 --- /dev/null +++ b/src/views/model/asset/params.vue @@ -0,0 +1,285 @@ + + + diff --git a/src/views/model/heatapiconf/heatMainOperatorLog.vue b/src/views/model/heatapiconf/heatMainOperatorLog.vue index e7df1b5..c7e9e1a 100644 --- a/src/views/model/heatapiconf/heatMainOperatorLog.vue +++ b/src/views/model/heatapiconf/heatMainOperatorLog.vue @@ -6,11 +6,11 @@ + v-for="dict in dc_operator_type" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> diff --git a/src/views/model/params/index.vue b/src/views/model/params/index.vue index d136e83..99c2622 100644 --- a/src/views/model/params/index.vue +++ b/src/views/model/params/index.vue @@ -418,6 +418,7 @@ const sortItemMap = ref({}); const queryParamFilter = ref({}); const sortProps = ref([]); const names = ref([]); + const contrlFlag = ref([ {label: '可控', value: true, elTagType: 'default', elTagClass: null}, {label: '不可控', value: false, elTagType: 'default', elTagClass: null} @@ -426,6 +427,7 @@ const enabled = ref([ {label: '有效', value: true, elTagType: 'default', elTagClass: null}, {label: '无效', value: false, elTagType: 'default', elTagClass: null} ]); + const contrlFlagTable = ref([ {label: '可控', value: 'true', elTagType: 'default', elTagClass: null}, {label: '不可控', value: 'false', elTagType: 'default', elTagClass: null}