|
@@ -67,7 +67,8 @@
|
|
|
<span class='edit-icon corner-con' @click='goToEditer'>
|
|
|
<img src='@/assets/imgs/bjs.png' alt />
|
|
|
<!-- 角标 -->
|
|
|
- <span v-if='draftNum' class='corner' :style='{lineHeight : draftNum > 99 ?"10px":"18px"}'>{{draftNum > 99 ? '...' : draftNum}}</span>
|
|
|
+ <!-- <span v-if='draftNum' class='corner' :style='{lineHeight : draftNum > 99 ?"10px":"18px"}'>{{draftNum > 99 ? '...' : draftNum}}</span> -->
|
|
|
+ <span v-if='draftNum' class='corner'></span>
|
|
|
</span>
|
|
|
</el-tooltip>
|
|
|
|
|
@@ -75,7 +76,8 @@
|
|
|
<span v-else class='edit-icon2 corner-con'>
|
|
|
<img src='@/assets/imgs/bjs.png' alt />
|
|
|
<!-- 角标 -->
|
|
|
- <span v-if='draftNum' class='corner' :style='{lineHeight : draftNum > 99 ?"10px":"18px"}'>{{draftNum > 99 ? '...' : draftNum}}</span>
|
|
|
+ <!-- <span v-if='draftNum' class='corner' :style='{lineHeight : draftNum > 99 ?"10px":"18px"}'>{{draftNum > 99 ? '...' : draftNum}}</span> -->
|
|
|
+ <span v-if='draftNum' class='corner'></span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class='select-floor' v-if='isFloor'>
|
|
@@ -161,6 +163,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: { lengendView, legendRemarks, lengendEdit },
|
|
|
+ watch: {
|
|
|
+ // 监听 vuex 中currentFloor的变化,切换楼层后,调用接口查询,显示右下角小红点
|
|
|
+ '$store.state.currentFloor': {
|
|
|
+ handler(newV, oldV) {
|
|
|
+ if (newV.gname !== oldV.gname) {
|
|
|
+ clearInterval(this.timer)
|
|
|
+ this.getDraftNum()
|
|
|
+ this.timer = setInterval(() => {
|
|
|
+ this.getDraftNum()
|
|
|
+ }, this.interval)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
/**
|
|
|
* @name getDraftNum
|
|
@@ -168,7 +185,8 @@ export default {
|
|
|
*/
|
|
|
async getDraftNum() {
|
|
|
let res = null,
|
|
|
- floorId = this.$cookie.get('floorMapId'),
|
|
|
+ // floorId = this.$cookie.get('floorMapId'),
|
|
|
+ floorId = this.$store.state.currentFloor.gname,
|
|
|
data = {
|
|
|
Distinct: true,
|
|
|
Filters: `projectId='${this.plazaId}';isPub=false;floorId='${floorId}'`,
|
|
@@ -519,11 +537,16 @@ export default {
|
|
|
position: relative;
|
|
|
.corner {
|
|
|
position: absolute;
|
|
|
- right: -8px;
|
|
|
- top: 0;
|
|
|
+ // right: -8px;
|
|
|
+ // top: 0;
|
|
|
+ // display: inline-block;
|
|
|
+ // width: 18px;
|
|
|
+ // height: 18px;
|
|
|
+ right: 3px;
|
|
|
+ top: 3px;
|
|
|
display: inline-block;
|
|
|
- width: 18px;
|
|
|
- height: 18px;
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
background: @red;
|
|
|
border-radius: 90px;
|
|
|
font-size: 12px;
|