Merge branch 'master-500-dev' of http://113.200.75.45:82/monitor_v3/hg-monitor-w…
…eb into master-500-dev
Showing
3 changed files
with
20 additions
and
7 deletions
@@ -21,13 +21,13 @@ | @@ -21,13 +21,13 @@ | ||
21 | <el-descriptions title="license文件信息" :column="3" border> | 21 | <el-descriptions title="license文件信息" :column="3" border> |
22 | 22 | ||
23 | <el-descriptions-item label="授权状态" label-align="right" align="center"> | 23 | <el-descriptions-item label="授权状态" label-align="right" align="center"> |
24 | - 正常 | 24 | + {{tableData.authorizeStats}} |
25 | </el-descriptions-item> | 25 | </el-descriptions-item> |
26 | <el-descriptions-item label="授权时间" label-align="right" align="center"> | 26 | <el-descriptions-item label="授权时间" label-align="right" align="center"> |
27 | - 2022-08-23 | 27 | + {{tableData.authorizeTime}} |
28 | </el-descriptions-item> | 28 | </el-descriptions-item> |
29 | <el-descriptions-item label="剩余" label-align="right" align="center"> | 29 | <el-descriptions-item label="剩余" label-align="right" align="center"> |
30 | - <el-tag size="small">2天</el-tag> | 30 | + <el-tag size="small">{{tableData.timeLeft}}天</el-tag> |
31 | </el-descriptions-item> | 31 | </el-descriptions-item> |
32 | </el-descriptions> | 32 | </el-descriptions> |
33 | </el-col> | 33 | </el-col> |
@@ -46,13 +46,14 @@ | @@ -46,13 +46,14 @@ | ||
46 | > | 46 | > |
47 | <template #default="{row,prop,column}"> | 47 | <template #default="{row,prop,column}"> |
48 | <div v-if="row.usage == '已使用'"> | 48 | <div v-if="row.usage == '已使用'"> |
49 | - <span v-if="prop == 'resNum'" :style="{'color':tableData.dataList[1].resNum>=tableData.dataList[0].resNum?'red':''}">{{row.resNum}}</span> | ||
50 | - <span v-if="prop != 'resNum'"> | 49 | + <span v-if="tableData.dataList[1][prop]>tableData.dataList[0][prop]" :style="{'color':'red'}">{{row[prop]}}</span> |
50 | + <span v-else> | ||
51 | {{row[prop]}} | 51 | {{row[prop]}} |
52 | </span> | 52 | </span> |
53 | <el-tooltip | 53 | <el-tooltip |
54 | effect="dark" | 54 | effect="dark" |
55 | placement="bottom" | 55 | placement="bottom" |
56 | + v-if="tableData.dataList[1][prop]>tableData.dataList[0][prop]" | ||
56 | > | 57 | > |
57 | <template #content> | 58 | <template #content> |
58 | <div> | 59 | <div> |
@@ -13,6 +13,9 @@ export default { | @@ -13,6 +13,9 @@ export default { | ||
13 | let tableData = Vue.ref({ | 13 | let tableData = Vue.ref({ |
14 | count: 0, | 14 | count: 0, |
15 | dataList: [], | 15 | dataList: [], |
16 | + authorizeStats: '', | ||
17 | + authorizeTime:'', | ||
18 | + timeLeft:'', | ||
16 | columns: [ | 19 | columns: [ |
17 | { | 20 | { |
18 | prop: 'usage', | 21 | prop: 'usage', |
@@ -30,7 +33,7 @@ export default { | @@ -30,7 +33,7 @@ export default { | ||
30 | }, | 33 | }, |
31 | { | 34 | { |
32 | prop: 'protocolCate', | 35 | prop: 'protocolCate', |
33 | - label: '协议', | 36 | + label: '协议(只统计已挂载任务的资源)', |
34 | align: 'center', | 37 | align: 'center', |
35 | columns:[] | 38 | columns:[] |
36 | } | 39 | } |
@@ -144,6 +147,14 @@ export default { | @@ -144,6 +147,14 @@ export default { | ||
144 | dataList.local.usage='已使用'; | 147 | dataList.local.usage='已使用'; |
145 | tableData.value.dataList[0] = dataList.license; | 148 | tableData.value.dataList[0] = dataList.license; |
146 | tableData.value.dataList[1] = dataList.local; | 149 | tableData.value.dataList[1] = dataList.local; |
150 | + if (dataList.authorizeStats){ | ||
151 | + tableData.value.authorizeStats = '已授权'; | ||
152 | + }else { | ||
153 | + tableData.value.authorizeStats = '未授权'; | ||
154 | + } | ||
155 | + tableData.value.authorizeTime = dataList.authorizeTime; | ||
156 | + tableData.value.timeLeft = dataList.timeLeft; | ||
157 | + | ||
147 | } else { | 158 | } else { |
148 | tableData.value.dataList = []; | 159 | tableData.value.dataList = []; |
149 | } | 160 | } |
@@ -175,6 +186,7 @@ export default { | @@ -175,6 +186,7 @@ export default { | ||
175 | proxy.$http.uploadFile("/api-web/license/uploadZip", params, function (res) { | 186 | proxy.$http.uploadFile("/api-web/license/uploadZip", params, function (res) { |
176 | if (res && res.success) { | 187 | if (res && res.success) { |
177 | proxy.$global.showMsg("上传成功!"); | 188 | proxy.$global.showMsg("上传成功!"); |
189 | + getDataList(); | ||
178 | } | 190 | } |
179 | }) | 191 | }) |
180 | } | 192 | } |
@@ -11,7 +11,7 @@ server: | @@ -11,7 +11,7 @@ server: | ||
11 | key-store-password: Hg0801.. | 11 | key-store-password: Hg0801.. |
12 | key-password: Hg0801.. | 12 | key-password: Hg0801.. |
13 | url: | 13 | url: |
14 | - gateway: http://192.168.1.53:8080 | 14 | + gateway: http://127.0.0.1:8080 |
15 | inspection_web: http://127.0.0.1:8082 | 15 | inspection_web: http://127.0.0.1:8082 |
16 | assetsweb: http://127.0.0.1:8082 | 16 | assetsweb: http://127.0.0.1:8082 |
17 | mxgraph_editor: http://127.0.0.1:8085 | 17 | mxgraph_editor: http://127.0.0.1:8085 |
-
Please register or login to post a comment