mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 02:09:37 +08:00
修改了对应的bug
This commit is contained in:
parent
736d66e304
commit
cab8c1637c
@ -130,9 +130,9 @@ export function getCustomer (parameter) {
|
||||
})
|
||||
}
|
||||
|
||||
export function importData (data) {
|
||||
export function importData (data,customerId) {
|
||||
return axios({
|
||||
url: api.icsCustomerStaff + '/importData',
|
||||
url: api.icsCustomerStaff + '/importData?customerId='+ customerId,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
|
@ -780,41 +780,30 @@ export default {
|
||||
const baseURL = process.env.VUE_APP_API_BASE_URL
|
||||
window.open(`${baseURL}/admin/staff/exportTemplate`)
|
||||
},
|
||||
// downloadFile(data) {
|
||||
// let fileName = '客户导入模板'
|
||||
//
|
||||
// let link = document.createElement('a')
|
||||
// let blob = new Blob([data], { type: 'application/vnd.ms-excel;charset=utf-8' })
|
||||
// console.log(blob)
|
||||
// link.style.display = 'none'
|
||||
// link.download = fileName + '.xlsx'
|
||||
// link.href = URL.createObjectURL(blob)
|
||||
// // link.setAttribute('download', fileName+'.xlsx');
|
||||
// document.body.appendChild(link)
|
||||
// link.click()
|
||||
// URL.revokeObjectURL(link.href) // 释放URL 对象
|
||||
// document.body.removeChild(link)
|
||||
// },
|
||||
|
||||
|
||||
|
||||
customRequest(file) {
|
||||
// file 是上传的文件 其内容会在放在下面截图中
|
||||
// 后端需要接受的参数是 formData数据,
|
||||
// uploadFile 我自己的接口
|
||||
|
||||
let customerId = this.$route.query.customerId
|
||||
const formData = new FormData()
|
||||
formData.append('file', file.file)
|
||||
console.log(file)
|
||||
importData(formData).then(res => {
|
||||
importData(formData,customerId).then(res => {
|
||||
if (res.code == 0) {
|
||||
// 调用组件内方法, 设置为成功状态
|
||||
file.onSuccess(res, file.file)
|
||||
file.status = 'done'
|
||||
this.visible = false
|
||||
this.$message.success(res.msg)
|
||||
this.$message.success(res.data)
|
||||
this.getContastsList()
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
file.onError()
|
||||
file.status = 'error'
|
||||
this.getContastsList()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -4,8 +4,8 @@
|
||||
<a-form layout="inline">
|
||||
<a-row :gutter="48">
|
||||
<a-col :md="5" :sm="15">
|
||||
<a-form-item label="会议主体id">
|
||||
<a-input placeholder="请输入会议主体id" v-model="queryParam.showroomId"/>
|
||||
<a-form-item label="展厅主题">
|
||||
<a-input placeholder="请输入展厅主题" v-model="queryParam.title"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="8" :sm="24">
|
||||
|
@ -503,9 +503,9 @@ export default {
|
||||
e.preventDefault()
|
||||
this.form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
console.log('Received values of form: ', values)
|
||||
// 选择企业
|
||||
values.ticketCustomerVo = this.selectEnterpriseDataList
|
||||
values.num = this.publicSendNum
|
||||
this.confirmLoading = true
|
||||
saveTicket(values).then(res => {
|
||||
if (res.code === 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user