PageSourceSearch

https://fe-static-yuketang.yuketang.cn/fe/static/web/1.2.315/js/10141.adc2ed6a.js

js yuketang.cn collected 2026-09-28 09:24:05 UTC 10,487 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkrainweb=self.webpackChunkrainweb||[]).push([["10141"],{91639:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}}),n(80287),n(76556),n(42463),n(72775),n(13794),n(87481),n(86067),n(35350);var a=n(18108),r=n(31242),i=n(41990);function o(e,t,n,a,r,i,o){try{var u=e[i](o),c=u.value}catch(e){n(e);return}u.done?t(c):Promise.resolve(c).then(a,r)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function u(e){o(i,a,r,u,c,"next",e)}function c(e){o(i,a,r,u,c,"throw",e)}u(void 0)})}}function c(e,t){var n,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){var s=[u,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],a=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var s=(0,n(81049).Z)({__name:"mainGraph",setup:function(e){var t=(0,r.yj)(),n=(0,r.tv)(),o=(0,a.ref)(0),s=(0,a.ref)(0),l=(0,a.ref)(0),p=(0,a.ref)(0),f=(0,a.ref)(0),d=(0,a.ref)(""),v=(0,a.ref)(!0),h=(0,a.ref)({}),m=(0,a.ref)([{routeName:"knowledgegraph_graph_detail",label:"知识图谱",icon:"icon-app_knowledge_graph",type:"0",id:"",name:"",isEdit:!1},{routeName:"knowledgegraph_ability_detail",label:"能力图谱",icon:"icon-nenglitupu",type:"1",id:"",name:"",isEdit:!1},{routeName:"knowledgegraph_question_detail",label:"问题图谱",icon:"icon-wentitupu",type:"2",id:"",name:"",isEdit:!1},{routeName:"knowledgegraph_quality_detail",label:"素质图谱",icon:"icon-suzhitupu",type:"3",id:"",name:"",isEdit:!1}]),_=(0,a.computed)(function(){return m.value.find(function(e){return N(e)})}),g=(0,a.computed)(function(){return m.value.filter(function(e){return e.id!=y.value.id})}),y=(0,a.ref)({}),b=(0,a.computed)(function(){return 1==f.value}),w=(0,a.ref)(!1),x=(0,a.ref)(""),k=(0,a.ref)(null),G=(0,a.ref)(!1),C=(0,a.computed)(function(){return window.history.length>1}),O=(0,a.getCurrentInstance)().proxy,N=function(e){return t.matched.some(function(t){return t.name===e.routeName})&&t.params.id==e.id};(0,a.provide)("isShowMenu",!1);var j=function(){return u(function(){return c(this,function(e){switch(e.label){case 0:if(!p.value)return[3,2];return[4,P()];case 1:e.sent(),e.label=2;case 2:return[4,E()];case 3:return e.sent(),p.value&&!d.value&&I(),[2]}})})()},P=function(){return u(function(){var e;return c(this,function(t){return e="/c27/online_courseware/course/classroom/{classroom_id}/get_basic_info/".replace(/\{classroom_id\}/gi,p.value),[2,request.get(e,{classroom_id:p.value,notSetParamsUvId:!0}).then(function(e){e.success&&(f.value=e.data.course_type)}).catch(function(){})]})})()},E=function(){var e=API.knowledge_graph.get_graph_info,t={app_id:o.value,app_type:s.value,is_ai_course:l.value};return p.value&&(t.classroom_id=p.value),request.get(e,t).then(function(e){if(e.success){var t,n,a;h.value=e.data.graph_info||e.data,m.value.forEach(function(e,t){e.type in h.value&&(e.id=h.value[e.type].kg_id,e.name=h.value[e.type].name)}),(null==(t=h.value[4])?void 0:t.length)&&h.value[4].forEach(function(e){e.kg_id&&m.value.push({routeName:"knowledgegraph_custom_detail",label:e.menu_name||"自定义图谱",icon:"icon-zidingyi1",type:"4",id:e.kg_id,name:e.name,isEdit:!1})}),d.value&&(m.value=m.value.filter(function(e){return e.id})),b.value&&(m.value=m.value.filter(function(e){return 0==e.type})),y.value=_.value||m.value[0],b.value&&(null==(n=_.value)?void 0:n.type)!=="0"&&(null==(a=y.value)?void 0:a.id)&&q(y.value),v.value=!1}})},I=function(){var e=API.knowledge_graph.get_student_switch;request.get(e.replace(/\{pk\}
1/g,y.value.id).replace(/\{classroom_id\}/g,p.value)).then(function(e){e.success&&(G.value=e.data.open_to_student)})},S=function(e){return new Promise(function(t,n){var a=API.knowledge_graph.post_knowledge_graph,r={app_id:o.value,app_type:s.value,is_ai_course:l.value,graph_type:e,name:m.value.find(function(e){return 0==e.type}).name};request.post(a,r).then(function(e){e.success&&(E(),t(e.data))})})},q=function(e){return u(function(){var a,r;return c(this,function(i){switch(i.label){case 0:if(N(e))return[2];if(e.id)return[3,2];return[4,S(e.type)];case 1:e.id=(a=i.sent()).id,e.name=a.name,i.label=2;case 2:var u,c;return u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},t.query),c=c={is_ai_course:l.value},Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(c)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(c)).forEach(function(e){Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(c,e))}),r=u,n.replace({name:e.routeName,params:{app_id:o.value,app_type:s.value,id:e.id},query:r}),[2]}})})()};return(0,a.watch)(function(){return _.value},function(e){e&&(y.value=e)}),(0,a.onMounted)(function(){o.value=Number(t.params.app_id),s.value=Number(t.params.app_type),p.value=Number(t.query.classroom_id),l.value=Number(t.query.is_ai_course)||0,d.value=t.query.sign,j()}),{__sfc:!0,route:t,router:n,appId:o,appType:s,isAICourse:l,classroomId:p,courseType:f,sign:d,loading:v,graphInfo:h,tabList:m,activeGraph:_,otherGraphList:g,currentGraph:y,isCreditCourse:b,isEditName:w,editGraphName:x,graphNameRef:k,isOpenToStudent:G,canGoBack:C,_this:O,isActivedRoute:N,goBack:function(){n.go(-1)},getData:j,getBasicInfo:P,getGraphInfo:E,getStudentSwitch:I,setStudentSwitch:function(){var e=API.knowledge_graph.post_student_switch,t={classroom_id:p.value,open_to_student:+!!G.value};request.post(e.replace(/\{pk\}/g,y.value.id),t).then(function(e){e.success})},changeEdit:function(e){y.value.isEdit=e},saveGraphName:function(){w.value=!1;var e=API.knowledge_graph.put_knowledge_graph,t={name:x.value};request.put(e.replace(/\{pk\}/g,y.value.id),t).then(function(e){e.success&&E()}).catch(function(e){(0,i.Message)({message:e.msg,customClass:"toastMessage",iconClass:"iconfont icon--xiaochicuncha"})})},handleEditGraphName:function(){w.value=!0,x.value=y.value.name,(0,a.nextTick)(function(){k.value.focus()})},createGraph:S,go:q}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"graph-main"},[t("div",{staticClass:"main-header flex justify-between items-center"},[t("div",{staticClass:"left flex items-center truncate"},[n.canGoBack?t("i",{staticClass:"iconfont icon-jiantoudan-xiangzuo-fanhui text-xl text-gray-002 cursor-pointer",on:{click:n.goBack}}):e._e(),e._v(" "),t("span",{staticClass:"name-wrap flex items-center"},[n.isEditName?t("el-input",{ref:"graphNameRef",attrs:{size:"small"},on:{blur:n.saveGraphName},model:{value:n.editGraphName,callback:function(e){n.editGraphName=e},expression:"editGraphName"}}):t("span",{staticClass:"text-xl text-gray-001 truncate"},[e._v(e._s(n.currentGraph.name))])],1),e._v(" "),n.currentGraph.isEdit&&!n.isEditName?t("i",{staticClass:"iconfont icon-bianji-bi text-theme cursor-pointer ml5",on:{click:function(e){return e.stopPropagation(),n.handleEditGraphName.apply(null,arguments)}}}):e._e()]),e._v(" "),n.loading||1==n.appType?e._e():t("ul",{staticClass:"tab-list flex items-center"},[n.classroomId&&!n.sign?t("li",{class:["item tab-item cursor-pointer",{active:"knowledgegraph_classroom_data"===n.route.name}],on:{click:e.goClassroomData}},[e._m(0)]):e._e(),e._v(" "),n.otherGraphList.length?t("el-dropdown",{staticClass:"item"},[t("li",{class:["tab-item cursor-pointer",{active:n.activeGraph&&n.activeGraph.type==n.currentGraph.type}],on:{click:function(e){return n.go(n.currentGraph)}}},[t("span",{staticClass:"txt flex items-center"},[t("i",{class:["iconfont",n.currentGraph.icon]}),e._v(" "),t("span",{staticClass:"title text-xl text-gray-002 truncate"},[e._v(e._s(n.currentGraph.label))]),e._v(" "),t("i",{staticClass:"iconfont icon-jiantoudan-xiangxia"})])]),e._v(" "),t("el-dropdown-menu",{staticClass:"graph-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(n.otherGraphList,function(a,r){return t("el-dropdown-item",{key:r,nativeOn:{click:function(e){return n.go(a)}}},[e._v("\n            "+e._s(a.label)+"\n          ")])}),1)],1):t("li",{class:["item tab-item cursor-pointer",{active:n.activeGraph&&n.activeGraph.type==n.currentGraph.type}],on:{click:function(e){return n.go(n.currentGraph)}}},[t("span",{staticClass:"txt flex items-center"},[t("i",{class:["iconfont",n.currentGraph.icon]}),e._v(" "),t("span",{staticClass:"title text-xl text-gray-002 truncate"}
1,[e._v(e._s(n.currentGraph.label))])])])],1),e._v(" "),n.classroomId&&!n.sign&&0==n.currentGraph.type?t("div",{staticClass:"flex flex-col items-center"},[t("el-switch",{attrs:{"active-color":"#3D7BFF","inactive-color":"#90949D"},on:{change:n.setStudentSwitch},model:{value:n.isOpenToStudent,callback:function(e){n.isOpenToStudent=e},expression:"isOpenToStudent"}}),e._v(" "),t("span",{staticClass:"text-base text-gray-002"},[e._v("开放给学生")])],1):e._e()]),e._v(" "),t("router-view",{attrs:{graphInfo:n.graphInfo},on:{changeEdit:n.changeEdit}})],1)},[function(){var e=this._self._c;return this._self._setupProxy,e("span",{staticClass:"txt flex items-center"},[e("i",{staticClass:"iconfont icon-jiaoxuefenxiorshujukanban"}),this._v(" "),e("span",{staticClass:"text-xl text-gray-002"},[this._v("班级应用数据")])])}],!1,null,"54f4953e",null).exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.