Browse Source

增加路径

master
xyiege 3 months ago
parent
commit
565ad97e59
  1. 14
      vue/afvue/src/views/Flist.vue

14
vue/afvue/src/views/Flist.vue

@ -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;

Loading…
Cancel
Save