| | |
| | | </div>
|
| | | <p class="src-title">应用软件</p>
|
| | | <div class="app-list flex-list">
|
| | | <div v-if="!unActivedAppList.length" class="empty-tip">
|
| | | 暂无数据
|
| | | </div>
|
| | | <div
|
| | | class="wrap-box"
|
| | | v-for="item in unActivedAppList"
|
| | |
| | | <el-button type="primary" @click="checkMyAlgorith"
|
| | | >确定</el-button
|
| | | >
|
| | | <p class="tip">提示:请在“我的算法”中查看并安装算法</p>
|
| | | <p class="tip">提示:请在“已激活”中查看并安装算法</p>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | </div>
|
| | | <div class="flex-list">
|
| | | <div v-if="hasNewVersionSdk.length==0" class="empty-tip">
|
| | | {{errMsg?errMsg:"暂无数据,请稍后重试..."}}
|
| | | {{errMsg?errMsg:"暂无数据"}}
|
| | | </div>
|
| | | <div
|
| | | class="wrap-box"
|
| | |
| | | </div>
|
| | | <div class="flex-list">
|
| | | <div v-if="!hasNewVersionApp.length" class="empty-tip">
|
| | | 暂无数据,请稍后重试...
|
| | | 暂无数据
|
| | | </div>
|
| | | <div
|
| | | class="wrap-box"
|
| | |
| | | isUpgrading ? "升级中.." : "升级"
|
| | | }}</el-button>
|
| | | <el-button size="small" type="primary" v-if="isActive" @click="unloadSDKinWin">卸载</el-button>
|
| | | <el-button size="small" type="primary" v-if="!isActive" @click="showInputCode=!showInputCode">下载激活</el-button>
|
| | | <el-button size="small" type="primary" v-if="!isActive" @click="showInputCode=!showInputCode">激活</el-button>
|
| | | <el-button size="small" type="success" v-if="!isSDKDialog&&isActive" @click="openApp">打开</el-button>
|
| | | </div>
|
| | |
|
| | |
| | | </div>
|
| | | </div>
|
| | | </el-dialog>
|
| | | <!-- -->
|
| | | <el-dialog
|
| | | :visible.sync="showActivateSuccess"
|
| | | title="激活成功!"
|
| | | :visible.sync="showActivateSuccess"
|
| | | width="30%"
|
| | | class="active-Dial"
|
| | | :before-close="handleClose"
|
| | | >
|
| | | <div class="dialog-active">
|
| | |
| | | <el-button type="primary" @click="checkMyAlgorith"
|
| | | >确定</el-button
|
| | | >
|
| | | <p class="tip">提示:请在“我的算法”中查看并安装算法</p>
|
| | | <p class="tip">提示:请在“已激活”中查看并安装算法</p>
|
| | | </div>
|
| | | </div>
|
| | | </el-dialog>
|
| | |
| | | },
|
| | | actived() {
|
| | | let _this = this;
|
| | | if (this.actType == "sdk") {
|
| | | //激活算法
|
| | | actPageAlg(this.actId, this.activeCode)
|
| | | .then((res) => {
|
| | | if (res.data.isSuccess) {
|
| | | this.productDetailVisible = false
|
| | | _this.activedSdkOrApp = res.data.successMsg;
|
| | | this.showActivateSuccess=true
|
| | | _this.actStep++;
|
| | | _this.getUnActivedList();
|
| | | _this.getAllSdk();
|
| | | } else {
|
| | | _this.$notify({
|
| | | type: "error",
|
| | | message: res.data.failMsg.failMsg,
|
| | | });
|
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | });
|
| | | } else if (this.actType == "app") {
|
| | | //激活应用
|
| | | actApp(this.actId, this.activeCode)
|
| | | .then((res) => {
|
| | | if (res.data.isSuccess) {
|
| | | this.productDetailVisible = false
|
| | | _this.activedSdkOrApp = res.data.successMsg;
|
| | | this.showActivateSuccess=true
|
| | | _this.actStep++;
|
| | | _this.getUnActivedAppList();
|
| | | _this.getAllApps();
|
| | | } else {
|
| | | _this.$notify({
|
| | | type: "error",
|
| | | message: res.data.failMsg.failMsg,
|
| | | });
|
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | });
|
| | | }
|
| | |
|
| | | // if (this.actType == "sdk") {
|
| | | // //激活算法
|
| | | // actPageAlg(this.actId, this.activeCode)
|
| | | // .then((res) => {
|
| | | // if (res.data.isSuccess) {
|
| | | // this.productDetailVisible = false
|
| | | // _this.activedSdkOrApp = res.data.successMsg;
|
| | | // this.showActivateSuccess=true
|
| | | // _this.actStep++;
|
| | | // _this.getUnActivedList();
|
| | | // _this.getAllSdk();
|
| | | // } else {
|
| | | // _this.$notify({
|
| | | // type: "error",
|
| | | // message: res.data.failMsg.failMsg,
|
| | | // });
|
| | | // }
|
| | | // })
|
| | | // .catch((e) => {
|
| | | // console.log(e);
|
| | | // });
|
| | | // } else if (this.actType == "app") {
|
| | | // //激活应用
|
| | | // actApp(this.actId, this.activeCode)
|
| | | // .then((res) => {
|
| | | // if (res.data.isSuccess) {
|
| | | // this.productDetailVisible = false
|
| | | // _this.activedSdkOrApp = res.data.successMsg;
|
| | | // this.showActivateSuccess=true
|
| | | // _this.actStep++;
|
| | | // _this.getUnActivedAppList();
|
| | | // _this.getAllApps();
|
| | | // } else {
|
| | | // _this.$notify({
|
| | | // type: "error",
|
| | | // message: res.data.failMsg.failMsg,
|
| | | // });
|
| | | // }
|
| | | // })
|
| | | // .catch((e) => {
|
| | | // console.log(e);
|
| | | // });
|
| | | // }
|
| | | },
|
| | | getCodeDetail() {},
|
| | | checkMyAlgorith() {
|
| | |
| | | // height: 30px;
|
| | | border-bottom: 3px solid #3d68e1;
|
| | | width: fit-content;
|
| | | margin-bottom: 8px;
|
| | | height: 35px;
|
| | | margin-bottom: 10px;
|
| | |
|
| | | height: 33px;
|
| | |
|
| | | }
|
| | | .list-zone {
|
| | | overflow: auto;
|
| | | height: 225px;
|
| | | padding: 0 12px;
|
| | |
|
| | | height: 190px;
|
| | | padding: 0 20px;
|
| | | .list-item {
|
| | | .desc {
|
| | | background-color: rgba(242, 242, 242, 1.3);
|
| | | margin: 4px 12px 0 12px;
|
| | | margin: 5px 12px 0 12px;
|
| | | font-size: 12px;
|
| | | }
|
| | | margin-bottom: 12px;
|
| | |
| | | border-bottom: 3px solid #3d68e1;
|
| | | width: fit-content;
|
| | | margin-bottom: 5px;
|
| | | height: 35px;
|
| | | height: 33px;
|
| | |
|
| | | }
|
| | | .item-zone {
|
| | | overflow: auto;
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | .dialog-active{
|
| | | .active-Dial{
|
| | | .el-dialog{
|
| | |
|
| | | min-width: 400px;
|
| | | }
|
| | |
|
| | | .dialog-active{
|
| | | .desc {
|
| | | padding: 0 30px;
|
| | | margin-bottom: 30px;
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | </style>
|
| | |
|