|
@@ -181,7 +181,7 @@
|
|
|
>
|
|
|
<template v-if="from.fileUrl">
|
|
|
<div class="excelname">
|
|
|
- <div>{{from.extension}}</div>
|
|
|
+ <div>{{from.name}}</div>
|
|
|
<i
|
|
|
class="el-icon-success marleft10"
|
|
|
style="color: rgb(0, 168, 112);"
|
|
@@ -233,8 +233,8 @@
|
|
|
</template>
|
|
|
|
|
|
<div style="margin-left:50px;" class="flex">
|
|
|
- <div class="excelname mg-r-10" v-if="from.import">
|
|
|
- <div>{{from.import.name}}</div>
|
|
|
+ <div class="excelname mg-r-10" v-if="from.extension">
|
|
|
+ <div>{{from.extension}}</div>
|
|
|
<i
|
|
|
class="el-icon-success marleft10"
|
|
|
style="color: rgb(0, 168, 112);"
|
|
@@ -252,7 +252,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
- >{{from.import?'重新上传导入模板':'上传导入模板'}}</el-button>
|
|
|
+ >{{from.extension?'重新上传导入模板':'上传导入模板'}}</el-button>
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -722,6 +722,7 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.from.id = res.data.id
|
|
|
this.from.extension = res.data.extension //文件名称
|
|
|
+ this.from.name=res.data.name
|
|
|
this.from.fileUrl = res.data.fileUrl //文件路径
|
|
|
let routeUrl = res.data.fileUrl
|
|
|
let pSrc = routeUrl + '?r=' + new Date()
|
|
@@ -1192,6 +1193,8 @@ export default {
|
|
|
|
|
|
uploadcoverfileExcel(formData).then(() => {
|
|
|
this.from.import=file.raw;
|
|
|
+ console.log(file.raw,'file.raw');
|
|
|
+ this.from.extension=file.raw.name
|
|
|
this.$message({
|
|
|
message: '上传文件成功',
|
|
|
type: 'success'
|