Browse Source

增加路径

master
xyiege 5 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="wfbox">
<div class="wfso"> <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> <button class="wfbtn">GO</button>
</div> </div>
<div class="fbox"> <div class="fbox">
@ -40,7 +40,8 @@ export default {
return { return {
srcip: '', srcip: '',
dstip: '', dstip: '',
flist: [] flist: [],
spath: '/', //
} }
}, },
mounted() { mounted() {
@ -50,9 +51,10 @@ export default {
methods: { methods: {
getFlist() { getFlist() {
GetFileList({ GetFileList({
srcip: this.srcip srcip: this.srcip,
path: this.spath
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
this.flist = res.data.list this.flist = res.data.list
}) })
} }
@ -61,9 +63,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
h1 {
color: #333;
}
.wfbox{ .wfbox{
padding:12px; padding:12px;
background-color: #fff; background-color: #fff;

Loading…
Cancel
Save