|
@@ -13,15 +13,15 @@
|
|
|
</view>
|
|
|
<view style="padding-top: 120rpx;" v-if="!visable">
|
|
|
<view style="margin: 20rpx;">
|
|
|
- <u-search placeholder="请输入搜索内容" v-model="nameValue" :action-style="{'font-size':'40rpx'}" @custom="getProjectList()"></u-search>
|
|
|
+ <u-search placeholder="请输入搜索内容" v-model="nameValue" :show-action="false" :action-style="{'font-size':'40rpx'}" @search="getProjectList()"></u-search>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="padding-top: 300rpx;">
|
|
|
- <view v-for="(item,index) in list" :key="index" class="qxwxbox">
|
|
|
- <view class="font-forty-eight qxwx-nav" v-if="power.includes(item.dictValue)&&item.visable"
|
|
|
+ <view v-for="(item,index) in list" :key="index" class="qxwxbox" v-if="power.includes(item.dictValue)&&item.visable">
|
|
|
+ <view class="font-forty-eight qxwx-nav"
|
|
|
@click="topage(item)">
|
|
|
- <image src="/static/icon/qxwx.png" mode="" style="height: 100rpx;width: 100rpx;"></image>
|
|
|
- <span class="qxwx-navtitle">{{item.dictLabel}}</span>
|
|
|
+ <image :src="item.image" mode="" style="height: 100rpx;width: 100rpx;"></image>
|
|
|
+ <span class="qxwx-navtitle" >{{item.dictLabel}}</span>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -131,13 +131,14 @@
|
|
|
this.visable = false
|
|
|
this.list1 = []
|
|
|
this.list.forEach(item => {
|
|
|
- if (item.value == '001' || item.value == '002') {
|
|
|
+ if (item.dictValue == '1' || item.dictValue == '2') {
|
|
|
item.visable = true
|
|
|
} else {
|
|
|
item.visable = false
|
|
|
}
|
|
|
this.list1.push(item)
|
|
|
})
|
|
|
+ this.visable=false
|
|
|
this.list = this.list1
|
|
|
uni.navigateTo({
|
|
|
url
|
|
@@ -151,22 +152,29 @@
|
|
|
this.list1 = []
|
|
|
this.list.forEach(item => {
|
|
|
item.visable = true
|
|
|
+ if(item.dictValue==0)
|
|
|
+ {
|
|
|
+ item.image='../../static/icon/qxwx.png'
|
|
|
+ }else{
|
|
|
+ item.image='../../static/icon/xxdy.png'
|
|
|
+ }
|
|
|
this.list1.push(item)
|
|
|
})
|
|
|
this.list1.push({
|
|
|
dictLabel: '调压箱管理',
|
|
|
dictValue: '2',
|
|
|
- visable: false
|
|
|
+ visable: false,
|
|
|
+ image:'../../static/icon/xxdy.png'
|
|
|
})
|
|
|
this.list1.push({
|
|
|
dictLabel: '庭院网管',
|
|
|
dictValue: '3',
|
|
|
- visable: false
|
|
|
+ image:'../../static/icon/tywg.png'
|
|
|
})
|
|
|
this.list1.push({
|
|
|
dictLabel: '警示桩管理',
|
|
|
dictValue: '4',
|
|
|
- visable: false
|
|
|
+ image:'../../static/icon/jsz.png'
|
|
|
})
|
|
|
this.list = this.list1
|
|
|
console.log(this.list)
|