deason 1 жил өмнө
parent
commit
213d237c05

+ 19 - 1
src/modules/basic/view/campus.vue

@@ -95,6 +95,14 @@
         >
           导入
         </el-button>
+        <el-button
+          size="small"
+          type="primary"
+          icon="el-icon-download"
+          @click="exportOrg"
+        >
+          导出
+        </el-button>
 
         <div style="width: 100%; margin-bottom: 10px"></div>
 
@@ -666,7 +674,17 @@ export default {
     dialogBeforeClose() {
       this.$refs.campusForm.clearValidate();
     },
-    //导入
+    exportOrg() {
+      window.open(
+        CORE_API +
+          "/org/sub/org/export?$key=" +
+          this.user.key +
+          "&$token=" +
+          this.user.token +
+          "&rootOrgId=" +
+          this.formSearch.parentId
+      );
+    },
     imp() {
       this.impDialog = true;
       this.initUpload();