From 5d9d45b9ddc4d99aba2d9dd9d75fc4d7ebf639d1 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 20 五月 2022 18:10:37 +0800 Subject: [PATCH] 修改ip配置的交互 --- src/pages/ai/index/App.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/pages/ai/index/App.vue b/src/pages/ai/index/App.vue index 1ab5b8a..7308d94 100644 --- a/src/pages/ai/index/App.vue +++ b/src/pages/ai/index/App.vue @@ -144,6 +144,9 @@ v-for="(item, index) in tempList" :key="index" @click="checkDetail(item)" + :class="{ + disabled: activeName == '搴旂敤涓績' && !item.canUpOrIns, + }" > <div class="icon-img"> <span class="icon iconfont" v-if="item.isUpgrade" @@ -618,7 +621,11 @@ this.tempDarkList = []; } }, - checkDetail(item, typ) { + checkDetail(item) { + /* if (!item.canUpOrIns && typ == "Appcenter") { + return false; + } */ + this.inDetail = true; this.detailProductID = item.id; this.detailPrice = item.price; @@ -688,7 +695,7 @@ } }) .catch((e) => { - _this.$notify.warning(e.data); + _this.$notify.warning(e.msg); clearInterval(timer); app.upgradeLoading = false; }); @@ -794,6 +801,10 @@ }); }, actived(item) { + if (!item.canUpOrIns) { + return false; + } + let _this = this; if (this.activeTab == "sdk") { actPageAlg(item.id, "") @@ -1324,6 +1335,10 @@ height: 76px; border-radius: 4px; + /* &.disabled { + cursor: default; + } */ + .icon-img { width: 58px; height: 58px; -- Gitblit v1.8.0