|
@@ -4,11 +4,11 @@
|
|
|
* @Autor: XuTongZhang
|
|
|
* @Date: 2020-07-30 10:17:25
|
|
|
* @LastEditors : yuanrunwei
|
|
|
- * @LastEditTime : 2021-02-05 17:11:16
|
|
|
+ * @LastEditTime : 2021-02-07 19:47:19
|
|
|
-->
|
|
|
<template>
|
|
|
<div class="indexPage">
|
|
|
- <v-input :btn="btn" :list="list" @search="search" @exports="exports" @upload="upload=true" @excel="handleExcel"></v-input>
|
|
|
+ <v-input :btn="btn" :list="list" @search="search" @exports="exports" @upload="upload=true" @excel="handleExcel" @success="handleSuccess"></v-input>
|
|
|
<v-table :table="table" :tableList="tableList" :sortType="true" :queryData="queryData" :form="searchForm" @details="details" @update="update" @duplicate="handleDuplicate" @delete="handleDelete"></v-table>
|
|
|
<v-pager @page="callPage" :total="totalrecords"></v-pager>
|
|
|
<!-- <resume :dialogFormVisible="dialogFormVisible" :close="close" :info="info" :searchForm="searchForm" :queryData="queryData"></resume> -->
|
|
@@ -322,7 +322,7 @@ export default {
|
|
|
method: 'upload'
|
|
|
},
|
|
|
{
|
|
|
- name: '导入简历',
|
|
|
+ name: '批量导入简历',
|
|
|
type: 'upload',
|
|
|
method: 'excel'
|
|
|
}
|
|
@@ -648,6 +648,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ handleSuccess (result) {
|
|
|
+ if (result.list.length) {
|
|
|
+ console.log(111)
|
|
|
+ this.$alert(`
|
|
|
+ <div>以下文件上传失败,请检查无误后重新上传</div>
|
|
|
+ <div>${result.list}</div>
|
|
|
+ `, '上传提示', {
|
|
|
+ dangerouslyUseHTMLString: true
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|