领用记录导出
This commit is contained in:
parent
770297d9e4
commit
d7fa9ce7b1
|
|
@ -68,8 +68,8 @@
|
|||
<el-tag v-if="scope.row.taskStatus == '0'" type="warning" size="mini" style="margin-right: 5px">
|
||||
待审核
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.taskStatus == '1'" size="mini" style="margin-right: 5px">审核中</el-tag>
|
||||
<el-tag v-else-if="scope.row.taskStatus == '2'" type="success" size="mini" style="margin-right: 5px">
|
||||
<el-tag v-else-if="scope.row.taskStatus == '6'" size="mini" style="margin-right: 5px">审核中</el-tag>
|
||||
<el-tag v-else-if="scope.row.taskStatus == '1' || scope.row.taskStatus == '3' || scope.row.taskStatus == '4'" type="success" size="mini" style="margin-right: 5px">
|
||||
已完成
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.taskStatus == '5'" size="mini" style="margin-right: 5px">待提交</el-tag>
|
||||
|
|
@ -280,9 +280,9 @@ export default {
|
|||
},
|
||||
// 考勤状态
|
||||
statusOptions: [
|
||||
{ label: '待审核', value: '1' },
|
||||
{ label: '审核中', value: '2' },
|
||||
{ label: '已完成', value: '3' }
|
||||
{ label: '待审核', value: '0' },
|
||||
{ label: '审核中', value: '6' },
|
||||
{ label: '已完成', value: '1' }
|
||||
],
|
||||
total: 0, // 总条数
|
||||
// 表头
|
||||
|
|
@ -387,7 +387,7 @@ export default {
|
|||
})
|
||||
},
|
||||
// 导出数据
|
||||
handleExport() {
|
||||
/*handleExport() {
|
||||
try {
|
||||
let fileName = `数据_${new Date().getTime()}.xLsx`
|
||||
let url = ''
|
||||
|
|
@ -397,6 +397,13 @@ export default {
|
|||
} catch (error) {
|
||||
console.log('导出数据失败', error)
|
||||
}
|
||||
},*/
|
||||
handleExport() {
|
||||
this.download(
|
||||
"/material/leaseTask/exportLeaseRecord",
|
||||
{ ...this.queryParams },
|
||||
`领用记录数据_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
// 打印
|
||||
print() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue