Authored by zhangtianqi

禅道:

@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 :showSelection="false" 38 :showSelection="false"
39 :showTools="true" 39 :showTools="true"
40 :total="queryParams.count" 40 :total="queryParams.count"
41 - @loaddata="loaddata"> 41 + @loaddata="getVulnerabilityList">
42 <template #default="{row,prop,column}"> 42 <template #default="{row,prop,column}">
43 <el-popover placement="right" :width="700" trigger="click" :offset="prop=='remark'?-600:0"> 43 <el-popover placement="right" :width="700" trigger="click" :offset="prop=='remark'?-600:0">
44 <template #reference> 44 <template #reference>
@@ -94,7 +94,9 @@ export default { @@ -94,7 +94,9 @@ export default {
94 upload.value.handleStart(file) 94 upload.value.handleStart(file)
95 } 95 }
96 const handleUploadChange = (uploadFile)=>{ 96 const handleUploadChange = (uploadFile)=>{
97 - docForm.value.file = uploadFile.raw; 97 + let formData = new FormData();
  98 + formData.append('file',uploadFile)
  99 + docForm.value.file = formData;
98 } 100 }
99 101
100 let docForm = Vue.ref({ 102 let docForm = Vue.ref({
@@ -217,7 +219,13 @@ export default { @@ -217,7 +219,13 @@ export default {
217 219
218 // 下载文件 220 // 下载文件
219 const handleDownload = (row)=>{ 221 const handleDownload = (row)=>{
  222 + proxy.$http.get('/api-web/vulnerabilities/download',{
  223 + path:row.filePath,
  224 + name:row.fileName,
  225 + }, function (res) {
  226 + console.log(res);
220 227
  228 + })
221 } 229 }
222 230
223 // 获取当前登陆人所属厂商 231 // 获取当前登陆人所属厂商