bug修改zzy2
This commit is contained in:
parent
b18e7ae687
commit
d038dbb6b5
|
|
@ -1,15 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar
|
<u-navbar
|
||||||
class="u-navbar"
|
class="u-navbar"
|
||||||
title="首页"
|
title="首页"
|
||||||
placeholder
|
placeholder
|
||||||
@leftClick="leftClick"
|
@leftClick="leftClick"
|
||||||
leftIconColor="#fff"
|
leftIconColor="#fff"
|
||||||
bgColor="#00337A"
|
rightIcon="list" @rightClick="onRefreshPages"
|
||||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
bgColor="#00337A"
|
||||||
></u-navbar>
|
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
||||||
<button class="refresh-btn" @tap="onRefreshPages">刷新</button>
|
>
|
||||||
|
<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">
|
<scroll-view scroll-y="true">
|
||||||
<!-- 轮播图区域 -->
|
<!-- 轮播图区域 -->
|
||||||
<swiper class="swiper-container" autoplay interval="3000" circular indicator-dots>
|
<swiper class="swiper-container" autoplay interval="3000" circular indicator-dots>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar class="u-navbar" title="人员信息" placeholder @leftClick="leftClick"
|
<u-navbar
|
||||||
leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
|
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="header-fixed">
|
||||||
<view class="search-content">
|
<view class="search-content">
|
||||||
<view style="width: 25%;">
|
<view style="width: 25%;">
|
||||||
|
|
@ -472,6 +483,9 @@ export default {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personDetail?idNumber=${row.idNumber}` })
|
uni.navigateTo({ url: `/pages/realName/index/pages/personDetail?idNumber=${row.idNumber}` })
|
||||||
},
|
},
|
||||||
|
goIndex() {
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/index` })
|
||||||
|
},
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,14 @@
|
||||||
placeholder
|
placeholder
|
||||||
@leftClick="leftClick"
|
@leftClick="leftClick"
|
||||||
leftIconColor="#fff"
|
leftIconColor="#fff"
|
||||||
|
rightIcon="list" @rightClick="goIndex"
|
||||||
bgColor="#00337A"
|
bgColor="#00337A"
|
||||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
: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="header-fixed">
|
||||||
<view class="search-content">
|
<view class="search-content">
|
||||||
<view style="width: 90%">
|
<view style="width: 90%">
|
||||||
|
|
@ -27,17 +31,12 @@
|
||||||
<view style="padding: 0 20rpx">
|
<view style="padding: 0 20rpx">
|
||||||
<scroll-view class="data-container" scroll-y="true">
|
<scroll-view class="data-container" scroll-y="true">
|
||||||
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index">
|
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index">
|
||||||
<view class="item-1">
|
|
||||||
<view>{{ index + 1 }}</view>
|
<view class="item-1">
|
||||||
<view>{{ item.proName }}</view>
|
<view>{{ index + 1 }}</view>
|
||||||
<uni-icons
|
<view>{{ item.proName }}</view>
|
||||||
:type="item.isCollect == 1 ? 'star-filled' : 'star'"
|
<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>
|
||||||
size="20"
|
</view>
|
||||||
@click="onCollection($event, item)"
|
|
||||||
:style="{ color: item.isCollect == 1 ? '#f9971e' : '' }"
|
|
||||||
style="position: absolute; right: 1%"
|
|
||||||
></uni-icons>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="item-2">
|
<view class="item-2">
|
||||||
<view>{{ item.subComName }}</view>
|
<view>{{ item.subComName }}</view>
|
||||||
|
|
@ -236,22 +235,29 @@ export default {
|
||||||
const { currentIndex, name } = voltageLevel
|
const { currentIndex, name } = voltageLevel
|
||||||
this.activeIndex3 = currentIndex + 1
|
this.activeIndex3 = currentIndex + 1
|
||||||
this.queryParams.params.voltageLevel = this.levelList[currentIndex + 1].id
|
this.queryParams.params.voltageLevel = this.levelList[currentIndex + 1].id
|
||||||
}
|
this.getListData()
|
||||||
if (option.proType) {
|
} else if (option.proType) {
|
||||||
// 获取工程类型
|
// 获取工程类型
|
||||||
const proType = JSON.parse(option.proType)
|
const proType = JSON.parse(option.proType)
|
||||||
const { currentIndex, name } = proType
|
const { currentIndex, name } = proType
|
||||||
this.activeIndex4 = currentIndex + 1
|
this.activeIndex4 = currentIndex + 1
|
||||||
this.queryParams.params.proType = name
|
this.queryParams.params.proType = this.proTypeList[currentIndex + 1].id
|
||||||
}
|
this.getListData()
|
||||||
if (option.survey) {
|
} else if (option.survey) {
|
||||||
// 获取工程概况
|
// 获取工程概况
|
||||||
const survey = JSON.parse(option.survey)
|
const survey = JSON.parse(option.survey)
|
||||||
const { currentIndex, name } = survey
|
const { currentIndex, name } = survey
|
||||||
this.activeIndex2 = currentIndex
|
this.activeIndex2 = currentIndex
|
||||||
this.queryParams.params.proStatus = this.proStatusList[currentIndex].id
|
this.queryParams.params.proStatus = this.proStatusList[currentIndex+ 1].id
|
||||||
}
|
this.getListData()
|
||||||
this.getListData()
|
} else if(option.proStatus&&option.proStatus==0){//在建
|
||||||
|
this.activeIndex2=1
|
||||||
|
this.queryParams.params.proStatus = "0"
|
||||||
|
this.getListData()
|
||||||
|
}else{
|
||||||
|
this.getListData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -370,10 +376,13 @@ export default {
|
||||||
//绿2 黄1 红0
|
//绿2 黄1 红0
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&lightStatus=${type}` })
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?proId=${row.proId}&lightStatus=${type}` })
|
||||||
},
|
},
|
||||||
|
goIndex() {
|
||||||
|
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/index` })
|
||||||
|
},
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
const params = {
|
const params = {
|
||||||
id: row.collectId,
|
id: row.collectId,
|
||||||
userId: uni.getStorageSync('realNameUser').userId,
|
userId: uni.getStorageSync('realNameUser').userId,
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar
|
<u-navbar
|
||||||
class="u-navbar"
|
class="u-navbar"
|
||||||
title="分包信息"
|
title="分包信息"
|
||||||
placeholder
|
placeholder
|
||||||
@leftClick="leftClick"
|
@leftClick="leftClick"
|
||||||
leftIconColor="#fff"
|
leftIconColor="#fff"
|
||||||
bgColor="#00337A"
|
rightIcon="list" @rightClick="goIndex"
|
||||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
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="header-fixed">
|
||||||
<view class="search-content">
|
<view class="search-content">
|
||||||
<view style="width: 98%">
|
<view style="width: 98%">
|
||||||
|
|
@ -362,7 +366,9 @@ export default {
|
||||||
//绿2 黄1 红0
|
//绿2 黄1 红0
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&lightStatus=${type}` })
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?subId=${row.subId}&lightStatus=${type}` })
|
||||||
},
|
},
|
||||||
|
goIndex() {
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/index` })
|
||||||
|
},
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar class="u-navbar" title="班组信息" placeholder @leftClick="leftClick"
|
<u-navbar
|
||||||
leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
|
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="header-fixed">
|
||||||
<view class="search-content">
|
<view class="search-content">
|
||||||
<view style="width: 90%;">
|
<view style="width: 90%;">
|
||||||
|
|
@ -219,6 +230,9 @@ export default {
|
||||||
/* 点击跳转人员-灯 */
|
/* 点击跳转人员-灯 */
|
||||||
goLightPersonListPage(row,type) {//绿2 黄1 红0
|
goLightPersonListPage(row,type) {//绿2 黄1 红0
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&lightStatus=${type}` })
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&lightStatus=${type}` })
|
||||||
|
},
|
||||||
|
goIndex() {
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/index` })
|
||||||
},
|
},
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue