Commit 7c01e522 by zhangzhen

细节优化

parent 0e472f79
...@@ -174,7 +174,7 @@ import moment from "@/common/moment"; ...@@ -174,7 +174,7 @@ import moment from "@/common/moment";
this.list = list.map(item=>{ this.list = list.map(item=>{
return { return {
...item, ...item,
roolList: item.roolList.length ? item.roolList.map(val=>{ roolList: item.roolList && item.roolList.length ? item.roolList.map(val=>{
return { return {
...val, ...val,
colorStatus: val.recordsStatus>=0&& val.recordsStatus=== 0? 3: val.recordsStatus >= 0&& val.recordsStatus=== 1? 4: val.status colorStatus: val.recordsStatus>=0&& val.recordsStatus=== 0? 3: val.recordsStatus >= 0&& val.recordsStatus=== 1? 4: val.status
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</view> </view>
</view> </view>
<view class="facilitie-box"> <view class="facilitie-box">
<view v-for="(val,i) in item.facilities" :key="i" v-if="i<7" class='cu-tag radius bg-brown'> <view v-for="(val,i) in item.facilities" :key="i" v-if="i<=7" class='cu-tag radius bg-brown'>
<text>{{facilitieList[val]}}</text> <text>{{facilitieList[val]}}</text>
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment