This commit is contained in:
yanran200730
2022-01-14 14:46:05 +08:00
9 changed files with 39 additions and 22 deletions

View File

@@ -145,10 +145,12 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
uni-page-body {
height: 100%;
}
.HealthDetail { .HealthDetail {
height: 100%; height: 100%;
// padding-bottom: 120px; background: #f5f5f5 !important;
background: #f3f6f9;
.top { .top {
.templates { .templates {
display: flex; display: flex;

View File

@@ -6,8 +6,8 @@
<li> <li>
<div class="user"> <div class="user">
<div> <div>
<img src="./components/img/user-img.png" alt="" class="userImg"> <img :src="item.photo" class="userImg" v-if="item.photo">
<!-- <img src="./components/img/user-img.png" alt="" class="userImg"> --> <img src="./components/img/user-img.png" alt="" class="userImg" v-else>
</div> </div>
<div class="info"> <div class="info">
<div class="name"> <div class="name">

View File

@@ -29,6 +29,7 @@
<p>{{item.girdName}} </p> <p>{{item.girdName}} </p>
</div> </div>
</div> </div>
<AiEmpty description="暂无数据" class="emptyWrap" v-if="!dataInfo.parentGirdMembers.length && !dataInfo.girdMembers.length"></AiEmpty>
<div class="pad-b112"></div> <div class="pad-b112"></div>
</div> </div>
</template> </template>

View File

@@ -24,7 +24,7 @@
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div> </div>
</div> </div>
<div style="padding-bottom: 70px;background:#f5f5f5;"></div> <!-- <div style="padding-bottom: 70px;"></div> -->
<div class="subBtn" @click="submit"> <div class="subBtn" @click="submit">
<div>确定选择</div> <div>确定选择</div>
</div> </div>
@@ -156,6 +156,7 @@ export default {
.SelectGird { .SelectGird {
height: 100%; height: 100%;
background: #fff; background: #fff;
padding-bottom: 140px;
.header-top { .header-top {
background: #fff; background: #fff;
padding: 20px 32px; padding: 20px 32px;

View File

@@ -25,7 +25,7 @@
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div> </div>
</div> </div>
<div style="padding-bottom: 70px;background:#f5f5f5;"></div> <!-- <div style="padding-bottom: 70px;background:#fff;"></div> -->
<div class="subBtn" @click="submit"> <div class="subBtn" @click="submit">
<div>确定选择</div> <div>确定选择</div>
</div> </div>
@@ -103,6 +103,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.SelectUser { .SelectUser {
height: 100%; height: 100%;
padding-bottom: 140px;
background: #fff; background: #fff;
.header-top { .header-top {
background: #fff; background: #fff;

View File

@@ -25,7 +25,7 @@
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div> </div>
</div> </div>
<div style="padding-bottom: 70px;background:#f5f5f5;"></div> <!-- <div style="padding-bottom: 70px;"></div> -->
<div class="subBtn" @click="toAddGird"> <div class="subBtn" @click="toAddGird">
<div>添加网格</div> <div>添加网格</div>
</div> </div>
@@ -44,7 +44,7 @@
</div> </div>
<div v-if="form.girdMemberManageList && form.girdMemberManageList.length"> <div v-if="form.girdMemberManageList && form.girdMemberManageList.length">
<div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index"> <div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index">
<span class="label">网格负责人</span> <span class="label">网格</span>
<span class="value">{{ item.name }}&nbsp;&nbsp;{{ item.phone }} <span class="value">{{ item.name }}&nbsp;&nbsp;{{ item.phone }}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon" <img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
v-if="item.phone"> v-if="item.phone">
@@ -223,6 +223,7 @@ export default {
.setGird { .setGird {
height: 100%; height: 100%;
background: #fff; background: #fff;
padding-bottom: 140px;
.header-top { .header-top {
background: #fff; background: #fff;
padding: 20px 32px; padding: 20px 32px;

View File

@@ -15,14 +15,14 @@
<div class="card"> <div class="card">
<div class="box"> <div class="box">
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长']}}</span> <span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长'] }}</span>
<span class="count" v-else>0</span> <span class="count" v-else>0</span>
<span class="girdCount">网格长</span> <span class="girdCount">网格长</span>
</div> </div>
<div class="box"> <div class="box">
<span class="count" v-if="peopleList && peopleList['网格员'] ">{{ peopleList['网格员']}}</span> <span class="count" v-if="peopleList && peopleList['网格员']">{{ peopleList['网格员'] }}</span>
<span class="count" v-else>0</span> <span class="count" v-else>0</span>
<span class="girdCount">网格员</span> <span class="girdCount">网格员</span>
</div> </div>
@@ -56,7 +56,7 @@
<div class="boxes"> <div class="boxes">
<span class="boxesLeft">网格层级</span> <span class="boxesLeft">网格层级</span>
<span class="boxesRight">{{ $dict.getLabel('girdType', girdMsgList.girdLevel) || '' }}</span> <span class="boxesRight">{{ $dict.getLabel('girdLevel', girdMsgList.girdLevel) || '' }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -77,19 +77,21 @@ export default {
girdUser: [], girdUser: [],
peopleList: {}, peopleList: {},
girdMsgList: {}, girdMsgList: {},
checkType: '' checkType: '',
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() {}, onLoad() {},
mounted() { mounted() {
this.$dict.load('girdType', 'girdLevel').then(() => {}) this.$dict.load('girdType', 'girdLevel').then(() => {
this.isGirdUser() this.isGirdUser()
})
uni.$on('goback', (res) => { uni.$on('goback', (res) => {
this.girdMsgList = res this.girdMsgList = res
this.getList() this.getList()
}) })
}, },
methods: { methods: {
isGirdUser() { isGirdUser() {
@@ -117,8 +119,8 @@ export default {
}) })
}, },
linkTo(url) { linkTo(url) {
uni.navigateTo({url}) uni.navigateTo({ url })
} },
}, },
} }
</script> </script>

View File

@@ -103,6 +103,7 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.$forceUpdate()
this.total = res.data.total this.total = res.data.total
this.pages = res.data.pages this.pages = res.data.pages

View File

@@ -20,7 +20,7 @@
<u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search>
</div> </div>
<div class="datas" v-if="datas.length > 0"> <div class="dataes" v-if="datas.length > 0">
<div class="datass" v-for="(item, iindex) in datas" :key="iindex" @click="toDetailCard(item)"> <div class="datass" v-for="(item, iindex) in datas" :key="iindex" @click="toDetailCard(item)">
<div class="left"> <div class="left">
<img :src="item.photo" alt="" v-if="item.photo" /> <img :src="item.photo" alt="" v-if="item.photo" />
@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<AiEmpty v-else></AiEmpty> <AiEmpty class="emptyWrap" v-else></AiEmpty>
</div> </div>
</template> </template>
@@ -66,7 +66,7 @@ export default {
], ],
currentTabs: 0, currentTabs: 0,
areaId: '', areaId: '',
areaName: '' areaName: '',
} }
}, },
computed: { computed: {
@@ -153,11 +153,13 @@ export default {
height: 16px; height: 16px;
background: #f5f5f5; background: #f5f5f5;
} }
.seachObjs { .seachObjs {
border-bottom: 2px solid #f5f5f5; border-bottom: 2px solid #f5f5f5;
border-top: 2px solid #f5f5f5; border-top: 2px solid #f5f5f5;
padding: 20px 32px; padding: 20px 32px;
} }
::v-deep .u-form { ::v-deep .u-form {
width: 100%; width: 100%;
.areaIds { .areaIds {
@@ -186,7 +188,8 @@ export default {
} }
} }
} }
.datas {
.dataes {
.datass { .datass {
display: flex; display: flex;
padding: 24px 32px; padding: 24px 32px;
@@ -215,5 +218,10 @@ export default {
} }
} }
} }
.emptyWrap {
background: #f5f5f5;
margin: 0;
}
} }
</style> </style>