|
|
@ -229,7 +229,7 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
|
console.log(options) |
|
|
|
console.log(options); |
|
|
|
let params = options; |
|
|
|
let params = options; |
|
|
|
// params.deptId = "3702000000"; |
|
|
|
// params.deptId = "3702000000"; |
|
|
|
// params.id = "37020017609"; |
|
|
|
// params.id = "37020017609"; |
|
|
@ -243,7 +243,7 @@ export default { |
|
|
|
str += "路段名:" + params.roadName; |
|
|
|
str += "路段名:" + params.roadName; |
|
|
|
this.title = params.roadName + "智能排查"; |
|
|
|
this.title = params.roadName + "智能排查"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (params.id) { |
|
|
|
if (params.id != "undefined") { |
|
|
|
str += ",id:" + params.id; //params.id |
|
|
|
str += ",id:" + params.id; //params.id |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(params); |
|
|
|
console.log(params); |
|
|
@ -251,7 +251,12 @@ export default { |
|
|
|
this.queryChat("开始隐患排查," + str); |
|
|
|
this.queryChat("开始隐患排查," + str); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// this.SSE("开始隐患排查," + str, "1"); |
|
|
|
// this.SSE("开始隐患排查," + str, "1"); |
|
|
|
this.queryChat("开始隐患排查," + str); |
|
|
|
if (params.id != "undefined") { |
|
|
|
|
|
|
|
this.queryChat("开始隐患排查," + str); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$.toast('缺少相关信息'); |
|
|
|
|
|
|
|
} |
|
|
|
// if(this.msgListA.length==0){ |
|
|
|
// if(this.msgListA.length==0){ |
|
|
|
// this.SSE("开始隐患排查," + str, '1') |
|
|
|
// this.SSE("开始隐患排查," + str, '1') |
|
|
|
// }else{ |
|
|
|
// }else{ |
|
|
@ -445,20 +450,17 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.msgList.push(newQuestion); // 将问题添加到消息列表 |
|
|
|
this.msgList.push(newQuestion); // 将问题添加到消息列表 |
|
|
|
// this.$store.commit('setMSg_List', this.msgList); |
|
|
|
// this.$store.commit('setMSg_List', this.msgList); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
scrollBottom() { |
|
|
|
scrollBottom() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
// const height = |
|
|
|
// const height = |
|
|
|
// this.$refs.scrollView && |
|
|
|
// this.$refs.scrollView && |
|
|
|
// this.$refs.scrollView.$refs && |
|
|
|
// this.$refs.scrollView.$refs && |
|
|
|
// this.$refs.scrollView.$refs.content |
|
|
|
// this.$refs.scrollView.$refs.content |
|
|
|
// ? this.$refs.scrollView.$refs.content.scrollHeight |
|
|
|
// ? this.$refs.scrollView.$refs.content.scrollHeight |
|
|
|
// : 0; |
|
|
|
// : 0; |
|
|
|
// this.scrollTop = height; |
|
|
|
// this.scrollTop = height; |
|
|
|
this.scrollTop = this.scrollTop + 1 |
|
|
|
this.scrollTop = this.scrollTop + 1; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 发送 |
|
|
|
// 发送 |
|
|
@ -525,7 +527,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
clearInterval(timer); |
|
|
|
clearInterval(timer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, 50); |
|
|
|
}, 50); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.msgList = [ |
|
|
|
this.msgList = [ |
|
|
@ -584,7 +585,9 @@ export default { |
|
|
|
// this.addQuestion(str, "0"); |
|
|
|
// this.addQuestion(str, "0"); |
|
|
|
// this.SSE(jsonArr, "0"); |
|
|
|
// this.SSE(jsonArr, "0"); |
|
|
|
this.changeMsgList("0", str); |
|
|
|
this.changeMsgList("0", str); |
|
|
|
this.queryChat(jsonArr); |
|
|
|
|
|
|
|
|
|
|
|
let j = jsonArr.join(","); |
|
|
|
|
|
|
|
this.queryChat(j); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|