|
@@ -38,7 +38,16 @@
|
|
style="display:inline-block"
|
|
style="display:inline-block"
|
|
v-else
|
|
v-else
|
|
:action="action"
|
|
:action="action"
|
|
- :file-list="fileList">
|
|
|
|
|
|
+ :file-list="fileList"
|
|
|
|
+ :before-upload="handleBefore"
|
|
|
|
+ :on-success="handleSuccess"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :headers="{
|
|
|
|
+ Authorization:token
|
|
|
|
+ }"
|
|
|
|
+ :data="{
|
|
|
|
+ companyId: 12
|
|
|
|
+ }">
|
|
<el-button size="small" type="primary">{{item.name}}</el-button>
|
|
<el-button size="small" type="primary">{{item.name}}</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
<span class="prompt" v-if="item.message">{{item.message}}</span>
|
|
<span class="prompt" v-if="item.message">{{item.message}}</span>
|
|
@@ -67,6 +76,7 @@ export default {
|
|
form: {},
|
|
form: {},
|
|
date: null,
|
|
date: null,
|
|
fileList: [],
|
|
fileList: [],
|
|
|
|
+ token: localStorage.getItem('token'),
|
|
action: process.env.VUE_APP_API + '/admin/resumeInfo/batchUploadResume'
|
|
action: process.env.VUE_APP_API + '/admin/resumeInfo/batchUploadResume'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -93,6 +103,15 @@ export default {
|
|
this.date && this.date.length && (reqdata.beginTime = this.date[0])
|
|
this.date && this.date.length && (reqdata.beginTime = this.date[0])
|
|
this.date && this.date.length && (reqdata.endTime = this.date[1])
|
|
this.date && this.date.length && (reqdata.endTime = this.date[1])
|
|
this.$emit(item.method, reqdata)
|
|
this.$emit(item.method, reqdata)
|
|
|
|
+ },
|
|
|
|
+ handleBefore (file) {
|
|
|
|
+ if (file.type !== 'application/x-zip-compressed') {
|
|
|
|
+ this.$message.error('请上传zip格式')
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleSuccess (result) {
|
|
|
|
+ this.$emit('success', result)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|