ZZJ
2022-07-15 e116bdd983b4a456c866119666e41bbaab4f7293
src/pages/ai/index/App.vue
@@ -26,7 +26,8 @@
                <span class="icon iconfont all-scene">&#xe703;</span>
                <el-input
                  placeholder="搜索"
                  v-model="inputText" @change="searchAll"
                  v-model="inputText"
                  @change="searchAll"
                  class="input-with-select"
                >
                  <i class="el-icon-search" slot="prepend"></i>
@@ -568,9 +569,9 @@
    this.autoRefresh = false;
  },
  methods: {
    searchAll(){
      this.getAllApps()
      this.getAllSdk()
    searchAll() {
      this.getAllApps();
      this.getAllSdk();
      this.getUnActivedList(1);
      this.getUnActivedAppList();
    },
@@ -695,7 +696,7 @@
        })
        .catch((e) => {
          this.isInstall = false;
          this.$message.error(e.data);
          this.$message.error(e.msg);
        });
    },
    downloadApp(app, action) {
@@ -730,7 +731,7 @@
      let iArry = [];
      let sArry = [];
      let nArry = [];
      let rsp = await getApps({appName:this.inputText});
      let rsp = await getApps({ appName: this.inputText });
      if (rsp && rsp.success) {
        // 遍历app的过程重置
        this.appUpgreading = false;
@@ -794,7 +795,7 @@
      };
    },
    getUnActivedList(v) {
      getUnActivedSdk({sdkName:this.inputText}).then((res) => {
      getUnActivedSdk({ sdkName: this.inputText }).then((res) => {
        if (res.code == 200) {
          this.unActivedSDKList = res.data;
          const len = this.unActivedSDKList.length;
@@ -817,7 +818,7 @@
      });
    },
    getUnActivedAppList() {
      getUnActivedApp({appName:this.inputText}).then((res) => {
      getUnActivedApp({ appName: this.inputText }).then((res) => {
        if (res.code == 200) {
          this.unActivedAppList = res.data;
          this.pickTab();
@@ -844,8 +845,7 @@
              _this.$notify.error(res.data.failMsg.failMsg);
            }
          })
          .catch((e) => {
          });
          .catch((e) => {});
      } else if (this.activeTab == "app") {
        //激活应用
        actApp(item.id, "")
@@ -861,8 +861,7 @@
              _this.$notify.error(res.data.failMsg.failMsg);
            }
          })
          .catch((e) => {
          });
          .catch((e) => {});
      }
    },
    onFileUpload(file) {
@@ -907,7 +906,7 @@
      let installedList = [];
      let unInstalledList = [];
      let hasNewVersionList = [];
      let res = await findAllSdk({sdkName:this.inputText});
      let res = await findAllSdk({ sdkName: this.inputText });
      if (res && res.success) {
        this.sdkUpgreading = false;