This commit is contained in:
parent
2a8f797528
commit
cc7a72af9b
|
|
@ -237,11 +237,11 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentTime = formatTime(new Date());
|
const currentTime = formatTime(new Date());
|
||||||
let fileName = `数据_${currentTime}.xLsx`
|
let fileName = `直转记录_${currentTime}.xLsx`
|
||||||
let url = ''
|
let url = '/material/directRotation/export'
|
||||||
const params = { ...this.queryParams }
|
const params = { ...this.queryParams }
|
||||||
console.log('🚀 ~ 导出 ~ params:', params)
|
console.log('🚀 ~ 导出 ~ params:', params)
|
||||||
// this.derive(url, params, fileName)
|
this.download(url, params, fileName)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('导出数据失败', error)
|
console.log('导出数据失败', error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -489,6 +489,8 @@ export default {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
|
pageNum: this.queryParams.pageNum,
|
||||||
|
pageSize: this.queryParams.pageSize,
|
||||||
keyWord: this.queryParams.keyWord,
|
keyWord: this.queryParams.keyWord,
|
||||||
status: this.queryParams.status,
|
status: this.queryParams.status,
|
||||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||||
|
|
@ -1181,7 +1183,28 @@ export default {
|
||||||
console.log('减免申请')
|
console.log('减免申请')
|
||||||
this.$router.push({ path: '/business/businessHandling/discountApply' })
|
this.$router.push({ path: '/business/businessHandling/discountApply' })
|
||||||
},
|
},
|
||||||
handleExport() {}
|
handleExport() {
|
||||||
|
try {
|
||||||
|
const formatTime = (date) => {
|
||||||
|
const year = date.getFullYear();
|
||||||
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||||
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
|
const hours = String(date.getHours()).padStart(2, '0');
|
||||||
|
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||||
|
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||||
|
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
const currentTime = formatTime(new Date());
|
||||||
|
let fileName = `减免记录_${currentTime}.xLsx`
|
||||||
|
let url = '/material/derateRecordQuery/export'
|
||||||
|
const params = { ...this.queryParams }
|
||||||
|
console.log('🚀 ~ 导出 ~ params:', params)
|
||||||
|
this.download(url, params, fileName)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('导出数据失败', error)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -412,9 +412,9 @@
|
||||||
<span v-else class="el-upload-list__item-preview" @click="picturePreview(file)">
|
<span v-else class="el-upload-list__item-preview" @click="picturePreview(file)">
|
||||||
<i class="el-icon-zoom-in" />
|
<i class="el-icon-zoom-in" />
|
||||||
</span>
|
</span>
|
||||||
<span class="el-upload-list__item-delete" @click="handleRemoveElectricianImgList(file)">
|
<!-- <span class="el-upload-list__item-delete" @click="handleRemoveElectricianImgList(file)">
|
||||||
<i class="el-icon-delete" />
|
<i class="el-icon-delete" />
|
||||||
</span>
|
</span> -->
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<i class="el-icon-plus avatar-uploader-icon"></i>
|
<i class="el-icon-plus avatar-uploader-icon"></i>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue