hanbaoshan
2020-09-17 8feeb41fd6516361c9eb36bdeddd443ea9d822cb
应用中心算法激活后续逻辑完善
1个文件已修改
38 ■■■■■ 已修改文件
src/pages/ai/index/App.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/ai/index/App.vue
@@ -540,6 +540,19 @@
    actSdk (id) {
      this.actSdkId = id;
      this.actDrawerShow = true;
      this.actStep = 0;
      this.activeCode = '';
      this.activedSdk = this.newActInfo()
    },
    newActInfo(){
      return {
        activateCode: '',
        productName: '',
        setting: '',
        expireTime: '',
        licence: '',
        devIds: ''
      }
    },
    getUnActivedList () {
      getUnActivedSdk().then(res => {
@@ -554,21 +567,18 @@
      return percentage === 100 ? '安装成功' : `${percentage}%`;
    },
    actived () {
      //this.activeCode
      this.actStep++
      let _this = this;
      actPageAlg(this.actSdkId, this.activeCode).then(res => {
        if (res.code == 200) {
          // this.activedSdk: {
          //   activateCode:'',
          //   productName:'',
          //   setting:'',
          //   expireTime:'',
          //   licence:'',
          //   devIds:''
          // },
          debugger
          this.activedSdk = res.data.successMsg
          this.actStep++
        if (res.data.isSuccess) {
          _this.activedSdk = res.data.successMsg;
          _this.actStep++;
          _this.getUnActivedList();
          _this.findAllSdk();
        }else{
          _this.$notify({
            type:'error',
            message:res.data.failMsg.failMsg
          });
        }
      }).catch(e => {
        console.log(e)