bug修改zzy2

This commit is contained in:
zzyuan 2024-10-24 14:09:50 +08:00
parent b18e7ae687
commit d038dbb6b5
5 changed files with 99 additions and 51 deletions

View File

@ -1,15 +1,20 @@
<template>
<view class="page">
<u-navbar
class="u-navbar"
title="首页"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
></u-navbar>
<button class="refresh-btn" @tap="onRefreshPages">刷新</button>
<u-navbar
class="u-navbar"
title="首页"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
rightIcon="list" @rightClick="onRefreshPages"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
>
<view class="u-nav-slot" slot="right">
<text style="color: #FFF;">刷新</text>
</view>
</u-navbar>
<!-- <button class="refresh-btn" @tap="onRefreshPages">刷新</button> -->
<scroll-view scroll-y="true">
<!-- 轮播图区域 -->
<swiper class="swiper-container" autoplay interval="3000" circular indicator-dots>

View File

@ -1,8 +1,19 @@
<template>
<view class="page">
<u-navbar class="u-navbar" title="人员信息" placeholder @leftClick="leftClick"
leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
<u-navbar
class="u-navbar"
title="人员信息"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
rightIcon="list" @rightClick="goIndex"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
>
<view class="u-nav-slot" slot="right">
<text style="color: #FFF;">首页</text>
</view>
</u-navbar>
<view class="header-fixed">
<view class="search-content">
<view style="width: 25%;">
@ -472,6 +483,9 @@ export default {
console.log(row)
uni.navigateTo({ url: `/pages/realName/index/pages/personDetail?idNumber=${row.idNumber}` })
},
goIndex() {
uni.navigateTo({ url: `/pages/realName/index/index` })
},
/* 收藏与取消收藏 */
onCollection(e, row) {
e.stopPropagation()

View File

@ -6,10 +6,14 @@
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
rightIcon="list" @rightClick="goIndex"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
/>
>
<view class="u-nav-slot" slot="right">
<text style="color: #FFF;">首页</text>
</view>
</u-navbar>
<view class="header-fixed">
<view class="search-content">
<view style="width: 90%">
@ -27,18 +31,13 @@
<view style="padding: 0 20rpx">
<scroll-view class="data-container" scroll-y="true">
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index">
<view class="item-1">
<view>{{ index + 1 }}</view>
<view>{{ item.proName }}</view>
<uni-icons
:type="item.isCollect == 1 ? 'star-filled' : 'star'"
size="20"
@click="onCollection($event, item)"
:style="{ color: item.isCollect == 1 ? '#f9971e' : '' }"
style="position: absolute; right: 1%"
></uni-icons>
</view>
<view class="item-1">
<view>{{ index + 1 }}</view>
<view>{{ item.proName }}</view>
<uni-icons :type="item.isCollect == 1 ? 'star-filled' : 'star'" size="20" @click="onCollection($event, item)" :style="{ color: item.isCollect == 1 ? '#f9971e' : '' }" style="position: absolute;right: 1%;"></uni-icons>
</view>
<view class="item-2">
<view>{{ item.subComName }}</view>
<view>{{ item.voltageLevel }}</view>
@ -236,22 +235,29 @@ export default {
const { currentIndex, name } = voltageLevel
this.activeIndex3 = currentIndex + 1
this.queryParams.params.voltageLevel = this.levelList[currentIndex + 1].id
}
if (option.proType) {
this.getListData()
} else if (option.proType) {
//
const proType = JSON.parse(option.proType)
const { currentIndex, name } = proType
this.activeIndex4 = currentIndex + 1
this.queryParams.params.proType = name
}
if (option.survey) {
this.queryParams.params.proType = this.proTypeList[currentIndex + 1].id
this.getListData()
} else if (option.survey) {
//
const survey = JSON.parse(option.survey)
const { currentIndex, name } = survey
this.activeIndex2 = currentIndex
this.queryParams.params.proStatus = this.proStatusList[currentIndex].id
}
this.getListData()
this.queryParams.params.proStatus = this.proStatusList[currentIndex+ 1].id
this.getListData()
} else if(option.proStatus&&option.proStatus==0){//
this.activeIndex2=1
this.queryParams.params.proStatus = "0"
this.getListData()
}else{
this.getListData()
}
})
},
methods: {
@ -370,10 +376,13 @@ export default {
//绿2 1 0
uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&lightStatus=${type}` })
},
goIndex() {
uni.navigateTo({ url: `/pages/realName/index/index` })
},
/* 收藏与取消收藏 */
onCollection(e, row) {
console.log(row)
console.log(row)
const params = {
id: row.collectId,
userId: uni.getStorageSync('realNameUser').userId,

View File

@ -1,15 +1,19 @@
<template>
<view class="page">
<u-navbar
class="u-navbar"
title="分包信息"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
/>
<u-navbar
class="u-navbar"
title="分包信息"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
rightIcon="list" @rightClick="goIndex"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
>
<view class="u-nav-slot" slot="right">
<text style="color: #FFF;">首页</text>
</view>
</u-navbar>
<view class="header-fixed">
<view class="search-content">
<view style="width: 98%">
@ -362,7 +366,9 @@ export default {
//绿2 1 0
uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&lightStatus=${type}` })
},
goIndex() {
uni.navigateTo({ url: `/pages/realName/index/index` })
},
/* 收藏与取消收藏 */
onCollection(e, row) {
e.stopPropagation()

View File

@ -1,8 +1,19 @@
<template>
<view class="page">
<u-navbar class="u-navbar" title="班组信息" placeholder @leftClick="leftClick"
leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
<u-navbar
class="u-navbar"
title="班组信息"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
rightIcon="list" @rightClick="goIndex"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
>
<view class="u-nav-slot" slot="right">
<text style="color: #FFF;">首页</text>
</view>
</u-navbar>
<view class="header-fixed">
<view class="search-content">
<view style="width: 90%;">
@ -219,6 +230,9 @@ export default {
/* 点击跳转人员-灯 */
goLightPersonListPage(row,type) {//绿2 1 0
uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&lightStatus=${type}` })
},
goIndex() {
uni.navigateTo({ url: `/pages/realName/index/index` })
},
/* 收藏与取消收藏 */
onCollection(e, row) {