This commit is contained in:
liuye
2024-08-16 14:29:26 +08:00
parent b04a8eaf01
commit 79c0c5b3b3
3 changed files with 4 additions and 9 deletions

View File

@@ -204,7 +204,7 @@ export default {
this.$instance.post(`${url}`, {...this.forms}).then((res) => { this.$instance.post(`${url}`, {...this.forms}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast(this.id ? '编辑成功' : '上报成功') this.$u.toast(this.id ? '编辑成功' : '上报成功')
uni.$emit('getListInit') uni.$emit('workTaskGetListInit')
if(this.id) { if(this.id) {
uni.$emit('updateDeatil') uni.$emit('updateDeatil')
} }

View File

@@ -143,7 +143,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast(successText) this.$u.toast(successText)
uni.$emit('updateDeatil') uni.$emit('updateDeatil')
uni.$emit('getListInit') uni.$emit('workTaskGetListInit')
setTimeout(() => { setTimeout(() => {
if (this.status == 1) { if (this.status == 1) {
uni.navigateBack({delta: 2}) uni.navigateBack({delta: 2})

View File

@@ -70,7 +70,7 @@ export default {
return { return {
datas: [], datas: [],
tabList: [ tabList: [
{name: '全部待办', value: ''}, {name: '全部待办', value: '0'},
{name: '办件历史', value: '1'}, {name: '办件历史', value: '1'},
// {name: '居民上报', value: '0'}, // {name: '居民上报', value: '0'},
// {name: '舆情上报', value: '2'}, // {name: '舆情上报', value: '2'},
@@ -105,16 +105,11 @@ export default {
this.eventSource = res.eventSource this.eventSource = res.eventSource
this.getListInit() this.getListInit()
}) })
}, },
onShow() { created() {
this.searchGrid.girdId = this.user.girdId this.searchGrid.girdId = this.user.girdId
this.searchGrid.girdName = this.user.girdName this.searchGrid.girdName = this.user.girdName
this.current = 1 this.current = 1
this.getList()
},
created() {
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => { this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => {
this.getList() this.getList()
this.getIsAdd() this.getIsAdd()