Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -551,11 +551,11 @@ export default {
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.$emit("update");
|
uni.$emit("update");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({url: './Success?status=1'})
|
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
|
||||||
}, 400);
|
}, 400);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
uni.navigateTo({url: './Success?status=0'})
|
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ export default {
|
|||||||
this.wxInvoke(['shareAppMessage', {
|
this.wxInvoke(['shareAppMessage', {
|
||||||
// title: this.params.title,
|
// title: this.params.title,
|
||||||
// desc: this.params.tableExplain,
|
// desc: this.params.tableExplain,
|
||||||
// imgUrl: this.params.headPicture,
|
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
|
||||||
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
|
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
|
||||||
}])
|
}])
|
||||||
})
|
})
|
||||||
@@ -202,7 +202,7 @@ export default {
|
|||||||
this.wxInvoke(['shareWechatMessage', {
|
this.wxInvoke(['shareWechatMessage', {
|
||||||
// title: this.params.title,
|
// title: this.params.title,
|
||||||
// desc: this.params.tableExplain,
|
// desc: this.params.tableExplain,
|
||||||
// imgUrl: this.params.headPicture,
|
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
|
||||||
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
|
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
|
||||||
}])
|
}])
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<img src="./components/img/success.png" alt="" v-if="status">
|
<img src="./components/img/success.png" alt="" v-if="status">
|
||||||
<img src="./components/img/fail.png" alt="" v-else>
|
<img src="./components/img/fail.png" alt="" v-else>
|
||||||
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
||||||
<div class="footer">{{status ? '确定' : '我知道了'}}</div>
|
<div class="footer" @click="back" v-if="!corpId">{{status ? '确定' : '我知道了'}}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -13,7 +13,8 @@ import { mapState } from 'vuex'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
status: 1
|
status: 1,
|
||||||
|
corpId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -21,6 +22,9 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.status = option.status
|
this.status = option.status
|
||||||
|
if(option.corpId) {
|
||||||
|
this.corpId = option.corpId
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
back() {
|
back() {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default {
|
|||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
if (res.data.appGirdInfo.checkType != '0') {
|
if (res.data.checkType != '0') {
|
||||||
this.isAdmin = true
|
this.isAdmin = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</AiCard>
|
</AiCard>
|
||||||
<div class="addbtn" @click="addEvent">新增事件</div>
|
|
||||||
|
<div class="addbtn">
|
||||||
|
<div class="myreport" @click="linkTo('./myReply')">我的上报</div>
|
||||||
|
|
||||||
|
<div class="add" @click="addEvent">新增事件</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<AiEmpty v-if="!datas.length"></AiEmpty>
|
<AiEmpty v-if="!datas.length"></AiEmpty>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -140,7 +146,6 @@ export default {
|
|||||||
searchType: this.currentTabs == 1 ? '1' : '0',
|
searchType: this.currentTabs == 1 ? '1' : '0',
|
||||||
eventStatus: this.eventStatus,
|
eventStatus: this.eventStatus,
|
||||||
girdId: this.girdId,
|
girdId: this.girdId,
|
||||||
openId: this.eventStatus == 4 ? this.user.openId : '',
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -407,10 +412,22 @@ uni-page-body {
|
|||||||
height: 120px;
|
height: 120px;
|
||||||
line-height: 120px;
|
line-height: 120px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #3975c6;
|
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
box-shadow: inset 0px 1px 0px 0px #dddddd;
|
||||||
|
z-index: 999;
|
||||||
|
.myreport {
|
||||||
|
background-color: #ffffff;
|
||||||
|
width: 40%;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.add {
|
||||||
|
background-color: #3975c6;
|
||||||
|
width: 60%;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pad-b120 {
|
.pad-b120 {
|
||||||
background-color: #f3f6f9;
|
background-color: #f3f6f9;
|
||||||
|
|||||||
@@ -1,25 +1,172 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="myReply">1</div>
|
<div class="myReply">
|
||||||
|
<template>
|
||||||
|
<AiCard v-for="(item, i) in datas" :key="i" @click.native="goDetail(item, 1)">
|
||||||
|
<template #custom>
|
||||||
|
<div class="card-top">
|
||||||
|
<div class="titles">{{ item.content }}</div>
|
||||||
|
|
||||||
|
<div class="types">
|
||||||
|
<span class="label label1">事件类型</span>
|
||||||
|
<span class="types-right">{{ item.groupName }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gards gird">
|
||||||
|
<div class="label">所属网格</div>
|
||||||
|
<div class="gards-right">{{ item.girdName }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="status" :class="item.eventStatus == 0 ? 'status0' : item.eventStatus == 1 ? 'status1' : item.eventStatus == 2 ? 'status2' : 'status3'" v-if="item.eventStatus">
|
||||||
|
<span class="icon"></span>
|
||||||
|
<span>
|
||||||
|
{{ $dict.getLabel('clapEventStatus', item.eventStatus) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</AiCard>
|
||||||
|
|
||||||
|
<AiEmpty v-if="!datas.length"></AiEmpty>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'myReply',
|
name: 'myReply',
|
||||||
components: {},
|
components: {},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {
|
||||||
|
datas: [],
|
||||||
|
current: 1,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
computed: {},
|
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad() {},
|
onLoad() {
|
||||||
onShow() {},
|
this.getList()
|
||||||
methods: {},
|
},
|
||||||
|
onShow() {
|
||||||
|
document.title = '我的上报'
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.$http
|
||||||
|
.post(`/app/appclapeventinfo/listByGirdMember`, null, {
|
||||||
|
params: {
|
||||||
|
size: 10,
|
||||||
|
current: this.current,
|
||||||
|
openId: this.user.openId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.pages = res.data.pages
|
||||||
|
this.$forceUpdate()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
goDetail(item) {
|
||||||
|
uni.navigateTo({ url: `./detail?id=${item.id}` })
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.myReply {
|
.uni-page-body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.myReply {
|
||||||
|
height: 100%;
|
||||||
|
::v-deep .AiTopFixed .content {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
::v-deep .AiCard {
|
||||||
|
background: none;
|
||||||
|
padding: 24px 30px 0;
|
||||||
|
|
||||||
|
.start {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 16px;
|
||||||
|
|
||||||
|
.card-top {
|
||||||
|
padding: 32px;
|
||||||
|
.titles {
|
||||||
|
margin-bottom: 34px;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 1.4;
|
||||||
|
word-break: break-all;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
}
|
||||||
|
.types,
|
||||||
|
.gards {
|
||||||
|
margin-top: 8px;
|
||||||
|
font-size: 26px;
|
||||||
|
.types-right,
|
||||||
|
.gards-right {
|
||||||
|
margin-left: 32px;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.label1 {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status {
|
||||||
|
padding: 32px;
|
||||||
|
border-top: 1px solid #dddddd;
|
||||||
|
.icon {
|
||||||
|
display: inline-block;
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status0 {
|
||||||
|
color: #ff883c;
|
||||||
|
.icon {
|
||||||
|
background: #ff883c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status1 {
|
||||||
|
color: #1aaaff;
|
||||||
|
.icon {
|
||||||
|
background: #1aaaff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
color: #42d784;
|
||||||
|
.icon {
|
||||||
|
background: #42d784;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
color: #ff4466;
|
||||||
|
.icon {
|
||||||
|
background: #ff4466;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<img src="./components/img/success.png" alt="" v-if="status">
|
<img src="./components/img/success.png" alt="" v-if="status">
|
||||||
<img src="./components/img/fail.png" alt="" v-else>
|
<img src="./components/img/fail.png" alt="" v-else>
|
||||||
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
||||||
<div class="footer">{{status ? '确定' : '我知道了'}}</div>
|
<div class="footer" @click="back">{{status ? '确定' : '我知道了'}}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -173,8 +173,9 @@ export default {
|
|||||||
this.getDetail()
|
this.getDetail()
|
||||||
}else {
|
}else {
|
||||||
document.title = '新增居民'
|
document.title = '新增居民'
|
||||||
this.form.type = option.type
|
this.form.type = options.type
|
||||||
}
|
}
|
||||||
|
console.log(this.form.type)
|
||||||
this.$dict.load('yesOrNo', 'sex', 'householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType')
|
this.$dict.load('yesOrNo', 'sex', 'householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType')
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user