Pārlūkot izejas kodu

优化列表状态全部显示

wulanhaote
hbao pirms 3 gadiem
vecāks
revīzija
45f5df284f
1 mainītis faili ar 26 papildinājumiem un 18 dzēšanām
  1. +26
    -18
      src/views/homestead/index.vue

+ 26
- 18
src/views/homestead/index.vue Parādīt failu

@@ -54,6 +54,7 @@
items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
items.xzqk == '已流转' ? 'ylz' : '',
items.xzqk == '待流转' ? 'dlz' : '',
items.xzqk == '已流转待盘活' ? 'ylzdph' : '',
]"
>
{{ items.xzqk }}
@@ -1394,13 +1395,13 @@ export default {
$("#drawRemove").trigger("click");
$("#drawReset").trigger("click");
this.coordinateList = "";
getHouse(houseInfoList.id).then((res) => {
if (res.code == 200) {
this.farmhouseStatus=0;
this.houseInfoList.frontHouse =res.data.frontHouse;
this.houseInfoList.behindHouse =res.data.behindHouse;
}
})
// getHouse(houseInfoList.id).then((res) => {
// if (res.code == 200) {
// this.farmhouseStatus=0;
// this.houseInfoList.frontHouse =res.data.frontHouse;
// this.houseInfoList.behindHouse =res.data.behindHouse;
// }
// })
this.switchLoad();
}
});
@@ -1502,14 +1503,18 @@ export default {
this.coordinateList = "";
this.$toast("新建农地信息成功");
//查询图层
getLand(landInfoList.id).then((res) => {
console.log(res.data.frontland);
if (res.code == 200) {
this.farmhouseStatus=1;
this.landInfoList.frontland =res.data.frontland;
this.landInfoList.behindland =res.data.behindland;
}
})
// if(landInfoList.id !=null){
// console.log(landInfoList.id );
// getLand(landInfoList.id).then((res) => {
// console.log(res);
// console.log(res.data.frontland);
// if (res.code == 200) {
// this.farmhouseStatus=1;
// this.landInfoList.frontland =res.data.frontland;
// this.landInfoList.behindland =res.data.behindland;
// }
// })
// }
//列表更新
this.switchLoad();
}
@@ -3244,21 +3249,21 @@ export default {
}
.name_text {
font-size: 28px;
flex: 1;
flex: 0.5;
overflow: hidden; /*超出部分隐藏*/
white-space: nowrap; /*不换行*/
text-overflow: ellipsis; /*超出部分文字以...显示*/
}
.square_text {
font-size: 28px;
flex: 0.8;
flex: 0.4;
}
.operation_mian {
flex: 0 0 150px;

.describe {
font-size: 20px;
padding: 6px 12px;
padding: 6px 5px;
float: right;
color: #fff;
border-radius: 30px;
@@ -3278,6 +3283,9 @@ export default {
&.dlz {
background: rgb(255, 232, 76);
}
&.ylzdph {
background: rgb(228, 30, 100);
}
}
}
}


Notiek ielāde…
Atcelt
Saglabāt