Commit 21444288 authored by 黄奎's avatar 黄奎

新增删除附件

parent 9f3f7bcd
...@@ -1091,6 +1091,9 @@ ...@@ -1091,6 +1091,9 @@
<template v-for="(subItem,subIndex) in teamPrice.ContractArray"> <template v-for="(subItem,subIndex) in teamPrice.ContractArray">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.Url,subItem.Name)">{{subItem.Name}}</a> @click="downloadFile(subItem.Url,subItem.Name)">{{subItem.Name}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a>
</template> </template>
</template> </template>
</td> </td>
...@@ -1135,6 +1138,10 @@ ...@@ -1135,6 +1138,10 @@
} }
}, },
methods: { methods: {
//删除文件
DeleteFile(subIndex) {
this.teamPrice.ContractArray.splice(subIndex, 1);
},
//下载文件 //下载文件
downloadFile(fileUrl, fileName) { downloadFile(fileUrl, fileName) {
const link = document.createElement('a'); const link = document.createElement('a');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment