| | |
| | | return request({ |
| | | url: "/personBasicInfo/exportPersonBasicInfoById", |
| | | method: "get", |
| | | data: query, |
| | | params: query, |
| | | responseType: "blob" |
| | | }); |
| | | } |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" @click="exportExcel">导 出</el-button> |
| | | <!-- <el-button size="medium" @click="exportExcel">导 出</el-button>--> |
| | | <el-button size="medium" type="primary" @click="showDialog('add')">新 增</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | methods: { |
| | | // 下载档案 |
| | | downPerson() { |
| | | console.log('this.clickNodeVal.userId',this.clickNodeVal.userId) |
| | | exportPersonBasicInfoById({ id: this.clickNodeVal.userId }).then(res => { |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, '人员档案.docx'); |
| | |
| | | param = { ...entity, ...this.page }; |
| | | } else { |
| | | param = { ...this.entity, ...this.page }; |
| | | param.dateTime = JSON.stringify(param.dateTime); |
| | | param.dateTime = param.dateTime?.length > 0 ? JSON.stringify(param.dateTime) : null; |
| | | } |
| | | delete param.total; |
| | | console.log('11111111111111111') |
| | | selectAuxiliaryWorkingHoursDay({ ...param }) |
| | | .then((res) => { |
| | | this.tableLoading = false; |