duy 1 年之前
父节点
当前提交
d4b5e0f000
共有 1 个文件被更改,包括 5 次插入60 次删除
  1. 5 60
      src/views/system/app.vue

+ 5 - 60
src/views/system/app.vue

@@ -22,7 +22,7 @@
     </avue-crud>
 
     <!-- 升级 -->
-    <el-dialog title="App升级" :visible.sync="dialogUpload" width="70%" append-to-body center height="100%"> 
+    <el-dialog title="App升级" :visible.sync="dialogUpload" append-to-body center > 
       <avue-crud :option="option1"
                  :table-loading="loadingDeail"
                  :data="dataDetail"
@@ -499,38 +499,8 @@ export default {
           this.$refs.crud.toggleSelection();
         });
     },
-    handleSetting() {
-      if (this.selectionList.length === 0) {
-        this.$message.warning("请选择至少一条数据");
-        return;
-      }
-      if (this.selectionList.length === 1) {
-        getDetail(this.selectionList[0].id).then(res => {
-          const data = res.data.data;
-          this.settingForm.accountNumber = data.accountNumber;
-          this.settingForm.expireTime = data.expireTime;
-        });
-      } else {
-        this.settingForm.accountNumber = -1;
-        this.settingForm.expireTime = '';
-      }
-      this.box = true;
-    },
-    handleDatasource() {
-      if (this.selectionList.length === 0) {
-        this.$message.warning("请选择至少一条数据");
-        return;
-      }
-      if (this.selectionList.length !== 1) {
-        this.$message.warning("只能选择一条数据");
-        return;
-      }
-      getDetail(this.selectionList[0].id).then(res => {
-        const data = res.data.data;
-        this.datasourceForm.datasourceId = data.datasourceId;
-      });
-      this.datasourceBox = true;
-    },
+
+  
     handlePackage() {
       if (this.selectionList.length === 0) {
         this.$message.warning("请选择至少一条数据");
@@ -573,33 +543,8 @@ export default {
         loading();
       });
     },
-    handleDatasourceSubmit(form, done, loading) {
-      datasource(this.tenantId, form.datasourceId).then(() => {
-        this.$message({
-          type: "success",
-          message: "配置成功!"
-        });
-        done();
-        this.datasourceBox = false;
-      }, error => {
-        window.console.log(error);
-        loading();
-      });
-    },
-    handlePackageSubmit(form, done, loading) {
-      packageSetting(this.tenantId, form.packageId).then(() => {
-        this.onLoad(this.page);
-        this.$message({
-          type: "success",
-          message: "配置成功!"
-        });
-        done();
-        this.packageBox = false;
-      }, error => {
-        window.console.log(error);
-        loading();
-      });
-    },
+  
+
     currentChange(currentPage) {
       this.page.currentPage = currentPage;
     },