Quellcode durchsuchen

优化列表状态全部显示

wulanhaote
hbao vor 3 Jahren
Ursprung
Commit
45f5df284f
1 geänderte Dateien mit 26 neuen und 18 gelöschten Zeilen
  1. +26
    -18
      src/views/homestead/index.vue

+ 26
- 18
src/views/homestead/index.vue Datei anzeigen

@@ -54,6 +54,7 @@
items.xzqk == '待流转待盘活' ? 'dlzdph' : '', items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
items.xzqk == '已流转' ? 'ylz' : '', items.xzqk == '已流转' ? 'ylz' : '',
items.xzqk == '待流转' ? 'dlz' : '', items.xzqk == '待流转' ? 'dlz' : '',
items.xzqk == '已流转待盘活' ? 'ylzdph' : '',
]" ]"
> >
{{ items.xzqk }} {{ items.xzqk }}
@@ -1394,13 +1395,13 @@ export default {
$("#drawRemove").trigger("click"); $("#drawRemove").trigger("click");
$("#drawReset").trigger("click"); $("#drawReset").trigger("click");
this.coordinateList = ""; 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(); this.switchLoad();
} }
}); });
@@ -1502,14 +1503,18 @@ export default {
this.coordinateList = ""; this.coordinateList = "";
this.$toast("新建农地信息成功"); 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(); this.switchLoad();
} }
@@ -3244,21 +3249,21 @@ export default {
} }
.name_text { .name_text {
font-size: 28px; font-size: 28px;
flex: 1;
flex: 0.5;
overflow: hidden; /*超出部分隐藏*/ overflow: hidden; /*超出部分隐藏*/
white-space: nowrap; /*不换行*/ white-space: nowrap; /*不换行*/
text-overflow: ellipsis; /*超出部分文字以...显示*/ text-overflow: ellipsis; /*超出部分文字以...显示*/
} }
.square_text { .square_text {
font-size: 28px; font-size: 28px;
flex: 0.8;
flex: 0.4;
} }
.operation_mian { .operation_mian {
flex: 0 0 150px; flex: 0 0 150px;


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


Laden…
Abbrechen
Speichern