| | |
| | | |
| | | <!-- 用户导入对话框 --> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> |
| | | <el-upload ref="upload" :limit="1" :key="uploadKey" accept=".xls" :headers="upload.headers" :data="data" |
| | | :action="upload.url" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" |
| | | <el-upload ref="upload" :limit="1" :key="uploadKey" accept=".xls" :headers="upload.headers" |
| | | :action="upload.url" :data="data" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" |
| | | :on-success="handleFileSuccess" :auto-upload="false" drag> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> |
| | |
| | | newExcelImport, |
| | | } from "@/api/system/comp"; |
| | | import { |
| | | newConfirm, |
| | | getCompany, |
| | | newReservationConfirmxbb, |
| | | getZybCompList, |
| | | queryCompany, |
| | | getconfigKey, |
| | | } from "@/api/team/tuanti"; |
| | |
| | | // 上传的地址 |
| | | url: |
| | | process.env.VUE_APP_BASE_API + |
| | | "/reservation/reservation/newExcelImportNotDwDeptId", |
| | | "/zhiye/order/newExcelImportNotDwDeptId", |
| | | }, |
| | | // 查询参数 |
| | | queryParam: { |
| | |
| | | console.log(res, 1111); |
| | | this.objs.yxts = res.msg; |
| | | }); |
| | | getCompany(this.queryParam).then((response) => { |
| | | getZybCompList(this.queryParam).then((response) => { |
| | | this.CompanyList = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | /** 下载模板操作 */ |
| | | importTemplate() { |
| | | this.download( |
| | | "/reservation/reservation/importTemplate", |
| | | "/zhiye/order/importTemplate", |
| | | {}, |
| | | `职业团体预约Excel模版.xls` |
| | | ); |
| | |
| | | yxts: this.objs.yxts, |
| | | dwId: this.data.dwId, |
| | | }; |
| | | newConfirm(data).then((res) => { |
| | | newReservationConfirmxbb(data).then((res) => { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | this.confirm = true; |
| | | this.userList = []; |