|
|
|
@ -8,7 +8,7 @@ |
|
|
|
<option value="0">请选择源服务器</option> |
|
|
|
<option v-for="item in uslist" :value="item.addr+':'+item.port">{{ item.addr+':'+item.port }}</option> |
|
|
|
</select> |
|
|
|
<input name="path" class="inputbox" type="text" placeholder="/" v-model="fspath"> |
|
|
|
<input name="path" class="inputbox" type="text" placeholder="/" autocomplete="off" v-model="fspath"> |
|
|
|
<button @click="getFlist">Go</button> |
|
|
|
<button @click="goParent">🔙</button> |
|
|
|
</div> |
|
|
|
@ -34,7 +34,7 @@ |
|
|
|
<option value="0">请选择源服务器</option> |
|
|
|
<option v-for="item in uslist" :value="item.addr+':'+item.port">{{ item.addr+':'+item.port }}</option> |
|
|
|
</select> |
|
|
|
<input name="path" class="inputbox" type="text" placeholder="192.168.66.92:9098" v-model="sspath"> |
|
|
|
<input name="path" class="inputbox" type="text" placeholder="/" autocomplete="off" v-model="sspath"> |
|
|
|
<button @click="getSflist">GO</button> |
|
|
|
<button @click="goParent">🔙</button> |
|
|
|
</div> |
|
|
|
@ -49,7 +49,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="tips" > |
|
|
|
<span v-if="ssclist.length > 0">当前路径:{{sspath}} ,文件数量:{{ fsclist.length }}</span> |
|
|
|
<span v-if="ssclist.length > 0">当前路径:{{sspath}} ,文件数量:{{ ssclist.length }}</span> |
|
|
|
<span v-else>当前服务器:{{ssip}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -151,7 +151,7 @@ export default { |
|
|
|
if(nflag == 1){ |
|
|
|
// 如果list 为空 |
|
|
|
let vlist = res.data.list |
|
|
|
if(vlist.length == 0){ |
|
|
|
if(vlist==null || vlist.length == 0){ |
|
|
|
npath="/" |
|
|
|
} |
|
|
|
this.fspath = npath |
|
|
|
@ -159,7 +159,7 @@ export default { |
|
|
|
} |
|
|
|
if(nflag == 2){ |
|
|
|
let vlist = res.data.list |
|
|
|
if(vlist.length == 0){ |
|
|
|
if(vlist==null || vlist.length == 0){ |
|
|
|
npath="/" |
|
|
|
} |
|
|
|
this.sspath = npath |
|
|
|
@ -273,7 +273,7 @@ export default { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
.sfcon .sflist{ |
|
|
|
min-height: 560px; |
|
|
|
min-height: 460px; |
|
|
|
overflow-y: auto; |
|
|
|
background-color: #f5f5f5; |
|
|
|
} |
|
|
|
|