fix: 大模型调试

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

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

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

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

Loading…
Cancel
Save