|
|
@ -421,10 +421,29 @@ export default { |
|
|
|
this.uploadResultMesssage = '' |
|
|
|
}, |
|
|
|
recordImport() { |
|
|
|
this.dialogVisible = true |
|
|
|
this.updateAction = process.env.VUE_APP_BASE_API + '/riskcenter/v1/loanrepaymentschedule/importSleepHistoryData' |
|
|
|
this.fileList = [] |
|
|
|
this.uploadResultMesssage = '' |
|
|
|
const tip = '请确认是否生成生成休眠还款记录' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
req.importSleepHistoryData({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
loading.close() |
|
|
|
}).catch(e => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleChange(file) { |
|
|
|
this.uploadData.fileName = file.name |
|
|
|