@@ -38,6 +38,25 @@ export default {
type: Object,
default: () => {},
},
+ width: {
+ type: Number
+ }
+ },
+ computed: {
+ classBackground() {
+ return {
+ width: this.width + 'px',
+ height: this.width * 0.714 + 'px',
+ }
+ },
+ classImg() {
+ return {
+ width: this.width + 'px',
+ height: this.width * 0.576 + 'px',
+ // background: `url(${this.model.snapshot}) no-repeat`,
+ // 'background-size': `100% 100%`
+ }
+ },
},
methods: {
handleCommand(key) {
@@ -49,8 +68,6 @@ export default {
diff --git a/frontend/src/views/system/plugin/index.vue b/frontend/src/views/system/plugin/index.vue
index 92ba5fd13b..62c4c91f56 100644
--- a/frontend/src/views/system/plugin/index.vue
+++ b/frontend/src/views/system/plugin/index.vue
@@ -41,10 +41,17 @@
-

+ /> -->
+
+
+
![]()
+
+
{{ ele.descript }}
- 更新
+
+ 更新
+
+
+
+ 卸载
+
+
卸载
@@ -119,6 +143,7 @@ export default {
name: "",
listValue: ["cost", "creator", "version", "installTime"],
data: [],
+ imgDefault: require('@/assets/icon_nopicture_filled.png'),
uploading: false,
baseUrl: process.env.VUE_APP_BASE_API,
fileList: [],
@@ -159,14 +184,12 @@ export default {
pluginLists(0, 0, param).then((response) => {
this.data = response.data.listObject;
this.data.forEach((ele) => {
- if (ele.installTime) {
- ele.installTime = new Date(ele.installTime).format(
- "yyyy-MM-dd hh:mm:ss"
- );
- }
if (ele.cost) {
ele.cost = ele.cost.toLocaleString();
}
+ ele.installTime = ele.installTime
+ ? new Date(ele.installTime).format("yyyy-MM-dd hh:mm:ss")
+ : "-";
});
});
},
@@ -194,10 +217,11 @@ export default {
},
del(row) {
+ if (row.pluginId < 4) return;
const options = {
title: "确定卸载该插件?",
content: "卸载并重启服务器之后才能生效",
- confirmButtonText: this.$t('卸载'),
+ confirmButtonText: this.$t("卸载"),
type: "primary",
cb: () => {
uninstall(row.pluginId)
@@ -266,6 +290,7 @@ export default {
font-weight: 400;
font-size: 14px;
line-height: 22px;
+ cursor: pointer;
/* identical to box height, or 157% */
display: flex;
@@ -279,6 +304,19 @@ export default {
font-size: 13px;
margin-right: 5.33px;
}
+
+ &.is-disable {
+ cursor: not-allowed;
+ color: #bbbfc4;
+ }
+ }
+
+ .btn-plugin.update:not(.is-disable):hover {
+ color: var(--primaryHover, #26acff);
+ }
+
+ .btn-plugin.uninstall:not(.is-disable):hover {
+ color: var(--deDangerHover, #26acff);
}
}
@@ -292,7 +330,8 @@ export default {
.info-top {
margin-bottom: 12px;
overflow: hidden;
- img {
+
+ .el-image {
float: left;
box-sizing: border-box;
width: 40px;
@@ -300,6 +339,15 @@ export default {
background: #ffffff;
border: 1px solid #dee0e3;
border-radius: 4px;
+ display: flex;
+
+ .image-slot {
+ padding: 4px;
+ }
+ }
+ img {
+ width: 100%;
+ height: 100%;
}
.title {
diff --git a/frontend/src/views/system/task/filterUser.vue b/frontend/src/views/system/task/filterUser.vue
index f115a9cc94..3daf6755fd 100644
--- a/frontend/src/views/system/task/filterUser.vue
+++ b/frontend/src/views/system/task/filterUser.vue
@@ -279,7 +279,7 @@ export default {
"dataset.task.last_exec_status",
].forEach((ele, index) => {
const { activeType: type, list } =
- filterDataset[index];
+ this.filterDataset[index];
if (this.active[type].length) {
params.push(
`${this.$t(ele)}:${this.active[type]
diff --git a/frontend/src/views/system/task/filterUserRecord.vue b/frontend/src/views/system/task/filterUserRecord.vue
index bde2465774..6c0a6cbd2d 100644
--- a/frontend/src/views/system/task/filterUserRecord.vue
+++ b/frontend/src/views/system/task/filterUserRecord.vue
@@ -273,7 +273,6 @@ export default {
].forEach((ele, index) => {
const { activeType: type, list } =
this.filterDataset[index];
- console.log('type', type);
if (this.active[type].length) {
params.push(
`${this.$t(ele)}:${this.active[type]