Commit 5b6aed29 by 王志慧

fixed

1 parent 5163a1e3
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</el-button> </el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" /> <input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div> </div>
<a :href="tempUrl" target="_blank">下载模板</a> <a href="javascript:void(0);" @click="exportLink">下载模板</a>
</div> </div>
</el-form-item> </el-form-item>
<div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div> <div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div>
...@@ -436,6 +436,9 @@ export default { ...@@ -436,6 +436,9 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
exportLink(e) {
window.location.href = this.tempUrl
},
handleSaveImport() { handleSaveImport() {
if (this.batchForm.isUpload) { if (this.batchForm.isUpload) {
this.handleExportError() this.handleExportError()
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
if (res.list) { if (res.list) {
for (let item of res.list) { for (let item of res.list) {
if (item.id === queryData.id) { if (item.id === queryData.id) {
// console.log(item,'item')
delFlag = 1 delFlag = 1
icon = 'select' icon = 'select'
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!