除员工外 取消导入更新 添加导入文件重复校验
This commit is contained in:
@@ -53,21 +53,12 @@
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 其他选项 -->
|
||||
<!-- 下载模板 -->
|
||||
<el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-checkbox v-model="formData.updateSupport" :disabled="isUploading">
|
||||
更新已存在的数据
|
||||
</el-checkbox>
|
||||
</el-col>
|
||||
<el-col :span="12" style="text-align: right">
|
||||
<el-link type="primary" :underline="false" @click="handleDownloadTemplate">
|
||||
<i class="el-icon-download"></i>
|
||||
下载导入模板
|
||||
</el-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-link type="primary" :underline="false" @click="handleDownloadTemplate">
|
||||
<i class="el-icon-download"></i>
|
||||
下载导入模板
|
||||
</el-link>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -100,7 +91,7 @@
|
||||
|
||||
<script>
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {getPersonImportStatus, getEntityImportStatus} from "@/api/ccdiIntermediary";
|
||||
import {getEntityImportStatus, getPersonImportStatus} from "@/api/ccdiIntermediary";
|
||||
import ImportResultDialog from "@/components/ImportResultDialog.vue";
|
||||
|
||||
export default {
|
||||
@@ -119,8 +110,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
formData: {
|
||||
importType: "person",
|
||||
updateSupport: 0
|
||||
importType: "person"
|
||||
},
|
||||
headers: { Authorization: "Bearer " + getToken() },
|
||||
isUploading: false,
|
||||
@@ -136,11 +126,10 @@ export default {
|
||||
computed: {
|
||||
uploadUrl() {
|
||||
const baseUrl = process.env.VUE_APP_BASE_API;
|
||||
const updateSupport = this.formData.updateSupport ? 1 : 0;
|
||||
if (this.formData.importType === 'person') {
|
||||
return `${baseUrl}/ccdi/intermediary/importPersonData?updateSupport=${updateSupport}`;
|
||||
return `${baseUrl}/ccdi/intermediary/importPersonData`;
|
||||
} else {
|
||||
return `${baseUrl}/ccdi/intermediary/importEntityData?updateSupport=${updateSupport}`;
|
||||
return `${baseUrl}/ccdi/intermediary/importEntityData`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user