Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-02-10 15:02:57 +08:00
9 changed files with 73 additions and 37 deletions

View File

@@ -14,6 +14,7 @@
<u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents"> <u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
<u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea" auto-height height="100" maxlength="500" /> <u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea" auto-height height="100" maxlength="500" />
<span class="limit">{{ form.content.length/200 }}</span>
</u-form-item> </u-form-item>
<div class="line"></div> <div class="line"></div>
@@ -204,6 +205,11 @@ export default {
} }
} }
.limit {
position: fixed;
right: 0;
}
.btn { .btn {
position: fixed; position: fixed;
bottom: 0; bottom: 0;

View File

@@ -4,12 +4,8 @@
<div class="content-box"> <div class="content-box">
<div class="content-list"> <div class="content-list">
<div class="list-item" v-for="(item, index) in statisticsList" :key="index"> <div class="list-item" v-for="(item, index) in statisticsList" :key="index">
<h3> <h3>{{ item.value }}</h3>
{{item.value}} <p>{{ item.label }}</p>
</h3>
<p>
{{item.label}}
</p>
</div> </div>
</div> </div>
</div> </div>
@@ -17,7 +13,7 @@
<!-- 事件列表 --> <!-- 事件列表 -->
<div class="title"> <div class="title">
<div class="title-name">事件列表</div> <div class="title-name">事件列表</div>
<div class="title-type" @click="showGird = true">{{ status? status: '全部' }}<u-icon name="arrow-down"></u-icon></div> <div class="title-type" @click="showGird = true">{{ status? status: '全部类型' }}<u-icon name="arrow-down"></u-icon></div>
</div> </div>
<template> <template>
@@ -105,8 +101,6 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = '矛盾调解' document.title = '矛盾调解'
this.getList() this.getList()
@@ -142,7 +136,6 @@ export default {
}, },
getStaticList() { getStaticList() {
this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => { this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => {
// console.log(res);
if (res.code == 0){ if (res.code == 0){
for (let i in res.data) { for (let i in res.data) {
var obj = { var obj = {

View File

@@ -63,7 +63,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
methods: { methods: {
getList(){ getList(){
this.$http.post(`/app/appresident/list?areaId=${this.areaId}&householdName=1&current=${this.current}&con=${this.value}`).then((res) => { this.$http.post(`/app/appresident/list?householdName=1&current=${this.current}&con=${this.value}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
res.data.records.map((item) => { res.data.records.map((item) => {
item.checked = false item.checked = false

View File

@@ -41,7 +41,7 @@ export default {
props: ['params'], props: ['params'],
onShow() { onShow() {
document.title = '网格管理' document.title = '网格管理'
this.getGirdUserList()
}, },
mounted() { mounted() {
this.userGird = this.params this.userGird = this.params

View File

@@ -25,9 +25,14 @@
<u-loadmore :status="loadmore" color="#999" font-size="24" <u-loadmore :status="loadmore" color="#999" font-size="24"
margin-top="32" margin-bottom="80"/> margin-top="32" margin-bottom="80"/>
</template> </template>
<div class="no-message" v-else> <!-- <div class="no-message" v-else>
<image src="https://cdn.cunwuyun.cn/wxAdmin/img/message.png"/> <image src="https://cdn.cunwuyun.cn/wxAdmin/img/message.png"/>
<p>您还未添加过事务记录<br>点击<b @click="gotoAdd()">新增按钮</b>试试吧~</p> <p>您还未添加过事务记录<br>点击<b @click="gotoAdd()">新增按钮</b>试试吧~</p>
</div> -->
<div class="empty" v-else>
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
<p>您还未添加过事务记录<br/>点击<span @click="gotoAdd()">新增按钮</span>试试吧</p>
</div> </div>
<AiFixedBtn> <AiFixedBtn>
<div class="addBtn iconfont iconfont-iconfangda" @tap="gotoAdd()"/> <div class="addBtn iconfont iconfont-iconfangda" @tap="gotoAdd()"/>
@@ -125,12 +130,13 @@ export default {
margin-top: 140px; margin-top: 140px;
text-align: center; text-align: center;
color: #888; color: #888;
font-size: 30px; font-size: 28px;
b { b{
font-size: 32px; font-size: 28px;
color: $uni-color-primary; color: $uni-color-primary;
padding: 0 8px; padding: 0 8px;
font-weight: 400;
} }
image { image {
@@ -221,5 +227,23 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
} }
.empty{
height: 100%;
img{
width: 282px;
height: 306px;
margin: 168px 0 0 234px;
}
p{
text-align: center;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 44px;
span{
color: #467DFE;
}
}
}
} }
</style> </style>

View File

@@ -63,7 +63,8 @@ export default {
params: { params: {
isPublic: 1, isPublic: 1,
resource: "portal", resource: "portal",
size: 999 size: 999,
name: this.keyword
} }
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {

View File

@@ -46,7 +46,6 @@ export default {
getList() { getList() {
this.$http.post(`/app/appconvenientaddressbook/list`, null, { this.$http.post(`/app/appconvenientaddressbook/list`, null, {
params: { params: {
areaId: this.user.areaId,
createUserId: this.user.id createUserId: this.user.id
} }
}).then(res => { }).then(res => {

View File

@@ -101,13 +101,11 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
uni.$on('specialPeopleList', () => { uni.$on('specialPeopleList', () => {
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
}, },
@@ -119,7 +117,6 @@ export default {
areaSelect(e) { areaSelect(e) {
this.areaId = e this.areaId = e
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}, },
tabClick(index) { tabClick(index) {
@@ -127,8 +124,9 @@ export default {
}, },
getStatistic() { getStatistic() {
this.statisticsList = [] this.statisticsList = []
this.statisticsListMon = []
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => { this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
if (res.code == 0) { if (res?.data) {
for (let i in res.data.map) { for (let i in res.data.map) {
var obj = { var obj = {
label: i, label: i,
@@ -136,19 +134,12 @@ export default {
} }
this.statisticsList.push(obj) this.statisticsList.push(obj)
} }
} for(let n in res.data.monthMap){
}) var objmon = {
}, label: n,
getStatisticMon() { value: res.data.monthMap[n]
this.statisticsListMon = []
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
if (res.code == 0) {
for(let i in res.data.monthMap){
var obj = {
label: i,
value: res.data.monthMap[i]
} }
this.statisticsListMon.push(obj) this.statisticsListMon.push(objmon)
} }
} }
}) })
@@ -156,7 +147,7 @@ export default {
getUserList() { getUserList() {
this.userList = [] this.userList = []
this.$http.post(`app/appspecialadjustment/allList?size=20&current=${this.current}`,{type: this.type, name: this.name}).then((res) => { this.$http.post(`app/appspecialadjustment/allList?size=20&current=${this.current}`,{type: this.type, name: this.name}).then((res) => {
if (res.code == 0) { if (res?.data) {
if(this.current > res.data.total) { if(this.current > res.data.total) {
return return
} }

View File

@@ -39,7 +39,7 @@
</AiCard> </AiCard>
</template> </template>
<div v-else> <!-- <div v-else>
<AiEmpty description="您还未添加过入户走访慰问" class="emptyWrap"></AiEmpty> <AiEmpty description="您还未添加过入户走访慰问" class="emptyWrap"></AiEmpty>
<div class="addBtns"> <div class="addBtns">
@@ -47,6 +47,10 @@
<span class="toAdds" @click="toAdd()">新增按钮</span> <span class="toAdds" @click="toAdd()">新增按钮</span>
<span> 试试试吧~</span> <span> 试试试吧~</span>
</div> </div>
</div> -->
<div class="empty" v-else>
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
<p>您还未添加过走访慰问<br/>点击<span @click="toAdd()">新增按钮</span>试试吧</p>
</div> </div>
</div> </div>
</div> </div>
@@ -320,7 +324,7 @@ uni-page-body {
text-align: center; text-align: center;
color: #b7b7b7; color: #b7b7b7;
margin-top: 10px; margin-top: 10px;
font-weight: 800; font-size: 28px;
.toAdds { .toAdds {
color: #467dfe; color: #467dfe;
@@ -346,5 +350,23 @@ uni-page-body {
bottom: 106px; bottom: 106px;
z-index: 9; z-index: 9;
} }
.empty{
height: 100%;
img{
width: 282px;
height: 306px;
margin: 168px 0 0 234px;
}
p{
text-align: center;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 44px;
span{
color: #467DFE;
}
}
}
} }
</style> </style>