Browse Source

后台添加患者列表添加下载模版,导入

new^2
liuzhipeng 1 week ago
parent
commit
e6b032a1f2
  1. 32
      acupuncture-后台/src/views/patientFile/index.vue

32
acupuncture-后台/src/views/patientFile/index.vue

@ -82,14 +82,27 @@
<el-col :span="1.5">
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
@click="handleDelete">删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="info" plain icon="el-icon-bottom" size="mini"
@click="handleDownload">下载模版</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleImport">导入</el-button>
</el-col> -->
<el-col :span="1.5">
<el-button
type="info"
plain
icon="el-icon-bottom"
size="mini"
@click="handleDownload"
>下载模版</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-upload2"
size="mini"
@click="handleImport"
>导入</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -454,7 +467,8 @@ export default {
Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"),
},
uploadFileUrl1: process.env.VUE_APP_API_QZURL + "/patient/import", //
uploadFileUrl1:
process.env.VUE_APP_API_QZURL + "/admin/treatment/importTreatment", //
fileList: [],
//
educationYearsValue: {
@ -818,7 +832,7 @@ export default {
/** 下载按钮操作 */
handleDownload() {
window.open(
`${process.env.VUE_APP_API_QZURL}/profile/PatientTemplate.xlsx`
`${process.env.VUE_APP_API_QZURL}profile/PatientTemplateAdmin.xlsx`
);
// this.download1(
// "/patient/export", {},

Loading…
Cancel
Save