事件上报
This commit is contained in:
@@ -123,7 +123,7 @@
|
|||||||
<ai-dialog
|
<ai-dialog
|
||||||
:visible.sync="isShowUser"
|
:visible.sync="isShowUser"
|
||||||
width="800px"
|
width="800px"
|
||||||
title="选择网格或网格员"
|
title="选择网格员"
|
||||||
@onConfirm="onConfirm">
|
@onConfirm="onConfirm">
|
||||||
<div class="grid-wrapper">
|
<div class="grid-wrapper">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -283,7 +283,7 @@ export default {
|
|||||||
onForwardConfirm() {
|
onForwardConfirm() {
|
||||||
this.$refs.forwardForm.validate(v => {
|
this.$refs.forwardForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.instance.post('/app/appclapeventinfo/transferByManager', {
|
this.instance.post('/app/appresidentreportinfo/transfer', {
|
||||||
...this.forwardForm,
|
...this.forwardForm,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -298,15 +298,24 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
if (this.gridInfo.userId) {
|
// if (this.gridInfo.userId) {
|
||||||
this.forwardForm.girdId = this.gridInfo.girdId
|
// this.forwardForm.girdId = this.gridInfo.girdId
|
||||||
this.forwardForm.girdName = this.gridInfo.girdName
|
// this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
this.forwardForm.girdMemberId = this.gridInfo.id
|
// this.forwardForm.girdMemberId = this.gridInfo.id
|
||||||
this.forwardForm.girdMemberName = this.gridInfo.name
|
// this.forwardForm.girdMemberName = this.gridInfo.name
|
||||||
} else {
|
// } else {
|
||||||
this.forwardForm.girdId = this.gridInfo.id
|
// this.forwardForm.girdId = this.gridInfo.id
|
||||||
}
|
// }
|
||||||
|
// this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
|
// this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
||||||
|
// this.isShowUser = false
|
||||||
|
if(!this.gridInfo.userId) {
|
||||||
|
return this.$message.error('请选择网格员!')
|
||||||
|
}
|
||||||
|
this.forwardForm.girdId = this.gridInfo.girdId
|
||||||
this.forwardForm.girdName = this.gridInfo.girdName
|
this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
|
this.forwardForm.girdMemberId = this.gridInfo.id
|
||||||
|
this.forwardForm.girdMemberName = this.gridInfo.name
|
||||||
this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
||||||
this.isShowUser = false
|
this.isShowUser = false
|
||||||
},
|
},
|
||||||
@@ -325,7 +334,7 @@ export default {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.$confirm('确定关闭该事件?').then(() => {
|
this.$confirm('确定关闭该事件?').then(() => {
|
||||||
this.instance.post(`/app/appmininotice/delete?ids=${this.$route.query.id}`).then(res => {
|
this.instance.post(`/app/appresidentreportinfo/delete?ids=${this.$route.query.id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -372,7 +381,7 @@ export default {
|
|||||||
handleEvent() {
|
handleEvent() {
|
||||||
this.$refs.form.validate(v => {
|
this.$refs.form.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.instance.post('/app/appclapeventinfo/finishByManager', {
|
this.instance.post('/app/appresidentreportinfo/finishByGirdMember', {
|
||||||
...this.form,
|
...this.form,
|
||||||
groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
|
groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
|
|||||||
Reference in New Issue
Block a user