Browse Source

引入发送接口

master
xyiege 4 months ago
parent
commit
94bdf36597
  1. 9
      vue/afvue/src/api/scinfo.js
  2. 13
      vue/afvue/src/views/Sfilecompare.vue

9
vue/afvue/src/api/scinfo.js

@ -51,3 +51,12 @@ export function GetFileList(param){
params: param
})
}
// 发送zip文件
export function SendZipFile(data){
return axios({
url: '/sendZip',
method: 'POST',
data
})
}

13
vue/afvue/src/views/Sfilecompare.vue

@ -97,7 +97,7 @@
</template>
<script>
import { GetFileList, SerlistInUsing } from '@/api/scinfo'
import { GetFileList, SerlistInUsing,SendZipFile } from '@/api/scinfo'
export default {
name: 'Sfilecompare',
@ -322,6 +322,17 @@ export default {
//
let curpath = this.fspath
//
let param ={
sfiles: this.selectedFiles,
serverip: this.$refs.fsip.value,
curpath: curpath,
}
// post
SendZipFile(param).then(res=>{
console.log(res,"res")
})
},
//

Loading…
Cancel
Save