heyujie
2021-03-10 2e656ae93943ea608dd20ca445cae64e4fc8007b
应用中心样式修改
2个文件已修改
130 ■■■■■ 已修改文件
src/pages/ai/index/App.vue 129 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/SeparateRules.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/ai/index/App.vue
@@ -465,6 +465,9 @@
                  </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"
@@ -608,7 +611,7 @@
                        <el-button type="primary" @click="checkMyAlgorith"
                          >确定</el-button
                        >
                        <p class="tip">提示:请在“我的算法”中查看并安装算法</p>
                        <p class="tip">提示:请在“已激活”中查看并安装算法</p>
                      </div>
                    </div>
                  </div>
@@ -632,7 +635,7 @@
                  </div>
                  <div class="flex-list">
                    <div v-if="hasNewVersionSdk.length==0" class="empty-tip">
                      {{errMsg?errMsg:"暂无数据,请稍后重试..."}}
                      {{errMsg?errMsg:"暂无数据"}}
                    </div>
                    <div
                      class="wrap-box"
@@ -720,7 +723,7 @@
                  </div>
                  <div class="flex-list">
                    <div v-if="!hasNewVersionApp.length" class="empty-tip">
                      暂无数据,请稍后重试...
                      暂无数据
                    </div>
                    <div
                      class="wrap-box"
@@ -946,7 +949,7 @@
                    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>
               
@@ -1065,10 +1068,12 @@
        </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">
@@ -1098,7 +1103,7 @@
          <el-button type="primary" @click="checkMyAlgorith"
            >确定</el-button
          >
          <p class="tip">提示:请在“我的算法”中查看并安装算法</p>
          <p class="tip">提示:请在“已激活”中查看并安装算法</p>
        </div>
      </div>
    </el-dialog>
@@ -1549,49 +1554,51 @@
    },
    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() {
@@ -2057,18 +2064,19 @@
            // 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;
@@ -2093,7 +2101,8 @@
            border-bottom: 3px solid #3d68e1;
            width: fit-content;
            margin-bottom: 5px;
            height: 35px;
                height: 33px;
          }
          .item-zone {
            overflow: auto;
@@ -2832,7 +2841,13 @@
    }
  }
}
.dialog-active{
.active-Dial{
  .el-dialog{
    min-width: 400px;
  }
  .dialog-active{
          .desc {
          padding: 0 30px;
          margin-bottom: 30px;
@@ -2861,5 +2876,7 @@
          }
        }
}
}
</style>
src/pages/cameraAccess/components/SeparateRules.vue
@@ -535,6 +535,7 @@
    //实时、轮询切换
    changePoll(row) {
      //判断是新增还是更新
      debugger
      if (this.Camera.cameraId && this.Camera.cameraId !== undefined) {
        if (this.PollData.RealTimeSum < this.PollData.channelTotal) {
          if (row.value) {