From 6b31092156a10b808e8f27c00644850b7e900395 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期三, 08 六月 2022 16:46:51 +0800 Subject: [PATCH] 添加联动场景参数 --- src/views/hashrate/AlgManage/index.vue | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/hashrate/AlgManage/index.vue b/src/views/hashrate/AlgManage/index.vue index 9082156..97f3089 100644 --- a/src/views/hashrate/AlgManage/index.vue +++ b/src/views/hashrate/AlgManage/index.vue @@ -75,7 +75,7 @@ > <img src="/images/hashrate/绠楁硶绠$悊绌洪〉闈�.png" alt="" /> <div class="des"> - 鏆傛湭瀹夎绠楁硶锛屼粠宸︿晶绠楁硶涓績鎷栧埌绠楁硶鍒版澶勶紝鍗冲彲瀹夎 + 鏆傛湭瀹夎绠楁硶锛屼粠宸︿晶绠楁硶涓績绠楁硶鍒版澶勶紝鍗冲彲瀹夎 </div> </div> </div> @@ -168,7 +168,12 @@ console.log(item); } - item.logoUrl = "/httpImage/" + item.logoUrl; + if ( + item.logoUrl.indexOf("http://apps.smartai.com/httpImage/") === -1 + ) { + item.logoUrl = "/httpImage/" + item.logoUrl; + } + if (item.priceBase === 0) { this.freeAlg.push(item); } else { @@ -182,7 +187,12 @@ async getEquipment() { const res = await findAllSdk(); if (res && res.success) { - this.equipmentArr = res.data; + this.equipmentArr = []; + res.data.forEach((item, index) => { + if (item.sdkList) { + this.equipmentArr.push(item); + } + }); } }, //鎷栨嫿寮�濮� @@ -256,7 +266,7 @@ if (res && res.success) { this.$notify({ type: "success", - message: "鎿嶄綔鎴愬姛", + message: res.msg, }); } }, -- Gitblit v1.8.0