File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 131
131
<el-table-column label =" { { .FieldDesc} } " prop =" { { .FieldJson} } " width =" 200" >
132
132
<template #default =" scope" >
133
133
<div class =" file-list" >
134
- <el-tag v-for =" file in scope.row.{ { .FieldJson} } " :key =" file.uid" @click =" downloadFile (file.url)" >{ {" {{" } }file.name{ {" }}" } }</el-tag >
134
+ <el-tag v-for =" file in scope.row.{ { .FieldJson} } " :key =" file.uid" @click =" onDownloadFile (file.url)" >{ {" {{" } }file.name{ {" }}" } }</el-tag >
135
135
</div >
136
136
</template >
137
137
</el-table-column >
@@ -607,7 +607,7 @@ getDataSourceFunc()
607
607
<el-table-column label =" { { .FieldDesc} } " prop =" { { .FieldJson} } " width =" 200" >
608
608
<template #default =" scope" >
609
609
<div class =" file-list" >
610
- <el-tag v-for =" file in scope.row.{ { .FieldJson} } " :key =" file.uid" @click =" downloadFile (file.url)" >{ {" {{" } }file.name{ {" }}" } }</el-tag >
610
+ <el-tag v-for =" file in scope.row.{ { .FieldJson} } " :key =" file.uid" @click =" onDownloadFile (file.url)" >{ {" {{" } }file.name{ {" }}" } }</el-tag >
611
611
</div >
612
612
</template >
613
613
</el-table-column >
@@ -1297,11 +1297,6 @@ const enterDialog = async () => {
1297
1297
}
1298
1298
} )
1299
1299
}
1300
- { { if .HasFile } }
1301
- const downloadFile = (url ) => {
1302
- window.open(getUrl(url), ' _blank' )
1303
- }
1304
- { { end} }
1305
1300
1306
1301
const detailFrom = ref ({ } )
1307
1302
Original file line number Diff line number Diff line change 131
131
<el-table-column label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="200">
132
132
<template #default="scope">
133
133
<div class="file-list">
134
- <el-tag v-for="file in scope.row.{{.FieldJson}}" :key="file.uid" @click="downloadFile (file.url)">{{"{{"}}file.name{{"}}"}}</el-tag>
134
+ <el-tag v-for="file in scope.row.{{.FieldJson}}" :key="file.uid" @click="onDownloadFile (file.url)">{{"{{"}}file.name{{"}}"}}</el-tag>
135
135
</div>
136
136
</template>
137
137
</el-table-column>
@@ -607,7 +607,7 @@ getDataSourceFunc()
607
607
<el-table-column label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="200">
608
608
<template #default="scope">
609
609
<div class="file-list">
610
- <el-tag v-for="file in scope.row.{{.FieldJson}}" :key="file.uid" @click="downloadFile (file.url)">{{"{{"}}file.name{{"}}"}}</el-tag>
610
+ <el-tag v-for="file in scope.row.{{.FieldJson}}" :key="file.uid" @click="onDownloadFile (file.url)">{{"{{"}}file.name{{"}}"}}</el-tag>
611
611
</div>
612
612
</template>
613
613
</el-table-column>
@@ -1295,11 +1295,6 @@ const enterDialog = async () => {
1295
1295
}
1296
1296
})
1297
1297
}
1298
- {{if .HasFile }}
1299
- const downloadFile = (url) => {
1300
- window.open(getUrl(url), '_blank')
1301
- }
1302
- {{end}}
1303
1298
1304
1299
const detailFrom = ref({})
1305
1300
You can’t perform that action at this time.
0 commit comments