This commit is contained in:
shijingjing
2022-02-16 11:39:57 +08:00
parent eb8aa97428
commit fff0a63bec
3 changed files with 16 additions and 34 deletions

View File

@@ -69,7 +69,6 @@ export default {
current: 1, current: 1,
pages: 0, pages: 0,
show: false, show: false,
// myGirdList: [],
girdId: '', girdId: '',
groupName: '', groupName: '',
girdNameText: '所属网格', girdNameText: '所属网格',
@@ -112,15 +111,12 @@ export default {
}, },
mounted() { mounted() {
this.current = 1 this.current = 1
// this.girdList()
this.getList() this.getList()
uni.$on('nextList', () => { this.getStaticList()
this.current++ uni.$on('update', () => {
this.getList()
})
uni.$on('getListInit', () => {
this.current = 1 this.current = 1
this.getList() this.getList()
this.getStaticList()
}) })
}, },
onShow() { onShow() {
@@ -183,24 +179,6 @@ export default {
uni.navigateTo({ url: './add' }) uni.navigateTo({ url: './add' })
}, },
// girdList() {
// this.$http
// .post(`/app/appgirdmemberinfo/queryMyGirdListWithOut01`, null, {
// params: {
// size: 9999,
// },
// })
// .then((res) => {
// if (res.code == 0) {
// this.myGirdList = res.data
// var all = {
// id: '',
// girdName: '全部',
// }
// this.myGirdList.unshift(all)
// }
// })
// },
confirm(e) { confirm(e) {
if (this.show) { if (this.show) {

View File

@@ -90,7 +90,7 @@
<h2>办理结果</h2> <h2>办理结果</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<textarea v-model="form.result" :maxlength="500" placeholder="请输入办理结果信息"></textarea> <textarea v-model="form.finishContent" :maxlength="500" placeholder="请输入办理结果信息"></textarea>
</div> </div>
</div> </div>
</div> </div>
@@ -104,7 +104,7 @@
<span>(最多9张)</span> <span>(最多9张)</span>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<AiUploader :def.sync="form.resultFiles" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader> <AiUploader :def.sync="form.finishFiles" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
</div> </div>
</div> </div>
</div> </div>
@@ -133,8 +133,8 @@ export default {
flow: '', flow: '',
girdId: '', girdId: '',
flag: false, flag: false,
result: '', finishContent: '',
resultFiles: [], finishFiles: [],
opts: 1, opts: 1,
name: '', name: '',
lat: '', lat: '',
@@ -236,14 +236,14 @@ export default {
if (!this.form.groupId) { if (!this.form.groupId) {
return this.$u.toast('请选择事件类型') return this.$u.toast('请选择事件类型')
} }
if (!this.form.address) { // if (!this.form.address) {
return this.$u.toast('请选择发生地点') // return this.$u.toast('请选择发生地点')
} // }
if (!this.form.girdName) { if (!this.form.girdName) {
return this.$u.toast('请选择上报网格') return this.$u.toast('请选择上报网格')
} }
if (this.form.opts == 0) { if (this.form.opts == 0) {
if (!this.form.result) { if (!this.form.finishContent) {
return this.$u.toast('请输入事件办理结果') return this.$u.toast('请输入事件办理结果')
} }
} }
@@ -254,7 +254,10 @@ export default {
this.$http this.$http
.post(`/app/appclapeventinfo/addOrUpdate?`, { .post(`/app/appclapeventinfo/addOrUpdate?`, {
...this.form, ...this.form,
lat: '120',
lng: '80',
files: this.form.files, files: this.form.files,
finishFiles: this.form.finishFiles,
groupName: this.dictList.filter((v) => v.value === this.form.groupId)[0].label, groupName: this.dictList.filter((v) => v.value === this.form.groupId)[0].label,
eventStatus: this.form.opts == 0 ? '2' : '0', eventStatus: this.form.opts == 0 ? '2' : '0',
}) })

View File

@@ -80,7 +80,8 @@
<div class="cardes-msg-top" v-if="item.doExplain">{{ item.doExplain }}</div> <div class="cardes-msg-top" v-if="item.doExplain">{{ item.doExplain }}</div>
<div class="imgs"> <div class="imgs">
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)" /> <img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)"/>
<img :src="e.url" alt="" v-for="(e, index) in item.finishFiles" :key="index" @click="previewImage(item.finishFiles, e.url)" v-if="item.eventStatus=='2'" />
</div> </div>
</div> </div>
</div> </div>