Commit 611af6d6 by zhangxw

修改bug 警情研判详情 日历交互修改

1 parent 1beecc63
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
placement="bottom-start" placement="bottom-start"
width="400" width="400"
v-model="editModalVisible" v-model="editModalVisible"
trigger="click"> trigger="manual">
<div class="popover-header"> <div class="popover-header">
</div> </div>
<el-form :model="form" :rules="rules" ref="form" :inline="false" size="mini" label-width="90px"> <el-form :model="form" :rules="rules" ref="form" :inline="false" size="mini" label-width="90px">
...@@ -288,6 +288,7 @@ export default { ...@@ -288,6 +288,7 @@ export default {
filterChange() { filterChange() {
let oParams = this.getParams() let oParams = this.getParams()
GET_ALARM_INFO_CALENDAR(oParams).then(res => { GET_ALARM_INFO_CALENDAR(oParams).then(res => {
this.editModalVisible = false
this.selectedDay = this.month this.selectedDay = this.month
this.defaultDate = this.month this.defaultDate = this.month
this.calendarData = res.data this.calendarData = res.data
...@@ -362,12 +363,18 @@ export default { ...@@ -362,12 +363,18 @@ export default {
async dateClick(data) { async dateClick(data) {
this.currIdx = 0 this.currIdx = 0
this.selectedDay = data.day this.selectedDay = data.day
this.editModalVisible = false
let currentMonth = moment(this.month).month() + 1
if (moment(data.day).month() + 1 !== currentMonth) {
this.month = data.day
}
// 获取最新的警情处理结果 // 获取最新的警情处理结果
if (!this.currItem.length) return if (!this.currItem.length) return
this.getHandleResult() this.getHandleResult()
}, },
getHandleResult() { getHandleResult() {
GET_LAST_ALARM_RESULT({ alarmId: this.currItem[this.currIdx].id }).then(res => { GET_LAST_ALARM_RESULT({ alarmId: this.currItem[this.currIdx].id }).then(res => {
this.editModalVisible = false
this.alarmHandleResult = res.data || {} this.alarmHandleResult = res.data || {}
}) })
}, },
...@@ -375,6 +382,7 @@ export default { ...@@ -375,6 +382,7 @@ export default {
editResolve() { editResolve() {
this.form.actionText = this.alarmHandleResult.resolvent || ''; this.form.actionText = this.alarmHandleResult.resolvent || '';
this.form.remark = this.alarmHandleResult.remark || ''; this.form.remark = this.alarmHandleResult.remark || '';
this.editModalVisible = true
}, },
// operation(status, num) { // operation(status, num) {
// if (status === 2) { // if (status === 2) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!