1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75189236"],{"04ca":function(t,e,a){"use strict";a("b67f")},"0c61":function(t,e,a){t.exports=a.p+"static/img/success.eec0767c.svg"},"0c95":function(t,e,a){"use strict";a("afb0")},"18a2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABACAYAAABFqxrgAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR1SURBVHgB7Zq/bxNJFMffjO3o4KQ7o2uuAMmuaJBiJIigA0FJwX9AKGhoAKVFeEKPSGhokDAtDSBqRETBjySFKWhosAQNEkgRBUhxso/3dWJiL7trz+4s3rX2Iz1Mdmes7GffzLzdCVFBQUHBHoosaRiuVtT2I+n6mNira63/fXOjdJFyjCZL2kZt4FMRLymlrjDzir9Nw2w2KEeUKSHMw9l0XAQopZ9LxtT7wvxImxbpErPnPRCZNVL6gmJaXjXlxzQBrDMByFU3mFVb/tvRxMN3Xenb8m91hrauhvXXTG3FPK+Vei7C7sv3ndJUatOEsJaAOWE/l+prpnR0tVmue8St/rljpnsKF9T7QYYK2gZ9h1LbQ3dckqn92qgOTQjr4eBP8TUz8+sOyhzRHDjVzwbj/44tKtcG7feGxASJNRyCGMqCPiHZIO3O45OJ+kKr6E8TwpkEGd/3Aw4Hzg2aueMxn/5bhpXmbl1myIuaVJUmhHWdEMTcze2mLBMm5PSGR6X59aZ6QhklkYQTksJebzXgkXUBK9XqenqxHX8C3C8xK/GfxCeJjxJfyQGxJDTMj1pZV27LUneebFHKbHp6OayGCAAXf07iTMC5ZxIPKSFWEjDJzWgPVeJV6ZhkDHckjCyxD0a0g4AFiYMRbZAVtyS+U0ysJsbeJCdjP6EAUJOVYWlucetCRJtxBNDu+YXd9rGwkrBqKgazuaxticpbqRaXsTJEZEKUgC8BxxKJiD0xSv0/LyUviqPauH3kOWOFiRfXTWUlolmYAKT7XYn3Eicl5gP6vpJokSWJl8g50zU0XCkG0aFkcwAEYNx/GjgWJgLt3pMFTuqEE7JaeKryIeR0R541jq6MXg1sBPQJEmG9YjipGF+bfR15wRJ2l01KAgDS/6Xv2KiJ9Dfclc20bWjvWaBPx/EQCOp72HfsB1niTMJONvCy77AZ0Q3V33WKL2Bh9zsGsX4v4UwC2KTyEu1lw6gswC8fdBE2AvzyUEZbTYrAqYReKbyXDSaiaRoCACZE6+cJpxLATjaodkQWpCWgRTGGAnAuAdmwyfp0yOk0BbyimDipE8YkkwLAn5KQhoBx+o7Fn5CQaQEgbQmZFwDSlJALASAtCbkRANKQkEQA+lwmBwJ6+yB4xGd+K4/6s2vNctiy7bxOSCrAWQbgxQ32TLFzriEigsS70gO4EBCnbyB4Iy4fVexyyev+2ai2rjIhUwJ2+GtDXuYckGFwQN51XItq6WJOyKAAO5JKCLsIPMndougnukwIAEkkTIUAEFfC1AgAcSRMlQBgK2HqBAAbCVMpANjUCdgenzoBwEbCId/PUyEAJJHwlKZAALCR4P8jiLMUvhWeGwGgZNH2fxrOhn8kjkisS3QHjudKALCRgF8eu8CVgWN+EVEryB3KoABgIwEbne8kjlOwiG8Slyh8BflMGSVOxWjzpzHjrCATxyYT+uCOB2WEn1wIAHEkgFEiciMAxJUAIAIT4j7amQcgAyvAC4l7u+cLCgoKCgoKCnLNT+LozqzhT+jPAAAAAElFTkSuQmCC"},"19e9":function(t,e,a){"use strict";a("be03")},"1a2b":function(t,e,a){},"1b56":function(t,e,a){"use strict";a.d(e,"l",(function(){return i})),a.d(e,"w",(function(){return o})),a.d(e,"d",(function(){return r})),a.d(e,"m",(function(){return c})),a.d(e,"e",(function(){return l})),a.d(e,"f",(function(){return u})),a.d(e,"r",(function(){return d})),a.d(e,"s",(function(){return h})),a.d(e,"c",(function(){return f})),a.d(e,"g",(function(){return p})),a.d(e,"k",(function(){return A})),a.d(e,"i",(function(){return g})),a.d(e,"j",(function(){return m})),a.d(e,"u",(function(){return v})),a.d(e,"v",(function(){return b})),a.d(e,"t",(function(){return y})),a.d(e,"q",(function(){return C})),a.d(e,"x",(function(){return w})),a.d(e,"h",(function(){return x})),a.d(e,"p",(function(){return j})),a.d(e,"a",(function(){return S})),a.d(e,"b",(function(){return I})),a.d(e,"n",(function(){return _})),a.d(e,"o",(function(){return O}));var s=a("829b"),n=a("b775");function i(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/get_classroom_observation_all",method:"post",data:t,hideloading:!0})}function o(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/update_classroom_observation",method:"post",data:t,hideloading:!0})}function r(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/ai_agent_park_chat",method:"post",data:t,hideloading:!0})}function c(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/get_classroom_observation_new",method:"post",data:t,hideloading:!0})}function l(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/update_classroom_observation_isdel",method:"post",data:t,hideloading:!0})}function u(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/delete_classroom_observation",method:"post",data:t,hideloading:!0})}function d(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/insert_classroom_observation_template",method:"post",data:t,hideloading:!0})}function h(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/insert_classroom_observation",method:"post",data:t,hideloading:!0})}function f(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/chat",method:"post",data:t,hideloading:!0})}function p(t){return Object(n["a"])({url:"/selectTesttCourse3",method:"get",params:t,hideloading:!0})}function A(t){return Object(n["a"])({url:"/selectClassroomTemplate",method:"get",params:t,hideloading:!0})}function g(t){return Object(n["a"])({url:"/selectClassroomDefault",method:"get",params:t,hideloading:!0})}function m(t){return Object(n["a"])({url:"/selectClassroomTemplateDetail",method:"get",params:t,hideloading:!0})}function v(t){return Object(n["a"])({url:"/updateClassroomTemplateCollect",method:"post",data:t,hideloading:!0})}function b(t){return Object(n["a"])({url:"/updateClassroomTemplateData",method:"post",data:t,hideloading:!0})}function y(t){return Object(n["a"])({url:"/updateClassroomDefault",method:"post",data:t,hideloading:!0})}function C(t){return Object(n["a"])({url:"/insertClassroomTemplate",method:"post",data:t,hideloading:!0})}function w(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/upload_file_knowledge",method:"put",data:t,hideloading:!0})}function x(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/get_agent_park_chat",method:"post",data:t,hideloading:!0})}function j(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/insert_chat",method:"post",data:t,hideloading:!0})}function S(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/chat",method:"post",data:t,hideloading:!0})}function I(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/ai_agent_park_chat_new",method:"post",data:t,hideloading:!0})}function _(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/get_ai_agent_assistant_list",method:"post",data:t,hideloading:!0})}function O(t){return Object(s["a"])({url:"https://gpt4.cocorobo.cn/get_ai_agent_assistant_share_list",method:"post",data:t,hideloading:!0})}},"2a32":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bar",style:{background:t.num?"#005CCD":"#f9f9f9",color:t.num?"#fff":"rgba(0, 0, 0, 0.90)"}},[t.num?t._e():e("div",{staticStyle:{position:"absolute",left:"10px"}},[e("van-icon",{attrs:{name:"arrow-left"},on:{click:t.back}})],1),e("div",{staticStyle:{"font-size":"16px"}},[t._v(" "+t._s(t.tit)+" ")])])},n=[],i=(a("a9e3"),{props:{tit:{type:String,default:""},num:{type:Number,default:0},backPage:{type:Number,default:0}},data:function(){return{barBackColor:"barBackColor"}},methods:{back:function(){1==this.backPage?(console.log(this.backPage),this.$router.go(-1)):this.$emit("cutPage")}}}),o=i,r=(a("04ca"),a("2877")),c=Object(r["a"])(o,s,n,!1,null,"130c282e",null);e["a"]=c.exports},3065:function(t,e,a){"use strict";a("cff3")},"430a":function(t,e,a){t.exports=a.p+"static/img/generate.abe8fb11.svg"},4626:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABgSURBVHgBzY7LDYAwDEMNYg32YB7EBDABAzAQG7AHi7SHXvp5VS5V+yRLlhM5kXozQf55rUn2e21q+UHpKoHfnEFENp8rywd4WQtu8OYCE2MX7ODNBS/4iKWQXUHEo6Fwo88LUBpYALEAAAAASUVORK5CYII="},"4b30":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABACAYAAABFqxrgAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJwSURBVHgB7Zq/MjRBFMWP7yOwiYAQmRUiEJBKSUm9gvIKUp6BVEoiIJUSkghWIJEICCTuMTtltFm7e/vOmN66v6pTO7O1VdNz+t6+/WcBx3Ecx3Ecx3Gc9GmLtlAx/9FspkW7onXRq+gRFZCCCTSgJVoWzYg6ojcYkooJOXOiDdGY6B5GpGZCThuGKZKqCcQsRVI2ISc6RUbBhBx1ioySCUSVImOoDr7Akmi+e62BLzULPeeis34/qsKENWS910YzeEZmxHWvH4zDDvbYDprz8jmT6BOJVpHA0XkbzeNOdIIsGnpiYQIXOJsl33OUZgiybHX6NaQHjKp9DA+fdYwBS2ZsOjACQgP48peiq+51naieHWMC8yxMAfbAIXS9HstAoV9GjAlhmPLhB6i/9/ncU9ENlGhNYBmcDhrCCKjbAJa+6LTTmrCBn42pMwXUoV+GxoS5rnLYkGvUQ3Tol6ExYSG47zstNcIk9MvQmLAS3Jvt8PTANPTL0JgwWbjWToIGhQYfoWL+YXiK40Hd1aASNCaMHG4CdCYUx4AZjAAaEzqFa84aW0ic2EggS0gcjQnhbG2YjdBGojGBtbtYGtto3pbaUGi33CdEi4V7XnP98I4E0ZrAw41VfA2K/JyC8cKmLrQmsMdZJcITY5bMeyQWETEnUHmVKKYFjWCEVL2mMCX2GI69zrlCcT3B1GCE5Oa8wfhPFdZYnTtwx/m3/xaxmvy1EXz+Mb5P9j6xPIbjviON0J471gE7Yy/80vJUmhWD1YH7DS00czr9guxc4hvWR/MMuVtkc4YnfE2qJrr6S9iWC9EDHMdxHMdxHMdxFHwAY/J01BLFm0EAAAAASUVORK5CYII="},"601e":function(t,e,a){"use strict";a("6367")},6367:function(t,e,a){},"64cd":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADVSURBVHgB7ZQxCsIwFIZfrCYIDkK7uWSoJWMHlY4ewRvYK3gSvYE9UnuCdhEcLHRtS/tMhoKD4FNUUPpNP+H9Scj/8gB6/h5GLZTSn/KR2AO0UNX1LsviguIbAhEhRAiIobmT1oleOlB8AyDCmia+p9+KUoFUMpDws6j5MvS81fYZj0UtNJsjY0fddhvbnmV5fkooPnLIX+GVJ/o45AwMpk2diTO9FGfSLzaQM3DdxRrbNkXOU6U11Uc+wLIsv9N4ox9BnkVlWUaccx+QYVWNI+jp6bgCKQA1ASDIIk4AAAAASUVORK5CYII="},"829b":function(t,e,a){"use strict";a("e7e5");var s=a("d399"),n=(a("d3b7"),a("bc3a")),i=a.n(n),o=a("4360"),r=a("4328"),c=a.n(r),l=i.a.create({});l.interceptors.request.use((function(t){return t.hideloading||s["a"].loading({forbidClick:!0}),"post"===t.method&&-1==t.url.indexOf("gpt4.cocorobo.cn")&&(t.data=c.a.stringify(t.data)),-1!=t.url.indexOf("gpt4.cocorobo.cn")&&(t.headers={"Content-Type":"application/json"},t.data=t.data),o["a"].getters.token&&(t.headers["X-Token"]=""),t}),(function(t){return console.log(t),Promise.reject(t)})),l.interceptors.response.use((function(t){s["a"].clear();var e=t.data;return e.status&&200!==e.status?(401===e.status&&o["a"].dispatch("FedLogOut").then((function(){location.reload()})),Promise.reject(e||"error")):Promise.resolve(e)}),(function(t){return s["a"].clear(),console.log("err"+t),Promise.reject(t)})),e["a"]=l},8345:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGbSURBVHgBtVU7TsNAEJ3ZmCClQOlozQ2MBCglHIKaIA6QtBQIIwracAEgNYfAdUAiR3BLRURHPjvsWN7N2tjKOomfZK/Xmn1vZz9vAGoGugQdh9NANQEC+twnoFg14/ewOV41tlQgCKndFLJHRH0V1C4Ji1Hg4HchhuMQJ84CnXB2KhGf1acPbogl0eVHuBOtFOjczy+khBdYBwK6oxtvWCqQzvwNNoDK5MzOxAgka46LT3BfljLEU2oc6j0R+u8uzbpbIGf4TZj3dccIkBA9WAP7ewBPV43kMUDsZQTSc+5DRTD5w3kjaXNop5wmgwAqwib/+gG4fl3kIsRSQN9QGzrtgtkVknNrA4F8I+AyyyrkmTz4lXpLBnqgTViFnAATTi/t/zMtTaAJudUZuMxcXbmE01y0k7v5NxSYWn6Z3MghHt16B/yx3AOix6JIm9CRHFBKw1WLVbSUVUR5q2DvYMuFDcEckVUbMseUXZBIri0i1Nh8TSgsOEfKtkVdBUeD94QdNjVBvyiGACaoDkcLvEFUpWTmsUnRrx1/blrUr7ougugAAAAASUVORK5CYII="},"86f1":function(t,e,a){"use strict";a("8c4d")},"8b58":function(t,e,a){"use strict";a("caad"),a("2532");var s=function(){var t=this,e=t._self._c;return t.show?e("div",{staticClass:"stencilled"},[e("bar",{staticStyle:{"z-index":"1000"},attrs:{tit:"添加模块",backPage:0},on:{cutPage:function(e){return t.close()}}}),e("div",{staticClass:"selectInp"},[e("van-search",{attrs:{shape:"round",placeholder:"搜索表单"},model:{value:t.selectValue,callback:function(e){t.selectValue=e},expression:"selectValue"}}),e("span",[t._v("搜索")])],1),e("div",{staticClass:"sortList"},[e("div",{class:[0==t.showIndex?"sl_active":""],on:{click:function(e){e.stopPropagation(),t.showIndex=0}}},[t._v("通用")]),e("div",{class:[1==t.showIndex?"sl_active":""],on:{click:function(e){e.stopPropagation(),t.showIndex=1}}},[t._v("学科")]),e("div",{class:[2==t.showIndex?"sl_active":""],on:{click:function(e){e.stopPropagation(),t.showIndex=2}}},[t._v("扩展")])]),e("div",{staticClass:"stencilList"},t._l(t.showDataList,(function(a,s){return e("div",{key:a.value+s,staticStyle:{"margin-bottom":"15px"}},[e("addStencil",{attrs:{data:a,isChoice:t.choiceList.includes(a.value)}})],1)})),0),e("div",{staticClass:"botBtn"},[e("div",{class:["btn",0==t.choiceList.length?"b_disabled":""],on:{click:function(e){return e.stopPropagation(),t.addYes.apply(null,arguments)}}},[t._v(" 添加("+t._s(t.choiceList.length)+") ")])])],1):t._e()},n=[],i=(a("e17f"),a("2241")),o=(a("4de4"),a("d3b7"),a("14d9"),a("b64b"),a("e9c4"),a("2a32")),r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"stencilledCon",on:{click:function(e){return e.stopPropagation(),t.$parent.addChoice(t.data.value)}}},[e("div",{staticClass:"top"},[e("div",{staticClass:"tit",domProps:{textContent:t._s(t.data.title)}}),e("div",{staticClass:"btn"},[t.isChoice?e("img",{attrs:{src:a("8345"),alt:""}}):t._e()])]),e("div",{staticClass:"con",domProps:{textContent:t._s(t.data.brief)}}),e("div",{staticClass:"bom"},[e("div",[t._v(t._s(t.data.sum)+"人已使用")])])])},c=[],l={props:{data:{type:Object,default:function(){}},isChoice:{type:Boolean,default:!1}},data:function(){return{}},methods:{}},u=l,d=(a("19e9"),a("2877")),h=Object(d["a"])(u,r,c,!1,null,"7b2f5c60",null),f=h.exports,p={components:{bar:o["a"],addStencil:f},props:{data:{type:Array,default:function(){return[]}}},computed:{showDataList:function(){var t=this,e=[];return e=this.data.filter((function(e){return e.type==t.showIndex&&-1!=e.title.indexOf(t.selectValue)})),e}},data:function(){return{selectValue:"",dataList:[],tagSubject:"",show:!1,showIndex:0,choiceList:[]}},methods:{open:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.show=!0,this.showIndex=t,this.choiceList=[]},close:function(){this.show=!1,this.$emit("close")},addYes:function(){var t=this;if(0==this.choiceList.length)return this.$toast("请选择你需要添加的分析");i["a"].confirm({title:"确定添加分析",message:"确定添加 ".concat(this.choiceList.length," 个分析吗?")}).then((function(e){t.$emit("success",t.choiceList)})).catch((function(t){console.log("不添加")}))},addChoice:function(t){this.choiceList.includes(t)?this.choiceList=this.choiceList.filter((function(e){return e!=t})):this.choiceList.push(t)}},mounted:function(){this.dataList=JSON.parse(JSON.stringify(this.data))}},A=p,g=(a("0c95"),Object(d["a"])(A,s,n,!1,null,"4f519f44",null));e["a"]=g.exports},"8c4d":function(t,e,a){},afb0:function(t,e,a){},b1fb:function(t,e,a){"use strict";a("1a2b")},b67f:function(t,e,a){},b703:function(t,e,a){"use strict";a.r(e);a("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.saveLoading,expression:"saveLoading"}],staticClass:"outcome"},[e("bar",{attrs:{tit:"分析结果",backPage:0},on:{cutPage:function(e){return t.cutPage(1)}}}),e("div",{staticClass:"sortList"},[e("div",{class:[0==t.showIndex?"sortActive":""],on:{click:function(e){return e.stopPropagation(),t.changeShowIndex(0)}}},[t._v("通用")]),e("div",{class:[1==t.showIndex?"sortActive":""],on:{click:function(e){return e.stopPropagation(),t.changeShowIndex(1)}}},[t._v("学科")]),e("div",{class:[2==t.showIndex?"sortActive":""],on:{click:function(e){return e.stopPropagation(),t.changeShowIndex(2)}}},[t._v("扩展")]),e("span",{on:{click:function(e){return e.stopPropagation(),t.addAnalysis.apply(null,arguments)}}},[t._v("+")])]),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading[t.showIndex],expression:"loading[showIndex]"}],staticClass:"stencilList"},t._l(t.dataList,(function(a,s){return 0!=a.Type||2!=a.tIndex?e("analysisItem",{directives:[{name:"show",rawName:"v-show",value:t.showIndex===a.Type,expression:"showIndex === item.Type"}],key:a.id,ref:"analysisItemRef",refInFor:!0,attrs:{data:a,analysisList:t.analysisList,bmData:t.bmData,fileId:t.fileId}}):t._e()})),1),e("div",{staticClass:"botBtn"},[e("div",{staticClass:"shareBtn",on:{click:function(e){return e.stopPropagation(),t.share()}}},[e("img",{attrs:{src:a("dbb5"),alt:""}}),e("span",[t._v("分享")])]),e("div",{staticClass:"bb_box"},[e("div",{staticClass:"btn",on:{click:function(e){return e.stopPropagation(),t.saveTemplate()}}},[t._v(" 保存模板 ")]),e("div",{staticClass:"btn",on:{click:function(e){return e.stopPropagation(),t.AllAnalysis()}}},[t._v(" 一键分析 ")]),e("div",{staticClass:"btn",on:{click:function(e){return e.stopPropagation(),t.viewTheReport()}}},[t._v(" 查看报告 ")])])]),e("van-popup",{model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}},[e("div",{staticClass:"popupCon"},[e("div",{staticClass:"tit"},[t._v("模板信息")]),e("div",{staticClass:"bri"},[t._v("请根据提示补充模版信息")]),e("div",[e("el-input",{attrs:{placeholder:"模版名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),e("el-input",{attrs:{type:"textarea",rows:3,resize:"none",placeholder:"模版简介"},model:{value:t.form.brief,callback:function(e){t.$set(t.form,"brief",e)},expression:"form.brief"}}),e("el-select",{staticStyle:{"z-index":"2026"},attrs:{placeholder:"所属学科"},model:{value:t.form.subject,callback:function(e){t.$set(t.form,"subject",e)},expression:"form.subject"}},t._l(t.subjectList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"switch"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("公开到社区")]),e("el-switch",{attrs:{"active-color":"rgba(54, 129, 252, 1)"},model:{value:t.form.per,callback:function(e){t.$set(t.form,"per",e)},expression:"form.per"}})],1)]),e("div",{staticClass:"btnS"},[e("div",{on:{click:t.cancelSaveTemplate}},[t._v("取消")]),e("div",{staticStyle:{color:"rgba(54, 129, 252, 1)"},on:{click:t.saveInfo}},[t._v("保存")])])]),e("van-popup",{model:{value:t.sharePopup,callback:function(e){t.sharePopup=e},expression:"sharePopup"}},[e("div",{staticClass:"saveBox"},[e("div",{staticClass:"sb_imgArea"},[e("span",{ref:"qrCodeUrl",staticClass:"qrcodeUrl"})]),e("div",{staticClass:"sb_inputArea"},[e("el-input",{staticClass:"sc_fu_input",staticStyle:{color:"black"},attrs:{disabled:""},model:{value:t.origin,callback:function(e){t.origin=e},expression:"origin"}},[e("template",{slot:"append"},[e("div",{staticClass:"sc_fu_copyBtn",on:{click:function(e){return e.stopPropagation(),t.copy(t.origin)}}},[t._v(" 复制链接 ")])])],2)],1)]),e("div",{staticClass:"btnS"},[e("div",{on:{click:function(e){t.sharePopup=!1}}},[t._v("取消")]),e("div",{staticStyle:{color:"rgba(54, 129, 252, 1)"},on:{click:function(e){t.sharePopup=!1}}},[t._v("确定")])])]),t.showReport?e("div",{staticClass:"o_report"},[e("div",{staticClass:"o_r_top"},[e("span",[t._v("查看报告")]),e("div",{on:{click:function(e){e.stopPropagation(),t.showReport=!1}}},[t._v("×")])]),e("div",{staticClass:"o_r_box"},[t.origin?e("iframe",{attrs:{src:t.origin,width:"100%",height:"100%"}}):t._e()])]):t._e(),e("addTel",{ref:"addTelRef",attrs:{data:t.analysisList},on:{success:t.addAnalysisByList}})],1)},n=[],i=(a("e17f"),a("2241")),o=(a("a9e3"),a("d3b7"),a("159b"),a("498a"),a("b64b"),a("e9c4"),a("14d9"),a("3ca3"),a("ddb0"),a("7db0"),a("4e82"),a("4de4"),a("25f0"),a("2a32")),r=(a("caad"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"outcomeCon"},[e("div",{staticStyle:{height:"50px",display:"flex","justify-content":"space-between","align-items":"center"},on:{click:t.showItem}},[e("div",{staticClass:"oc_title"},[t.show?e("van-icon",{attrs:{name:"arrow-down"}}):e("van-icon",{attrs:{name:"arrow"}}),e("span",{staticClass:"tit"},[t._v(t._s(t.data.jsonData?t.data.jsonData.name:""))])],1),[0].includes(t.status)?e("van-popover",{attrs:{placement:"bottom-end"},scopedSlots:t._u([{key:"reference",fn:function(){return[e("img",{attrs:{src:a("64cd"),alt:""},on:{click:function(e){return e.stopPropagation(),t.abuShowItem.apply(null,arguments)}}})]},proxy:!0}],null,!1,40715985),model:{value:t.abuShow,callback:function(e){t.abuShow=e},expression:"abuShow"}},[e("div",{staticClass:"abu"},[e("div",{staticClass:"abuBtn",on:{click:function(e){return e.stopPropagation(),t.del()}}},[e("img",{attrs:{src:a("4626"),alt:""}}),e("span",[t._v("删除")])])])]):t._e(),[1,2,3].includes(t.status)?e("div",{staticClass:"oc_status"},[[1].includes(t.status)?e("div",[e("img",{attrs:{src:a("430a")}}),e("span",[t._v("优化中...")])]):t._e(),[2].includes(t.status)?e("div",[e("span",{staticStyle:{color:"#e60012"}},[t._v("生成失败")])]):t._e(),[3].includes(t.status)?e("div",[e("img",{attrs:{src:a("0c61")}}),e("span",{staticStyle:{color:"#17C469"}},[t._v("生成成功")])]):t._e()]):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[e("div",{staticClass:"brief"},[t._v(" "+t._s(t.data.jsonData?t.data.jsonData.result:"")+" ")]),e("div",{staticClass:"content"},[e("mdView",{attrs:{text:t.data.jsonData?t.data.jsonData.content:""}})],1),t.data.jsonData.eChartData&&t.show?e("div",{staticClass:"eChart"},[e("eChartTemplate",{ref:"eChartTemplateRef",staticStyle:{"max-height":"600px","max-width":"600px",width:"100%",height:"400px",margin:"auto"},attrs:{data:t.data.jsonData.eChartData}})],1):t._e(),t.data.jsonData.RT&&t.data.jsonData.CH?e("div",{staticClass:"teacherMode"},[e("img",{attrs:{src:a("ce08")}}),e("div",[e("span",[t._v("RT="+t._s(t.data.jsonData.RT))]),e("span",[t._v("CH="+t._s(t.data.jsonData.CH))])])]):t._e(),[0,2,3].includes(t.status)?e("div",{staticClass:"outcomeBtn"},[e("div",{class:[0==t.historyIndex?"ob_no":""],on:{click:function(e){return e.stopPropagation(),t.down()}}},[e("img",{staticStyle:{transform:"rotateY(180deg)"},attrs:{src:a("4b30"),alt:""}}),e("span",[t._v("撤销")])]),e("div",{class:[t.historyIndex>=t.history.length-1?"ob_no":""],on:{click:function(e){return e.stopPropagation(),t.up()}}},[e("img",{attrs:{src:a("4b30"),alt:""}}),e("span",[t._v("恢复")])]),e("div",{on:{click:function(e){return e.stopPropagation(),t.optimize()}}},[e("img",{attrs:{src:a("18a2"),alt:""}}),e("span",[t._v("优化")])])]):t._e()])])}),c=[],l=a("2909"),u=(a("99af"),a("a434"),a("13d5"),a("0481"),a("4069"),a("b680"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"mdView"},[e("vue-markdown",{attrs:{source:t.markdownContent}})],1)}),d=[],h=a("9ce6"),f=a.n(h),p={components:{VueMarkdown:f.a},props:{url:{type:String,default:""},text:{type:String,default:""}},data:function(){return{markdownContent:""}},watch:{text:function(){this.markdownContent=this.text}},methods:{getMarkdown:function(){if(this.text)return this.markdownContent=this.text;this.url}},mounted:function(){this.getMarkdown()}},A=p,g=(a("86f1"),a("2877")),m=Object(g["a"])(A,u,d,!1,null,"463580a9",null),v=m.exports,b=a("11c1"),y=a("1b56"),C=function(){var t=this,e=t._self._c;return e("div",{ref:"chartRef",staticClass:"chart",attrs:{id:"charts_canvas"}})},w=[],x=a("313e"),j={props:{data:{type:Object,default:function(){}}},data:function(){return{chartObj:null,chartData:null}},watch:{data:function(){this.getChartData()}},methods:{getChartData:function(){var t=this;this.chartObj=x["init"](this.$refs.chartRef),this.chartObj.setOption(this.data),window.addEventListener("resize",(function(){t.resize()}))},resize:function(){this.chartObj.resize()}},mounted:function(){this.getChartData()}},S=j,I=(a("3065"),Object(g["a"])(S,C,w,!1,null,"c6edeb6e",null)),_=I.exports,O={props:{data:{type:Object,default:function(){}},analysisList:{type:Array,default:function(){return[]}},bmData:{type:Object,default:function(){}},fileId:{type:String,default:""}},components:{mdView:v,eChartTemplate:_},data:function(){return{show:!1,abuShow:!1,historyIndex:0,history:[],userId:this.$store.state.user.id,status:0}},methods:{showItem:function(){if(![0,2,3].includes(this.status))return this.$toast("正在优化中...");this.show=!this.show,this.status=0,this.$refs.eChartTemplateRef&&console.log("优化")},abuShowItem:function(){this.abuShow=!0},up:function(){this.historyIndex<this.history.length-1&&(this.historyIndex++,this.data.jsonData=JSON.parse(JSON.stringify(this.history[this.historyIndex])),this.data.json_data=JSON.stringify(this.data.jsonData),this.saveData(this.data).then((function(t){console.log("保存成功")})))},down:function(){this.historyIndex>0&&(this.historyIndex--,this.data.jsonData=JSON.parse(JSON.stringify(this.history[this.historyIndex])),this.data.json_data=JSON.stringify(this.data.jsonData),this.saveData(this.data).then((function(t){console.log("保存成功")})))},optimize:function(){var t=this;this.show=!1,this.status=1;var e=this.analysisList.find((function(e){return e.title==t.data.jsonData.name}));if(!e.value)return this.status=2,this.$toast.fail("未找到对应的AI助手");var a="使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。";if(["st1","st2","st3"].includes(e.value))return this.optimize2(e.value);"6b4a9650-48be-11ef-936b-12e77c4cb76b"==e.value&&(a="使用文件检索的方式完整的去分析文件内容,并基于以下的课堂基本内容,使用cpote课程设计模型改编一堂同主题的课程。\n课堂名称:".concat(this.bmData.courseName," 搜课年级:").concat(this.bmData.grade," 授课科目:").concat(this.bmData.subject));var s={assistant_id:e?e.value:null,message:a,session_name:Object(b["v4"])(),userId:this.userId,file_ids:this.fileId?[this.fileId]:"",model:"gpt-4o-2024-08-06"};Object(y["d"])(s).then((function(e){var a=e.FunctionResponse,s=JSON.parse(JSON.stringify(t.data));s.jsonData.content=a.message,s.jsonData.dataFileList=[],s.jsonData.fileList=[],s.json_data=JSON.stringify(s.jsonData),0==t.history.length?t.history.push(s.jsonData):t.history.splice(t.historyIndex+1,0,s.jsonData),t.up(),t.status=3})).catch((function(e){console.log(e),t.status=2}))},optimize2:function(t){if(0!=this.bmData.jsonData.editorBarData.type)return this.status=2,this.$toast.fail("请上传表格形式的转录文稿");try{var e=[],a=this.bmData.jsonData.editorBarData.content,s=document.createElement("div");s.innerHTML=a;var n=s.querySelectorAll("table tbody tr");if(n.forEach((function(t,a){if(0!=a&&t.cells[0].innerText&&"序号"!=t.cells[0].innerText){var s={index:t.cells[0].innerText,startTime:t.cells[1].innerText,endTime:t.cells[2].innerText,message:t.cells[3].innerText,time:t.cells[4].innerText,role:t.cells[5].innerText,behavior:t.cells[6].innerText};e.push(s)}})),0==e.length)return this.status=2,this.$toast.fail("未找到表格数据");if("st1"==t)this.getTimeAllocationData(e);else if("st2"==t)this.getInteractionAnalysisData(e);else{if("st3"!=t)return this.status=2,this.$toast.fail("未找到对应的分析");this.getTeachingModeData(e)}}catch(i){return console.log(i),this.status=2}},getTimeAllocationData:function(t){var e=this;this.status=1;var a=t.reduce((function(t,a){return"学生"==a.role?t[1].value+=e.convertToSeconds(a.time):"老师"==a.role&&(t[0].value+=e.convertToSeconds(a.time)),t}),[{value:0,name:"老师"},{value:0,name:"学生"}]),s={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {d}%"},legend:{top:"5%",left:"center"},series:[{name:"课堂时间分配",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:a}]},n=JSON.parse(JSON.stringify(this.data));n.jsonData.eChartData=s,n.json_data=JSON.stringify(n.jsonData),0==this.history.length?this.history.push(n.jsonData):this.history.splice(this.historyIndex+1,0,n.jsonData),this.up(),this.status=3},getInteractionAnalysisData:function(t){var e=this;this.status=1;var a=[0,0],s=[];t.forEach((function(t){return"老师"==t.role?a[0]+=e.convertToSeconds(t.time):"学生"==t.role&&(a[1]+=e.convertToSeconds(t.time)),s.push(JSON.parse(JSON.stringify(a)))}));var n=s.flat(),i=Math.max.apply(Math,Object(l["a"])(n)),o=100*Math.ceil(i/100),r={xAxis:{name:"老师",nameLocation:"end",scale:!0,min:0,max:o},yAxis:{name:"学生",nameLocation:"end",scale:!0,min:0,max:o},grid:{containLabel:!0},series:[{name:"数据",step:"start",data:s,type:"line"},{name:"对角线",type:"line",data:[[0,0],[o,o]],lineStyle:{type:"dashed"},markLine:{symbol:["none","none"]}}]},c=JSON.parse(JSON.stringify(this.data));c.jsonData.eChartData=r,c.json_data=JSON.stringify(c.jsonData),0==this.history.length?this.history.push(c.jsonData):this.history.splice(this.historyIndex+1,0,c.jsonData),this.up(),this.status=3},getTeachingModeData:function(t){var e=this;this.status=1;var a=0,s=0,n="老师",i=0;console.log(t),t.forEach((function(o,r){0==r?n=o.role:t.length-1==r?n==o.role?(a+=e.convertToSeconds(t[r-1].time),a+=e.convertToSeconds(o.time)):r>=2&&t[r-2].role==t[r-1].role?a+=e.convertToSeconds(t[r-1].time):n=o.role:n==o.role||r>=2&&t[r-2].role==t[r-1].role?a+=e.convertToSeconds(t[r-1].time):n=o.role,"老师"==o.role&&(i+=e.convertToSeconds(o.time)),s+=e.convertToSeconds(o.time)}));var o=(i/s).toFixed(2),r=(a/s).toFixed(2),c=JSON.parse(JSON.stringify(this.data));c.jsonData.RT=o,c.jsonData.CH=r,c.json_data=JSON.stringify(c.jsonData),0==this.history.length?this.history.push(c.jsonData):this.history.splice(this.historyIndex+1,0,c.jsonData),this.up(),this.status=3},saveData:function(t){return new Promise((function(e,a){Object(y["w"])({id:t.id,json_data:JSON.stringify(t.jsonData)}).then((function(t){e()})).catch((function(t){console.log(t),console.log("保存失败"),e()}))}))},del:function(){this.$parent.delItem(this.data)},convertToSeconds:function(t){var e=t.split(":"),a=3600*+e[0]+60*+e[1]+ +e[2];return a}},mounted:function(){this.historyIndex=0,this.history.push(JSON.parse(JSON.stringify(this.data.jsonData)))}},D=O,k=(a("601e"),Object(g["a"])(D,r,c,!1,null,"0c20c038",null)),B=k.exports,L=a("d044"),T=a.n(L),E=a("8b58"),U=a("b532"),N={components:{bar:o["a"],analysisItem:B,addTel:E["a"]},props:{page:{type:Number,default:1},dataList:{type:Array,default:function(){return[]}},loading:{type:Array,default:function(){return[!0,!0,!0]}},analysisList:{type:Array,default:function(){return[]}},bmData:{type:Object,default:function(){}},fileId:{type:String,default:""},tid:{type:String,default:""}},data:function(){return{userId:this.$store.state.user.id,abuShow:!1,cellShow:!1,showPopup:!1,sharePopup:!1,showIndex:0,saveLoading:!1,form:{name:"",brief:"",subject:"",pre:!1},subjectList:[{value:"1",label:"语文"},{value:"2",label:"数学"},{value:"3",label:"英语"},{value:"4",label:"科学"},{value:"5",label:"物理"},{value:"6",label:"化学"},{value:"7",label:"生物"},{value:"8",label:"历史"},{value:"9",label:"地理"},{value:"10",label:"政治"}],origin:"",showReport:!1}},methods:{cutPage:function(t){this.$emit("cutPage",t)},addAnalysis:function(){this.$refs.addTelRef.open(this.showIndex)},ctrlShow:function(){this.cellShow=!this.cellShow},showAbu:function(){this.abuShow=!0},changeShowIndex:function(t){this.showIndex=t},delItem:function(t){var e=this;i["a"].confirm({title:"删除分析",message:'确定删除 "'.concat(t.jsonData.name,'" 这个分析?')}).then((function(){e.$parent.delAnalysis(t)})).catch((function(){console.log("不删除")}))},share:function(){var t=this;this.sharePopup=!0,this.$nextTick((function(){var e="https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=".concat(t.tid);t.origin=e,t.$refs.qrCodeUrl.innerHTML="";new T.a(t.$refs.qrCodeUrl,{text:e,width:250,height:250,colorDark:"#000000",colorLight:"#ffffff",correctLevel:T.a.CorrectLevel.H})}))},copy:function(t){var e=document.createElement("textarea");e.value=t,e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$toast.success("复制成功")},viewTheReport:function(){this.showReport=!0;var t="https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=".concat(this.tid);this.origin=t},AllAnalysis:function(){if(!this.fileId)return this.$toast("请先上传文件或者录音");this.$refs.analysisItemRef.forEach((function(t){t.optimize()})),this.$toast.success("一键分析成功")},saveTemplate:function(){this.showPopup=!this.showPopup},cancelSaveTemplate:function(){this.form={name:"",brief:"",subject:"",per:!1},this.showPopup=!1},saveInfo:function(){var t=this;if(!this.form.name.trim())return this.$toast.fail("请填写模板名称");if(!this.form.subject.trim())return this.$toast.fail("请选择科目");this.saveLoading=!0;var e=JSON.parse(JSON.stringify(this.dataList)),a=[];e.forEach((function(t){0==t.Type&&2==t.tIndex||(t.jsonData.content="",t.jsonData.dataFileList=[],t.jsonData.fileList=[],t.createtime="",t.id="",t.tId="",t.userid="",a.push(t))}));var s=[{title:this.form.name,subject:this.form.subject,uid:this.userId,brief:this.form.brief,per:this.form.per?1:0,jsonData:JSON.stringify(a)}];Object(y["q"])(s).then((function(e){t.$toast.success("保存为模板成功"),t.cancelSaveTemplate(),t.saveLoading=!1})).catch((function(e){t.$toast.fail("另存为模板失败"),console.log(e)}))},addAnalysisByList:function(t){var e=this;this.saveLoading=!0,this.$refs.addTelRef.close();var a=[];t.forEach((function(t,s){a.push(e.addAnalysisItem(t,s))})),Promise.all(a).then((function(){e.saveLoading=!1,e.$toast.success("添加成功")}))},addAnalysisItem:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Promise((function(s){var n=U.Converter({from:"hk",to:"cn"}),i=e.analysisList.find((function(e){return e.value==t})),o=e.dataList.filter((function(t){return t.Type==i.type})).sort((function(t,e){return new Date(t.createtime)-new Date(e.createtime)}));o=o.length?o[o.length-1]:null;var r=o?o.tIndex+1:0==i.type?2:0,c={index:r+a,userid:e.userId,json_data:JSON.stringify({name:i.title,result:"",fileList:[],dataFileList:[],content:""}),tid:e.tid,type:i.type.toString()};Object(y["s"])(c).then((function(t){var a=t.FunctionResponse;if(a.message&&n(a.message)==n("创建成功")){var o=JSON.parse(a.result)[0];o.jsonData=JSON.parse(o.jsonData),e.$parent.dataList.push(o),e.$nextTick((function(){e.$refs.analysisItemRef.forEach((function(t){t.data.id===o.id&&t.optimize()}))})),s()}else e.$toast.fail('"'.concat(i.title,'"添加失败')),s()}))}))}}},R=N,J=(a("b1fb"),Object(g["a"])(R,s,n,!1,null,"52a0d8b4",null));e["default"]=J.exports},be03:function(t,e,a){},ce08:function(t,e,a){t.exports=a.p+"static/img/rt-ch.5bf72bb5.png"},cff3:function(t,e,a){},dbb5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFiSURBVHgB7ZU/S8NAGMafS7x2K44uFScXQbIodJHWxcXBycVBcHKuXyB+AI27aBUc/Awu1cWKCIqgdRFEdHCLVWhrLed7JNXYtJBcrlt/8PDmcsl7f97LE2DAmEhGjrRMypAeoRmH9BqQA40s+EmLfrvot3PQRCdhkOCAvxhQo+LHja54Bw1kSSf4v/99azCCeMi93/Gv1/w4BW9FFSRkE95M5eyzUV9ivW5a9pfFmeFQZ54euamW5t2Pp7NJ6tol2YgBCyevT3DGr6nDhRCHYGy13ayN3+/lV+pvt8eISegUpYW5RMlHDWEWLm1uG6JVMNMZY3r9agwK9D2mja6oSmiAJuMHFNwUa5dn7ZadYrz83XgXD0eLHAr0LPIMFZl8sMSYsITAaXV/LvP5fC63aJu0hQHRsYcLxDimcexafkgv+LPoGjyb1m7XcvZyFZGsQpWhXUci0i+TIRmyFtrsWokf61JuD4bzuNYAAAAASUVORK5CYII="}}]);
|