|
@@ -38,6 +38,7 @@
|
|
>
|
|
>
|
|
|
|
|
|
<el-dropdown
|
|
<el-dropdown
|
|
|
|
+ v-if="showExport"
|
|
class="mx-2"
|
|
class="mx-2"
|
|
split-button
|
|
split-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -142,9 +143,22 @@ export default {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
total: 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: {
|
|
methods: {
|
|
async searchForm() {
|
|
async searchForm() {
|
|
try {
|
|
try {
|