From be48542f290455ef94e2237bd0d8be030b7cc7f1 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Fri, 26 Jul 2024 16:51:55 +0800 Subject: [PATCH] 1 --- pages/index/detail.vue | 24 ++++++- pages/index/index.vue | 2 +- .../components/problem-tree-item.vue | 12 ++-- pages/investigation/task.vue | 69 ++++++++++++++----- pages/map/index.vue | 1 + 5 files changed, 80 insertions(+), 28 deletions(-) diff --git a/pages/index/detail.vue b/pages/index/detail.vue index 9832908..55efec1 100644 --- a/pages/index/detail.vue +++ b/pages/index/detail.vue @@ -237,7 +237,7 @@ export default { // params.roadName = "023县道"; // params.taskId = "000001"; // params.userId = "admin1"; - // this.params = params; + this.params = params; let str = ""; if (params.roadName) { str += "路段名:" + params.roadName; @@ -378,7 +378,25 @@ export default { async queryChat(voiceText) { // console.log(voiceText,"voiceText"); this.loading = true; - +console.log({ + voiceText, + sceneFlag: "", + sessionId: "", + multiType: "", + userId: this.params.userId, + deptId: this.params.deptId, + stream: false, + type: "1", + id: this.params.id, + taskId: this.params.taskId, + sectionId: this.params.sectionId, + sectionType: this.params.sectionType, + // "user_id": "zzp", + // "kb_ids": ["KBa80ea15e786241eca70a20f136f4e34c"], + // "question": "隐患排查流程是什么", + // "streaming": true, + // "history": [] + }) const [err, res] = await uni.request({ // url: 'http://10.16.3.159:8777/api/local_doc_qa/local_doc_chat', url: $.chatUrl + "/chat", @@ -401,6 +419,8 @@ export default { id: this.params.id, taskId: this.params.taskId, sectionId: this.params.sectionId, + + sectionType: this.params.sectionType, // "user_id": "zzp", // "kb_ids": ["KBa80ea15e786241eca70a20f136f4e34c"], // "question": "隐患排查流程是什么", diff --git a/pages/index/index.vue b/pages/index/index.vue index 3ac5f88..ab82fa3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -172,7 +172,7 @@ if(row.pcType == 2) { this.$.open("/pages/investigation/task" + "?id=" + this.businessId); } else { - this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId=' + row.sectionCode + '&deptId=' + row.handleDept + '&taskName=' + row.name + '&pcType' + row.pcType) + this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId='+ row.sectionCode + '&operator=' + row.operator +'&deptId=' + row.handleDept + '&taskName=' + row.name + '&pcType' + row.pcType) } }, konw() { diff --git a/pages/investigation/components/problem-tree-item.vue b/pages/investigation/components/problem-tree-item.vue index 0dab9a3..0ad61d2 100644 --- a/pages/investigation/components/problem-tree-item.vue +++ b/pages/investigation/components/problem-tree-item.vue @@ -1,24 +1,25 @@