| | |
| | | <el-button size="small" type="primary" @click="handleUp" v-show="currentTable == 'value1'&&up">导 入</el-button> |
| | | </div> |
| | | </div> |
| | | <el-radio-group v-model="currentTable" size="small" :key="'111'" style="margin-top: 10px;"> |
| | | <el-radio-button label="value0"> |
| | | 原始工时 |
| | | </el-radio-button> |
| | | <el-radio-button label="value1"> |
| | | 修正工时 |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | <div style="text-align: left"> |
| | | <el-radio-group v-model="currentTable" size="small" :key="'111'" style="margin-top: 10px;"> |
| | | <el-radio-button label="value0"> |
| | | 原始工时 |
| | | </el-radio-button> |
| | | <el-radio-button label="value1"> |
| | | 修正工时 |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable0" |
| | | v-if="currentTable == 'value0'" |
| | |
| | | inputType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
| | | }, |
| | | entity:{ |
| | | month:getYearAndMonthAndDays() |
| | | month:getYearAndMonthAndDays(), |
| | | name:'', |
| | | departLims:'' |
| | | }, |
| | | entityCopy:{}, |
| | | entityCopy0:{}, |
| | |
| | | let entity = {...this.entity} |
| | | entity.month = entity.month.split('-')[0]+'-'+entity.month.split('-')[1] |
| | | this.outLoading = true |
| | | this.$axios.get(this.$api.auxiliaryOriginalHours.exportOriginalHours,{ |
| | | params:entity, |
| | | this.$axios.post(this.$api.auxiliaryOriginalHours.exportOriginalHours,{ |
| | | ...entity |
| | | // params:entity, |
| | | },{responseType: "blob"}).then(res => { |
| | | this.outLoading = false |
| | | this.$message.success('导出成功') |
| | | const blob = new Blob([res],{ type: 'application/octet-stream' }); |
| | | console.log(blob) |
| | | const url = URL.createObjectURL(blob); |
| | | const link = document.createElement('a'); |
| | | link.href = url; |