Browse Source

调整

master
xyiege 4 months ago
parent
commit
5c873c1ad9
  1. 2
      aufs/core/sendzip.go
  2. 37
      vue/afvue/src/views/Sfilecompare.vue

2
aufs/core/sendzip.go

@ -48,6 +48,8 @@ func SendZip(w http.ResponseWriter, r *http.Request) {
http.Error(w, "remote server ip is blank!", http.StatusInternalServerError) http.Error(w, "remote server ip is blank!", http.StatusInternalServerError)
return return
} }
// 获取远程服务器信息
// 构建 // 构建
zipblock := ZipBlock{ zipblock := ZipBlock{
Basepath: "/www/wwwroot", Basepath: "/www/wwwroot",

37
vue/afvue/src/views/Sfilecompare.vue

@ -28,7 +28,7 @@
</ul> </ul>
<div class="fbdiv" v-if="fsclist.length > 0"> <div class="fbdiv" v-if="fsclist.length > 0">
<input type="hidden" name="curpath" :value="fspath" /> <input type="hidden" name="curpath" :value="fspath" />
<button class="fbtn">同步选中的文件</button> <!-- <button class="fbtn">同步选中的文件</button> -->
</div> </div>
</form> </form>
</div> </div>
@ -46,22 +46,22 @@
<!-- 选择服务器 --> <!-- 选择服务器 -->
<select class="selbox" name="ssip" ref="ssip"> <select class="selbox" name="ssip" ref="ssip">
<option value="0">请选择目标服务器</option> <option value="0">请选择目标服务器</option>
<option v-for="item in uslist" :value="item.addr + ':' + item.port">{{ item.addr + ':' + item.port <option v-for="item in uslist" :value="item.addr + ':' + item.port">{{ item.addr + ':' + item.port}}</option>
}}
</option>
</select> </select>
<input name="path" class="inputbox" type="text" placeholder="/" autocomplete="off" v-model="sspath"> <input name="path" class="inputbox" type="text" placeholder="/" autocomplete="off" v-model="sspath">
<button @click="getSflist">GO</button> <button @click="getSflist">GO</button>
<button @click="goParent">🔙</button> <button @click="goParent">🔙</button>
</div> </div>
<div class="sflist"> <div class="sflist">
<ul> <ul>
<li v-for="item in ssclist" :key="item" :data-index="index"> <li v-for="item in ssclist" :key="item" :data-index="index">
<input type="checkbox" :value="item.path" class="sfchkbox" :name="'ssbox' + index" :ref="'fsbox' + index"/> <input type="checkbox" :value="item.path" class="sfchkbox" :name="'ssbox' + index" :ref="'fsbox' + index"/>
<a class="haschild" @click="goIntoDir(item.path, 2)" v-if="item.isdir"><i></i>{{ item.path }}</a> <a class="haschild" @click="goIntoDir(item.path, 2)" v-if="item.isdir "><i></i>{{ item.path }}</a>
<span v-else><i :class="'tb tb-'+item.suffix"></i>{{ item.path }}</span> <span v-else><i :class="'tb tb-'+item.suffix"></i>{{ item.path }}</span>
</li> </li>
</ul> </ul>
</div> </div>
@ -85,9 +85,8 @@
<!-- 待发送文件 --> <!-- 待发送文件 -->
<div class="fsend"> <div class="fsend">
<div class="fsendcon"> <div class="fsendcon">
<textarea name="needsend"> <!-- 暂未想好放啥 -->
{{ selectedFiles }} <button class="fbtn">同步选中的文件</button>
</textarea>
</div> </div>
</div> </div>
@ -117,6 +116,9 @@ export default {
isMenuVisible: false, // isMenuVisible: false, //
menuTop: 0, // menuTop: 0, //
menuLeft: 0, // menuLeft: 0, //
isShowDir: false, //
} }
}, },
mounted() { mounted() {
@ -394,18 +396,18 @@ export default {
position: relative; position: relative;
} }
/* 操作按钮 */ /* 操作按钮 */
.sfcon .sflist .fbdiv{ /* .sfcon .sflist .fbdiv{
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
height: 46px; height: 46px;
background-color: #00bd7e; background-color: #00bd7e;
width: 100%; width: 100%;
} } */
.sfcon .sflist .fbdiv .fbtn{ /* .sfcon .sflist .fbdiv .fbtn{
margin: 12px; margin: 12px;
} } */
.sfind { .sfind {
width: 100%; width: 100%;
@ -549,15 +551,22 @@ export default {
/** 发送文件 */ /** 发送文件 */
.fsend{ .fsend{
float: left; float: left;
height: 120px; height: 60px;
background-color: #f5f5f5; background-color: #f3efef;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
position:fixed;
bottom: 0;
left: 0;
} }
.fsend .fsendcon{ .fsend .fsendcon{
margin-left: auto; margin-left: auto;
padding: 12px; padding: 12px;
background-color: #fff; background-color: #fff;
min-height: 60px;
width: 1200px;
margin-left: auto;
margin-right: auto;
} }
</style> </style>
Loading…
Cancel
Save