diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index 38c63eb..073af12 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -107,11 +107,13 @@ @pagination="getList" /> +
@@ -120,7 +122,7 @@ @@ -152,7 +154,7 @@ clearable @keyup.enter.native="handleQuery" :disabled="true" - style="width: 160px" + style="width: 180px" /> @@ -185,7 +187,7 @@ clearable @keyup.enter.native="handleQuery" :disabled="true" - style="width: 160px" + style="width: 180px" /> @@ -241,6 +243,7 @@
+ @@ -408,4 +411,11 @@ export default { }, }, }; - \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index a8fca36..5f67f60 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -8,58 +8,6 @@ v-show="showSearch" label-width="68px" > - - - - - 删除 + + 导入 + - - - - - @@ -634,7 +578,10 @@ > - + @@ -777,7 +769,9 @@ import { updatePerson, stationList, StationDepartmentList, + } from "@/api/system/person"; +import { getToken } from "@/utils/auth"; export default { name: "Person", @@ -809,6 +803,22 @@ export default { innerVisible2: false, // 遮罩层 loading: true, + + // 用户导入参数 + upload: { + // 是否显示弹出层(用户导入) + open: false, + // 弹出层标题(用户导入) + title: "", + // 是否禁用上传 + isUploading: false, + // 设置上传的请求头部 + headers: { Authorization: "Bearer " + getToken() }, + // 上传的地址 + url: + process.env.VUE_APP_BASE_API + + "/system/person/insertNurseStationPersonImportList", + }, // 选中数组 ids: [], // 非单个禁用 @@ -829,7 +839,6 @@ export default { stationLists: [], // 所属科室 StationDepartmentLists: [], - nurseStationlist: [], stationid: "", departid: "", @@ -1064,6 +1073,7 @@ export default { this.open2 = false; this.nurseStationName = "请选择护理站名称"; this.departmentName = "请选择所属科室"; + // this.upload.open=false; this.reset(); }, // 表单重置 @@ -1100,6 +1110,7 @@ export default { }; this.resetForm("form"); }, + /** 搜索按钮操作 */ handleQuery2() { this.queryParams.pageNum = 1; @@ -1262,6 +1273,44 @@ export default { }) .catch(() => {}); }, + /** 导入按钮操作 */ + handleImport() { + this.upload.open = true; + this.upload.title = "用户导入"; + }, + + /** 下载模板操作 */ + importTemplate() { + this.download( + "/system/station/downloadTemplate?fileType=3", + {}, + `护理站人员基本信息导入模板.xlsx` + ); + }, + // 提交上传文件 + submitFileForm() { + this.$refs.upload.submit(); + }, + // 文件上传成功处理 + handleFileSuccess(response, file, fileList) { + this.upload.open = false; + this.upload.isUploading = false; + this.$refs.upload.clearFiles(); + this.$alert( + "
" + + response.msg + + "
", + "导入结果", + { dangerouslyUseHTMLString: true } + ); + this.getList(); + }, + // 文件上传中处理 + handleFileUploadProgress(event, file, fileList) { + this.upload.isUploading = true; + }, + + /** 导出按钮操作 */ handleExport() { this.download(