Commit 611af6d6 by zhangxw

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

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