瀏覽代碼

henu临时需求修改

zhangjie 2 年之前
父節點
當前提交
cc26dc56f2
共有 1 個文件被更改,包括 15 次插入1 次删除
  1. 15 1
      src/features/examwork/MarkResultManagement/MarkResultManagement.vue

+ 15 - 1
src/features/examwork/MarkResultManagement/MarkResultManagement.vue

@@ -38,6 +38,7 @@
             >
 
             <el-dropdown
+              v-if="showExport"
               class="mx-2"
               split-button
               type="primary"
@@ -142,9 +143,22 @@ export default {
       currentPage: 1,
       pageSize: 10,
       total: 10,
+      schoolCode: false,
     };
   },
-  async created() {},
+  async created() {
+    let domain;
+    if (process.env.VUE_APP_SELF_DEFINE_DOMAIN === "true") {
+      domain = window.localStorage.getItem("domain_in_url");
+    }
+    if (!domain) domain = window.location.hostname.split(".")[0];
+    this.schoolCode = domain;
+  },
+  computed: {
+    showExport() {
+      return this.schoolCode !== "henu";
+    },
+  },
   methods: {
     async searchForm() {
       try {