|
@@ -160,7 +160,7 @@ export default {
|
|
|
this.queryConfessionSession()
|
|
|
},
|
|
|
//查询技术交底书会话记录
|
|
|
- queryConfessionSession(onlyQuery,request){
|
|
|
+ queryConfessionSession(onlyQuery,request,result){
|
|
|
var params = {
|
|
|
type:2
|
|
|
}
|
|
@@ -177,6 +177,23 @@ export default {
|
|
|
if(request){
|
|
|
this.getResult()
|
|
|
}
|
|
|
+ if(result){
|
|
|
+ let obj = {}
|
|
|
+ if(this.confessionSessionList && this.confessionSessionList.length>0){
|
|
|
+ obj = this.confessionSessionList[0]
|
|
|
+ }
|
|
|
+ let content = obj.content
|
|
|
+ if(!content){
|
|
|
+ this.$set(this,'result','')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ try{
|
|
|
+ let data = JSON.parse(content)
|
|
|
+ this.$set(this,'result',data.answer)
|
|
|
+ }catch(e){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|