fix: 大模型调试

main
liyingang 1 year ago
parent 7f4434220e
commit 3dcb86ded4
  1. 377
      manifest.json
  2. 40
      pages/index/detail.vue
  3. 4
      pages/investigation/complete.vue

@ -1,189 +1,190 @@
{ {
"name" : "隐患排查", "name": "隐患排查",
"appid" : "__UNI__F12FECC", "appid": "__UNI__F12FECC",
"description" : "", "description": "",
"versionName" : "1.0.1.4", "versionName": "1.0.1.6",
"versionCode" : 1014, "versionCode": 1016,
"transformPx" : false, "transformPx": false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus": {
"compatible" : { "compatible": {
"ignoreVersion" : true "ignoreVersion": true
}, },
"usingComponents" : true, "usingComponents": true,
"nvueStyleCompiler" : "航屹匠工", "nvueStyleCompiler": "航屹匠工",
"compilerVersion" : 3, "compilerVersion": 3,
"nvueCompiler" : "uni-app", "nvueCompiler": "uni-app",
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* */ /* */
"modules" : { "modules": {
"Maps" : {}, "Maps": {},
"VideoPlayer" : {}, "VideoPlayer": {},
"Camera" : {}, "Camera": {},
"Geolocation" : {}, "Geolocation": {},
"Speech" : {}, "Speech": {},
"Record" : {} "Record": {}
}, },
/* */ /* */
"distribute" : { "distribute": {
/* android */ /* android */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ],
}, "abiFilters": ["armeabi-v7a", "x86"]
/* ios */ },
"ios" : { /* ios */
"dSYMs" : false, "ios": {
"idfa" : false "dSYMs": false,
}, "idfa": false
/* SDK */ },
"sdkConfigs" : { /* SDK */
"maps" : { "sdkConfigs": {
"amap" : { "maps": {
"appkey_ios" : "5ff94eb009cf6262844b517a62da56a1", "amap": {
"appkey_android" : "222bac65412133dc3814d1c028858de1" "appkey_ios": "5ff94eb009cf6262844b517a62da56a1",
} "appkey_android": "222bac65412133dc3814d1c028858de1"
}, }
"ad" : {}, },
"geolocation" : { "ad": {},
"amap" : { "geolocation": {
"name" : "amapYOJkguJ7", "amap": {
"__platform__" : [ "android" ], "name": "amapYOJkguJ7",
"appkey_ios" : "5ff94eb009cf6262844b517a62da56a1", "__platform__": ["android"],
"appkey_android" : "222bac65412133dc3814d1c028858de1" "appkey_ios": "5ff94eb009cf6262844b517a62da56a1",
} "appkey_android": "222bac65412133dc3814d1c028858de1"
}, }
"speech" : {} },
}, "speech": {}
"icons" : { },
"android" : { "icons": {
"hdpi" : "unpackage/res/icons/72x72.png", "android": {
"xhdpi" : "unpackage/res/icons/96x96.png", "hdpi": "unpackage/res/icons/72x72.png",
"xxhdpi" : "unpackage/res/icons/144x144.png", "xhdpi": "unpackage/res/icons/96x96.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png" "xxhdpi": "unpackage/res/icons/144x144.png",
}, "xxxhdpi": "unpackage/res/icons/192x192.png"
"ios" : { },
"appstore" : "unpackage/res/icons/1024x1024.png", "ios": {
"ipad" : { "appstore": "unpackage/res/icons/1024x1024.png",
"app" : "unpackage/res/icons/76x76.png", "ipad": {
"app@2x" : "unpackage/res/icons/152x152.png", "app": "unpackage/res/icons/76x76.png",
"notification" : "unpackage/res/icons/20x20.png", "app@2x": "unpackage/res/icons/152x152.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification": "unpackage/res/icons/20x20.png",
"proapp@2x" : "unpackage/res/icons/167x167.png", "notification@2x": "unpackage/res/icons/40x40.png",
"settings" : "unpackage/res/icons/29x29.png", "proapp@2x": "unpackage/res/icons/167x167.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings": "unpackage/res/icons/29x29.png",
"spotlight" : "unpackage/res/icons/40x40.png", "settings@2x": "unpackage/res/icons/58x58.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png" "spotlight": "unpackage/res/icons/40x40.png",
}, "spotlight@2x": "unpackage/res/icons/80x80.png"
"iphone" : { },
"app@2x" : "unpackage/res/icons/120x120.png", "iphone": {
"app@3x" : "unpackage/res/icons/180x180.png", "app@2x": "unpackage/res/icons/120x120.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "app@3x": "unpackage/res/icons/180x180.png",
"notification@3x" : "unpackage/res/icons/60x60.png", "notification@2x": "unpackage/res/icons/40x40.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "notification@3x": "unpackage/res/icons/60x60.png",
"settings@3x" : "unpackage/res/icons/87x87.png", "settings@2x": "unpackage/res/icons/58x58.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png", "settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png" "spotlight@2x": "unpackage/res/icons/80x80.png",
} "spotlight@3x": "unpackage/res/icons/120x120.png"
} }
} }
}, }
"nativePlugins" : { },
"lemonjk-FileSelect" : { "nativePlugins": {
"appid_android" : "com.hisense.thtapp", "lemonjk-FileSelect": {
"__plugin_info__" : { "appid_android": "com.hisense.thtapp",
"name" : "APP文件选择(支持安卓和ios)", "__plugin_info__": {
"description" : "支持双端的APP文件选取插件", "name": "APP文件选择(支持安卓和ios)",
"platforms" : "Android,iOS", "description": "支持双端的APP文件选取插件",
"url" : "https://ext.dcloud.net.cn/plugin?id=14059", "platforms": "Android,iOS",
"android_package_name" : "", "url": "https://ext.dcloud.net.cn/plugin?id=14059",
"ios_bundle_id" : "", "android_package_name": "",
"isCloud" : true, "ios_bundle_id": "",
"bought" : 1, "isCloud": true,
"pid" : "14059", "bought": 1,
"parameters" : { "pid": "14059",
"appid_android" : { "parameters": {
"des" : "请填写你当前应用的包名,必需填写,否则可能无法使用。(在菜单中->发行->原生App-云打包中可以查看包名信息)", "appid_android": {
"key" : "", "des": "请填写你当前应用的包名,必需填写,否则可能无法使用。(在菜单中->发行->原生App-云打包中可以查看包名信息)",
"value" : "" "key": "",
} "value": ""
} }
} }
} }
} }
}, }
/* */ },
"quickapp" : {}, /* */
/* */ "quickapp": {},
"mp-weixin" : { /* */
"appid" : "wx6c320876cd701e5e", "mp-weixin": {
"setting" : { "appid": "wx6c320876cd701e5e",
"urlCheck" : false "setting": {
}, "urlCheck": false
"usingComponents" : true },
}, "usingComponents": true
"mp-alipay" : { },
"usingComponents" : true "mp-alipay": {
}, "usingComponents": true
"mp-baidu" : { },
"usingComponents" : true "mp-baidu": {
}, "usingComponents": true
"mp-toutiao" : { },
"usingComponents" : true "mp-toutiao": {
}, "usingComponents": true
"uniStatistics" : { },
"enable" : false "uniStatistics": {
}, "enable": false
"vueVersion" : "2", },
"h5" : { "vueVersion": "2",
"sdkConfigs" : { "h5": {
"maps" : { "sdkConfigs": {
"amap" : { "maps": {
"key" : "7cd59279ec16e1fd9e894fd40fb0b5a9", "amap": {
"securityJsCode" : "1377d502bbacf3a37912d5544d440085", "key": "7cd59279ec16e1fd9e894fd40fb0b5a9",
"serviceHost" : "" "securityJsCode": "1377d502bbacf3a37912d5544d440085",
} "serviceHost": ""
} }
}, }
"devServer" : { },
// "port" : 8080, // "devServer": {
"https" : false, // "port" : 8080, //
"proxy" : { "https": false,
"/HiatmpPro" : { "proxy": {
"target" : "http://49.235.207.167:8800", "/HiatmpPro": {
// "target" : "http://219.147.31.25:30001/tht-app-api", // "target" : "http://49.235.207.167:8800",
"changeOrigin" : true, "target": "http://219.147.31.25:30001/tht-app-api",
"secure" : false, "changeOrigin": true,
"pathRewrite" : { "secure": false,
"^/HiatmpPro" : "/HiatmpPro" "pathRewrite": {
} "^/HiatmpPro": "/HiatmpPro"
}, }
"/hitapChat" : { },
"target" : "http://219.147.31.25:30001/hitap", "/hitapChat": {
"changeOrigin" : true, "target": "http://219.147.31.25:30001/hitap",
"secure" : false, "changeOrigin": true,
"pathRewrite" : { "secure": false,
"^/hitapChat" : "" "pathRewrite": {
} "^/hitapChat": ""
} }
} }
}, }
"title" : "排查隐患" },
} "title": "排查隐患"
} }
}

@ -1,6 +1,7 @@
<template> <template>
<view class="detail" :data="params" :change:data="renderjs.renderjsGet" :imgArr="imgArr" <view class="detail" :data="params" :change:data="renderjs.renderjsGet" :imgArr="imgArr"
:change:imgArr="renderjs.getImgArr" :check="check" :change:check="renderjs.checkGet" :taskId="taskId" :change:taskId="renderjs.taskIdGet" > :change:imgArr="renderjs.getImgArr" :check="check" :change:check="renderjs.checkGet" :taskId="taskId"
:change:taskId="renderjs.taskIdGet">
<!-- <view class="Content BorderBox Width100"> <!-- <view class="Content BorderBox Width100">
<top-title <top-title
:is-show-left="true" :is-show-left="true"
@ -48,8 +49,7 @@
<view class="cur-time font-family-SR"> <view class="cur-time font-family-SR">
{{curTime}} {{curTime}}
</view> </view>
<view :class="['bar', item.answerId == '0' ? 'currAnswer' : '']" v-for="(item, i) in msgList" <view :class="['bar', item.answerId == '0' ? 'currAnswer' : '']" v-for="(item, i) in msgList" :key="i">
:key="item.id">
<!-- <image <!-- <image
:src=" :src="
item.answerId == '0' ? '/static/self.png' : '/static/left_user.png' item.answerId == '0' ? '/static/self.png' : '/static/left_user.png'
@ -93,7 +93,8 @@
</u-checkbox-group> </u-checkbox-group>
</view> </view>
<view v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0" <view
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0 && !item.check"
:style="item.answerOptions.length > 2 ? 'display: flex; flex-wrap: wrap;' : ''" :style="item.answerOptions.length > 2 ? 'display: flex; flex-wrap: wrap;' : ''"
:class="item.answerOptions.length > 2 ? '' : 'btnBox'"> :class="item.answerOptions.length > 2 ? '' : 'btnBox'">
<view v-for="(it, ind) in item.answerOptions" :key="ind" <view v-for="(it, ind) in item.answerOptions" :key="ind"
@ -119,7 +120,7 @@
</u-radio-group> --> </u-radio-group> -->
</view> </view>
<view class="btnBox" <view class="btnBox"
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1"> v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1 && !item.check">
<view class="btn" @click="handleGroup2(i)">清空</view> <view class="btn" @click="handleGroup2(i)">清空</view>
<view class="btn" @click="handleGroup(item)">确认</view> <view class="btn" @click="handleGroup(item)">确认</view>
</view> </view>
@ -337,7 +338,10 @@
{ {
answerId: "1", answerId: "1",
data: '', data: '',
}, optionType: res.result.data?.optionType,
answerOptions: res.result.data ? res.result.data
.answerOptions : [],
}
]; ];
console.log('contentcontentcontent', content) console.log('contentcontentcontent', content)
this.tempStr = content this.tempStr = content
@ -347,6 +351,7 @@
}, 50) }, 50)
} }
} }
console.log('msgList', this.msgList)
// } // }
// debugger // debugger
@ -426,6 +431,7 @@
res.result.data?.optionType; res.result.data?.optionType;
this.msgList[this.msgList.length - 1].answerOptions = this.msgList[this.msgList.length - 1].answerOptions =
res.result.data ? res.result.data.answerOptions : []; res.result.data ? res.result.data.answerOptions : [];
console.log('msgList', this.msgList)
} else { } else {
// //
this.msgList = [ this.msgList = [
@ -438,6 +444,7 @@
.answerOptions : [], .answerOptions : [],
}, },
]; ];
console.log('msgList', this.msgList)
} }
}, index * 50) }, index * 50)
}) })
@ -997,7 +1004,15 @@
} else { } else {
text = item; text = item;
} }
this.$set(this.msgList[this.msgList.length - 1], 'check', true)
this.msgList.push({
answerId: '0',
data: text
})
this.check = text this.check = text
setTimeout(() => {
this.check = ''
}, 100)
return return
this.handleSend(text); this.handleSend(text);
}, },
@ -1018,7 +1033,7 @@
return { return {
firstFlag: false, firstFlag: false,
params: {}, params: {},
taskId:'' taskId: ''
} }
}, },
mounted(option) { mounted(option) {
@ -1047,7 +1062,7 @@
this.newSSE('开始隐患排查' + str, '1') this.newSSE('开始隐患排查' + str, '1')
} }
}, },
taskIdGet(taskId){ taskIdGet(taskId) {
this.taskId = taskId this.taskId = taskId
}, },
checkGet(check) { checkGet(check) {
@ -1056,6 +1071,7 @@
} }
}, },
newSSE(voiceText, answerId = '') { newSSE(voiceText, answerId = '') {
if (!voiceText) return
console.log('排查chat发送', voiceText, { console.log('排查chat发送', voiceText, {
voiceText, voiceText,
sceneFlag: "", sceneFlag: "",
@ -1067,7 +1083,7 @@
stream: true, stream: true,
type: "1", type: "1",
id: this.params.id || '', id: this.params.id || '',
taskId: this.taskId , taskId: this.taskId,
sectionId: this.params.sectionId || '', sectionId: this.params.sectionId || '',
sectionType: this.params.sectionType || '', sectionType: this.params.sectionType || '',
}) })
@ -1089,7 +1105,7 @@
stream: true, stream: true,
type: "1", type: "1",
id: this.params.id || '', id: this.params.id || '',
taskId: this.params.taskId || '', taskId: this.params.taskId || this.taskId,
sectionId: this.params.sectionId || '', sectionId: this.params.sectionId || '',
sectionType: this.params.sectionType || '', sectionType: this.params.sectionType || '',
}), }),
@ -1097,6 +1113,10 @@
openWhenHidden: true, openWhenHidden: true,
onopen: () => {}, onopen: () => {},
onmessage: (ev) => { onmessage: (ev) => {
if (!this.taskId) {
const result = JSON.parse(ev.data);
this.taskId = result.taskId
}
console.log('chat内容返回', ev); console.log('chat内容返回', ev);
// //
this.$ownerInstance.callMethod('sseBack', ev); this.$ownerInstance.callMethod('sseBack', ev);

@ -379,7 +379,7 @@
this.getRoadTypes() this.getRoadTypes()
this.getEnumValues2() this.getEnumValues2()
this.getEnumValues3() this.getEnumValues3()
console.log(e.pageName) console.log(e)
this.pageTitle = e.pageName || '排查' this.pageTitle = e.pageName || '排查'
this.approveStatus = e.approveStatus this.approveStatus = e.approveStatus
this.isSP = e.isSP || 2 this.isSP = e.isSP || 2
@ -390,7 +390,7 @@
this.type = e.type; this.type = e.type;
this.sectionType = e.sectionType this.sectionType = e.sectionType
this.getBaseData(e.id); this.getBaseData(e.id);
this.getSectionNameList(e.sectionCode, e.taskName) this.getSectionNameList(e.sectionCode, e.sectionName)
this.getTaskInfo() this.getTaskInfo()
this.getFileData() this.getFileData()
this.getChartList() this.getChartList()

Loading…
Cancel
Save