|
@ -158,6 +158,13 @@ export default { |
|
|
btnKey: 'toAllot', |
|
|
btnKey: 'toAllot', |
|
|
btnLabel: '分配风控人员' |
|
|
btnLabel: '分配风控人员' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
size: 'small', |
|
|
|
|
|
icon: 'export', |
|
|
|
|
|
btnKey: 'doExport', |
|
|
|
|
|
btnLabel: '导出' |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
type: 'info', |
|
|
type: 'info', |
|
|
size: 'small', |
|
|
size: 'small', |
|
@ -263,6 +270,9 @@ export default { |
|
|
break |
|
|
break |
|
|
case 'toAllot': |
|
|
case 'toAllot': |
|
|
this.toAllot() |
|
|
this.toAllot() |
|
|
|
|
|
case 'doExport': |
|
|
|
|
|
this.doExport() |
|
|
|
|
|
break |
|
|
break |
|
|
break |
|
|
case 'doClose': |
|
|
case 'doClose': |
|
|
this.doClose() |
|
|
this.doClose() |
|
@ -381,6 +391,31 @@ export default { |
|
|
this.$message({ showClose: true, type: 'error', message: '请选择风控人员' }) |
|
|
this.$message({ showClose: true, type: 'error', message: '请选择风控人员' }) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
doExport() { |
|
|
|
|
|
const loading = this.$loading({ |
|
|
|
|
|
lock: true, |
|
|
|
|
|
text: 'Loading', |
|
|
|
|
|
spinner: 'el-icon-loading', |
|
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
|
|
}) |
|
|
|
|
|
req.exportExcel(this.listQuery.params).then((resp) => { |
|
|
|
|
|
loading.close() |
|
|
|
|
|
const blob = new Blob([resp], { |
|
|
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
|
|
}) |
|
|
|
|
|
const fileName = '逾期车辆列表' + '.xls' |
|
|
|
|
|
const elink = document.createElement('a') |
|
|
|
|
|
elink.download = fileName |
|
|
|
|
|
elink.style.display = 'nonde' |
|
|
|
|
|
elink.href = URL.createObjectURL(blob) |
|
|
|
|
|
document.body.appendChild(elink) |
|
|
|
|
|
elink.click() |
|
|
|
|
|
URL.revokeObjectURL(elink.href) |
|
|
|
|
|
document.body.removeChild(elink) |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
loading.close() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
resetState() { |
|
|
resetState() { |
|
|
this.viewState = 1 |
|
|
this.viewState = 1 |
|
|
}, |
|
|
}, |
|
|