|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
<div class="wfbox"> |
|
|
|
<div class="wfso"> |
|
|
|
<input class="wfinput" type="text" placeholder="请输入文件路径" v-model="srcpath"> |
|
|
|
<input class="wfinput" type="text" placeholder="请输入文件路径" v-model="spath"> |
|
|
|
<button class="wfbtn">GO</button> |
|
|
|
</div> |
|
|
|
<div class="fbox"> |
|
|
|
@ -40,7 +40,8 @@ export default { |
|
|
|
return { |
|
|
|
srcip: '', |
|
|
|
dstip: '', |
|
|
|
flist: [] |
|
|
|
flist: [], |
|
|
|
spath: '/', // 当前的目录 |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -50,9 +51,10 @@ export default { |
|
|
|
methods: { |
|
|
|
getFlist() { |
|
|
|
GetFileList({ |
|
|
|
srcip: this.srcip |
|
|
|
srcip: this.srcip, |
|
|
|
path: this.spath |
|
|
|
}).then(res => { |
|
|
|
console.log(res) |
|
|
|
// console.log(res) |
|
|
|
this.flist = res.data.list |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -61,9 +63,7 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
h1 { |
|
|
|
color: #333; |
|
|
|
} |
|
|
|
|
|
|
|
.wfbox{ |
|
|
|
padding:12px; |
|
|
|
background-color: #fff; |
|
|
|
|