Commit 37306d8c by 前端

修复冒烟中出现的BUG

1 parent 89ae558d
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
style="width:400px"> style="width:400px">
<el-date-picker v-model="infoForm.nextFollowerTime" <el-date-picker v-model="infoForm.nextFollowerTime"
type="datetime" type="datetime"
format="yyyy-MM-DD HH:mm" format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-DD HH:mm" value-format="yyyy-MM-dd HH:mm"
placeholder="选择日期时间"> placeholder="选择日期时间">
</el-date-picker> </el-date-picker>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
import { saveFollowRecord } from '@api/earlyWarningManager' import { saveFollowRecord } from '@api/earlyWarningManager'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { findMerchantStaffList } from '@api/index' import { findMerchantStaffList } from '@api/index'
import { baseConfig } from '@/main' // import { baseConfig } from '@/main'
export default { export default {
name: 'HandleDialog', name: 'HandleDialog',
data() { data() {
...@@ -130,6 +130,10 @@ export default { ...@@ -130,6 +130,10 @@ export default {
}, },
mounted() { mounted() {
console.log('this.paramsObj', this.paramsObj)
if (this.paramsObj.status) {
this.infoForm.followStatus = this.paramsObj.status
}
this.findMerchantStaffList() this.findMerchantStaffList()
this.getOptionsList('editFormData', false) this.getOptionsList('editFormData', false)
}, },
...@@ -221,10 +225,11 @@ export default { ...@@ -221,10 +225,11 @@ export default {
if (valid) { if (valid) {
var params = deepClone(this.infoForm) var params = deepClone(this.infoForm)
params.msgId = this.paramsObj.id params.msgId = this.paramsObj.id
var personInfo = this.baseData.followUpPersonOpt.find(item => item.userId == params.nextFollowerId) if (params.followStatus !== 3) {
params.nextFollowerName = personInfo.userName var personInfo = this.baseData.followUpPersonOpt.find(item => item.userId == params.nextFollowerId)
params.nextFollowerPhone = personInfo.userPhone params.nextFollowerName = personInfo.userName
// return console.log('personInfo', personInfo) params.nextFollowerPhone = personInfo.userPhone
}
saveFollowRecord(params).then(res => { saveFollowRecord(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.dialogShow = true this.dialogShow = true
......
...@@ -296,6 +296,9 @@ export default { ...@@ -296,6 +296,9 @@ export default {
? Util.dateFormate(res.endDate, "YYYY-MM-DD") ? Util.dateFormate(res.endDate, "YYYY-MM-DD")
: "--" : "--"
}) })
if (item.warningMsgs.length > 2) {
item.warningMsgs = item.warningMsgs.slice(0, 2)
}
} }
}) })
}) })
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
style="width:400px"> style="width:400px">
<el-date-picker v-model="infoForm.nextFollowerTime" <el-date-picker v-model="infoForm.nextFollowerTime"
type="datetime" type="datetime"
format="yyyy-MM-DD HH:mm" format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-DD HH:mm" value-format="yyyy-MM-dd HH:mm"
placeholder="选择日期时间"> placeholder="选择日期时间">
</el-date-picker> </el-date-picker>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
import { saveFollowRecord } from '@api/earlyWarningManager' import { saveFollowRecord } from '@api/earlyWarningManager'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { findMerchantStaffList } from '@api/index' import { findMerchantStaffList } from '@api/index'
import { baseConfig } from '@/main' // import { baseConfig } from '@/main'
export default { export default {
name: 'HandleDialog', name: 'HandleDialog',
data() { data() {
...@@ -221,10 +221,11 @@ export default { ...@@ -221,10 +221,11 @@ export default {
if (valid) { if (valid) {
var params = deepClone(this.infoForm) var params = deepClone(this.infoForm)
params.msgId = this.paramsObj.id params.msgId = this.paramsObj.id
var personInfo = this.baseData.followUpPersonOpt.find(item => item.userId == params.nextFollowerId) if (params.followStatus !== 3) {
params.nextFollowerName = personInfo.userName var personInfo = this.baseData.followUpPersonOpt.find(item => item.userId == params.nextFollowerId)
params.nextFollowerPhone = personInfo.userPhone params.nextFollowerName = personInfo.userName
// return console.log('personInfo', personInfo) params.nextFollowerPhone = personInfo.userPhone
}
saveFollowRecord(params).then(res => { saveFollowRecord(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.dialogShow = true this.dialogShow = true
......
...@@ -196,6 +196,9 @@ export default { ...@@ -196,6 +196,9 @@ export default {
? Util.dateFormate(res.endDate, "YYYY-MM-DD") ? Util.dateFormate(res.endDate, "YYYY-MM-DD")
: "--" : "--"
}) })
if (item.warningMsgs.length > 2) {
item.warningMsgs = item.warningMsgs.slice(0, 2)
}
} }
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!