|
|
|
|
@ -64,6 +64,8 @@
|
|
|
|
|
:auto-upload="false">
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
|
|
<el-button style="margin-left: 10px;" size="small" type="success" @click="uploadData">上传到服务器</el-button>
|
|
|
|
|
<el-button style="margin-left: 10px;" size="small" type="primary" icon="el-icon-download" @click="downloadTemplate">模版下载</el-button>
|
|
|
|
|
|
|
|
|
|
<div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</template>
|
|
|
|
|
@ -256,7 +258,7 @@ import VxeUI from "vxe-pc-ui";
|
|
|
|
|
|
|
|
|
|
import { authMixin } from "@/mixin/authMixin";
|
|
|
|
|
import { uploadSize } from "@/settings";
|
|
|
|
|
import { deepCopy } from "@/utils";
|
|
|
|
|
import {deepCopy, download as downloadByTA, download as downloadByA} from "@/utils";
|
|
|
|
|
import { download } from "@/utils/downloadRequest";
|
|
|
|
|
import { destroy, index, save } from "@/api/specialty/specialty";
|
|
|
|
|
import AddSpecialty from "./components/AddSpecialty.vue";
|
|
|
|
|
@ -265,7 +267,8 @@ import axios from "axios";
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
import { index as schoolIndex } from "@/api/school/school";
|
|
|
|
|
import {index as areaIndex} from "@/api/area/area";
|
|
|
|
|
import { index as areaIndex} from "@/api/area/area";
|
|
|
|
|
import {getparameter} from "@/api/system/dictionary";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Specialty",
|
|
|
|
|
@ -568,6 +571,17 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
downloadTemplate() {
|
|
|
|
|
getparameter({
|
|
|
|
|
number: 'download_url'
|
|
|
|
|
}).then(({ detail }) => {
|
|
|
|
|
const url = detail?.find(i => i.value === 'specialty')?.remark
|
|
|
|
|
if (url) {
|
|
|
|
|
downloadByTA(url)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|