Authored by 王涛

Merge branch 'master-500-dev-xwx' into 'master-500-dev'

license-【无】-license导入成功刷新和列表优化



See merge request !958
... ... @@ -21,13 +21,13 @@
<el-descriptions title="license文件信息" :column="3" border>
<el-descriptions-item label="授权状态" label-align="right" align="center">
正常
{{tableData.authorizeStats}}
</el-descriptions-item>
<el-descriptions-item label="授权时间" label-align="right" align="center">
2022-08-23
{{tableData.authorizeTime}}
</el-descriptions-item>
<el-descriptions-item label="剩余" label-align="right" align="center">
<el-tag size="small">2</el-tag>
<el-tag size="small">{{tableData.timeLeft}}</el-tag>
</el-descriptions-item>
</el-descriptions>
</el-col>
... ... @@ -46,13 +46,14 @@
>
<template #default="{row,prop,column}">
<div v-if="row.usage == '已使用'">
<span v-if="prop == 'resNum'" :style="{'color':tableData.dataList[1].resNum>=tableData.dataList[0].resNum?'red':''}">{{row.resNum}}</span>
<span v-if="prop != 'resNum'">
<span v-if="tableData.dataList[1][prop]>tableData.dataList[0][prop]" :style="{'color':'red'}">{{row[prop]}}</span>
<span v-else>
{{row[prop]}}
</span>
<el-tooltip
effect="dark"
placement="bottom"
v-if="tableData.dataList[1][prop]>tableData.dataList[0][prop]"
>
<template #content>
<div>
... ...
... ... @@ -13,6 +13,9 @@ export default {
let tableData = Vue.ref({
count: 0,
dataList: [],
authorizeStats: '',
authorizeTime:'',
timeLeft:'',
columns: [
{
prop: 'usage',
... ... @@ -30,7 +33,7 @@ export default {
},
{
prop: 'protocolCate',
label: '协议',
label: '协议(只统计已挂载任务的资源)',
align: 'center',
columns:[]
}
... ... @@ -144,6 +147,14 @@ export default {
dataList.local.usage='已使用';
tableData.value.dataList[0] = dataList.license;
tableData.value.dataList[1] = dataList.local;
if (dataList.authorizeStats){
tableData.value.authorizeStats = '已授权';
}else {
tableData.value.authorizeStats = '未授权';
}
tableData.value.authorizeTime = dataList.authorizeTime;
tableData.value.timeLeft = dataList.timeLeft;
} else {
tableData.value.dataList = [];
}
... ... @@ -175,6 +186,7 @@ export default {
proxy.$http.uploadFile("/api-web/license/uploadZip", params, function (res) {
if (res && res.success) {
proxy.$global.showMsg("上传成功!");
getDataList();
}
})
}
... ...