From 98a44e94ecc76abd72b9817648ca4b91469b936a Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期六, 08 八月 2020 16:04:16 +0800 Subject: [PATCH] 添加退出登录,布局调整 --- src/pages/search/index/Searching.vue | 124 ++++++++++------------------------------- 1 files changed, 31 insertions(+), 93 deletions(-) diff --git a/src/pages/search/index/Searching.vue b/src/pages/search/index/Searching.vue index 7c00b8e..abb77ac 100644 --- a/src/pages/search/index/Searching.vue +++ b/src/pages/search/index/Searching.vue @@ -94,7 +94,7 @@ ></el-option> </el-select> </p> - <p class="p-date" style="width:19%"> + <p class="p-date" style="width:19%;vertical-align: top;"> <el-date-picker size="mini" v-model="searchTime" @@ -120,20 +120,8 @@ <b class="clear-searching" @click="clearSearch">閲嶇疆</b> </p> </div> - <div ref="mid" style="height:calc(100% - 72px)"> - <!-- <div id="searchMid" class="mid" ref="scrollContain" v-if="!VideoPhotoData.uploadDiaplay"> - <Card - :class="item.activeObject.id === VideoPhotoData.activeCard ? 'my-active-card' : ''" - v-for="(item, index) in VideoPhotoData.cards" - :key="index + 'a'" - :outHeight="'155px'" - :outWidth="cardWidth" - :data="item" - :showType="showType" - @detailsClick="getDetails($event, index)" - @addToBase="toAdd" - ></Card> - </div>--> + <div ref="mid" style="height:100%;overflow-y:auto;"> + <div id="searchMid" class="mid"> <div class="left-selection" v-if="VideoPhotoData.uploadDiaplay"> <upload-img ref="uploadImg" @labelDisabled="disabled"></upload-img> @@ -155,9 +143,21 @@ @addToBase="toAdd" ></Card> </div> + <div class="foot"> + <el-pagination + :current-page="VideoPhotoData.page" + @current-change="changePages" + @size-change="sizeChange" + :page-sizes="VideoPhotoData.pageSizeOption" + :page-size="VideoPhotoData.size" + layout="total, sizes, prev, pager, next, jumper" + :total="VideoPhotoData.total" + ></el-pagination> + </div> </div> + </div> - <div class="foot"> + <!-- <div class="foot"> <el-pagination :current-page="VideoPhotoData.page" @current-change="changePages" @@ -167,77 +167,17 @@ layout="total, sizes, prev, pager, next, jumper" :total="VideoPhotoData.total" ></el-pagination> - </div> + </div> --> </div> </div> - <hsc-window-style-metal class="windown-model"> - <hsc-window - v-for="(item, index) in CardList.addBaseList" - :closeButton="true" - @closebuttonclick="closeWindow(index)" - :key="index" - @update:height="resizeHeight" - @update:width="resizeWidth" - style="background:white; height:475px" - :left="center.x + index * 10" - :top="center.y + index * 10" - :resizable="true" - positionHint="center" - :isScrollable="true" - :minWidth="662" - :minHeight="479" - :maxWidth="10000" - :maxHeight="7000" - :height="defaultHeight" - :width="defaultWidth" - > - <div class="addToBase"> - <div class="topLabel">鍔犲叆搴曞簱</div> - <div class="items"> - <div class="lable"> - <p>榛戝悕鍗� ></p> - </div> - <div class="baseList"> - <el-checkbox-group v-model="VideoPhotoData.selectBlacks" @change="blackAngWhite"> - <div class="base" v-for="(item, index) in VideoPhotoData.blackList" :key="index"> - <el-checkbox - :label="item.value" - :title="item.title" - :disabled="item.disabled" - >{{item.title}}</el-checkbox> - </div> - </el-checkbox-group> - </div> - </div> - <div class="items"> - <div class="lable"> - <p>鐧藉悕鍗� ></p> - </div> - <div class="baseList"> - <el-checkbox-group v-model="VideoPhotoData.selectWhites" @change="blackAngWhite"> - <div class="base" v-for="(item, index) in VideoPhotoData.whiteList" :key="index"> - <el-checkbox - :label="item.value" - :title="item.title" - :disabled="item.disabled" - >{{item.title}}</el-checkbox> - </div> - </el-checkbox-group> - </div> - </div> - <div class="buttons"> - <el-button type="primary" @click="saveAddBase(item, index)">淇濆瓨</el-button> - <el-button type="default" @click="closeWindow(index)">鍙栨秷</el-button> - </div> - </div> - </hsc-window> - </hsc-window-style-metal> + </div> </template> <script> import Card from "@/components/subComponents/Card"; import UploadImg from "@/components/searching/UploadImg"; +//import CardWindow from "../components/cardWindow"; import bus from "./main"; export default { components: { @@ -300,17 +240,7 @@ // 鏆傛椂鍏抽棴璺宠浆 20200730 // if (this.$route.query.showType === "findByPic") { - if (0) { - this.VideoPhotoData.uploadDiaplay = true; - console.log("鍒璺宠繃鏉ョ殑浠ュ浘鎼滃浘"); - this.VideoPhotoData.picUrl = this.$route.query.picSmUrl; - this.VideoPhotoData.uploadImg = this.$route.query.picSmUrl; - this.VideoPhotoData.uploadType = true - this.VideoPhotoData.compTargetId = this.$route.query.targetId - this.VideoPhotoData.compTargetType = this.$route.query.compType - this.VideoPhotoData.size = 30 - this.VideoPhotoData.compareTabs = ["esData"]; - this.VideoPhotoData.findPerson2(); // 鏌ユ壘姝や汉 + if (this.VideoPhotoData.uploadDiaplay) { // this.$nextTick(() => { // this.$refs.uploadImg.rightSectionDisplay = true; // }); @@ -530,6 +460,7 @@ }) }, getDetails(ev, index) { + debugger //let obj = this.CardList.datalist[index]; this.CardList.datalist = this.VideoPhotoData.cards; let obj = this.CardList.datalist[index]; @@ -726,6 +657,13 @@ height: 100%; padding: 0px 20px; box-sizing: border-box; + + //涓存椂 + .el-carousel__item.is-active { + z-index: 0 !important; + } + //涓存椂 + .searching-right-nav { height: 50px; width: 100%; @@ -773,8 +711,8 @@ } } .mid { - width: 100%; - height: 100%; + //width: 100%; + //height: 100%; padding: 10px; overflow: auto; position: relative; @@ -884,7 +822,7 @@ width: 100%; height: 100%; .el-loading-spinner-search { - background: url("../../../assets/gif/searchLoading.gif") no-repeat; + background: url("/images/search/searchLoading.gif") no-repeat; } } } -- Gitblit v1.8.0