Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -86,8 +86,8 @@ | ... | @@ -86,8 +86,8 @@ |
86 | <btn nativeType="cz" @click="resetForm">重置</btn> | 86 | <btn nativeType="cz" @click="resetForm">重置</btn> |
87 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 87 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
88 | <el-upload ref="upload" style="display:inline-block;margin-left: 10px" action="" :auto-upload="false" | 88 | <el-upload ref="upload" style="display:inline-block;margin-left: 10px" action="" :auto-upload="false" |
89 | :limit="1" accept=".xml" :show-file-list="false" | 89 | accept=".xml" :show-file-list="false" |
90 | :file-list="fileList" :before-upload="uploadRecord" :on-change="fileChange"> | 90 | :before-upload="uploadRecord" :on-change="fileChange"> |
91 | <btn nativeType="cx">xml导入</btn> | 91 | <btn nativeType="cx">xml导入</btn> |
92 | </el-upload> | 92 | </el-upload> |
93 | </el-form-item> | 93 | </el-form-item> |
... | @@ -128,7 +128,6 @@ | ... | @@ -128,7 +128,6 @@ |
128 | }, | 128 | }, |
129 | data () { | 129 | data () { |
130 | return { | 130 | return { |
131 | fileList: [], | ||
132 | pickerOptionsStart: { | 131 | pickerOptionsStart: { |
133 | disabledDate: (time) => { | 132 | disabledDate: (time) => { |
134 | let endDateVal = this.form.receiveEndTime; | 133 | let endDateVal = this.form.receiveEndTime; |
... | @@ -240,6 +239,7 @@ | ... | @@ -240,6 +239,7 @@ |
240 | }, | 239 | }, |
241 | methods: { | 240 | methods: { |
242 | uploadRecord (file) { | 241 | uploadRecord (file) { |
242 | console.log(file, 'eee11111111111111'); | ||
243 | this.requested = true | 243 | this.requested = true |
244 | this.files = file; | 244 | this.files = file; |
245 | const extension = file.name.split('.')[1] === 'xml' | 245 | const extension = file.name.split('.')[1] === 'xml' | ... | ... |
-
Please register or sign in to post a comment