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

# Conflicts:
#	src/apps/AppBuilding/components/searchMap.vue
This commit is contained in:
aixianling
2021-12-24 16:20:28 +08:00
68 changed files with 214 additions and 108 deletions

View File

@@ -204,7 +204,6 @@ export default {
this.getTopicList() this.getTopicList()
console.log(option) console.log(option)
if (option.id) { if (option.id) {
document.title = '编辑活动'
this.params.id = option.id this.params.id = option.id
this.getDetail() this.getDetail()
} else { } else {
@@ -216,6 +215,9 @@ export default {
this.startYear = date.getFullYear() this.startYear = date.getFullYear()
this.getEstates() this.getEstates()
}, },
onShow() {
document.title = '编辑活动'
},
methods: { methods: {
getEstates() { getEstates() {
this.$http.post(`/app/appvanguardcommunityinfo/getTree?type=1&areaId=${this.global.areaId}`).then((res) => { this.$http.post(`/app/appvanguardcommunityinfo/getTree?type=1&areaId=${this.global.areaId}`).then((res) => {

View File

@@ -67,8 +67,10 @@ export default {
}, },
created() { created() {
this.checkAccess() this.checkAccess()
document.title = "问卷调查" },
} onShow() {
document.title = '问卷调查'
},
} }
</script> </script>

View File

@@ -31,7 +31,7 @@
<script> <script>
export default { export default {
name: "AppBroadcast", name: "AppBroadcast",
appName: "广播通知", appName: "广播",
data() { data() {
return { return {
bannerList: [ bannerList: [
@@ -70,9 +70,9 @@ export default {
uni.navigateTo({url}) uni.navigateTo({url})
} }
}, },
mounted() { onShow() {
document.title = '云广播' document.title = '云广播'
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -174,6 +174,8 @@ export default {
this.formData.mediaId = e.mediaId this.formData.mediaId = e.mediaId
this.formData.mediaName = e.mediaName this.formData.mediaName = e.mediaName
}) })
},
onShow() {
document.title = '音频播放' document.title = '音频播放'
}, },

View File

@@ -45,8 +45,10 @@ export default {
}, },
created() { created() {
this.getList() this.getList()
},
onShow() {
document.title = '在线设备' document.title = '在线设备'
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -47,8 +47,10 @@ export default {
}, },
created() { created() {
this.getList() this.getList()
document.title = '在线设备' },
} onShow() {
document.title = '在播设备'
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -65,8 +65,10 @@ export default {
this.$dict.load('dlbBroadcastStatus').then(() => { this.$dict.load('dlbBroadcastStatus').then(() => {
this.getList() this.getList()
}) })
document.title = '在播设备' },
} onShow() {
document.title = '播放记录'
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -25,10 +25,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.show = true this.show = true
}) })
},
mounted() {
document.title = "以房找人" document.title = "以房找人"
} },
} }
</script> </script>

View File

@@ -148,6 +148,8 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => { 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getDetail() this.getDetail()
}) })
},
onShow() {
document.title = '房屋信息' document.title = '房屋信息'
}, },

View File

@@ -139,7 +139,9 @@ export default {
this.getCenterLatLng().then(points => { this.getCenterLatLng().then(points => {
this.getMarkerCluster(points) this.getMarkerCluster(points)
}) })
document.title = '以房找人' },
onShow() {
document.title = "以房找人"
}, },
created() { created() {
this.$dict.load("communityBuildingType") this.$dict.load("communityBuildingType")

View File

@@ -168,7 +168,9 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => { 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getBuilding() this.getBuilding()
}) })
document.title = '以房找人' },
onShow() {
document.title = "以房找人"
}, },
methods: { methods: {
getSelectList(communityId) { getSelectList(communityId) {

View File

@@ -37,12 +37,14 @@ export default {
this.$dict.load('BuildLocationStatus').then(() => { this.$dict.load('BuildLocationStatus').then(() => {
this.getList() this.getList()
}) })
document.title = '楼栋列表'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.current = 1 this.current = 1
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = "楼栋列表"
},
methods: { methods: {
getList() { getList() {

View File

@@ -65,7 +65,9 @@ export default {
computed: {...mapState(['user'])}, computed: {...mapState(['user'])},
mounted() { mounted() {
this.initMap() this.initMap()
document.title = '以房找人' },
onShow() {
document.title = "以房找人"
}, },
methods: { methods: {
initMap() { //初始化地图 initMap() { //初始化地图

View File

@@ -60,7 +60,9 @@ export default {
console.log(this.params) console.log(this.params)
this.getList() this.getList()
this.getStatistic() this.getStatistic()
document.title = '乡村相册' },
onShow() {
document.title = "乡村相册"
}, },
methods: { methods: {

View File

@@ -38,11 +38,13 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
document.title = '乡村相册'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = "乡村相册"
},
methods: { methods: {
areaSelect(e) { areaSelect(e) {

View File

@@ -67,7 +67,9 @@ export default {
this.$dict.load('girdType', 'girdLevel') this.$dict.load('girdType', 'girdLevel')
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.getLeafNodes() this.getLeafNodes()
document.title = '网格管理' },
onShow() {
document.title = "网格管理"
}, },
methods: { methods: {
getLeafNodes() { getLeafNodes() {

View File

@@ -47,7 +47,9 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
document.title = '便民通讯录' },
onShow() {
document.title = "便民通讯录"
}, },
methods: { methods: {

View File

@@ -78,7 +78,9 @@ export default {
this.getDetail() this.getDetail()
} }
}) })
document.title = '新增' },
onShow() {
document.title = "新增"
}, },
methods: { methods: {

View File

@@ -43,7 +43,9 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
document.title = '便民通讯录' },
onShow() {
document.title = "便民通讯录"
}, },
methods: { methods: {

View File

@@ -34,11 +34,13 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
document.title = '便民通讯录'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = "便民通讯录"
},
methods: { methods: {
getList() { getList() {

View File

@@ -80,10 +80,12 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad() { onLoad() {
document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType') this.$dict.load('marriageType', 'modeType')
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
}, },
onShow() {
document.title = "婚丧嫁娶"
},
mounted() {}, mounted() {},
methods: { methods: {

View File

@@ -77,13 +77,14 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()
}) })
}, },
onShow() {}, onShow() {
document.title = "婚丧嫁娶"
},
methods: { methods: {
getCount() { getCount() {
uni.showLoading({ uni.showLoading({

View File

@@ -141,7 +141,6 @@ export default {
}, },
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
document.title = '婚丧嫁娶'
if (o.indexTabs) { if (o.indexTabs) {
this.currentTabs = o.indexTabs this.currentTabs = o.indexTabs
this.getList() this.getList()
@@ -156,6 +155,9 @@ export default {
this.getEchart() this.getEchart()
}) })
}, },
onShow() {
document.title = "婚丧嫁娶"
},
mounted() { mounted() {
this.Echart = echarts.init(document.getElementById('yearStatistic')) this.Echart = echarts.init(document.getElementById('yearStatistic'))
}, },

View File

@@ -77,13 +77,14 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()
}) })
}, },
onShow() {}, onShow() {
document.title = "婚丧嫁娶"
},
methods: { methods: {
getCount() { getCount() {
uni.showLoading({ uni.showLoading({

View File

@@ -77,13 +77,14 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()
}) })
}, },
onShow() {}, onShow() {
document.title = "婚丧嫁娶"
},
methods: { methods: {
getCount() { getCount() {
uni.showLoading({ uni.showLoading({

View File

@@ -77,13 +77,14 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()
}) })
}, },
onShow() {}, onShow() {
document.title = "婚丧嫁娶"
},
methods: { methods: {
getCount() { getCount() {
uni.showLoading({ uni.showLoading({

View File

@@ -55,9 +55,12 @@ export default {
onLoad(opt) { onLoad(opt) {
this.index = opt.index this.index = opt.index
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
this.getData(); this.getData();
}, },
onShow() {
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
},
methods: { methods: {
detail({id}) { detail({id}) {

View File

@@ -30,11 +30,13 @@ export default {
this.getList(); this.getList();
}, },
created() { created() {
document.title = "接收对象";
this.injectJWeixin().then(() => { this.injectJWeixin().then(() => {
this.getList(); this.getList();
}) })
}, },
onShow() {
document.title = '接收对象'
},
methods: { methods: {
...mapActions(['previewFile', 'injectJWeixin']), ...mapActions(['previewFile', 'injectJWeixin']),
getList() { getList() {

View File

@@ -26,7 +26,7 @@ export default {
headerBg: require('./img/header-bg.png'), headerBg: require('./img/header-bg.png'),
} }
}, },
created() { onShow() {
document.title = '基层办公' document.title = '基层办公'
}, },
methods: { methods: {

View File

@@ -31,7 +31,7 @@ export default {
headerBg: require('./img/header-bg.png'), headerBg: require('./img/header-bg.png'),
} }
}, },
created() { onShow() {
document.title = '文明乡风' document.title = '文明乡风'
}, },
methods: { methods: {

View File

@@ -39,7 +39,7 @@ export default {
headerBg: require('./img/header-bg.png'), headerBg: require('./img/header-bg.png'),
} }
}, },
created() { onShow() {
document.title = '基层党建' document.title = '基层党建'
}, },
methods: { methods: {

View File

@@ -31,7 +31,7 @@ export default {
headerBg: require('./img/header-bg.png'), headerBg: require('./img/header-bg.png'),
} }
}, },
created() { onShow() {
document.title = '居民管理' document.title = '居民管理'
}, },
methods: { methods: {

View File

@@ -202,7 +202,6 @@ export default {
onLoad(query) { onLoad(query) {
if (query.isFrom) { if (query.isFrom) {
this.isFrom = true this.isFrom = true
document.title = '风险预警详情'
} }
uni.showLoading() uni.showLoading()
this.$dict.load(['fpType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo']).then(() => { this.$dict.load(['fpType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo']).then(() => {
@@ -214,6 +213,9 @@ export default {
this.getInfo(query.id) this.getInfo(query.id)
}) })
}, },
onShow() {
document.title = '风险预警详情'
},
methods: { methods: {
linkTo(url) { linkTo(url) {

View File

@@ -97,7 +97,6 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
document.title = '发布活动'
this.id = o.id ? o.id : '' this.id = o.id ? o.id : ''
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.areaId = this.user.areaId this.areaId = this.user.areaId
@@ -108,6 +107,9 @@ export default {
this.getDetail() this.getDetail()
}) })
}, },
onShow() {
document.title = '发布活动'
},
mounted() {}, mounted() {},
methods: { methods: {

View File

@@ -39,9 +39,11 @@ export default {
} }
}, },
onLoad(o) { onLoad(o) {
document.title = '发布动态'
this.id = o.id || '' this.id = o.id || ''
}, },
onShow() {
document.title = '发布动态'
},
methods: { methods: {
addPost() { addPost() {
if (this.flag) return if (this.flag) return

View File

@@ -26,7 +26,7 @@
<div class="times"> <div class="times">
<span class="timesCont">{{ item.beginTime }}</span> <span class="timesCont">{{ item.beginTime }}</span>
<span>| 2</span> <span> {{ item.endTime }}</span>
</div> </div>
<div class="areaNmae" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div> <div class="areaNmae" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div>
@@ -123,7 +123,7 @@ export default {
}, },
toDetail(item) { toDetail(item) {
uni.navigateTo({ url: `./Detail?id=${item.id}` }) uni.navigateTo({ url: `./Detail?id=${item.id}&createUserId=${item.createUserId}` })
}, },
}, },
onReachBottom() { onReachBottom() {

View File

@@ -13,23 +13,23 @@
<div class="left-btn" :class="'status' + detail.status">{{ $dict.getLabel('villageActivityStatus', detail.status) }}</div> <div class="left-btn" :class="'status' + detail.status">{{ $dict.getLabel('villageActivityStatus', detail.status) }}</div>
</div> </div>
<div class="right"> <div class="right">
<img :src="detail.avatar" alt="" /> <img :src="detail.avatar" alt="" v-if="detail.avatar" />
<span>{{ detail.createUserName }}</span> <img :src="user.avatar" alt="" v-else />
<span>{{ detail.contactPerson }}</span>
</div> </div>
</div> </div>
<div class="cards"> <div class="cards">
<div class="cards-left">活动时间</div> <div class="cards-left">活动时间</div>
<div class="cards-right">{{ detail.beginTime && detail.beginTime.substring(0, detail.beginTime.length - 2) }}</div> <div class="cards-right">{{ detail.beginTime && detail.beginTime.substring(0, detail.beginTime.length - 3) }}</div>
</div> </div>
<div class="cards"> <div class="cards">
<div class="cards-left">活动人数</div> <div class="cards-left">活动人数</div>
<div class="cards-right" @click="toSignUser()"> <div class="cards-right" @click="toSignUser()">
<span> <span style="color: #1c6bdf">
<span :style="{ color: detail.realNum == detail.total ? '#FF4466 ' : '#1C6BDF' }">{{ detail.realNum || 0 }}</span> <span v-if="detail.realNum != 0">{{ detail.realNum }}</span>
<span v-if="detail.total != 0">/{{ detail.total }}</span> <span v-else>不限</span>
<span v-else>/不限</span>
</span> </span>
<u-icon name="arrow-right" color="#DDDDDD" size="28" style="margin-left: 8px"></u-icon> <u-icon name="arrow-right" color="#DDDDDD" size="28" style="margin-left: 8px"></u-icon>
</div> </div>
@@ -37,7 +37,7 @@
<div class="cards"> <div class="cards">
<div class="cards-left">活动地点</div> <div class="cards-left">活动地点</div>
<div class="cards-right" style="width: 75%; text-align: right">{{ detail.address }}</div> <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
</div> </div>
</div> </div>
@@ -102,10 +102,10 @@
</div> </div>
</div> </div>
<div class="fixedBtns" v-if="this.current == 0 && detail.status == 0" @click="toAdd">编辑活动</div> <div class="fixedBtns" v-if="this.current == 0 && detail.status == 0 && this.createUserId == this.user.id" @click="toAdd">编辑活动</div>
</div> </div>
<AiFixedBtn> <AiFixedBtn v-if="this.createUserId == this.user.id">
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="AddPosts()" /> <div class="addBtn iconfont iconfont-iconfangda" @tap.stop="AddPosts()" />
</AiFixedBtn> </AiFixedBtn>
</div> </div>
@@ -122,6 +122,7 @@ export default {
data() { data() {
return { return {
id: '', id: '',
createUserId: '',
detail: {}, detail: {},
activeList: [], activeList: [],
imgList: [], imgList: [],
@@ -134,11 +135,12 @@ export default {
}, },
], ],
current: 0, current: 0,
timeEndTime: '',
} }
}, },
onLoad(option) { onLoad(option) {
document.title = '活动报名'
this.id = option.id this.id = option.id
this.createUserId = option.createUserId
this.$dict.load(['villageActivityStatus']).then(() => { this.$dict.load(['villageActivityStatus']).then(() => {
this.getDetail() this.getDetail()
}) })
@@ -147,13 +149,15 @@ export default {
this.getListInit() this.getListInit()
}) })
}, },
onShow() {
document.title = '活动报名'
},
methods: { methods: {
getDetail() { getDetail() {
this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => { this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) { if (res?.data) {
// res.data.beginTime = res.data.beginTime.substring(0, 16)
// res.data.endTime = res.data.endTime.substring(0, 16)
this.detail = res.data this.detail = res.data
if (this.detail) { if (this.detail) {
if (this.detail.url) { if (this.detail.url) {
this.detail.url = JSON.parse(res.data.url || '[]') this.detail.url = JSON.parse(res.data.url || '[]')

View File

@@ -66,11 +66,12 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '居民列表'
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.getList() this.getList()
}, },
onShow() {}, onShow() {
document.title = '居民列表'
},
methods: { methods: {
getList() { getList() {
this.$http this.$http

View File

@@ -121,13 +121,14 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
document.title = '家庭成员信息'
this.id = o.id this.id = o.id
this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => { this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => {
this.getDetail() this.getDetail()
}) })
}, },
onShow() {}, onShow() {
document.title = '家庭成员信息'
},
methods: { methods: {
getDetail() { getDetail() {
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => { this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {

View File

@@ -100,7 +100,7 @@ export default {
showTagManage: false, showTagManage: false,
} }
}, },
onLoad() { onShow() {
document.title = '添加标签' document.title = '添加标签'
}, },
computed: { computed: {

View File

@@ -82,7 +82,7 @@ export default {
familyList: [], familyList: [],
} }
}, },
onLoad() { onShow() {
document.title = '居民详情' document.title = '居民详情'
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName') this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
}, },

View File

@@ -191,11 +191,13 @@ export default {
}, },
}, },
onLoad() { onLoad() {
document.title = '居民详情'
this.$dict.load('wxCustomerAddWay', 'wxCustomerLogType') this.$dict.load('wxCustomerAddWay', 'wxCustomerLogType')
this.getCustomLog(this.top.custom) this.getCustomLog(this.top.custom)
this.injectJWeixin('openUserProfile') this.injectJWeixin('openUserProfile')
}, },
onShow() {
document.title = '居民详情'
}
} }
</script> </script>

View File

@@ -29,7 +29,7 @@ export default {
id: '', id: '',
} }
}, },
onLoad() { onShow() {
document.title = '居民详情' document.title = '居民详情'
}, },
computed: { computed: {

View File

@@ -109,11 +109,11 @@
</div> </div>
<div class="footer"> <div class="footer">
<span v-if="isRecording || isStop" @click="restart">重新开始</span> <span v-if="isRecording || isStop" @click="restart">重新开始</span>
<img v-if="isStop" :src="`${!isPlay ? './img/play-icon' : './img/stop-img'}.png`" @click="play"> <img v-if="isStop" :src="`${$cdn}video/${!isPlay ? 'play-icon' : 'stop-img'}.png`" @click="play">
<img v-else :src="isRecording ? stopImg : microphone" @click="record"> <img v-else :src="`${$cdn}video/${isRecording ? 'stop-img' : 'microphone'}.png`" @click="record">
<!-- :src="isRecording ? stopImg : microphone" -->
<span v-if="isStop" @click="save">保存</span> <span v-if="isStop" @click="save">保存</span>
</div> </div>
<audio style="opacity: 0; visibility: hidden;" :src="audioSrc" @ended="onAudioEnd"></audio> <audio style="opacity: 0; visibility: hidden;" :src="audioSrc" @ended="onAudioEnd"></audio>
</div> </div>
</template> </template>

View File

@@ -75,6 +75,8 @@ export default {
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
},
onShow() {
document.title = this.listName document.title = this.listName
}, },

View File

@@ -99,6 +99,9 @@ export default {
uni.$on('update', () => { uni.$on('update', () => {
this.getList() this.getList()
}) })
},
onShow() {
document.title = this.listName document.title = this.listName
}, },
methods: { methods: {

View File

@@ -51,8 +51,11 @@ export default {
this.id = o.id this.id = o.id
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
},
onShow() {
document.title = this.listName document.title = this.listName
}, },
mounted() {}, mounted() {},
methods: { methods: {
previewImage(images, img) { previewImage(images, img) {

View File

@@ -155,9 +155,12 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
created() { created() {
this.getType() this.getType()
},
onShow() {
document.title = '新增人员' document.title = '新增人员'
}, },
methods: { methods: {
...mapActions(['selectEnterpriseContact']), ...mapActions(['selectEnterpriseContact']),
handleSelectUser(fieldDbName) { handleSelectUser(fieldDbName) {

View File

@@ -94,13 +94,15 @@ export default {
this.getStatistic() this.getStatistic()
this.getStatisticMon() this.getStatisticMon()
this.getUserList() this.getUserList()
document.title = '特殊人群管理'
uni.$on('specialPeopleList', () => { uni.$on('specialPeopleList', () => {
this.getStatistic() this.getStatistic()
this.getStatisticMon() this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
}, },
onShow() {
document.title = '特殊人群管理'
},
methods: { methods: {
areaSelect(e) { areaSelect(e) {

View File

@@ -10,7 +10,7 @@
<u-input v-model="forms.publishUnitName" placeholder="请输入发布单位" maxlength="16" /> <u-input v-model="forms.publishUnitName" placeholder="请输入发布单位" maxlength="16" />
</u-form-item> </u-form-item>
<u-form-item label="正文" prop="content" required :border-bottom="false" label-position="top" class="contents"> <u-form-item label="正文" prop="content" :border-bottom="false" label-position="top" class="contents">
<u-input v-model="forms.content" placeholder="请输入正文" type="textarea" auto-height height="100" maxlength="500" /> <u-input v-model="forms.content" placeholder="请输入正文" type="textarea" auto-height height="100" maxlength="500" />
</u-form-item> </u-form-item>
@@ -47,10 +47,12 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
document.title = '新增通知公告'
this.id = o.id this.id = o.id
this.getDetail() this.getDetail()
}, },
onShow() {
document.title = '新增通知公告'
},
mounted() {}, mounted() {},
methods: { methods: {
@@ -79,8 +81,13 @@ export default {
return this.$u.toast('请输入发布组织') return this.$u.toast('请输入发布组织')
} }
if (!this.forms.content) { var isContent = false
return this.$u.toast('请输入正文') if (this.forms.content || this.forms.images.length > 0) {
isContent = true
}
if (!isContent) {
return this.$u.toast('请输入正文或图片')
} }
const imgs = [] const imgs = []

View File

@@ -78,14 +78,15 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '通知公告'
this.getList() this.getList()
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.current = 1 this.current = 1
this.getList() this.getList()
}) })
}, },
onShow() {}, onShow() {
document.title = '通知公告'
},
methods: { methods: {
getList() { getList() {
this.$http this.$http

View File

@@ -177,9 +177,11 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
document.title = '视频监控'
// this.getMonitors() // this.getMonitors()
}, },
onShow() {
document.title = '视频监控'
},
mounted() { mounted() {
this.Echart = echarts.init(document.getElementById('echarts')) this.Echart = echarts.init(document.getElementById('echarts'))
} }

View File

@@ -101,7 +101,6 @@ export default {
...mapState(['user']), ...mapState(['user']),
}, },
onLoad() { onLoad() {
document.title = '走访慰问'
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.getList() this.getList()
@@ -111,6 +110,9 @@ export default {
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = '走访慰问'
},
mounted() {}, mounted() {},
methods: { methods: {
getList() { getList() {

View File

@@ -86,13 +86,15 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
document.title = '新建走访'
this.areaIdProps = this.user.areaId this.areaIdProps = this.user.areaId
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.getDetail() this.getDetail()
}) })
}, },
onShow() {
document.title = '新建走访'
},
mounted() {}, mounted() {},
methods: { methods: {
getDetail() { getDetail() {

View File

@@ -50,11 +50,13 @@ export default {
computed: {}, computed: {},
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
document.title = '走访详情'
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.getDetail() this.getDetail()
}) })
}, },
onShow() {
document.title = '走访详情'
},
mounted() {}, mounted() {},
methods: { methods: {
getDetail() { getDetail() {

View File

@@ -75,9 +75,11 @@ export default {
computed: {}, computed: {},
created() { created() {
console.log(1) console.log(1)
document.title = '选择走访慰问对象'
this.getDiyList() this.getDiyList()
}, },
onShow() {
document.title = '选择走访慰问对象'
},
mounted() {}, mounted() {},
methods: { methods: {
getDiyList() { getDiyList() {

View File

@@ -89,11 +89,13 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
document.title = '网上办事'
this.$dict.load('listApprovalStatusHb').then(() => { this.$dict.load('listApprovalStatusHb').then(() => {
this.getList() this.getList()
}) })
}, },
onShow() {
document.title = '网上办事'
},
mounted() {}, mounted() {},
methods: { methods: {
getList() { getList() {

View File

@@ -237,11 +237,13 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.listType = options.listType this.listType = options.listType
this.getDetail() this.getDetail()
}, },
onShow() {
document.title = '审批详情'
},
data() { data() {
return { return {
objid: '', objid: '',

View File

@@ -18,9 +18,11 @@ export default {
} }
}, },
onLoad(val) { onLoad(val) {
document.title = '审批详情'
this.flag = val?.flag == 1 this.flag = val?.flag == 1
}, },
onShow() {
document.title = '审批详情'
},
methods: { methods: {
goBack() { goBack() {
uni.navigateTo({ uni.navigateTo({

View File

@@ -101,12 +101,14 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.type = options.type this.type = options.type
this.getList() this.getList()
}, },
onShow() {
document.title = '审批详情'
},
computed: {}, computed: {},
watch: {}, watch: {},
onShow() {}, onShow() {},

View File

@@ -237,11 +237,13 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.listType = options.listType this.listType = options.listType
this.getDetail() this.getDetail()
}, },
onShow() {
document.title = '审批详情'
},
data() { data() {
return { return {
objid: '', objid: '',

View File

@@ -52,9 +52,9 @@ export default {
detail: {default: () => ({})}, detail: {default: () => ({})},
comment: Boolean comment: Boolean
}, },
mounted() { onShow() {
document.title = this.title document.title = this.title
} },
} }
</script> </script>

View File

@@ -67,8 +67,10 @@ export default {
}, },
created() { created() {
this.checkAccess() this.checkAccess()
},
onShow() {
document.title = "问卷调查" document.title = "问卷调查"
} },
} }
</script> </script>

View File

@@ -58,10 +58,10 @@ export default {
onLoad(opt) { onLoad(opt) {
this.index = opt.index this.index = opt.index
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
}, },
onShow() { onShow() {
this.getData(); this.getData();
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
}, },
methods: { methods: {
detail({id}) { detail({id}) {

View File

@@ -29,11 +29,13 @@ export default {
this.getList(); this.getList();
}, },
created() { created() {
document.title = "接收对象";
this.injectJWeixin().then(() => { this.injectJWeixin().then(() => {
this.getList(); this.getList();
}) })
}, },
onShow() {
document.title = '接收对象'
},
methods: { methods: {
...mapActions(['previewFile', 'injectJWeixin']), ...mapActions(['previewFile', 'injectJWeixin']),
getList() { getList() {