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>
<div class="info-flex"> <div class="info-flex">
<span class="label">网格管理员</span> <span class="label">网格管理员</span>
<span class="value">林珊珊</span> <span class="value">{{detailInfo.build.girdMemberNames}}</span>
</div> </div>
<div class="info-flex"> <div class="info-flex">
<span class="label">楼栋长</span> <span class="label">楼栋长</span>

View File

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

View File

@@ -10,7 +10,7 @@
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect"></AiAreaPicker> <AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect"></AiAreaPicker>
</div> </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"> <template v-if="datas.length > 0">
<AiCard v-for="(item, i) in datas" :key="i" @click.native="toAdd(item, 1)"> <AiCard v-for="(item, i) in datas" :key="i" @click.native="toAdd(item, 1)">

View File

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

View File

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

View File

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