BUG 27200
This commit is contained in:
@@ -66,6 +66,7 @@
|
|||||||
"miniprogram-api-typings": "^3.3.2",
|
"miniprogram-api-typings": "^3.3.2",
|
||||||
"node-sass": "npm:dart-sass@^1.25.0",
|
"node-sass": "npm:dart-sass@^1.25.0",
|
||||||
"postcss-comment": "^2.0.0",
|
"postcss-comment": "^2.0.0",
|
||||||
|
"query-string": "^7.1.1",
|
||||||
"uview-ui": "^1.8.4",
|
"uview-ui": "^1.8.4",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import qs from 'query-string'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AiPagePicker",
|
name: "AiPagePicker",
|
||||||
model: {
|
model: {
|
||||||
@@ -47,7 +49,14 @@ export default {
|
|||||||
this.$emit("select", data)
|
this.$emit("select", data)
|
||||||
this.$emit("change", data.map(e => e[nodeKey]))
|
this.$emit("change", data.map(e => e[nodeKey]))
|
||||||
})
|
})
|
||||||
uni.navigateTo({url: `${config.url}?selected=${selected?.toString()}`})
|
let url = `${config.url}`,
|
||||||
|
qsstr = qs.stringify({
|
||||||
|
selected, ...this.$attrs
|
||||||
|
})
|
||||||
|
if (!!qsstr) {
|
||||||
|
url += `?${qsstr}`
|
||||||
|
}
|
||||||
|
uni.navigateTo({url})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,13 +59,16 @@ export default {
|
|||||||
return this.treeList.filter(e => e.girdName?.indexOf(this.name) > -1 || !this.name) || []
|
return this.treeList.filter(e => e.girdName?.indexOf(this.name) > -1 || !this.name) || []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(params) {
|
||||||
|
if (params.girdLevel) {
|
||||||
|
this.girdLevel = params.girdLevel
|
||||||
|
}
|
||||||
this.isGirdUser()
|
this.isGirdUser()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isGirdUser() {
|
isGirdUser() {
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res?.data) {
|
||||||
if (res.data.checkType) {
|
if (res.data.checkType) {
|
||||||
this.userGird = res.data
|
this.userGird = res.data
|
||||||
this.getTree()
|
this.getTree()
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
<div class="BackUserList">
|
<div class="BackUserList">
|
||||||
<AiTopFixed v-if="isAdmin">
|
<AiTopFixed v-if="isAdmin">
|
||||||
<div class="pad-t32"></div>
|
<div class="pad-t32"></div>
|
||||||
<div class="select-gird" @click="showSelect=true">
|
<div class="select-gird">
|
||||||
<div class="gird-name-div">
|
<AiPagePicker type="gird" girdLevel="2" class="gird-name-div" @select="confirmSelect">
|
||||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||||
<div class="gird-name">{{ girdName }}</div>
|
<div class="gird-name">{{ girdName }}</div>
|
||||||
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
||||||
</div>
|
</AiPagePicker>
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="tab-item">
|
<div class="tab-item">
|
||||||
@@ -37,7 +37,8 @@
|
|||||||
<h2 class="name">{{ item.name }}<span class="status" v-if="item.status == 0">有异常</span></h2>
|
<h2 class="name">{{ item.name }}<span class="status" v-if="item.status == 0">有异常</span></h2>
|
||||||
<p class="color-999">{{ item.idNumber }}</p>
|
<p class="color-999">{{ item.idNumber }}</p>
|
||||||
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{ item.startAreaName }}</span></p>
|
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{ item.startAreaName }}</span></p>
|
||||||
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{item.arriveAreaName}}</span></p>
|
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{ item.arriveAreaName }}</span>
|
||||||
|
</p>
|
||||||
<p><img src="./components/img/time-icon.png" alt="">{{ item.createTime }}</p>
|
<p><img src="./components/img/time-icon.png" alt="">{{ item.createTime }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,14 +74,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn" @click="show=false">取消</div>
|
<div class="btn" @click="show=false">取消</div>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<u-select v-model="showSelect" :list="girdList" label-name="girdName" value-name="id" @confirm="confirmSelect"/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapActions, mapState} from 'vuex'
|
||||||
import qs from "query-string"
|
import qs from "query-string"
|
||||||
import { mapActions } from 'vuex'
|
|
||||||
export default {
|
export default {
|
||||||
appName: '返乡登记',
|
appName: '返乡登记',
|
||||||
data() {
|
data() {
|
||||||
@@ -92,10 +92,8 @@ export default {
|
|||||||
totalInfo: {},
|
totalInfo: {},
|
||||||
isAdmin: true,
|
isAdmin: true,
|
||||||
show: false,
|
show: false,
|
||||||
girdList: [],
|
|
||||||
girdName: '',
|
girdName: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
showSelect: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -110,14 +108,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['injectJWeixin', 'wxInvoke']),
|
...mapActions(['injectJWeixin', 'wxInvoke']),
|
||||||
confirmSelect(e) {
|
confirmSelect(v) {
|
||||||
console.log(e)
|
this.girdId = v?.[0].id
|
||||||
this.girdId = e[0].value
|
this.girdName = v?.[0].girdName
|
||||||
this.girdList.map((item) => {
|
|
||||||
if(item.id == this.girdId) {
|
|
||||||
this.girdName = item.girdName
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
},
|
},
|
||||||
@@ -161,10 +154,9 @@ export default {
|
|||||||
isGirdUser() {
|
isGirdUser() {
|
||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res?.data) {
|
||||||
if (res.data.checkType != '0') {
|
if (res.data.checkType != '0') {
|
||||||
this.isAdmin = true
|
this.isAdmin = true
|
||||||
this.params = res.data.appGirdInfo
|
|
||||||
this.getGirdList()
|
this.getGirdList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,7 +165,6 @@ export default {
|
|||||||
getGirdList() {
|
getGirdList() {
|
||||||
this.$http.post('/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then((res) => {
|
this.$http.post('/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.girdList = res.data
|
|
||||||
this.girdId = res.data[0].id
|
this.girdId = res.data[0].id
|
||||||
this.girdName = res.data[0].girdName
|
this.girdName = res.data[0].girdName
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -231,6 +222,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
.tab-item {
|
.tab-item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -245,6 +237,7 @@ export default {
|
|||||||
border-right: 1px solid #ddd;
|
border-right: 1px solid #ddd;
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
@@ -253,10 +246,12 @@ export default {
|
|||||||
margin-top: -22px;
|
margin-top: -22px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item:nth-last-of-type(1) {
|
.tab-item:nth-last-of-type(1) {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 112px;
|
height: 112px;
|
||||||
@@ -265,16 +260,19 @@ export default {
|
|||||||
background: #FFF;
|
background: #FFF;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
width: calc(100% - 402px);
|
width: calc(100% - 402px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-select {
|
.tab-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 96px;
|
height: 96px;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
@@ -283,9 +281,11 @@ export default {
|
|||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: #135AB8;
|
color: #135AB8;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@@ -296,11 +296,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-list {
|
.user-list {
|
||||||
.item {
|
.item {
|
||||||
padding: 32px 64px 24px;
|
padding: 32px 64px 24px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
@@ -308,6 +310,7 @@ export default {
|
|||||||
color: #333;
|
color: #333;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
.status {
|
.status {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
@@ -316,12 +319,14 @@ export default {
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
@@ -329,16 +334,19 @@ export default {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.start-name {
|
.start-name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: calc(100% - 50px);
|
width: calc(100% - 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-999 {
|
.color-999 {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .AiTopFixed {
|
::v-deep .AiTopFixed {
|
||||||
.placeholder {
|
.placeholder {
|
||||||
.content {
|
.content {
|
||||||
@@ -346,17 +354,21 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed {
|
.fixed {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
background-color: #f5f5f5 !important;
|
background-color: #f5f5f5 !important;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pad-t32 {
|
.pad-t32 {
|
||||||
padding-top: 32px;
|
padding-top: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-gird {
|
.select-gird {
|
||||||
width: calc(100% - 60px);
|
width: calc(100% - 60px);
|
||||||
padding: 24px 32px;
|
padding: 24px 32px;
|
||||||
@@ -365,11 +377,13 @@ export default {
|
|||||||
margin: 0 30px 32px;
|
margin: 0 30px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
@@ -379,10 +393,12 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 112px;
|
width: 112px;
|
||||||
@@ -393,11 +409,13 @@ export default {
|
|||||||
color: #3F8DF5;
|
color: #3F8DF5;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gird-name-div {
|
.gird-name-div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gird-name {
|
.gird-name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: calc(100% - 80px);
|
max-width: calc(100% - 80px);
|
||||||
@@ -407,13 +425,16 @@ export default {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 282px;
|
width: 282px;
|
||||||
height: 306px;
|
height: 306px;
|
||||||
margin: 136px auto 0;
|
margin: 136px auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
@@ -421,9 +442,11 @@ export default {
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pad-b120 {
|
.pad-b120 {
|
||||||
padding-bottom: 120px;
|
padding-bottom: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@@ -436,17 +459,20 @@ export default {
|
|||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
|
|
||||||
.bg-fff {
|
.bg-fff {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
color: #333;
|
color: #333;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-blue {
|
.bg-blue {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #3975C6;
|
background-color: #3975C6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.line-bg {
|
.line-bg {
|
||||||
width: 110px;
|
width: 110px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
@@ -454,13 +480,16 @@ export default {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin: 32px auto 82px;
|
margin: 32px auto 82px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-bottom: 70px;
|
padding-bottom: 70px;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@@ -468,6 +497,7 @@ export default {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
@@ -476,6 +506,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 96px;
|
height: 96px;
|
||||||
@@ -487,6 +518,7 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .uni-scroll-view {
|
::v-deep .uni-scroll-view {
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user