| | |
| | | <div class="desc-2">版本 {{ item.version }}</div>
|
| | | </div>
|
| | | <div class="right-icon">
|
| | | <span class="icon iconfont"></span>
|
| | | <el-tooltip effect="dark" content="下载" placement="bottom">
|
| | | <span class="icon iconfont"></span>
|
| | | </el-tooltip>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | class="front-page-item"
|
| | | v-for="(item, index) in tempList"
|
| | | :key="index"
|
| | | @click="checkDetail(item)"
|
| | | @click="checkDetail(item, 'Appcenter')"
|
| | | :class="{
|
| | | disabled: activeName == '应用中心' && !item.canUpOrIns,
|
| | | }"
|
| | | >
|
| | | <div class="icon-img">
|
| | | <span class="icon iconfont" v-if="item.isUpgrade"
|
| | |
| | | type="primary"
|
| | | class="other-btn"
|
| | | round
|
| | | @click="checkDetail(item)"
|
| | | @click="checkDetail(item, 'Appcenter')"
|
| | | v-if="activeName == '应用中心' && item.price > 0"
|
| | | >激活</el-button
|
| | | >
|
| | |
| | | <detailPage
|
| | | :detailProductID="detailProductID"
|
| | | :detailType="detailType"
|
| | | :detailPrice="detailPrice"
|
| | | v-if="inDetail"
|
| | | @flushSdk="getAllSdk"
|
| | | @flushApp="getAllApps"
|
| | |
| | | showUpload: false,
|
| | | detailType: "",
|
| | | detailProductID: "",
|
| | | detailPrice: "",
|
| | | buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [],
|
| | | activeName: "应用中心",
|
| | | patchUpdateStatus: "",
|
| | |
| | | }
|
| | | },
|
| | | checkDetail(item, typ) {
|
| | | if (!item.canUpOrIns && typ == "Appcenter") {
|
| | | return false;
|
| | | }
|
| | |
|
| | | this.inDetail = true;
|
| | | this.detailProductID = item.id;
|
| | | this.detailPrice = item.price;
|
| | | if (typ) {
|
| | | this.detailType = typ;
|
| | | } else {
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | _this.$notify.warning(e.data);
|
| | | _this.$notify.warning(e.msg);
|
| | | clearInterval(timer);
|
| | | app.upgradeLoading = false;
|
| | | });
|
| | |
| | | });
|
| | | },
|
| | | actived(item) {
|
| | | if (!item.canUpOrIns) {
|
| | | return false;
|
| | | }
|
| | |
|
| | | let _this = this;
|
| | | if (this.activeTab == "sdk") {
|
| | | actPageAlg(item.id, "")
|
| | |
| | | version: res.data.apps[0].version,
|
| | | productName: res.data.productName,
|
| | | installContent: res.data.apps[0].installContent,
|
| | | |
| | | };
|
| | | }
|
| | | if (res.data.sdks.length > 0) {
|
| | |
| | | height: 76px;
|
| | | border-radius: 4px;
|
| | |
|
| | | &.disabled {
|
| | | cursor: default;
|
| | | }
|
| | |
|
| | | .icon-img {
|
| | | width: 58px;
|
| | | height: 58px;
|
| | |
| | | text-align: end;
|
| | | position: absolute;
|
| | | right: 0;
|
| | | width: 120px;
|
| | | margin-top: 2px;
|
| | | }
|
| | | .rocket-icon {
|