This commit is contained in:
花有清香月有阴
2021-12-23 17:37:06 +08:00
6 changed files with 35 additions and 28 deletions

View File

@@ -53,7 +53,7 @@
</div>
<div class="info-flex">
<span class="label">网格管理员</span>
<span class="value">林珊珊</span>
<span class="value">{{detailInfo.build.girdMemberNames}}</span>
</div>
<div class="info-flex">
<span class="label">楼栋长</span>

View File

@@ -125,14 +125,14 @@ export default {
return this.$u.toast('请选择类别')
}
const imgs = []
var imgs = []
if (this.forms.fileIds) {
this.forms.fileIds.map((e) => {
imgs.push({ url: e.url, id: e.id })
})
}
this.flag = true
console.log(222)
this.$http.post(`/app/appcontentinfo/addOrUpdate`, {
title: this.forms.title,
areaId: this.forms.areaId,
@@ -144,14 +144,17 @@ export default {
categoryName: this.selectList[this.forms.selectIndex].categoryName,
})
.then((res) => {
console.log(333)
if (res.code == 0) {
uni.$emit('update')
this.$u.toast('发布成功')
this.flag = false
this.flag = true
setTimeout(() => {
uni.navigateBack()
}, 600)
}
}).catch((err) => {
console.log(err)
})
} else {
this.$u.toast('失败')

View File

@@ -10,7 +10,7 @@
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect"></AiAreaPicker>
</div>
<u-search class="serach_content" placeholder="请输入公开标题" :show-action="false" v-model="keyword" @clear="clearSearch" @search="search"></u-search>
<u-search class="serach_content" placeholder="请输入标题" :show-action="false" v-model="keyword" @clear="clearSearch" @search="search"></u-search>
<template v-if="datas.length > 0">
<AiCard v-for="(item, i) in datas" :key="i" @click.native="toAdd(item, 1)">

View File

@@ -388,10 +388,9 @@ export default {
}).then((res) => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('specialPeopleList')
setTimeout(() => {
this.$emit('change', {
type: 'Detail',
})
uni.navigateBack()
}, 600)
}
})

View File

@@ -95,6 +95,11 @@ export default {
this.getStatisticMon()
this.getUserList()
uni.setNavigationBarTitle({title: '特殊人群管理'})
uni.$on('specialPeopleList', () => {
this.getStatistic()
this.getStatisticMon()
this.getUserList()
})
},
methods: {

View File

@@ -6,7 +6,7 @@
<u-input v-model="forms.title" placeholder="请输入标题" maxlength="30" />
</u-form-item>
<u-form-item label="发布单位" prop="publishUnitName" required :border-bottom="false" class="phones">
<u-form-item label="发布组织" prop="publishUnitName" required :border-bottom="false" class="phones">
<u-input v-model="forms.publishUnitName" placeholder="请输入发布单位" maxlength="16" />
</u-form-item>
@@ -79,7 +79,7 @@ export default {
return this.$u.toast('请输入标题')
}
if (!this.forms.publishUnitName) {
return this.$u.toast('请输入发布单位')
return this.$u.toast('请输入发布组织')
}
const imgs = []