PageSourceSearch

https://www.cqooc.com/js/8870.993c06f2.js

js cqooc.com collected 2026-10-05 07:30:44 UTC 214,665 bytes, 1 lines download raw bytes

1(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[8870],{35168:function(e,t,s){"use strict";s.d(t,{A:function(){return f}});var i=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("div",{staticStyle:{height:"100%"},attrs:{id:"dplayer"}})])}],a=s(69870),r=s(57888),o=s(17654),l=(s(50113),s(74423),s(62062),s(2892),s(26099),s(21699),s(11392),s(23500),s(84356)),c=s.n(l);function u(){}var d={name:"index",props:{currentTimeOut:{type:Number},videoListOut:{type:Array},timeupdate:{type:Function,default:u}},data:function(){return{dp:null,currentTime:0,videoList:[]}},watch:{videoListOut:{handler:function(e){var t=this;return(0,o.A)((0,a.A)().mark(function s(){return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:e&&e.length&&(t.videoList=e.map(function(e){var t=e.url.startsWith("http")?e.url:"/".concat(e.url);return(0,r.A)((0,r.A)({},e),{},{url:t})}),setTimeout(function(){t.switchVideoSource(t.videoList.length>1?t.videoList[1]:t.videoList[0],!0)},500));case 1:case"end":return s.stop()}},s)}))()},deep:!0,immediate:!0}},mounted:function(){var e=this;this.initDplayer(),this.dp.on("play",function(){e.$emit("play")}),this.dp.on("pause",function(){e.$emit("pause")}),this.dp.on("ended",function(){e.$emit("ended")})},methods:{initDplayer:function(){var e=this;this.dp=new(c())({container:document.getElementById("dplayer"),mutex:!1,theme:"#0256CA",loop:!1,lang:"zh-cn",hotkey:!0,preload:"auto",volume:.7,playbackSpeed:[1,1.5,2],screenshot:!0,contextmenu:[],video:{url:"",pic:""}}),this.addArticulationButton(),this.dp.on("timeupdate",function(t){e.timeupdate(e.dp.video.currentTime),e.currentTime=e.dp.video.currentTime}),this.dp.on("notice_show",function(e){var t;(e.innerHTML.includes("快进")||e.innerHTML.includes("快退"))&&(e.innerHTML="",null===(t=document.querySelectorAll(".dplayer-notice"))||void 0===t||t.forEach(function(e){e.style.display="none"}))})},addArticulationButton:function(){var e=this,t=document.createElement("div");t.className="custom-btn";var s=document.createElement("div");s.innerHTML=this.videoList.length>1?"标清":"高清",s.className="custom-btn-text",s.addEventListener("click",function(){e.onArticulationlick()}),t.appendChild(s);var i=document.createElement("div");i.className="custom-modal";var n=document.createElement("p");n.innerText="标清",n.addEventListener("click",function(){e.onUrlClick("vhd")});var a=document.createElement("p");a.innerText="高清",a.addEventListener("click",function(){e.onUrlClick("hd")}),i.appendChild(n),i.appendChild(a),t.appendChild(i);var r=document.getElementsByClassName("dplayer-icons-right")[0];r.appendChild(t)},onArticulationlick:function(){var e=document.getElementsByClassName("custom-modal")[0];e.classList.contains("custom-modal-show")?e.classList.remove("custom-modal-show"):e.classList.add("custom-modal-show")},onUrlClick:function(e){var t=document.getElementsByClassName("custom-btn-text")[0];if("hd"===e){if("高清"===t.innerHTML)return;t.innerHTML="高清";var s=this.videoList.find(function(e){return e.url.includes("/converted/mp4/hd/")||e.url.includes("_hd")});s?this.switchVideoSource(s):this.$message.error("该视频暂不支持该高清度")}else{if("标清"===t.innerHTML)return;t.innerHTML="标清";var i=this.videoList.find(function(e){return e.url.includes("/converted/mp4/vhd/")||e.url.includes("_sd")});i?this.switchVideoSource(i):this.$message.error("该视频暂不支持该标清度")}this.onArticulationlick()},switchVideoSource:function(e,t){this.dp.switchVideo({url:e.url,pic:e.pic}),t||this.dp.play(),this.dp.seek(this.currentTime)},seek:function(e){this.dp.seek(e),this.currentTime=e},pause:function(){this.dp.pause()},play:function(){this.dp.play()},fullScreenFun:function(){this.dp.fullScreen.request("web")}}},h=d,p=s(81656),m=(0,p.A)(h,i,n,!1,null,"e6a85e72",null),f=m.exports},54475:function(e,t,s){"use strict";s.d(t,{A:function(){return A}});var i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticStyle:{border:"1px solid #ccc"}},[t("Toolbar",{staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:e.editor,defaultConfig:e.toolbarConfig,mode:e.mode}}),t("Editor",e._b({style:{width:e.styleParams.width,height:e.styleParams.height},attrs:{defaultConfig:e.editorConfig,mode:e.mode},on:{onCreated:e.onCreated,onChange:e.onChange}},"Editor",e.$attrs,!1))],1)},n=[],a=s(69870),r=s(17654),o=s(57888),l=(s(93941),s(85471)),c=s(90284),u=s(46547),d=(s(4191),s(1309)),h=s(93492),p=s(25418),m=(s(27495),s(25440),s(74692)),f=s.n(m);
1const v='<svg t="1682415575656" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8100" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M902.383 461.687c6.417-6.417 12.834-12.8 19.217-12.8h89.6c6.383 0 12.8-6.382 12.8-12.765v-102.23c0-6.417-6.417-12.8-12.8-12.8H908.8c-6.417 0-19.183 6.383-19.183 12.8L780.8 448.922c-6.383 6.348-12.8 6.348-12.8 0l-57.583-115.03c-6.417-6.417-12.8-12.8-19.217-12.8H524.8c-6.383 0-12.8 6.383-12.8 12.8v102.23c0 6.383 6.417 12.765 12.8 12.765h102.4c6.417 0 12.8 6.383 19.183 12.8l38.4 83.081v19.149l-115.2 134.178c-6.383 0-12.766 6.417-19.183 6.417h-89.6c-6.383 0-12.8 6.383-12.8 12.766v102.23c0 6.382 6.417 12.8 12.8 12.8h102.4c6.383 0 19.183-6.418 19.183-12.8L729.6 653.38c6.417-6.383 12.8-6.383 12.8 0l83.183 166.127c0 6.383 12.8 12.8 19.217 12.8h102.4a13.756 13.756 0 0 0 12.8-12.8v-102.23a13.756 13.756 0 0 0-12.8-12.765h-38.4c-6.417 0-12.8-6.417-19.183-12.8l-64.034-127.795v-19.149l76.8-83.08zM377.617 65.502C345.6 91.068 313.583 129.399 294.4 193.297l-31.983 127.795H76.8a13.756 13.756 0 0 0-12.8 12.8v102.23c0 6.383 6.383 12.765 12.8 12.765h153.6l-96.017 383.42C115.2 908.971 64 896.205 64 896.205H0V1024h64c51.2 0 102.4-6.383 128-38.332 32.017-31.949 51.2-89.463 64-153.36l96.017-383.42H499.2c6.383 0 12.8-6.383 12.8-12.766v-102.23c0-6.417-6.417-12.8-12.8-12.8H384l32.017-121.412c6.383-19.149 38.4-51.098 57.583-63.898C543.983 84.651 640 116.6 704 129.4V20.753c-64-12.766-204.8-57.48-326.383 44.715z" p-id="8101"></path></svg>';var g=function(){function e(){(0,h.A)(this,e),this.title="插入公式",this.iconSvg=v,this.tag="button",this.showModal=!0,this.modalWidth=900,this.modalHeight=400}return(0,p.A)(e,[{key:"isActive",value:function(e){return!1}},{key:"getValue",value:function(e){return""}},{key:"isDisabled",value:function(e){return!1}},{key:"exec",value:function(e,t){}},{key:"getModalPositionNode",value:function(e){return null}},{key:"getModalContentElem",value:function(e){var t="kityformula_"+Math.ceil(10*Math.random()),s="kityformula-btn"+Math.ceil(10*Math.random()),i=f()('\n    <div>\n      <iframe id="'.concat(t,'" class="iframe" height="400px" width="100%" frameborder="0" scrolling="no" src="/kityformula/index.html"></iframe>\n    </div>')),n=f()('<button id="'.concat(s,'" class="right" style=\'margin: 5px 0\'>\n        确认插入\n      </button>'));return i.append(n),n.on("click",function(){var s=document.getElementById(t),i=s.contentWindow.kfe;i.execCommand("get.image.data",function(e){});var n=i.execCommand("get.source");n=n.replace(/\s/g,"");var a={type:"paragraph",children:[{type:"formula",value:n,children:[{text:""}]}]};e.insertNode(a),e.hidePanelOrModal()}),i[0]}}]),e}(),C={key:"kityFormula",factory:function(){return new g}},y=C,b=s(70435),L=s.n(b);s(61145);function x(){}var D=l.Ay.extend({name:"WangEditor",components:{Editor:c.K,Toolbar:c.M},props:{htmlValueOut:{type:String},styleParams:{type:Object,default:function(){return{width:"100%",height:"200px"}}},editorConfigOut:{type:Object,default:function(){return{}}},toolbarConfigOut:{type:Object,default:function(){return{}}},onEditorChange:{type:Function,default:x}},watch:{editorConfigOut:{handler:function(e,t){e&&(this.editorConfig=(0,o.A)((0,o.A)({},this.editorConfig),e))},immediate:!0,deep:!0},toolbarConfigOut:{handler:function(e,t){e&&(this.toolbarConfig=(0,o.A)((0,o.A)({},this.toolbarConfig),e))},immediate:!0,deep:!0}},data:function(){return{initChange:!0,editor:null,htmlValue:"",mode:"default",editorConfig:{readOnly:!1,autoFocus:!1,MENU_CONF:{}},toolbarConfig:{insertKeys:{index:0,keys:["insertFormula","editFormula","kityFormula"]}}}},methods:{onCreated:function(e){var t=this;return(0,r.A)((0,a.A)().mark(function s(){return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:t.editor=Object.seal(e);case 1:case"end":return s.stop()}},s)}))()},onChange:function(e){var t=e.getHtml();this.onEditorChange(t)}},created:function(){d.Boot.plugins.length<13&&(d.Boot.registerModule(L()),d.Boot.registerMenu(y)),this.editorConfig.MENU_CONF["uploadImage"]={customUpload:function(e,t){return(0,r.A)((0,a.A)().mark(function s(){var i,n,r,o,l;return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:return i=new FormData,i.append("file",e),s.next=4,(0,u.VL)(i);case 4:n=s.sent,200===n.code&&(l=(null===n||void 0===n||null===(r=n.result)||void 0===r||null===(r=r.JH)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.HOST)+"/"+(null===n||void 0===n||null===(o=n.result)||void 0===o||null===(o=o.JH)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.KEY),t(l,l,l));case 6:case"end":return s.stop()}},s)}))()}}},mounted:function(){},destroyed:function(){var e=this.editor;null!=e&&e.destroy()}}),k=D,_=s(81656),S=(0,_.A)(k,i,n,!1,null,"0adb2322",null),A=S.exports},95426:function(e,t,s){"use strict";s.d(t,{A:function(){return u}});var i=function(){var e,t,i,n,a,r,o,l=this,c=l._self._c;return c("div",{directives:[{name:"show",rawName:"v-show",value:l.ylVisible,expression:"ylVisible"}],staticClass:"imgDolg"},[c("a-icon",{staticClass:"iconfont",staticStyle:{color:"#ffffff"},attrs:{type:"close-circle",theme:"filled",id:"imgDolgClose"},on:{click:function(e){return e.stopPropagation(),l.init.apply(null,arguments)}}}),c("a-spin",{attrs:{size:"large",spinning:l.spinning}},["image"===l.preView.ZYLX?c("div",[c("img",{staticClass:"img",attrs:{src:null===(e=l.preView)||void 0===e?void 0:e.ZYLJ,alt:""}}
1)]):l._e(),"video"===(null===(t=l.preView)||void 0===t?void 0:t.ZYLX)?c("div",{staticStyle:{height:"70vh","max-height":"80vh"}},[c("video",{staticStyle:{width:"100%",height:"100%"},attrs:{src:null===(i=l.preView)||void 0===i?void 0:i.ZYLJ,controls:""}})]):l._e(),"audio"===(null===(n=l.preView)||void 0===n?void 0:n.ZYLX)?c("div",{staticClass:"audio-box"},[c("img",{staticClass:"img-voice",attrs:{width:"400",src:s(40617),alt:""}}),c("audio",{staticClass:"audio",attrs:{id:"audio",controls:""}})]):l._e(),"swf"===(null===(a=l.preView)||void 0===a?void 0:a.ZYLX)?c("div",[l._v("该文件类型不支持预览")]):l._e(),"doc"===(null===(r=l.preView)||void 0===r?void 0:r.ZYLX)?c("div",{staticStyle:{height:"80vh","max-height":"90vh",width:"80vw"}},[c("iframe",{attrs:{width:"100%",id:"myIframe",height:"100%",src:null===(o=l.preView)||void 0===o?void 0:o.ZYLJ}})]):l._e()])],1)},n=[],a=(s(26099),s(47764),s(62953),s(59848),s(3296),s(48408),s(35168)),r={components:{Dplayer:a.A},props:{isMobile:Boolean},beforeDestroy:function(){this.ylVisible=!1,this.preView={},this.spinning=!1},data:function(){return{ylVisible:!1,preView:{},spinning:!1}},methods:{init:function(){this.ylVisible=!1,this.preView={},this.spinning=!1},ylHandleCancel:function(){this.ylVisible=!1,this.preView={}},setPreView:function(e){var t=this;this.preView=e,"audio"===e.ZYLX&&setTimeout(function(){t.loadAudioSource(e.ZYLJ)},200),"doc"===e.ZYLX&&setImmediate(function(){t.spinning=!0;var e=document.getElementById("myIframe");if(e){var s=document.getElementById("myIframe");s.addEventListener("load",function(){t.spinning=!1})}},0),this.ylVisible=!0},loadAudioSource:function(e){var t=document.getElementById("audio");t&&fetch(e).then(function(e){if(!e.ok)throw new Error("Network response was not ok");return e}).then(function(e){var t=e.body.getReader();return new ReadableStream({start:function(e){function s(){return t.read().then(function(t){var i=t.value,n=t.done;n?e.close():(e.enqueue(i),s())})}s()}})}).then(function(e){return new Response(e)}).then(function(e){return e.blob()}).then(function(e){t.src=URL.createObjectURL(e)}).catch(function(e){})}}},o=r,l=s(81656),c=(0,l.A)(o,i,n,!1,null,"36c0d544",null),u=c.exports},96754:function(e,t,s){"use strict";s.d(t,{A:function(){return C}});var i=function(){var e,t=this,i=t._self._c;return i("div",{staticClass:"ProfileResource-container"},[i("div",{staticClass:"toolbar-box"},[i("div",{staticClass:"toolbar-left"},[t.folderCount>0||t.fileCount>0?i("span",{staticClass:"count-info"},[i("span",{staticClass:"count-num"},[t._v(t._s(t.folderCount))]),t._v(" 个文件夹 "),i("span",{staticClass:"count-divider"},[t._v("|")]),i("span",{staticClass:"count-num"},[t._v(t._s(t.fileCount))]),t._v(" 个文件 ")]):t._e()]),i("div",{staticClass:"toolbar-right"},[i("div",{staticClass:"sort-box"},[i("span",{staticClass:"sort-label"},[t._v("排序:")]),i("a-select",{staticClass:"sort-select",on:{change:t.sortChange},model:{value:t.sortKey,callback:function(e){t.sortKey=e},expression:"sortKey"}},[i("a-select-option",{attrs:{value:"MC_SX"}},[t._v("名称 A→Z")]),i("a-select-option",{attrs:{value:"MC_DX"}},[t._v("名称 Z→A")]),i("a-select-option",{attrs:{value:"SJ_SX"}},[t._v("时间 正序")]),i("a-select-option",{attrs:{value:"SJ_DX"}},[t._v("时间 倒序")])],1)],1),i("div",{staticClass:"view-toggle"},[i("div",{staticClass:"toggle-btn",class:{active:"grid"===t.viewMode},on:{click:function(e){t.viewMode="grid"}}},[i("a-icon",{attrs:{type:"appstore"}})],1),i("div",{staticClass:"toggle-btn",class:{active:"list"===t.viewMode},on:{click:function(e){t.viewMode="list"}}},[i("a-icon",{attrs:{type:"unordered-list"}})],1)]),"1"==t.entryType||"0"==t.entryType?i("a-button",{staticClass:"toolbar-btn upload-btn",attrs:{type:"primary"},on:{click:t.addRes}},[i("a-icon",{attrs:{type:"upload"}}),t._v(" 上传文件 ")],1):t._e(),"1"==t.entryType?i("a-button",{staticClass:"toolbar-btn folder-btn",attrs:{type:"primary"},on:{click:t.addResDir}},[i("a-icon",{attrs:{type:"folder"}}),t._v(" 新建文件夹 ")],1):t._e(),"1"==t.entryType||"0"==t.entryType?i("div",{staticClass:"ProfileResource-search-box"},[i("a-input-search",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入关键词搜索","enter-button":""},on:{search:t.clickSearch},model:{value:t.searchKeyword,callback:function(e){t.searchKeyword=e},expression:"searchKeyword"}})],1):t._e()],1)]),1===t.entryType?i("p",{staticClass:"upload-tip"},[t._v(' 请上传资源后请耐心等待,若提示"资源加工失败"再重新上传,期间请勿重复上传! ')]):t._e(),"grid"===t.viewMode&&t.folderPath.length>0?i("div",{staticClass:"breadcrumb-nav"},[i("span",{staticClass:"breadcrumb-item breadcrumb-root",on:{click:function(e){return t.goBack(-1)}}},[t._v("全部文件")]),t._l(t.folderPath,function(e,s){return[i("a-icon",{key:"icon-"+s,staticClass:"breadcrumb-separator",attrs:{type:"right"}}),i("span",{key:"name-"+s,staticClass:"breadcrumb-item",class:{"breadcrumb-current":s===t.folderPath.length-1},on:{click:function(e){s<t.folderPath.length-1&&t.goToFolder(s)}}},[t._v(t._s(e.MC))])]})],2):t._e(),"grid"===t.viewMode?i("div",{staticClass:"card-grid"},t._l(t.resList,function(e,n){var a;return i("div",{key:"g-"+n,staticClass:"out-item-box"},[i("div",{staticClass:"resource-card",class:e.isCkecked?"resource-card-active":"",on:{click:function(s){return t.handleCardClick(e,n)}}},["1"==t.entryType||"0"==t.entryType?i("div",{staticClass:"card-top-left-actions"},[i("a-icon",{staticClass:"top-action-icon",attrs:{type:"edit",title:"编辑"},on:{click:function(s){return s.stopPropagation(),t.editItem(e)}}}),i("a-icon",{staticClass:"top-action-icon top-action-danger",attrs:{type:"delete",title:"删除"},on:{click:function(s){return s.stopPropagation(),t.deleteItemById(e)}}})],1):t._e(),"1"==e.SFML?[t._m(0,!0),i("div",{staticClass:"card-info"},[i("p",{staticClass:"card-name",attrs:{title:e.MC}},[t._v(t._s(e.MC))]),i("p",{staticClass:"card-meta"},[t._v(t._s((null===(a=e.JH)||void 0===a?void 0:a.length)||0)+" 个文件 · "+t._s(t._f("nyr")(e.CJSJ)))])]),i("div",{staticClass:"card-actions"},[i("span",{staticClass:"action-link",on:{click:function(s){return s.stopPropagation(),t.enterFolder(e,n)}}},[t._v("打开")])])]:[i("div",{staticClass:"card-icon-box file-icon-box"},[i("span",{staticClass:"file-type-badge",class:"badge-"+t.getFileBadge(e)},[t._v(t._s(t.getFileBadge(e)))]),i("img",{staticClass:"card-icon",attrs:{src:s(67222),alt:""}})]),i("div",{staticClass:"card-info"},[i("p",{staticClass:"card-name",attrs:{title:e.MC}},[t._v(" "+t._s(e.MC)+t._s((e.ZYLX?".":"")+e.ZYLX)+" ")]),i("p",{staticClass:"card-meta"},[t._v(t._s(t.conversion(e.ZYDX))+" · "+t._s(t._f("nyr")(e.CJSJ)))])])],"2"==e.SFML?i("div",{staticClass:"card-actions"},[i("span",{staticClass:"action-link",on:{click:function(s){return s.stopPropagation(),t.downLoad(e)}}},[t._v("下载")]),i("span",{staticClass:"action-link",on:{click:function(s){return s.stopPropagation(),t.getPreview(e)}}},[t._v("预览")])]):t._e()],2)])}),0):t._e(),"list"===t.viewMode?i("div",{staticClass:"table-content"},[t._m(1),i("div",{staticClass:"table-content-box"},t._l(t.resList,function(e,n){return i("div",{key:"l-"+n,staticClass:"out-item-box"},[i("div",{staticClass:"out-item-top",class:e.isCkecked?"out-item-top-active":"",on:{click:function(s){return t.clcekSet(e,n)}}},[i("div",{staticClass:"out-name"},["1"==e.SFML?i("i",{staticClass:"iconfont icon-jinrujiantou",class:e.expand?"iconfont1":""}):t._e(),"1"==e.SFML?i("img",{attrs:{src:s(26614),alt:""}}):i("img",{attrs:{src:s(67222),alt:""}}),"1"==e.SFML?i("p",{staticClass:"mc",attrs:{title:e.MC}},[t._v(t._s(e.MC))]):t._e(),"2"==e.SFML&&0==t.entryType?i("p",{staticClass:"mc",attrs:{title:e.MC}},[t._v(" "+t._s(e.MC)+t._s((e.ZYZY?".":"")+e.ZYZY)+" ")]):t._e(),"2"==e.SFML&&
11==t.entryType?i("p",{staticClass:"mc",attrs:{title:e.MC}},[t._v(" "+t._s(e.MC)+t._s((e.ZYLX?".":"")+e.ZYLX)+" ")]):t._e(),"2"==e.SFML&&2==t.entryType?i("p",{staticClass:"mc",attrs:{title:e.MC}},[t._v(" "+t._s(e.MC)+t._s((e.ZYLX?".":"")+e.ZYLX)+" ")]):t._e()]),"2"==e.SFML?i("div",{staticClass:"out-size"},[i("p",[t._v(t._s(t.conversion(e.ZYDX)))])]):t._e(),i("div",{staticClass:"out-creator"},["2"==e.SFML?i("p",[t._v(t._s(e.ZZXM))]):t._e()]),i("div",{staticClass:"out-date"},["2"==e.SFML?i("p",[t._v(t._s(t._f("nyr")(e.CJSJ)))]):t._e()]),i("div",{staticClass:"out-action"},["2"==e.SFML?[i("span",{staticClass:"list-action-btn",attrs:{title:"下载"},on:{click:function(s){return s.stopPropagation(),t.downLoad(e)}}},[i("a-icon",{attrs:{type:"download"}}),t._v(" 下载 ")],1),i("span",{staticClass:"list-action-btn",attrs:{title:"预览"},on:{click:function(s){return s.stopPropagation(),t.getPreview(e)}}},[i("a-icon",{attrs:{type:"eye"}}),t._v(" 预览 ")],1)]:t._e(),"1"==t.entryType||"0"==t.entryType?[i("span",{staticClass:"list-action-btn",attrs:{title:"编辑"},on:{click:function(s){return s.stopPropagation(),t.editItem(e)}}},[i("a-icon",{attrs:{type:"edit"}}),t._v(" 编辑 ")],1),i("span",{staticClass:"list-action-btn list-action-danger",attrs:{title:"删除"},on:{click:function(s){return s.stopPropagation(),t.deleteItemById(e)}}},[i("a-icon",{attrs:{type:"delete"}}),t._v(" 删除 ")],1)]:t._e()],2)]),e.JH?i("div",{staticClass:"inner-item-out-box",attrs:{id:"senior-set".concat(e.ID)}},t._l(e.JH,function(e,a){return i("div",{key:a,staticClass:"inner-item-box",class:e.isCkecked?"out-item-top-active":"",on:{click:function(s){return t.clcekSet1(e,n,a)}}},[i("div",{staticClass:"inner-name"},[i("div",{staticClass:"left-box"},[i("img",{staticClass:"file-type",attrs:{src:s(67222),alt:""}}),i("p",{staticClass:"file-name"},[t._v(t._s(e.MC)+"."+t._s(e.ZYLX))])])]),i("div",{staticClass:"inner-size"},[i("p",[t._v(t._s(t.conversion(e.ZYDX)))])]),i("div",{staticClass:"inner-creator"},[i("p",[t._v(t._s(e.ZZXM))])]),i("div",{staticClass:"inner-date"},[i("p",[t._v(t._s(t._f("nyr")(e.CJSJ)))])]),i("div",{staticClass:"inner-action"},[i("span",{staticClass:"list-action-btn",attrs:{title:"下载"},on:{click:function(s){return s.stopPropagation(),t.downLoad(e)}}},[i("a-icon",{attrs:{type:"download"}}),t._v(" 下载 ")],1),i("span",{staticClass:"list-action-btn",attrs:{title:"预览"},on:{click:function(s){return s.stopPropagation(),t.getPreview(e)}}},[i("a-icon",{attrs:{type:"eye"}}),t._v(" 预览 ")],1),"1"==t.entryType||"0"==t.entryType?[i("span",{staticClass:"list-action-btn",attrs:{title:"编辑"},on:{click:function(s){return s.stopPropagation(),t.editItem(e)}}},[i("a-icon",{attrs:{type:"edit"}}),t._v(" 编辑 ")],1),i("span",{staticClass:"list-action-btn list-action-danger",attrs:{title:"删除"},on:{click:function(s){return s.stopPropagation(),t.deleteItemById(e)}}},[i("a-icon",{attrs:{type:"delete"}}),t._v(" 删除 ")],1)]:t._e()],2)])}),0):t._e()])}),0)]):t._e(),0===t.entryType&&(null===(e=t.page)||void 0===e?void 0:e.total)>0?i("div",{staticClass:"page-box",staticStyle:{"margin-top":"16px"}},[i("a-pagination",{attrs:{pageSize:t.page.pageSize,current:t.page.pageIndex,"show-total":function(e){return"共 ".concat(e," 条")},"show-quick-jumper":"",total:t.page.total},on:{change:t.paginationChange}})],1):t._e(),i("a-modal",{staticClass:"modal-box",attrs:{width:630,centered:!0,cancelText:" ",footer:null,title:t.wjjTitle,visible:t.floderVisible},on:{cancel:t.floderHandleCancel}},[i("div",[i("a-form-model",{ref:"floderRuleForm",staticStyle:{position:"relative"},attrs:{model:t.floderForm,"label-col":{span:4},rules:t.floderRules,"wrapper-col":{span:20}}},[i("a-form-model-item",{attrs:{label:"文件夹名称",prop:"MC"}},[i("a-input",{attrs:{placeholder:"请输入文件夹名称",maxLength:50},model:{value:t.floderForm.MC,callback:function(e){t.$set(t.floderForm,"MC",e)},expression:"floderForm.MC"}}),i("div",{staticClass:"hirt"},[t._v("注:请控制在50字以内")])],1)],1)],1),i("div",{staticClass:"btn-box"},[i("a-button",{staticClass:"btn",attrs:{type:"primary",loading:t.confirmLoading},on:{click:t.floderHandleOk}},[t._v("确 认")])],1)]),i("a-modal",{staticClass:"modal-box",attrs:{width:630,centered:!0,cancelText:" ",footer:null,title:"编辑资源名称",visible:t.bjVisible},on:{cancel:t.bjHandleCancel}},[i("div",[i("a-form-model",{ref:"bjRuleForm",staticStyle:{position:"relative"},attrs:{model:t.bjForm,"label-col":{span:4},rules:t.bjRules,"wrapper-col":{span:20}}},[i("a-form-model-item",{attrs:{label:"资源名称",prop:"MC"}},[i("a-input",{attrs:{placeholder:"请输入资源名称",maxLength:15}
1,model:{value:t.bjForm.MC,callback:function(e){t.$set(t.bjForm,"MC",e)},expression:"bjForm.MC"}})],1),i("a-form-model-item",{attrs:{label:"资源目录"}},[i("a-select",{staticClass:"select-box",attrs:{placeholder:"请选择资源目录"},model:{value:t.bjForm.SJID,callback:function(e){t.$set(t.bjForm,"SJID",e)},expression:"bjForm.SJID"}},[i("a-select-option",{attrs:{value:"/"}},[t._v("/")]),t._l(t.floderList,function(e){return i("a-select-option",{key:e.ID,attrs:{value:e.ID}},[t._v(t._s(e.MC))])})],2)],1)],1)],1),i("div",{staticClass:"btn-box"},[i("a-button",{staticClass:"btn",attrs:{type:"primary",loading:t.confirmLoading},on:{click:t.bjHandleOk}},[t._v("确 认")])],1)]),i("a-modal",{staticClass:"modal-box",attrs:{width:630,centered:!0,cancelText:" ",footer:null,title:"增加资源",visible:t.resVisible},on:{cancel:t.resHandleCancel}},[i("div",[i("a-form-model",{ref:"ruleForm",staticStyle:{position:"relative","margin-top":"-30px"},attrs:{model:t.form,"label-col":{span:4},rules:t.rules,"wrapper-col":{span:20}}},[i("a-form-model-item",{attrs:{label:" ",prop:"WT","label-col":{span:0},"wrapper-col":{span:24}}},["1"==t.entryType?i("a-radio-group",{attrs:{name:"radioGroup"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("a-radio",{attrs:{value:"1"}},[t._v("上传新文件")]),i("a-radio",{attrs:{value:"2"}},[t._v("选择文件")])],1):t._e(),"1"!==t.type||t.isEdit?t._e():i("div",{staticClass:"upload-box"},[i("UploadElement",{staticStyle:{"max-width":"256px"},attrs:{"before-upload":t.handleFjBeforeUpload,accept:".jpg,.gif,.png,.mp4,.mp3,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.txt,.rar,.zip,.7z","file-list":t.fileList,"on-success":t.fjSucess,"show-file-list":!0,limit:1}},[i("div",{staticClass:"kj-box"},[i("a-icon",{attrs:{type:"plus"}}),i("div",{staticClass:"ant-upload-text"},[t._v("上传资源")])],1)]),i("div",{staticClass:"text-box"},[i("div",{staticClass:"text"},[t._v(" 系统支持下列格式的文件预览,其他格式只能下载,且不能用于课件与资源库:jpg、gif、png、mp4、mp3、doc、docx、xls、xlsx、 ppt、pptx、pdf、 txt、rar、zip、7z 上传文件大小在2GB之内; ")]),i("div",{staticClass:"text"},[t._v("欢迎您上传自己的原创作品,如果您上传的内容不是您本人的原创,请注明原作者或来源;")]),i("div",{staticClass:"text"},[t._v(" 请正确填写资源名(资源章节序列),资源原作者名,尊重资源版权。资源名和内容严重不符合的,不予以通过; ")]),i("div",{staticClass:"text"},[t._v(" 您上传的内容应符合国家法律法规的规定,不得损害他人的合法权益。本平台保留对不符合规定的内容采取相应处理措施的权力; ")]),i("div",{staticClass:"hirt",staticStyle:{color:"#c4332b"}},[t._v(" 注: 各位老师,上传资源后请耐心等待,若提示“资源加工失败”,再重新上传,期间请勿反复上传。 ")])])],1)],1),"1"==t.entryType?i("a-form-model-item",{attrs:{label:"存放位置"}},[i("a-select",{staticClass:"select-item",model:{value:t.form.SJID,callback:function(e){t.$set(t.form,"SJID",e)},expression:"form.SJID"}},[i("a-select-option",{attrs:{value:""}},[t._v("根目录")]),t._l(t.resList,function(e,s){return[1==e.SFML?i("a-select-option",{key:s,attrs:{value:e.ID}},[t._v(t._s(e.MC))]):t._e()]})],2)],1):t._e(),"1"===t.type?i("div",[i("a-form-model-item",{attrs:{label:"资源名称",prop:"ZYMC"}},[i("a-input",{attrs:{placeholder:"请输入资源名称"},model:{value:t.form.ZYMC,callback:function(e){t.$set(t.form,"ZYMC",e)},expression:"form.ZYMC"}})],1),i("a-form-model-item",{attrs:{label:"资源类型",prop:"ZYLX"}},[i("a-select",{staticClass:"select-item",attrs:{"show-search":"",placeholder:"请选择资源类型","option-filter-prop":"children"},on:{change:t.handleChange},model:{value:t.form.ZYLX,callback:function(e){t.$set(t.form,"ZYLX",e)},expression:"form.ZYLX"}},t._l(t.typeList,function(e,s){return i("a-select-option",{key:s,attrs:{value:e.sid}},[t._v(" "+t._s(e.title)+" ")])}),1)],1),i("a-form-model-item",{attrs:{label:"原创",prop:"SFYC"}},[i("a-select",{model:{value:t.form.SFYC,callback:function(e){t.$set(t.form,"SFYC",e)},expression:"form.SFYC"}},[i("a-select-option",{attrs:{value:"1"}},[t._v("是")]),i("a-select-option",{attrs:{value:"2"}},[t._v("否")])],1)],1),"2"==t.form.SFYC?i("a-form-model-item",{attrs:{label:"版权单位",prop:"BQDW"}},[i("a-input",{attrs:{placeholder:"请输入版权单位"},model:{value:t.form.BQDW,callback:function(e){t.$set(t.form,"BQDW",e)},expression:"form.BQDW"}})],1):t._e(),i("a-form-model-item",{attrs:{label:"作者",prop:"ZZXM"}},[i("a-input",{attrs:{placeholder:"请输入作者姓名"}
1,model:{value:t.form.ZZXM,callback:function(e){t.$set(t.form,"ZZXM",e)},expression:"form.ZZXM"}})],1)],1):t._e(),"2"===t.type?i("div",[i("SearchPersonalData",{on:{checkData:t.checkData}})],1):t._e()],1)],1),i("div",{staticClass:"btn-box"},[i("a-button",{staticClass:"btn",attrs:{type:"primary",loading:t.confirmLoading},on:{click:t.resHandleOk}},[t._v("确 认")])],1)]),i("a-modal",{staticClass:"modal-box",attrs:{width:520,centered:!0,cancelText:" ",footer:null,title:"确认删除",visible:t.deleteVisible},on:{cancel:t.deleteHandleCancel}},[t.checkItem?i("div",{staticClass:"modal-text"},[t._v(t._s(t.checkItem.MC)+" 删除后将无法恢复,确认删除?")]):t._e(),i("div",{staticClass:"btn-box"},[i("a-button",{staticClass:"btn",attrs:{type:"danger"},on:{click:t.deleteHandleOk}},[t._v("确 认")]),i("a-button",{staticClass:"btn",staticStyle:{"margin-left":"20px"},on:{click:t.deleteHandleCancel}},[t._v("取消")])],1)]),i("PreviewSource",{ref:"PreviewSource"})],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-icon-box folder-icon-box"},[t("img",{staticClass:"card-icon",attrs:{src:s(26614),alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-content-header"},[t("div",{staticClass:"header-name"},[e._v("名称")]),t("div",{staticClass:"header-size"},[e._v("大小")]),t("div",{staticClass:"header-creator"},[e._v("创建人")]),t("div",{staticClass:"header-date"},[e._v("日期")]),t("div",{staticClass:"header-action"},[e._v("操作")])])}],a=s(57888),r=(s(2008),s(74423),s(62062),s(34782),s(2892),s(9868),s(26099),s(23500),s(7516)),o=s(35168),l=s(22671),c=s(59761),u=s(44118),d=(s(95093),s(99258)),h=s(70366),p=(s(61145),s(95426)),m={name:"ProfileResource",components:{UploadElement:u.A,SearchPersonalData:h.A,Dplayer:o.A,PreviewSource:p.A},props:{entryType:{type:Number}},data:function(){return{dataLeft:null,videoListOut:[],ylVisible:!1,bjForm:{MC:""},bjVisible:!1,wjjTitle:"增加文件夹",isEdit:!1,deleteVisible:!1,checkItem:null,activeIndex:0,typeList:d.W5,resList:[],KCID:"",sortKey:"SJ_DX",searchKeyword:"",fileList:[],resVisible:!1,floderVisible:!1,confirmLoading:!1,selectedRowKeys:[],type:"1",floderForm:{MC:""},page:{pageIndex:1,pageSize:0,total:0},form:{MC:void 0,ZYMC:void 0,ZYLX:void 0,SFYC:"1",ID:"",BQDW:"",ZYLXM:"",SJID:""},rules:{ZYMC:[{required:!0,message:"请输入资源名称",trigger:"blur"}],ZYLX:[{required:!0,message:"请选择资源类型",trigger:"change"}],ZZXM:[{required:!0,message:"请输入作者姓名",trigger:"blur"}],BQDW:[{required:!0,message:"请输入版权单位",trigger:"blur"}]},floderRules:{MC:[{required:!0,message:"请输入文件夹名称",trigger:"blur"}]},bjRules:{MC:[{required:!0,message:"请输入资源名称",trigger:"blur"}]},viewMode:"grid",folderPath:[],allSource:[]}},computed:{floderList:function(){return this.allSource.filter(function(e){return"1"==e.SFML}).map(function(e){return{ID:e.ID,MC:e.MC}})},folderCount:function(){return this.resList.filter(function(e){return"1"==e.SFML}).length},fileCount:function(){return this.resList.filter(function(e){return"2"==e.SFML}).length}},mounted:function(){this.KCID=this.$route.query.id,0===this.entryType?this.getResList():this.KCID&&(this.activeIndex=1,this.getResList()),1==this.entryType&&(this.activeIndex=0)},methods:{getFileBadge:function(e){var t=(e.ZYLX||e.ZYZY||"").toLowerCase();return"pdf"===t?"PDF":["doc","docx"].includes(t)?"DOC":["xls","xlsx"].includes(t)?"XLS":["ppt","pptx"].includes(t)?"PPT":["mp4","avi","mov","mkv"].includes(t)?"MP4":["mp3","wav","ogg"].includes(t)?"MP3":["jpg","jpeg","png","gif","bmp","webp"].includes(t)?"IMG":["zip","rar","7z"].includes(t)?"ZIP":["txt"].includes(t)?"TXT":(t||"FILE").toUpperCase().substring(0,4)},sortChange:function(e){var t={SJ_DX:1,SJ_SX:2,MC_SX:3,MC_DX:4};this.activeIndex=t[e]||0,this.page.pageIndex=1,this.getResList()},handleCardClick:function(e,t){"grid"===this.viewMode&&"1"==e.SFML?this.enterFolder(e,t):this.clcekSet(e,t)},enterFolder:function(e,t){if(e.JH&&0!==e.JH.length){this.folderPath.push({ID:e.ID,MC:e.MC});var s=e.JH.map(function(e){return(0,a.A)((0,a.A)({},e),{},{isCkecked:!1}
1)});this.resList=s,this.checkItem=null}else this.$message.info("该文件夹为空")},goBack:function(){this.folderPath=[],this.checkItem=null,this.getResList()},goToFolder:function(e){this.folderPath=this.folderPath.slice(0,e+1);var t=this.folderPath.length>0?this.folderPath[this.folderPath.length-1].ID:"";t?this.getFolderContent(t):this.getResList(),this.checkItem=null},getFolderContent:function(e){var t,s=this;t=0===this.entryType?(0,c.ro)({MC:this.searchKeyword,SX:this.sortKey,pageNo:1,SJID:e}):1===this.entryType?(0,l.sQ)({MC:this.searchKeyword,SX:this.sortKey,SJID:e},this.KCID):(0,l.QT)({MC:this.searchKeyword,SX:this.sortKey,SJID:e},this.KCID),t.then(function(e){200===e.code?e.result?(e.result.forEach(function(e){e.isCkecked=!1}),s.resList=e.result):s.resList=[]:s.$message.warning(e.message)})},conversion:function(e){if(!e)return"";var t=e.split(" ")[1],s=Number(e.split(" ")[0]);return"KB"===t?s>=1048576?(s/1024/1024).toFixed(2)+" GB":s>=1024?(s/1024).toFixed(2)+" MB":e:"MB"===t?s>=1024?(s/1024).toFixed(2)+" GB":s.toFixed(2)+" MB":e},ylHandleCancel:function(){this.ylVisible=!1},ylFun:function(e){var t,s=e.YLLJ;"video"===e.ZYMTLX?s=null===(t=this.videoListOut[0])||void 0===t?void 0:t.url:"image"===e.ZYMTLX&&(s=e.TPLJ);this.$refs.PreviewSource.setPreView({ZYLX:e.ZYMTLX,ZYLJ:s})},getPreview:function(e){var t=this,s={ZYID:0==this.entryType?e.ID:e.ZYID,KCID:this.KCID};0==this.entryType?(0,l._1)(s).then(function(e){200==e.code?(t.dataLeft=e.result,e.result.SPXXJH&&(t.videoListOut=e.result.SPXXJH.map(function(t){return{url:t.transcodeFileUrl,pic:e.result.TPLJ}})),t.ylVisible=!0,t.ylFun(e.result)):t.$message.error(e.message)}):1==this.entryType?(0,l.k7)(s).then(function(e){200==e.code?(t.dataLeft=e.result,e.result.SPXXJH&&(t.videoListOut=e.result.SPXXJH.map(function(t){return{url:t.transcodeFileUrl,pic:e.result.TPLJ}})),t.ylVisible=!0,t.ylFun(e.result)):t.$message.error(e.message)}):(0,l.BB)(s).then(function(e){200==e.code?(t.dataLeft=e.result,e.result.SPXXJH&&(t.videoListOut=e.result.SPXXJH.map(function(t){return{url:t.transcodeFileUrl,pic:e.result.TPLJ}})),t.ylVisible=!0,t.ylFun(e.result)):t.$message.error(e.message)})},bjHandleCancel:function(){this.bjVisible=!1},deleteItem:function(){this.checkItem?this.deleteVisible=!0:this.$message.warning("请先选中列表数据")},editItem:function(e){this.checkItem=e,this.editRes()},deleteItemById:function(e){this.checkItem=e,this.deleteVisible=!0},deleteHandleOk:function(){var e=this,t={ID:this.checkItem.ID,KCID:this.KCID};1==this.entryType?(0,l.HU)(t,this.KCID).then(function(t){200==t.code?(e.$message.success("操作成功"),e.deleteVisible=!1,e.page.pageIndex=1,e.getResList()):e.$message.error(t.message)}):(0,c.Y_)(t).then(function(t){200==t.code?(e.$message.success("操作成功"),e.deleteVisible=!1,e.page.pageIndex=1,e.getResList()):e.$message.error(t.message)})},deleteHandleCancel:function(){this.deleteVisible=!1},downLoad:function(e){var t=this;0==this.entryType||1==this.entryType?(0,c.Gc)({ZYID:0==this.entryType?e.ID:e.ZYID,KCID:this.KCID}).then(function(e){if(200===e.code){var s=document.createElement("a");s.style.display="none",s.setAttribute("target","_blank"),s.href=e.result,document.body.appendChild(s),s.click(),document.body.removeChild(s)}else t.$message.error(e.message)}):(0,l.b6)({ZYID:e.ZYID,KCID:this.KCID}).then(function(e){if(200===e.code){var s=document.createElement("a");s.style.display="none",s.setAttribute("target","_blank"),s.href=e.result,document.body.appendChild(s),s.click(),document.body.removeChild(s)}else t.$message.error(e.message)})},handleChange:function(e){var t;this.form.ZYLXM=null===(t=this.typeList.filter(function(t){return t.sid===e})[0])||void 0===t?void 0:t.title},addResDir:function(){this.floderForm={MC:""},this.wjjTitle="增加文件夹",this.floderVisible=!0},addRes:function(){this.isEdit=!1,this.activeIndex=0,this.type="1",this.form={MC:void 0,ZYMC:void 0,ZYLX:void 0,SFYC:"1",ID:"",BQDW:"",ZYLXM:"",SJID:""},this.fileList=[],this.resVisible=!0},editRes:function(){if(this.activeIndex=5,this.isEdit=!0,this.checkItem)if(2==this.checkItem.SFML){if(1==this.entryType)return this.bjForm={MC:this.checkItem.MC,ID:this.checkItem.ID,SJID:this.checkItem.SJID},void(this.bjVisible=!0);this.form={ZYMC:this.checkItem.MC,ZYLX:this.checkItem.ZYLX,SFYC:this.checkItem.SFYC,ID:this.checkItem.ID,BQDW:this.checkItem.BQDW,ZYLXM:this.checkItem.ZYLXM,SJID:this.checkItem.SJID,ZZXM:this.checkItem.ZZXM},this.checkItem.TPLJ&&(this.fileList=[{name:this.checkItem.TPLJ,url:this.checkItem.TPLJ,uid:"1"}]),this.resVisible=!0}else this.floderForm={MC:this.checkItem.MC,ID:this.checkItem.ID},this.wjjTitle="编辑文件夹",this.floderVisible=!0;else this.$message.warning("请先选中列表数据")},sort:function(e,t){this.activeIndex=t,this.sortKey=e,this.page.pageIndex=1,this.getResList()},handleFjBeforeUpload:function(e){if(e.size/1024>2097152)return this.$message.error("文件不能大于2GB"),!1},fjSucess:function(e,t){this.form.ID=t.uid},floderHandleCancel:function(){this.floderVisible=!1},resHandleCancel:function(){this.resVisible=!1},bjHandleOk:function(){var e=this;this.confirmLoading=!0,this.$refs.bjRuleForm.validate(function(t){t?(0,l.Bo)({MC:e.bjForm.MC,ID:e.bjForm.ID,SJID:e.bjForm.SJID||""},e.KCID).then(function(t){200===t.code?(e.folderPath=[],e.checkItem=null,e.getResList(),e.$message.success("操作成功"),e.bjVisible=!1,e.bjForm={MC:"",SJID:""}):e.$message.warning(t.message),e.confirmLoading=!1}
1).catch(function(){e.confirmLoading=!1}):e.confirmLoading=!1})},floderHandleOk:function(){var e=this;this.confirmLoading=!0,this.$refs.floderRuleForm.validate(function(t){if(!t)return e.confirmLoading=!1,!1;"增加文件夹"==e.wjjTitle?(0,l.zH)({MC:e.floderForm.MC,SFML:1},e.KCID).then(function(t){e.confirmLoading=!1,200===t.code?(e.getResList(),e.$message.success("操作成功"),e.floderVisible=!1,e.floderForm={MC:""}):e.$message.warning(t.message),e.confirmLoading=!1}).catch(function(){e.confirmLoading=!1}):(0,l.Bo)({MC:e.floderForm.MC,ID:e.floderForm.ID},e.KCID).then(function(t){200===t.code?(e.getResList(),e.$message.success("操作成功"),e.floderVisible=!1,e.floderForm={MC:""}):e.$message.warning(t.message),e.confirmLoading=!1}).catch(function(){e.confirmLoading=!1})})},resHandleOk:function(){var e=this;1==this.type?(this.confirmLoading=!0,this.$refs.ruleForm.validate(function(t){if(!t)return e.confirmLoading=!1,!1;if(!e.form.ID||""==e.form.ID)return e.$message.warning("请先上传文件"),void(e.confirmLoading=!1);var s={BQDW:e.form.BQDW,ID:e.form.ID,SFYC:e.form.SFYC,ZYLX:e.form.ZYLX,ZYLXM:e.form.ZYLXM,ZYMC:e.form.ZYMC,ZZXM:e.form.ZZXM};if(e.isEdit)return(0,c.Ck)(s).then(function(t){200===t.code?"0"==e.entryType&&(e.getResList(),e.$message.success("操作成功"),e.resVisible=!1,e.confirmLoading=!1):e.$message.error(t.message)}),void(e.confirmLoading=!1);(0,r.d4)(s).then(function(t){if(200===t.code){if("0"==e.entryType)return e.getResList(),e.$message.success("操作成功"),e.resVisible=!1,void(e.confirmLoading=!1);var s={ZYID:t.result.ID,SFML:2,SJID:""==e.form.SJID?void 0:e.form.SJID};(0,l.zH)(s,e.KCID).then(function(t){200===t.code?(e.getResList(),e.$message.success("操作成功"),e.resVisible=!1,e.confirmLoading=!1,e.form={MC:void 0,ZYMC:void 0,ZYLX:void 0,SFYC:"1",ID:"",BQDW:""}):e.$message.error(t.message)})}else e.$message.error(t.message);e.confirmLoading=!1}).catch(function(){e.confirmLoading=!1})})):this.$refs.ruleForm.validate(function(t){if(e.confirmLoading=!0,!t)return e.confirmLoading=!1,!1;if(0==e.selectedRowKeys.length||void 0===e.selectedRowKeys[0])return e.$message.warning("请选择资源"),void(e.confirmLoading=!1);var s={ZYID:e.selectedRowKeys[0],SFML:2,SJID:""==e.form.SJID?void 0:e.form.SJID};(0,l.zH)(s,e.KCID).then(function(t){200===t.code?(e.getResList(),e.$message.success("操作成功"),e.resVisible=!1,e.selectedRowKeys=[]):e.$message.warning(t.message),e.confirmLoading=!1}).catch(function(){e.confirmLoading=!1})})},checkData:function(e){this.selectedRowKeys=e},clickSearch:function(){this.paginationChange(1)},paginationChange:function(e){this.page.pageIndex=e,this.getResList()},getResList:function(){var e,t=this,s=this.folderPath.length>0?this.folderPath[this.folderPath.length-1].ID:"";e=0===this.entryType?(0,c.ro)({MC:this.searchKeyword,SX:this.sortKey,pageNo:this.page.pageIndex,SJID:s}):1===this.entryType?(0,l.sQ)({MC:this.searchKeyword,SX:this.sortKey,SJID:s},this.KCID):(0,l.QT)({MC:this.searchKeyword,SX:this.sortKey,SJID:s},this.KCID),e.then(function(e){200===e.code?(e.result&&(e.result.forEach(function(e){var t;e.isCkecked=!1,null!==(t=e.JH)&&void 0!==t&&t.length&&e.JH.forEach(function(e){e.isCkecked=!1})}),t.allSource=e.result||[],t.resList=e.result),e.page&&(t.page.pageSize=e.page.pageSize,t.page.total=e.page.totalCount-0)):t.$message.warning(e.message)})},clcekSet1:function(e,t,s){this.checkItem=e,this.resList.forEach(function(e){var t;e.isCkecked=!1,null!==(t=e.JH)&&void 0!==t&&t.length&&e.JH.forEach(function(e){e.isCkecked=!1})}),this.resList[t].JH[s].isCkecked=!0},clcekSet:function(e,t){var s;if(this.checkItem=e,this.resList.forEach(function(e){var t;e.isCkecked=!1,null!==(t=e.JH)&&void 0!==t&&t.length&&e.JH.forEach(function(e){e.isCkecked=!1})}),this.resList[t].isCkecked=!0,"2"!=e.SFML&&e.JH){var i=document.getElementById("senior-set".concat(e.ID)),n=i.getBoundingClientRect(),a=n.height;if(i.style.height=a+"px",e.expand)i.offsetHeight,i.style.transition="all 0.5",i.style.height="0";else{i.style.height="auto";var r=i.getBoundingClientRect(),o=r.height;i.style.height="0",i.style.transition="all 0.5",i.offsetHeight,i.style.height=o+"px"}
1null===(s=this.resList)||void 0===s||s.forEach(function(t){t.ID===e.ID&&(t.expand=!t.expand)})}}}},f=m,v=s(81656),g=(0,v.A)(f,i,n,!1,null,"16fc2296",null),C=g.exports},70366:function(e,t,s){"use strict";s.d(t,{A:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"top-search"},[t("a-input",{staticStyle:{width:"50%"},attrs:{autocomplete:"new-password",placeholder:"请输入资源名称"},model:{value:e.ZYMC,callback:function(t){e.ZYMC=t},expression:"ZYMC"}}),t("span",{staticClass:"search-btn",on:{click:e.secrchZy}},[e._v("查询")])],1),t("a-table",{staticStyle:{"margin-top":"21px"},attrs:{"row-selection":{selectedRowKeys:e.selectedRowKeysNew,onChange:e.onSelectChange,columnTitle:" "},columns:e.columns,"data-source":e.data,rowKey:"ID",bordered:"",pagination:!1,rowClassName:function(e,t){return t%2===1?"table-striped":null}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(s,i){return t("span",{},[t("div",[e._v(" "+e._s(e._f("nyr")(i.CJSJ))+" ")])])}},{key:"TPLJ",fn:function(e,i){return t("span",{},[t("div",{staticClass:"img-cont"},[i.TPLJ&&""!=i.TPLJ?t("img",{attrs:{height:"50",src:i.TPLJ,alt:""}}):"mp3"===(null===i||void 0===i?void 0:i.ZYZY)?t("img",{attrs:{height:"50",src:s(85662),alt:""}}):t("img",{attrs:{height:"50",src:s(50320),alt:""}})])])}}])}),t("div",{staticClass:"last-content"},[t("a-pagination",{attrs:{pageSize:e.zyPaginations.pageSize,"show-total":function(t){return"共 ".concat(e.kjTotal," 条")},"show-quick-jumper":"",current:e.zyPaginations.pageNo,total:e.kjTotal},on:{change:e.kjPagination}})],1)],1)},n=[],a=(s(2008),s(2892),s(26099),s(7516)),r={name:"SearchPersonalData",props:{selectedRowKeys:{type:Array,default:function(){return[]}}},watch:{selectedRowKeys:{handler:function(e,t){e&&(this.selectedRowKeysNew=e)},immediate:!0,deep:!0}},data:function(){return{selectedRowKeysNew:[],selectedRows:[],zyPaginations:{pageNo:1,pageSize:5},ZYMC:"",kjTotal:0,columns:[{title:"资源封面",scopedSlots:{customRender:"TPLJ"},key:"TPLJ"},{title:"资源名称",dataIndex:"MC",key:"MC",ellipsis:!0},{title:"上传时间",key:"action",scopedSlots:{customRender:"action"}}],data:[]}},methods:{handleTableChange:function(e,t,s){pager.current=e.current},onSelectChange:function(e,t){var s=this;if(this.selectedRows.length>0){var i,n,a="ID";this.selectedRowKeysNew=[null===(i=e.filter(function(e){return e!==s.selectedRowKeys[0]}))||void 0===i?void 0:i[0]],this.selectedRows=[null===(n=t.filter(function(e){var t;return e[a]!==(null===(t=s.selectedRows[0])||void 0===t?void 0:t[a])}))||void 0===n?void 0:n[0]]}else this.selectedRowKeysNew=[e[0]],this.selectedRows=[t[0]];this.$emit("checkData",this.selectedRowKeysNew)},kjPagination:function(e){this.zyPaginations.pageNo=e,this.getResList()},secrchZy:function(){this.zyPaginations.pageNo=1,this.getResList()},getResList:function(){var e=this,t={pageNo:this.zyPaginations.pageNo,pageSize:this.zyPaginations.pageSize,MC:this.ZYMC};(0,a.xe)(t).then(function(t){200===t.code?(e.data=t.result||[],e.kjTotal=Number(t.page.totalCount)):(e.kjTotal=0,e.data=[])})}},mounted:function(){this.getResList()}},o=r,l=s(81656),c=(0,l.A)(o,i,n,!1,null,"7d46889b",null),u=c.exports},54063:function(e,t,s){"use strict";s.d(t,{A:function(){return d}});var i=function(){var e=this,t=e._self._c;return e.arr&&e.arr.length&&e.show?t("div",{staticClass:"ui-preview"},[e.handlerTypeImage(e.arr[e.activeCurrent].type)?t("div",{staticClass:"preview-box",staticStyle:{visibility:"hidden"},attrs:{id:"preview-box".concat(e.activeCurrent)}},[t("img",{attrs:{src:e.arr[e.activeCurrent].url,alt:""}})]):e.handlerTypeZip(e.arr[e.activeCurrent].type)?t("div",{staticClass:"preview-box",staticStyle:{visibility:"hidden"},attrs:{id:"preview-box".concat(e.activeCurrent)}},[e._v(" 暂不支持预览 ")]):t("div",{staticClass:"preview-box",staticStyle:{visibility:"hidden"},attrs:{id:"preview-box".concat(e.activeCurrent)}},[t("iframe",{staticStyle:{width:"100%",height:"calc(100vh - 300px)"},attrs:{src:"/review/onlinePreview?url=".concat(encodeURIComponent(e.handlebase64Encode(decodeURIComponent(e.arr[e.activeCurrent].url)))),frameborder:"0"}})]),e.arr&&e.arr.length>1?t("div",{staticClass:"preview-left preview-pre-next",class:e.forbidden?"forbidden":"",on:{click:e.toPre}},[t("a-icon",{attrs:{type:"left"}}
1)],1):e._e(),e.arr&&e.arr.length>1?t("div",{staticClass:"preview-right preview-pre-next",class:e.forbidden?"forbidden":"",on:{click:e.toNext}},[t("a-icon",{attrs:{type:"right"}})],1):e._e(),t("div",{staticClass:"preview-options"},e._l(e.arr,function(s,i){return t("div",{key:i,staticClass:"options-item",class:e.activeCurrent===i?"active-option":"",on:{click:function(t){return e.toActive(i)}}},[e._v(e._s(i+1)+" ")])}),0),t("div",{staticClass:"preview-close",on:{click:e.toClose}},[t("a-icon",{attrs:{type:"close-circle"}})],1)]):e._e()},n=[],a=(s(2892),s(85914)),r=s.n(a),o={props:{fileArr:{type:Array,default:function(){return[]}},current:{type:Number,default:function(){return 0}},show:{type:Boolean,default:function(){return!1}}},data:function(){return{optionsTimer:null,arr:[],activeCurrent:0,preCurrent:0,forbidden:!1,fileShow:!1}},watch:{fileArr:{handler:function(e){if(e&&e.length){var t=[];for(var s in e)if(e[s]&&e[s].url){var i=e[s].url.split("."),n=i[i.length-1];t.push({url:e[s].url,type:n})}else if(e[s]&&e[s].accessUrl){var a=e[s].accessUrl.split("."),r=a[a.length-1];t.push({url:e[s].accessUrl,type:r})}else if("string"===typeof e[s]){var o=e[s].split("."),l=o[o.length-1];t.push({url:e[s],type:l})}this.arr=t}},immediate:!0,deep:!0},current:{handler:function(e){this.activeCurrent=e,this.preCurrent=e},immediate:!0,deep:!0},show:{handler:function(e){var t=this;if(this.fileShow=e,e){var s=null;s=setTimeout(function(){if(clearTimeout(s),t.fileShow){var e=document.getElementById("preview-box".concat(t.activeCurrent));e.style.visibility="visible"}},500)}},immediate:!0,deep:!0}},methods:{toClose:function(){this.fileShow=!1,this.activeCurrent=0,this.preCurrent=0,this.$emit("close")},toPre:function(){this.forbidden||this.duplication(this.activeCurrent-1)},toNext:function(){!0!==this.forbidden&&this.duplication(this.activeCurrent+1)},duplication:function(e){var t=this;this.forbidden=!0;var s=null;s=setTimeout(function(){clearTimeout(s),t.handlerNext(e),t.forbidden=!1},500)},toActive:function(e){e!==this.activeCurrent&&this.duplication(e)},handlerNext:function(e){var t=this,s=document.getElementById("preview-box".concat(t.preCurrent));e>t.preCurrent?s.className="preview-box preview-left-out":s.className="preview-box preview-right-out";var i=null;i=setTimeout(function(){clearTimeout(i),s.className="preview-box",e<0?t.activeCurrent=t.arr.length-1:e>t.arr.length-1?t.activeCurrent=0:t.activeCurrent=e,s.style.visibility="hidden"},200);var n=null;n=setTimeout(function(){clearTimeout(n);var s=document.getElementById("preview-box".concat(t.activeCurrent));s.style.visibility="visible",e>t.preCurrent?s.className="preview-box preview-right-inter":s.className="preview-box preview-left-inter"},350);var a=null;a=setTimeout(function(){clearTimeout(a);var s=document.getElementById("preview-box".concat(t.activeCurrent));s.className="preview-box",e<0?t.preCurrent=t.arr.length-1:e>t.arr.length-1?t.preCurrent=0:t.preCurrent=e},500)},handlerTypeImage:function(e){return"png"===e||"jpg"===e},handlerTypeZip:function(e){return"zip"===e||"rar"===e||"7z"===e},handlebase64Encode:function(e){return r().encode(e)}}},l=o,c=s(81656),u=(0,c.A)(l,i,n,!1,null,"97d6eabe",null),d=u.exports},44118:function(e,t,s){"use strict";s.d(t,{A:function(){return C}});var i=function(){var e=this,t=e._self._c;return t("div",[t("a-upload",{staticClass:"upload-demo",attrs:{action:"",accept:e.accept,showUploadList:e.showFileList,beforeUpload:e.handleBeforeUpload,remove:e.handleRemove,customRequest:e.upLoadVideo,"file-list":e.uploadFileList},on:{change:e.handleChange,previewFile:e.handlePreview}},[e.uploadFileList.length<e.limit?e._t("default"):e._e(),e._t("tip"),e._t("img"),e.isCompression&&e.isShowCompression?t("div",{staticClass:"compress-box"},[t("a-spin"),t("span",{staticClass:"text"},[e._v("文件过大,压缩中...")])],1):e._e()],2),t("ui-preview",{attrs:{"file-arr":e.uploadFileList,show:e.fileShow,current:e.fileCurrent},on:{close:e.toClose}})],1)},n=[],a=s(69870),r=s(17654),o=s(57888),l=s(9133),c=(s(48980),s(54554),s(62010),s(2892),s(9868),s(26099),s(23500),s(46547)),u=(s(4191),s(56189),s(56286),s(54063)),d=s(85914),h=s.n(d);function p(){}var m={name:"Index",components:{UiPreview:u.A},props:{isResourceUpload:{type:Number,default:2},showFileList:{type:Boolean,default:!0},accept:{type:String},limit:{type:Number,default:1},fileList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},onSuccess:{type:Function,default:p},onChange:{type:Function,default:p},onRemove:{type:Function,default:p},onExceed:{type:Function,default:p},onProgress:{type:Function,default:p},progressEvent:{type:Function,default:p},onCompression:{type:Function,default:p}
1,catchErrorSts:{type:Function,default:p},beforeUpload:{type:Function,default:p},convertSize:{type:Number,default:1},convertToSize:{type:Number,default:200},extralData:{type:Object,default:function(){return{}}},isPreview:{type:Boolean,default:function(){return!1}},isShowCompression:{type:Boolean,default:function(){return!0}}},data:function(){return{uploadRequest:null,uploadFileList:[],fileObj:{},isCompression:!1,fileShow:!1,fileCurrent:0,showFile:{},visibleFile:!1}},watch:{fileList:{handler:function(e){this.uploadFileList=(0,l.A)(e)},immediate:!0}},methods:{view:function(e){this.showFile=(0,o.A)((0,o.A)({},e),{},{accessUrl:e.url,filename:e.name}),this.visibleFile=!0},handlePreview:function(e){var t=this;this.isPreview&&(this.uploadFileList.forEach(function(s,i){s.url===e.url&&(t.fileCurrent=i)}),this.fileShow=!0)},download:function(e,t){var s=document.createElement("a");s.style.display="none",s.setAttribute("target","_blank"),s.setAttribute("filename",t),s.href=e,document.body.appendChild(s),s.click(),document.body.removeChild(s)},toClose:function(){this.fileShow=!1},handlebase64Encode:function(e){return h().encode(e)},handleBeforeUpload:function(e){var t=this.beforeUpload(e);if(!t&&void 0!==t)return!1},handleRemove:function(e,t){var s=this.uploadFileList.findIndex(function(t){return t.uid===e.uid});-1!==s&&this.uploadFileList.splice(s,1),e?this.onRemove(e,this.uploadFileList,this.extralData):this.uploadRequest&&this.uploadRequest.cacelUpload()},handleChange:function(e,t){this.onChange(e,t)},upLoadVideo:function(e){var t=this;return(0,r.A)((0,a.A)().mark(function s(){var i,n,l,u,d,h,p,m,f;return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:return e.status="uploading",t.uploadFileList.length?t.uploadFileList.push((0,o.A)((0,o.A)({},e),{},{percent:0,name:e.file.name,uid:e.file.uid})):t.uploadFileList=[(0,o.A)((0,o.A)({},e),{},{percent:0,name:e.file.name,uid:e.file.uid})],i=t.uploadFileList.length-1,n=e.file,n.size,n.type,n.name,l=ne
1w FormData,l.append("file",e.file),s.prev=6,u=2===t.isResourceUpload?c.Rs:c.VL,s.next=10,u(l);case 10:d=s.sent,200===d.code?(t.uploadFileList[i]&&(t.uploadFileList[i].status="done",t.uploadFileList[i].url="/"+(null===d||void 0===d||null===(h=d.result)||void 0===h||null===(h=h.JH)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.KEY),t.uploadFileList[i].uid=null===d||void 0===d||null===(p=d.result)||void 0===p||null===(p=p.JH)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.ID),m=setTimeout((0,r.A)((0,a.A)().mark(function s(){var i,n;return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:t.onSuccess(e,{url:"/"+(null===d||void 0===d||null===(i=d.result)||void 0===i||null===(i=i.JH)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.KEY),uid:null===d||void 0===d||null===(n=d.result)||void 0===n||null===(n=n.JH)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.ID},t.extralData),clearTimeout(m);case 2:case"end":return s.stop()}},s)})),1500)):(t.uploadFileList[t.uploadFileList.length-1]&&(t.uploadFileList[t.uploadFileList.length-1].status="error"),t.catchErrorSts(d),t.$message.error(d.message||d.msg)),s.next=23;break;case 14:if(s.prev=14,s.t0=s["catch"](6),t.uploadFileList[t.uploadFileList.length-1]&&(t.uploadFileList[t.uploadFileList.length-1].status="error"),t.progressEvent(0),f=s.t0.message,"上传错误"!==f){s.next=21;break}return s.abrupt("return");case 21:throw t.$message.error("上传失败"),new Error("上传失败");case 23:case"end":return s.stop()}},s,null,[[6,14]])}))()},httpUploadProgress:function(e,t,s,i,n){var a=(e.loaded/e.total*100).toFixed(0);this.progressEvent(a),this.uploadFileList[n]&&(this.uploadFileList[n].percent=Number(a)),this.onProgress(a),Number(a)}}},f=m,v=s(81656),g=(0,v.A)(f,i,n,!1,null,"2406c434",null),C=g.exports},64267:function(e,t,s){"use strict";s.d(t,{A:function(){return v}});s(27495),s(25440),s(5746);var i=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"modal-box",attrs:{width:910,centered:!0,cancelText:" ",footer:null,title:"导入试题",visible:e.open},on:{cancel:e.closeModeal}},[t("a-spin",{attrs:{spinning:e.loading}},[t("a-form-model",{ref:"formModal",attrs:{rules:e.rules,model:e.form,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[t("a-form-model-item",{attrs:{label:"加入章节",rules:[{required:!0,message:"请选择归属章节!"}]}},[t("a-select",{staticStyle:{width:"35%","margin-right":"20px"},attrs:{placeholder:"归属章"},on:{change:e.ZSelectChange},model:{value:e.form.ZID,callback:function(t){e.$set(e.form,"ZID",t)},expression:"form.ZID"}},e._l(e.ChapterList,function(s,i){return t("a-select-option",{key:s.ZJXH,attrs:{value:s.ZJXH,attr:s}},[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"章")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1),t("a-select",{staticStyle:{width:"32%","margin-right":"20px"},attrs:{placeholder:"归属节"},model:{value:e.form.JID,callback:function(t){e.$set(e.form,"JID",t)},expression:"form.JID"}},e._l(e.JList,function(s,i){return t("a-select-option",{key:s.ZJXH,attrs:{value:s.ZJXH}},[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"节")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1)],1),t("a-form-model-item",{attrs:{label:"试题类型",prop:"LX"}},[t("a-select",{staticStyle:{width:"25%","margin-right":"20px"},attrs:{placeholder:"请选择题型"},on:{change:e.search},model:{value:e.form.LX,callback:function(t){e.$set(e.form,"LX",t)},expression:"form.LX"}},[t("a-select-option",{attrs:{value:""}},[e._v("全部")]),t("a-select-option",{attrs:{value:"0"}},[e._v("单选题")]),t("a-select-option",{attrs:{value:"1"}},[e._v("多选题")]),t("a-select-option",{attrs:{value:"2"}},[e._v("填空题")]),t("a-select-option",{attrs:{value:"3"}},[e._v("简答题")]),t("a-select-option",{attrs:{value:"4"}},[e._v("判断题")])],1),t("a-input-search",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入题干关键字",autocomplete:"new-password","enter-button":""},on:{search:e.search},model:{value:e.form.TM,callback:function(t){e.$set(e.form,"TM",t)},expression:"form.TM"}})],1)],1),t("a-table",{staticStyle:{"margin-top":"22px"},attrs:{columns:e.columns,pagination:!1,"data-source":e.dataList,rowKey:"ID",rowSelection:{onSelect:e.onSelect,onSelectAll:e.onSelectAll,selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},bordered:""}
1,scopedSlots:e._u([{key:"CJSJ",fn:function(s,i){return t("span",{},[e._v(" "+e._s(e._f("nyr")(s))+" ")])}},{key:"LX",fn:function(s,i){return t("span",{},[e._v(" "+e._s(e.typeObj[s])+" ")])}},{key:"TM",fn:function(s,i){var n,a;return t("span",{attrs:{title:null===s||void 0===s||null===(n=s.replace(/<[^<>]+>/g,""))||void 0===n?void 0:n.replace(/&nbsp;/gi,"")}},[e._v(" "+e._s(null===s||void 0===s||null===(a=s.replace(/<[^<>]+>/g,""))||void 0===a?void 0:a.replace(/ /gi,""))+" ")])}}])}),t("div",{staticClass:"last-content ant-pro-grid-content wide"},[e.pagination.total>0?t("a-pagination",{style:{textAlign:"right"},attrs:{pageSize:10,"show-total":function(e){return"共 ".concat(e," 条")},current:e.pagination.pageNo,"show-quick-jumper":"",total:e.pagination.total},on:{change:e.handleTableChange}}):e._e()],1)],1),t("div",{staticClass:"btn-box"},[t("a-button",{staticClass:"btn",attrs:{type:"primary",loading:e.loading},on:{click:e.importTest}},[e._v("导入")])],1)],1)},n=[],a=s(69870),r=s(57888),o=s(17654),l=(s(28706),s(2008),s(48980),s(54554),s(79432),s(26099),s(23500),s(54475)),c=s(12216),u=(s(8966),s(27408),s(51920)),d=[{title:"类型",dataIndex:"LX",key:"LX",width:"80px",scopedSlots:{customRender:"LX"}},{title:"题干",key:"TM",dataIndex:"TM",ellipsis:!0,scopedSlots:{customRender:"TM"}},{title:"创建时间",dataIndex:"CJSJ",key:"CJSJ",scopedSlots:{customRender:"CJSJ"}}],h={name:"TestQuestions",components:{WangEditor:l.A},props:{ChapterList:{type:Array,default:function(){return[]}}},data:function(){return{columns:d,open:!1,labelCol:{span:3},wrapperCol:{span:21},typeObj:{0:"单选题",1:"多选题",2:"填空题",3:"简答题",4:"判断题"},form:{TM:"",GLKC:"",LX:"0",JID:"",ZID:""},rules:{TM:[{required:!0,message:"请输入题干",trigger:"blur"}],GLKC:[{required:!0,message:"请选择关联课程",trigger:"change"}]},styleParams:{height:"165px"},loading:!1,dataList:[],JList:[],pagination:{pageNo:1,pageSize:10,total:0},selectedRowKeys:[],selectedRows:[],selectionRows:[],isOrder:!1}},mounted:function(){this.kcid=this.$route.query.id,this.search(),this.advSet()},methods:{onSelectChange:function(e,t){this.selectedRowKeys=e},onSelect:function(e,t,s,i){if(t)this.selectionRows.push(e);else{var n=this.selectionRows.findIndex(function(t){return t.ID===e.ID});this.selectionRows.splice(n,1)}},onSelectAll:function(e,t,s){if(e&&(this.selectionRows=this.selectionRows.concat(s)),!e){var i=JSON.parse(JSON.stringify(this.selectionRows)),n=[];i.forEach(function(e,t){s.forEach(function(s){e.ID===s.ID&&n.push(t)})}),n.forEach(function(e){delete i[e]}),i=i.filter(function(e){return void 0!==e}),this.selectionRows=i}},loadZList:function(){},handleTableChange:function(e,t,s){this.pagination.pageNo=e,this.getList()},closeModeal:function(){this.form={TM:"",GLKC:"",LX:"0",JID:"",ZID:""},this.open=!1},advSet:function(){var e=this;this.$route.query.id;(0,u.NM)(this.$route.query.id).then(function(t){var s;200===(null===t||void 0===t?void 0:t.code)?e.isOrder="2"!==(null===(s=t.result)||void 0===s||null===(s=s.KCXX)||void 0===s?void 0:s.ZJXH):e.$message.error(null===t||void 0===t?void 0:t.message)})},ZSelectChange:function(e,t){var s;this.form.JID="",this.JList=(null===t||void 0===t||null===(s=t.data)||void 0===s||null===(s=s.attrs)||void 0===s||null===(s=s.attr)||void 0===s?void 0:s.ZLJH)||[]},search:function(){this.pagination.pageNo=1,this.getList()},getList:function(){var e=this;return(0,o.A)((0,a.A)().mark(function t(){return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,(0,c.Hp)((0,r.A)((0,r.A)({},e.form),e.pagination)).then(function(t){var s;200===t.code?(e.loading=!1,e.dataList=(null===t||void 0===t?void 0:t.result)||[],e.pagination.total=(null===t||void 0===t||null===(s=t.page)||void 0===s?void 0:s.totalCount)-0):(e.loading=!1,e.$message.error(null===t||void 0===t?void 0:t.message))});case 3:case"end":return t.stop()}},t)}))()},importTest:function(){var e=this;return(0,o.A)((0,a.A)().mark(function t(){var s,i,n,r;return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(null!==(s=e.form)&&void 0!==s&&s.ZID&&""!==(null===(i=e.form)||void 0===i?void 0:i.ZID)){t.next=2;break}return t.abrupt("return",e.$message.warning("请选择章!"));case 2:if(null!==(n=e.form)&&void 0!==n&&n.JID&&""!==(null===(r=e.form)||void 0===r?void 0:r.JID)){t.next=4;break}return t.abrupt("return",e.$message.warning("请选择节!"));case 4:if(0!==e.selectedRowKeys.length){t.next=6;break}return t.abrupt("return",e.$message.warning("请选择导入试题!"));case 6:return t.next=8,(0,c.Bs)({ZID:e.form.ZID,JID:e.form.JID,TMIDJH:e.selectedRowKeys},e.kcid).then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.loading=!1,e.$message.success(null===t||void 0===t?void 0:t.message),e.$emit("success"),e.open=!1,e.selectedRowKeys=[]):(e.loading=!1,e.$message.error(null===t||void 0===t?void 0:t.message))});case 8:case"end":return t.stop()}},t)}))()}}},p=h,m=s(81656),f=(0,m.A)(p,i,n,!1,null,"1f2ba7a4",null),v=f.exports},53815:function(e,t,s){"use strict";s.d(t,{A:function(){return f}});s(74423),s(21699);var i=function(){var e,t,s,i,n,a,r,o,l,c,u,d,h,p=this,m=p._self._c;return m("a-modal",{staticClass:"modal-box",attrs:{width:630,centered:!0,cancelText:" ",footer:null,title:"作答情况",visible:p.open},on:{cancel:function(e){p.open=!1}}},[m("div",{staticClass:"response-box"},[m("div",{staticClass:"msg-box"},[m("div",[p._v("作答总人数 "),m("span",[p._v(p._s(null===(e=p.zdqkObj)||void 0===e?void 0:e.ZDSL))]),p._v("人")]),m("div",[p._v("正确人数/率 "),null!==(t=p.zdqkObj)&&void 0!==t&&t.ZQSL&&null!==(s=p.zdqkObj)&&void 0!==s&&s.ZDSL?m("span",[p._v(p._s(null===(i=p.zdqkObj)||void 0===i?void 0:i.ZQSL)+"人/ "+p._s((null===(n=p.zdqkObj)||void 0===n?void 0:n.ZQSL)||0/(null===(a=p.zdqkObj)||void 0===a?void 0:a.ZDSL)||0))]):p._e()])])]),m("div",{staticClass:"item-cont"},[m("div",{staticClass:"title"},[p._v("("+p._s(p.typeObj[p.type])+")"+p._s(null===(r=p.zdqkObj)||void 0===r||null===(r=r.TMXX)||void 0===r?void 0:r.TM))]),["0","1","4"].includes(p.type)?p._l(null===(o=p.zdqkObj)||void 0===o||null===(o=o.TMXX)||void 0===o||null===(o=o.DAYXX)||void 0===o?void 0:o.XXJH,function(e,t){var s,i;return m("div",{key:t,staticClass:"msg-box-single"},[m("div",{staticClass:"left-item",class:null!==(s=p.zdqkObj)&&void 0!==s&&null!==(s=s.TMXX)&&void 0!==s&&null!==(s=s.DAYXX)&&void 0!==s&&s.DAJH.includes(t)?"active":""},[p._v(" "+p._s(p.indexArr[t])+" ")]),m("div",{staticClass:"item-right"},[m("div",{staticClass:"process"},[m("a-progress",{attrs:{percent:30,size:"small"}}),m("div",{staticClass:"women"},[p._v(" "+p._s(null===e||void 0===e||null===(i=e.DATJ)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.SL)+"ä
1ºº")])],1),m("div",{staticClass:"text"},[p._v(p._s(e))])])])}):p._e(),"3"===p.type||"2"===p.type?m("div",{staticClass:"simpleness"},[p._v(" 正确答案: "+p._s(null===(l=p.zdqkObj)||void 0===l||null===(l=l.TMXX)||void 0===l?void 0:l.DAJX)+" ")]):p._e(),"2"===p.type?p._l(null===(c=p.zdqkObj)||void 0===c||null===(c=c.TMXX)||void 0===c||null===(c=c.DAYXX)||void 0===c?void 0:c.XXJH,function(e,t){return m("div",{key:t,staticClass:"msg-gap-filling"},[m("div",{staticClass:"gap-left"},[p._v("空 "+p._s(t+1))]),m("a-input",{attrs:{autocomplete:"new-password",disabled:!0,placeholder:"请输入空"+(t+1),defaultValue:e}})],1)}):p._e(),null!==(u=["1","2","3"])&&void 0!==u&&u.includes(p.type)?m("div",[m("a-table",{staticStyle:{"margin-top":"21px"},attrs:{columns:"1"===p.type?p.columnsMit:"2"===p.type?p.columnsPub:p.columnsfling,"data-source":p.tableData,bordered:"",pagination:!1,rowClassName:function(e,t){return t%2===1?"table-striped":null}},on:{change:p.handleTableChange}}),(null===(d=p.pagination)||void 0===d?void 0:d.total)>0?m("div",{staticClass:"last-content ant-pro-grid-content wide"},[m("a-pagination",{attrs:{pageSize:null===(h=p.pagination)||void 0===h?void 0:h.pageSize,"show-total":function(e){return"共 ".concat(e," 条")},current:p.pagination.pageNo,"show-quick-jumper":"",total:p.pagination.total},on:{change:p.handleTableChange}})],1):p._e()],1):p._e()],2)])},n=[],a=(s(2892),s(12216)),r=s(95093),o=s.n(r),l=[{title:"答案",dataIndex:"YHID",key:"YHID"},{title:"选择人数",dataIndex:"age",key:"age"},{title:"占比",dataIndex:"zb",key:"zb"}],c=[{title:"作答学生",dataIndex:"YHID",key:"YHID"},{title:"作答时间",dataIndex:"SJ",key:"SJ",customRender:function(e,t,s){return o()(new Date(Number(e))).format("YYYYå¹´MM月DD日 HH:mm ")}},{title:"答案",dataIndex:"DAJH",key:"DAJH"}],u=[{title:"作答学生",dataIndex:"YHID",key:"YHID"},{title:"作答时间",dataIndex:"SJ",key:"SJ",customRender:function(e,t,s){return o()(new Date(Number(e))).format("YYYYå¹´MM月DD日 HH:mm ")}}],d={props:{chapterList:{type:Array,default:function(){return[]}}},data:function(){return{open:!1,columnsMit:l,columnsfling:c,columnsPub:u,pagination:{pageNo:1,pageSize:10,total:0},tableData:[],zdqkObj:{},indexArr:["A","B","C","D","E","F","G","H","I","J","K"],type:"0",tmId:"",kcId:"",typeObj:{0:"单选题",1:"多选题",2:"填空题",3:"论述题",4:"判断题"}}},methods:{handleTableChange:function(e){this.pagination.pageNo=e,this.getList()},getList:function(){var e=this;(0,a.nO)({ID:this.tmId,KCID:this.kcId}).then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.tableData=(null===t||void 0===t?void 0:t.result)||[],e.pagination.total=Number(t.page.totalCount)):e.$message.error(null===t||void 0===t?void 0:t.message)})},preOpen:function(e){var t=this,s=e.LX,i=e.ID,n=e.KCID;this.type=s,this.kcId=n,this.tmId=i,(0,a.R9)({ID:i,KCID:n}).then(function(e){var i;200===(null===e||void 0===e?void 0:e.code)?(t.zdqkObj=(null===e||void 0===e?void 0:e.result)||{},null!==e&&void 0!==e&&e.result?(null!==(i=["1","2","3"])&&void 0!==i&&i.includes(s)&&t.handleTableChange(1),t.open=!0):t.$message.warning("暂无作答记录!")):t.$message.error(null===e||void 0===e?void 0:e.message)})}}},h=d,p=s(81656),m=(0,p.A)(h,i,n,!1,null,"477aa7de",null),f=m.exports},35846:function(e,t,s){"use strict";s.d(t,{A:function(){return v}});var i=function(){var e,t=this,s=t._self._c;return s("a-modal",{staticClass:"modal-box",attrs:{width:910,centered:!0,cancelText:" ",footer:null,title:null!==(e=t.form)&&void 0!==e&&e.ID?"编辑试题":"添加试题",visible:t.open},on:{cancel:t.closeModeal}},[s("div",[s("a-form-model",{ref:"formModal",attrs:{rules:t.rules,model:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[s("a-form-model-item",{attrs:{label:"试题类型",prop:"LX"}},[s("a-select",{staticStyle:{width:"70%","margin-right":"20px"},attrs:{placeholder:"请选择题型"},on:{change:t.txSelect},model:{value:t.form.LX,callback:function(e){t.$set(t.form,"LX",e)},expression:"form.LX"}},[s("a-select-option",{attrs:{value:"0"}},[t._v("单选题")]),s("a-select-option",{attrs:{value:"1"}},[t._v("多选题")]),s("a-select-option",{attrs:{value:"2"}},[t._v("填空题")]),s("a-select-option",{attrs:{value:"3"}},[t._v("简答题")]),s("a-select-option",{attrs:{value:"4"}},[t._v("判断题")])],1)],1),"course"===t.receType?s("a-form-model-item",{attrs:{label:"归属章节",rules:[{required:!0,message:"请选择归属章节!"}]}},[s("a-select",{staticStyle:{width:"35%","margin-right":"20px"},attrs:{placeholder:"归属章"},on:{change:t.ZSelectChange},model:{value:t.form.ZID,callback:function(e){t.$set(t.form,"ZID",e)},expression:"form.ZID"}},t._l(t.ChapterList,function(e,i){return s("a-select-option",{key:e.ZJXH,attrs:{value:e.ZJXH,attr:e}}
1,[t.isOrder?s("span",[t._v("第"+t._s(i+1)+"章")]):t._e(),t._v(" "+t._s(e.ZJMC||"未命名")+" ")])}),1),s("a-select",{key:t.JID,staticStyle:{width:"32%","margin-right":"20px"},attrs:{placeholder:"归属节"},on:{change:t.jieSelect},model:{value:t.form.JID,callback:function(e){t.$set(t.form,"JID",e)},expression:"form.JID"}},t._l(t.JList,function(e,i){return s("a-select-option",{key:e.ZJXH,attrs:{value:e.ZJXH}},[t.isOrder?s("span",[t._v("第"+t._s(i+1)+"节")]):t._e(),t._v(" "+t._s(e.ZJMC||"未命名")+" ")])}),1)],1):t._e(),"course"===t.receType?s("a-form-model-item",{attrs:{label:"同步个人题库",prop:"LY"}},[s("a-radio-group",{model:{value:t.form.LY,callback:function(e){t.$set(t.form,"LY",e)},expression:"form.LY"}},[s("a-radio",{attrs:{value:"2"}},[t._v("是")]),s("a-radio",{attrs:{value:"1"}},[t._v("否")])],1)],1):t._e(),s("a-form-model-item",{attrs:{label:"试题难度",prop:"ND"}},[s("a-radio-group",{model:{value:t.form.ND,callback:function(e){t.$set(t.form,"ND",e)},expression:"form.ND"}},[s("a-radio",{attrs:{value:"0"}},[t._v("简单")]),s("a-radio",{attrs:{value:"1"}},[t._v("适中")]),s("a-radio",{attrs:{value:"2"}},[t._v("困难")])],1)],1),s("a-form-model-item",{attrs:{label:"题干",prop:"TM"}},[t.open?s("WangEditor",{attrs:{styleParams:t.styleParams,onEditorChange:function(e){return t.onEditorChangeForm(e,"TM")},editorConfigOut:t.editorConfigOut},model:{value:t.form.TM,callback:function(e){t.$set(t.form,"TM",e)},expression:"form.TM"}}):t._e()],1),"0"===t.form.LX||"1"===t.form.LX?s("a-form-model-item",{attrs:{prop:"GS",label:"选项数量"}},[s("a-select",{staticStyle:{width:"70%","margin-right":"20px"},attrs:{placeholder:"请选择答案个数 "},on:{change:t.selectNum},model:{value:t.form.GS,callback:function(e){t.$set(t.form,"GS",e)},expression:"form.GS"}},t._l(10,function(e){return s("a-select-option",{attrs:{value:e}},[t._v(" "+t._s(e)+" ")])}),1)],1):t._e(),"0"===t.form.LX?t._l(t.DAYXXList,function(e,i){return s("a-form-model-item",{key:i,attrs:{label:"选项"+(i+1),rules:[{required:!0,message:"请输入选项答案!"}]}},[s("a-checkbox",{key:i,on:{change:function(e){return t.isTrue(e,i,t.DAYXXList)}},model:{value:e.isSelect,callback:function(s){t.$set(e,"isSelect",s)},expression:"item.isSelect"}},[t._v("是否正确答案")]),t.open?s("WangEditor",{attrs:{styleParams:t.styleParams,onEditorChange:function(s){return t.onEditorChange(s,e,i)},editorConfigOut:t.editorConfigOut},model:{value:e.txt,callback:function(s){t.$set(e,"txt",s)},expression:"item.txt"}}):t._e()],1)}):t._e(),"1"===t.form.LX?t._l(t.DAYXXList,function(e,i){return s("a-form-model-item",{attrs:{label:"选项"+(i+1),rules:[{required:!0,message:"请输入选项答案!"}]}},[s("a-checkbox",{on:{change:function(e){return t.mitChange(e,i,t.DAYXXList)}},model:{value:e.isSelect,callback:function(s){t.$set(e,"isSelect",s)},expression:"item.isSelect"}},[t._v(" 是否正确答案 ")]),t.open?s("WangEditor",{attrs:{styleParams:t.styleParams,onEditorChange:function(s){return t.onEditorChange(s,e,i)},editorConfigOut:t.editorConfigOut},model:{value:e.txt,callback:function(s){t.$set(e,"txt",s)},expression:"item.txt"}}):t._e()],1)}):t._e(),"2"===t.form.LX?[s("div",{staticClass:"tip-opt"},[s("div",{staticClass:"tips"},[t._v("注:填空用【】表示,示例: 1+【】=2")]),s("a-button",{attrs:{type:"primary",ghost:""},on:{click:t.addFilling}},[t._v("添加空")])],1),s("a-form-model-item",{attrs:{label:"答案"}},t._l(t.gapFillingList,function(e,i){return s("div",{key:i,staticClass:"fling-box"},[s("div",{staticClass:"left-txt"},[t._v(t._s(e.title))]),s("a-input",{attrs:{placeholder:"请输入答案"},model:{value:e.value,callback:function(s){t.$set(e,"value",s)},expression:"item.value"}})],1)}),0),s("div",{staticClass:"tips",staticStyle:{"margin-bottom":"25px"}},[t._v("注:一个空有多种答案是,用英文逗号“,”隔开,示例:A与C之间的字母是 b,B")])]:t._e(),"4"===t.form.LX?s("a-form-model-item",{attrs:{label:"答案",prop:"PDDA"}},[s("a-radio-group",{model:{value:t.form.PDDA,callback:function(e){t.$set(t.form,"PDDA",e)},expression:"form.PDDA"}},[s("a-radio",{attrs:{value:"1"}},[t._v("对")]),s("a-radio",{attrs:{value:"2"}},[t._v("错")])],1)],1):t._e(),"3"===t.form.LX?s("a-form-model-item",{attrs:{label:"答案",prop:"JDDA"}},[t.open?s("WangEditor",{attrs:{styleParams:t.styleParams,onEditorChange:function(e){return t.onEditorChangeForm(e,"JDDA")},editorConfigOut:t.editorConfigOut},model:{value:t.form.JDDA,callback:function(e){t.$set(t.form,"JDDA",e)},expression:"form.JDDA"}}):t._e()],1):t._e(),s("a-form-model-item",{attrs:{label:"答案解析",prop:"DAJX"}},[t.open?s("WangEditor",{attrs:{styleParams:t.styleParams,onEditorChange:function(e){return t.onEditorChangeForm(e,"DAJX")},editorConfigOut:t.editorConfigOut},model:{value:t.form.DAJX,callback:function(e){t.$set(t.form,"DAJX",e)},expression:"form.DAJX"}}):t._e()],1)],2)],1),s("div",{staticClass:"btn-box"},[s("a-button",{staticClass:"btn",attrs:{type:"primary",loading:t.loading},on:{click:t.handleOk}},[t._v("保 存")])],1)])},n=[],a=s(57888),r=s(69870),o=s(17654),l=(s(74423),s(62062),s(2892),s(26099),s(21699),s(42762),s(23500),s(54475)),c=s(12216),u=s(67193),d=s.n(u),h={name:"TestQuestions",components:{WangEditor:l.A},data:function(){return{open:!1,LX:"0",labelCol:{span:4},wrapperCol:{span:20},form:{TM:"",GLKC:"",LX:"0",LY:"",DAJX:"",ND:"1",GS:"1",JID:"",ZID:"",PDDA:""},rules:{TM:[{required:!0,message:"请输入题干",trigger:"blur"}],GLKC:[{required:!0,message:"请选择关联课程",trigger:"change"}],LX:[{required:!0,message:"请选择试题类型",trigger:"change"}],DAJX:[{required:!1,message:"请输入答案解析",trigger:"blur"}],ND:[{required:!0,message:"请选择试题难度",trigger:"change"}],GS:[{required:!0,message:"请选择答案数量",trigger:"change"}],JDDA:[{required:!0,message:"请输入简答答案",trigger:"blur"}],PDDA:[{required:!0,message:"请选择判断答案",trigger:"change"}],LY:[{required:!0,message:"请选择是否同步个人题库",trigger:"change"}]},styleParams:{height:"165px"},editorConfigOut:{placeholder:"请输入答案"},gapFillingList:[{title:"第一【】",value:""}],loading:!1,zqdaList:[],DAYXXList:[{isSelect:!1}
1],ChapterList:[],JList:[],JID:""}},props:{receType:{type:String,default:"person"},chapterList:{type:Array,default:function(){return[]}},isOrder:{type:Boolean,default:!1}},mounted:function(){this.kcid=this.$route.query.id,null===this||void 0===this||this.receType},watch:{chapterList:{handler:function(e,t){this.ChapterList=e||[]},immediate:!0,deep:!0}},methods:{loadZList:function(){},addTest:function(){this.selectNum(1),this.open=!0},closeModeal:function(){this.form={TM:"",GLKC:"",LX:"0",LY:"",DAJX:"",ND:"1",GS:"1",ZID:"",JID:"",PDDA:"",JDDA:""},this.DAYXXList=[],this.gapFillingList=[],this.gapFillingList=[],this.open=!1},cleanHTML:function(e){var t=document.createElement("div");t.innerHTML=e;var s=t.querySelectorAll("span");return s.forEach(function(e){e.textContent.trim()||e.remove()}),t.innerHTML},editFun:function(e){var t=this;return(0,o.A)((0,r.A)().mark(function s(){var i;return(0,r.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:return i="course"===t.receType?c.uU:c.tE,s.next=3,i({ID:e},t.kcid).then(function(s){if(200===(null===s||void 0===s?void 0:s.code)){var i,n,a=(null===s||void 0===s?void 0:s.result)||{};t.JID=null===a||void 0===a?void 0:a.JID,null!==a&&void 0!==a&&a.TM&&(a.TM=t.cleanHTML(null===a||void 0===a?void 0:a.TM)),t.form={TM:a.TM,GLKC:null===a||void 0===a?void 0:a.GLKC,LX:null===a||void 0===a?void 0:a.LX,LY:null===a||void 0===a?void 0:a.LY,DAJX:null===a||void 0===a?void 0:a.DAJX,ND:null===a||void 0===a?void 0:a.ND,GS:null===a||void 0===a||null===(i=a.DAYXX)||void 0===i||null===(i=i.XXJH)||void 0===i?void 0:i.length,ID:e,PDDA:""};var r,o,l,c,u=null===a||void 0===a?void 0:a.DAYXX;if(null!==(n=["0","1"])&&void 0!==n&&n.includes(null===a||void 0===a?void 0:a.LX)){if(t.DAYXXList=[],null===u||void 0===u||null===(r=u.XXJH)||void 0===r||r.map(function(e,s){t.DAYXXList.push({txt:e})}),(null===(o=t.DAYXXList)||void 0===o?void 0:o.length)>0)null===u||void 0===u||null===(l=u.DAJH)||void 0===l||l.map(function(e){t.DAYXXList[Number(e)]["isSelect"]=!0})}else if("2"===(null===a||void 0===a?void 0:a.LX)){var d;t.gapFillingList=[],null===u||void 0===u||null===(d=u.XXJH)||void 0===d||d.map(function(e,s){t.gapFillingList.push({title:e,value:null===u||void 0===u?void 0:u.DAJH[s]})})}else"4"===(null===a||void 0===a?void 0:a.LX)?null!==u&&void 0!==u&&u.DAJH[0]&&(t.form.PDDA=null===u||void 0===u?void 0:u.DAJH[0]):"3"===(null===a||void 0===a?void 0:a.LX)&&(t.form.JDDA=null===u||void 0===u?void 0:u.DAJH[0]);if("course"===t.receType)null===(c=t.ChapterList)||void 0===c||c.map(function(e){(null===e||void 0===e?void 0:e.ZJXH)===(null===a||void 0===a?void 0:a.ZID)&&(t.JList=e.ZLJH)}),t.form.ZID=null===a||void 0===a?void 0:a.ZID,t.form.JID=null===a||void 0===a?void 0:a.JID,t.form.LY=null===a||void 0===a?void 0:a.LY;t.open=!0}else t.$message.error(null===s||void 0===s?void 0:s.message)});case 3:case"end":return s.stop()}},s)}))()},isTrue:function(e,t,s){e.target.checked&&(s.map(function(e){e.isSelect=!1}),s[t]["isSelect"]=!0)},mitChange:function(e,t,s){s[t]["isSelect"]=e.target.checked,this.DAYXXList=d()(s)},onEditorChange:function(e,t,s){t["txt"]=e},onEditorChangeForm:function(e,t){this.form[t]=e},ZSelectChange:function(e,t){var s;this.form.JID="",this.JList=(null===t||void 0===t||null===(s=t.data)||void 0===s||null===(s=s.attrs)||void 0===s||null===(s=s.attr)||void 0===s?void 0:s.ZLJH)||[]},jieSelect:function(e){this.JID=e,this.$set(this.form,"JID",e)},txSelect:function(e){this.form.GS=1,this.form.ND="1",this.DAYXXList=[],this.selectNum(1)},selectNum:function(e){if(this.DAYXXList.length>=e)this.DAYXXList.length=e;else for(var t=e-this.DAYXXList.length,s=0;s<t;s++)this.DAYXXList.push({isSelect:!1,txt:""})},handleOk:function(){var e=this;this.$refs.formModal.validate(function(){var t=(0,o.A)((0,r.A)().mark(function t(s){var i,n,o,l,u,d,h,p,m,f;return(0,r.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=36;break}if(n=[],o=[],l=e.form.LX,u=!0,!["0","1"].includes(l)){t.next=11;break}if(e.DAYXXList.map(function(e,t){o.push(e.txt),e.isSelect&&(u=!1,n.push(t+""))}),!u){t.next=9;break}return t.abrupt("return",e.$message.warning("请设置正确答案!"));case 9:t.next=19;break;case 11:if("2"!==l){t.next=18;break}if(d=!0,e.gapFillingList.forEach(function(t,s){var i=t.title;""===i.trim()&&(t.title=e.numberToUpperCase(s)),o.push(t.title),""!==t.value.trim()?n.push(t.value):d=!1}),d){t.next=16;break}return t.abrupt("return",e.$message.warning("请完成必填项!"));case 16:t.next=19;break;case 18:"4"===l?(o.push("对"),o.push("错"),e.form.PDDA&&n.push(e.form.PDDA)):"3"===l&&(o.push(e.form.TM),e.form.JDDA&&n.push(e.form.JDDA));case 19:if("course"!==e.receType){t.next=24;break}if(e.form.ZID&&""!==e.form.ZID){t.next=22;break}return t.abrupt("return",e.$message.warning("请选择归属章!"));case 22:if(null!==(h=e.form)&&void 0!==h&&h.JID&&""!==e.form.JID){t.next=24;break}
1return t.abrupt("return",e.$message.warning("请选择归属节!"));case 24:if(p=(0,a.A)((0,a.A)({},e.form),{},{JID:e.JID,DAYXX:{DAJH:n,XXJH:"3"===l?[]:o},DAJX:e.form.DAJX}),e.loading=!0,e.form.DAJX&&(p.DAJX=e.form.DAJX),null===(i=e.form)||void 0===i||!i.ID){t.next=33;break}return m="course"===e.receType?c.xT:c.oU,t.next=31,m(p,e.kcid,p.ID).then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.loading=!1,e.$message.success(null===t||void 0===t?void 0:t.message),e.closeModeal(),e.$emit("success")):(e.loading=!1,e.$message.error(null===t||void 0===t?void 0:t.message))});case 31:t.next=36;break;case 33:return f="course"===e.receType?c.Pb:c.aP,t.next=36,f(p,e.kcid).then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.loading=!1,e.$message.success(null===t||void 0===t?void 0:t.message),e.closeModeal(),e.$emit("success")):(e.loading=!1,e.$message.error(null===t||void 0===t?void 0:t.message))});case 36:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},addFilling:function(){var e=this.gapFillingList.length,t=this.numberToUpperCase(e);this.gapFillingList.push({title:t,value:""})},numberToUpperCase:function(e){var t="第",s=e+1+"";function i(t,s){var i="";if(9===e)return s?"":"十";var n=~~e>9&&~~e<19;switch(~~t){case 1:i=s?"十一":n?"":"一";break;case 2:i=s?"十二":n?"":"二";break;case 3:i=s?"十三":n?"":"三";break;case 4:i=s?"十四":n?"":"四";break;case 5:i=s?"十五":n?"":"五";break;case 6:i=s?"十六":n?"":"六";break;case 7:i=s?"十七":n?"":"七";break;case 8:i=s?"十八":n?"":"八";break;case 9:i=s?"十九":n?"":"九";break;case 0:i="十";break;default:break}return i}for(var n=0;n<s.length;n++)t+=i(s.substring(n,n+1),n);return t+"【】"}}},p=h,m=s(81656),f=(0,m.A)(p,i,n,!1,null,"22847f41",null),v=f.exports},15151:function(e,t,s){"use strict";s.d(t,{A:function(){return D}});s(27495),s(25440);var i=function(){var e,t=this,s=t._self._c;return s("div",{staticClass:"questionBankManagement-container",class:"course"===t.receType?"padd":""},[s("a-spin",{attrs:{spinning:t.loading}},[s("div",{staticClass:"questionBankManagement-box"},[s("div",{staticClass:"header-box",class:"course"===t.receType?"course":"flex"},[s("div",{staticClass:"action-box"},[s("a-button",{attrs:{type:"primary"},on:{click:t.addTestQ}},[t._v(" 添加试题 ")]),"course"===t.receType?s("a-button",{on:{click:t.importModel}},[t._v(" 个人题库导入 ")]):t._e(),s("a-button",{staticClass:"pain-btn",on:{click:t.addTR}},[t._v(" 批量导入 ")]),"course"!==t.receType?s("a-button",{staticClass:"pain-btn",on:{click:t.exportST}},[t._v(" 导出试题 ")]):t._e()],1),s("div",{staticClass:"questionBankManagement-search-box"},[s("a-select",{staticStyle:{"margin-right":"8px",width:"130px"},attrs:{placeholder:"试题类型"},on:{change:t.cleckSearch},model:{value:t.form.LX,callback:function(e){t.$set(t.form,"LX",e)},expression:"form.LX"}},[s("a-select-option",{attrs:{value:""}},[t._v("全部")]),s("a-select-option",{attrs:{value:"0"}},[t._v("单选题")]),s("a-select-option",{attrs:{value:"1"}},[t._v("多选题")]),s("a-select-option",{attrs:{value:"2"}},[t._v("填空题")]),s("a-select-option",{attrs:{value:"3"}},[t._v("简答题")]),s("a-select-option",{attrs:{value:"4"}},[t._v("判断题")])],1),"course"===t.receType?s("a-select",{staticStyle:{"margin-right":"8px",width:"150px"},attrs:{placeholder:"归属章"},on:{change:t.selelctZhang},model:{value:t.form.ZID,callback:function(e){t.$set(t.form,"ZID",e)},expression:"form.ZID"}},[s("a-select-option",{attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.ChapterList,function(e,i){return s("a-select-option",{key:e.ZJXH,attrs:{value:e.ZJXH,attr:e}}
1,[t.isOrder?s("span",[t._v("第"+t._s(i+1)+"章")]):t._e(),t._v(" "+t._s(e.ZJMC||"未命名")+" ")])})],2):t._e(),"course"===t.receType?s("a-select",{staticStyle:{"margin-right":"8px",width:"150px"},attrs:{placeholder:"归属节"},model:{value:t.form.JID,callback:function(e){t.$set(t.form,"JID",e)},expression:"form.JID"}},[s("a-select-option",{attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.JList,function(e,i){return s("a-select-option",{key:e.ZJXH,attrs:{value:e.ZJXH}},[t.isOrder?s("span",[t._v("第"+t._s(i+1)+"节")]):t._e(),t._v(" "+t._s(e.ZJMC||"未命名")+" ")])})],2):t._e(),s("a-input-search",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入题干关键字",autocomplete:"new-password","enter-button":""},on:{search:t.cleckSearch},model:{value:t.form.TM,callback:function(e){t.$set(t.form,"TM",e)},expression:"form.TM"}})],1)]),s("a-table",{attrs:{columns:t.columns,"data-source":t.dataList,bordered:"",pagination:!1,rowClassName:function(e,t){return t%2===1?"table-striped":null}},scopedSlots:t._u([{key:"CJSJ",fn:function(e,i){return s("span",{},[t._v(" "+t._s(t._f("nyr")(e))+" ")])}},{key:"ND",fn:function(e,i){return s("span",{},[t._v(" "+t._s(t.ndObj[e])+" ")])}},{key:"LX",fn:function(e,i){return s("span",{},[t._v(" "+t._s(t.typeObj[e])+" ")])}},{key:"TM",fn:function(e,i){var n;return s("span",{},[t._v(" "+t._s(null===e||void 0===e||null===(n=e.replace(/<[^<>]+>/g,""))||void 0===n?void 0:n.replace(/ /gi,""))+" ")])}},{key:"Z",fn:function(e,i){return s("span",{attrs:{title:t.delZhang(e)}},[t._v(" "+t._s(t.delZhang(e,7))+" ")])}},{key:"J",fn:function(e,i){return s("span",{attrs:{title:t.delJie(i,e)}},[t._v(" "+t._s(t.delJie(i,e,7))+" ")])}},{key:"action",fn:function(e,i){return s("span",{},[s("a",{staticStyle:{"margin-right":"5px"},on:{click:function(e){return t.toEdit(i)}}},[t._v(" 编辑 ")]),s("a",{staticClass:"danger",on:{click:function(e){return t.toRemove(i)}}},[t._v(" 移除 ")])])}}])}),s("div",{staticClass:"last-content ant-pro-grid-content wide"},[t.pagination.total>0?s("a-pagination",{style:{textAlign:"right"},attrs:{pageSize:10,"show-total":function(e){return"共 ".concat(e," 条")},"show-quick-jumper":"",current:t.pagination.pageNo,total:t.pagination.total},on:{change:t.handleTableChange}}):t._e()],1)],1)]),s("a-modal",{staticClass:"modal-box",attrs:{width:520,centered:!0,cancelText:" ",footer:null,title:"确认删除",visible:t.scVisible},on:{cancel:function(e){t.scVisible=!1}}},[s("div",{staticClass:"modal-text"},[t._v(" 您正在从题库中,移除课程【"+t._s((null===(e=t.rowData)||void 0===e||null===(e=e.TM)||void 0===e||null===(e=e.replace(/<[^<>]+>/g,""))||void 0===e||null===(e=e.replace(/ /gi,""))||void 0===e?void 0:e.substr(0,10))+"...")+"】试题,请谨慎操作! ")]),s("div",[s("a-checkbox",{staticStyle:{"margin-left":"15px"},model:{value:t.isRemove,callback:function(e){t.isRemove=e},expression:"isRemove"}},[t._v(" 同时从我的个人题库移除")])],1),s("div",{staticClass:"btn-box"},[s("a-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:t.scHandleOk}},[t._v("确 认")]),s("a-button",{staticClass:"btn",staticStyle:{"margin-left":"20px"},on:{click:function(e){t.scVisible=!1}}},[t._v("取消")])],1)]),s("a-modal",{staticClass:"modal-box",attrs:{width:530,centered:!0,cancelText:" ",footer:null,title:"批量导入",visible:t.importVis,"confirm-loading":t.importLoading},on:{cancel:t.handleImportClose}},[s("a-form-model",{ref:"stuRuleForm",attrs:{model:t.studentForm,"label-col":{span:6},rules:t.rules,"wrapper-col":{span:18}}},[s("a-form-model-item",{attrs:{label:"附件",prop:"FJ"}},[s("a-upload",{attrs:{"file-list":t.fileList,beforeUpload:t.handleFjBeforeUpload,accept:".xls,.xlsx",remove:t.handleRemove},on:{change:t.handleCoverChange}},[s("a-button",{attrs:{icon:"upload"}},[t._v("上传附件")])],1),0===t.fileList.length?s("div",{staticClass:"down-btn"},[s("a",{attrs:{href:"https://res.cqooc.com:31443/res/templates/Problems.xlsx"}},[t._v("下载模板")])]):t._e(),s("div",{staticClass:"hirt"},[t._v("仅支持xls、xlsx格式")])],1)],1),s("div",{staticClass:"btn-box"},[s("a-button",{staticClass:"btn",attrs:{type:"primary",loading:t.importLoading},on:{click:t.importFun}},[t._v("确 认")])],1)],1),"course"===t.receType?s("PersonTestQImport",{ref:"PersonTestQImport",attrs:{ChapterList:t.ChapterList,receType:t.receType},on:{success:t.cleckSearch}}):t._e(),s("ResponseSituation",{ref:"ResponseSituation",attrs:{chapterList:t.ChapterList}}),s("TestQuestions",{ref:"TestQuestions",attrs:{chapterList:t.ChapterList,receType:t.receType,isOrder:t.isOrder},on:{success:t.getList}})],1)}
1,n=[],a=(s(96305),s(38135)),r=s(69870),o=s(57888),l=s(17654),c=(s(28706),s(50113),s(62062),s(62010),s(26099),s(47764),s(62953),s(3296),s(48408),s(53815)),u=s(35846),d=s(12216),h=s(8966),p=s(64267),m=s(95093),f=s.n(m),v=s(51920),g=[{title:"类型",dataIndex:"LX",key:"LX",width:"80px",scopedSlots:{customRender:"LX"}},{title:"试题难度",dataIndex:"ND",key:"ND",width:"110px",scopedSlots:{customRender:"ND"}},{title:"题干",key:"TM",dataIndex:"TM",ellipsis:!0,scopedSlots:{customRender:"TM"}},{title:"创建时间",dataIndex:"CJSJ",key:"CJSJ",width:"102px",scopedSlots:{customRender:"CJSJ"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"},width:"165px"}],C=[],y={name:"QuestionBankManagement",components:{ResponseSituation:c.A,TestQuestions:u.A,PersonTestQImport:p.A},data:function(){return{studentForm:{FJ:""},importLoading:!1,importVis:!1,scVisible:!1,activeMenu:"join",data:C,kcid:"",columns:g,pagination:{pageNo:1,pageSize:10,total:0},search:"",labelCol:{span:4},wrapperCol:{span:14},form:{TM:"",LX:"",ZID:"",JID:""},value:"",rowData:{},dataList:[],loading:!1,typeObj:{0:"单选题",1:"多选题",2:"填空题",3:"简答题",4:"判断题"},ndObj:{0:"简单",1:"适中",2:"困难"}
1,ChapterList:[],JList:[],isRemove:!1,fileList:[],files:{},rules:{FJ:[{required:!0,message:"请上传附件",trigger:"blur"}]},isOrder:!0}},mounted:function(){if("course"===this.receType){var e=[{title:"章",dataIndex:"ZID",key:"ZID",scopedSlots:{customRender:"Z"}},{title:"节",dataIndex:"JID",key:"JID",scopedSlots:{customRender:"J"}}].concat(g);this.columns=e,this.loadZList()}this.kcid=this.$route.query.id,this.getList(),this.advSet()},props:{receType:{type:String,default:"person"}},methods:{advSet:function(){var e,t=this;null!==(e=this.$route)&&void 0!==e&&null!==(e=e.query)&&void 0!==e&&e.id&&(0,v.NM)(this.$route.query.id).then(function(e){var s;200===(null===e||void 0===e?void 0:e.code)?t.isOrder="2"!==(null===(s=e.result)||void 0===s||null===(s=s.KCXX)||void 0===s?void 0:s.ZJXH):t.$message.error(null===e||void 0===e?void 0:e.message)})},handleFjBeforeUpload:function(e){var t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e.type||"application/vnd.ms-excel"===e.type;return t?e.size/1024>10240&&this.$message.error("文件不能大于10Mb"):this.$message.error("仅支持xls、xlsx格式")},addTR:function(){this.importVis=!0},handleImportClose:function(){this.importVis=!1,this.clearImportFile()},clearImportFile:function(){this.fileList=[],this.files={},this.studentForm.FJ=""},handleCoverChange:function(e){var t=e.file;"removed"!==t.status&&(this.files=e.file,this.fileList=[{url:t.url,uid:t.uid,name:t.name,status:"done"}])},fjSucess:function(e,t){this.fileList=[{url:t.url,uid:t.uid,name:t.uid,status:"done"}],this.files=e.file},handleRemove:function(e,t){this.fileList=[],this.files={}},importFun:function(){var e=this;if(0!==this.fileList.length){var t=new FormData;t.append("file",this.files);var s,i={file:t};this.importLoading=!0,s="course"!==this.receType?(0,d.w9)(i):(0,d.NJ)(i,this.kcid),s.then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.$message.success(null===t||void 0===t?void 0:t.message),e.importVis=!1,e.importLoading=!1,e.clearImportFile(),e.getList()):(e.$message.error(null===t||void 0===t?void 0:t.message),e.importLoading=!1)})}else this.$message.warning("请上传导入试题")},exportST:function(){var e=this;(0,d.P)().then(function(t){if(t)try{var s=f()((new Date).getTime()).format("YY-MM-DD HH:mm:ss"),i=new Blob([t],{type:"application/octet-stream"}),n=URL.createObjectURL(i),a=document.createElement("a");a.href=n,a.download="试题_"+s+".xlsx",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(n)}catch(r){e.$message.error(r)}else e.$message.error("操作失败!")})},loadZList:function(){var e=this;(0,h.Ym)({KCXH:this.$route.query.id}).then(function(t){200===t.code?e.ChapterList=t.result||[]:e.$message.error(null===t||void 0===t?void 0:t.message)})},selelctZhang:function(e,t){var s;this.form.JID="",this.JList=(null===t||void 0===t||null===(s=t.data)||void 0===s||null===(s=s.attrs)||void 0===s||null===(s=s.attr)||void 0===s?void 0:s.ZLJH)||[]},cleckSearch:function(){this.pagination.pageNo=1,this.getList()},handleTableChange:function(e,t,s){this.pagination.pageNo=e,this.getList()},getList:function(){var e=this;return(0,l.A)((0,r.A)().mark(function t(){var s,i;return(0,r.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,i="course"===e.receType?d.SO:d.Hp,t.next=4,i((0,o.A)((0,o.A)((0,o.A)({},e.form),e.pagination),{},{KCID:null===(s=e.$route)||void 0===s||null===(s=s.query)||void 0===s?void 0:s.id,orderBy:"createTime:desc"})).then(function(t){var s;200===t.code?(e.loading=!1,e.dataList=(null===t||void 0===t?void 0:t.result)||[],e.pagination.total=(null===t||void 0===t||null===(s=t.page)||void 0===s?void 0:s.totalCount)-0,window.scrollTo({top:355,behavior:"smooth"})):(e.loading=!1,e.$message.error(null===t||void 0===t?void 0:t.message))});case 4:case"end":return t.stop()}},t)}))()},showRespondence:function(e){var t={LX:e.LX,ID:e.ID};"course"==this.receType&&(t.KCID=this.kcid),this.$refs.ResponseSituation.preOpen(t)},addTestQ:function(){this.$refs.TestQuestions.addTest()},importModel:function(){this.$refs.PersonTestQImport.open=!0},isRemoveFun:function(){},toRemove:function(e){var t=this;if("course"!==this.receType){var s,i="您正在从题库中,移除【".concat((null===e||void 0===e||null===(s=e.TM)||void 0===s||null===(s=s.replace(/<[^<>]+>
1/g,""))||void 0===s||null===(s=s.replace(/&nbsp;/gi,""))||void 0===s?void 0:s.substr(0,10))+"...","】试题,请谨慎操作!");a.A.confirm({title:"提示",content:i,onOk:function(){var s=(0,l.A)((0,r.A)().mark(function s(){return(0,r.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,(0,d.Mx)({ID:e.ID,KCID:t.kcid}).then(function(e){if(200===(null===e||void 0===e?void 0:e.code)){var s;if(t.$message.success(null===e||void 0===e?void 0:e.message),1===(null===t||void 0===t||null===(s=t.dataList)||void 0===s?void 0:s.length)){var i=t.pagination.pageNo-1;t.pagination.pageNo=i<1?1:i}t.getList()}else t.$message.error(null===e||void 0===e?void 0:e.message)});case 2:case"end":return s.stop()}},s)}));function i(){return s.apply(this,arguments)}return i}(),onCancel:function(){}})}else this.scVisible=!0,this.rowData=e,this.isRemove=!1},scHandleOk:function(){var e=this;return(0,l.A)((0,r.A)().mark(function t(){var s;return(0,r.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,d.ZQ)({ID:null===(s=e.rowData)||void 0===s?void 0:s.ID,SFSY:e.isRemove?"1":"2",KCID:e.kcid}).then(function(t){200===(null===t||void 0===t?void 0:t.code)?(e.$message.success(null===t||void 0===t?void 0:t.message),e.scVisible=!1,e.cleckSearch()):e.$message.error(null===t||void 0===t?void 0:t.message)});case 2:case"end":return t.stop()}},t)}))()},toEdit:function(e){this.rowData=e,this.$refs.TestQuestions.editFun(null===e||void 0===e?void 0:e.ID)},delZhang:function(e,t){var s="-";
1return this.ChapterList.find(function(t){t.ZJXH==e&&(s=t.ZJMC)}),t&&(s=s.substr(0,t)+"..."),s},delJie:function(e,t,s){var i="-";return this.ChapterList.map(function(s){s.ZJXH===e.ZID&&s.ZLJH.map(function(e){e.ZJXH===t&&(i=e.ZJMC)})}),i.length>7&&s&&(i=i.substr(0,s)+"..."),i}}},b=y,L=s(81656),x=(0,L.A)(b,i,n,!1,null,"8f067344",null),D=x.exports},31816:function(e,t,s){"use strict";s.d(t,{A:function(){return I}});s(74423),s(62010),s(26099),s(27495),s(31415),s(21699),s(47764),s(25440),s(62953);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ai-question"},[t("div",{staticClass:"left-box"},[e._m(0),t("a-form-model",{ref:"questionConfigForm",attrs:{model:e.questionConfigForm,labelAlign:"left","label-col":e.labelCol1,"wrapper-col":e.wrapperCol1,rules:e.rules}},[t("div",{staticClass:"tabs-trace"},[t("div",{staticClass:"top-box"},[t("div",{staticClass:"tab-item",class:2===e.questionConfigForm.source?"active1":"",on:{click:function(t){e.questionConfigForm.source=1}}},[e._v("章节知识点 ")]),t("div",{staticClass:"tab-item",class:1===e.questionConfigForm.source?"active2":"",on:{click:function(t){e.questionConfigForm.source=2}}},[e._v("文件上传 ")])]),2===e.questionConfigForm.source?t("a-form-model-item",{attrs:{wrapperCol:e.wrapperCol2,label:"",prop:"input"}},[t("UploadElement",{attrs:{"is-resource-upload":1,"before-upload":e.handleFjBeforeUpload,accept:".png,.jpg,.doc,.docx,.pdf,.mp3,.txt","on-success":e.fjSucess,"show-file-list":!1,"on-change":e.handleCoverChange,"on-remove":e.handleRemove,"file-list":e.fileList,limit:1}},[t("div",{staticClass:"tip-box"},[t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2026/03/30/png/fZ/6c52edcc398b4b379b06b5dbf4629aad_KKfiRvEBGNHV57NP.png",alt:""}}),t("div",{staticClass:"hirt1 hirt"},[e._v(" 注:为保证文件识别,只能选择以下格式课件:jpg、png、mp3、doc、docx、 pdf、 txt ")])])]),t("div",{staticClass:"courseware-box"},[e._l(e.fileList,function(s,i){return t("div",{key:i,staticClass:"child-title"},[t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2025/10/23/png/yM/c2bb25a0884d4e7d9c478ceaa19580ee_nS8RBLyyJ395PXvJ.png",alt:""},on:{click:function(t){return e.handleRemove(s,i)}}}),t("span",{staticClass:"title",attrs:{title:s.name}},[e._v(" "+e._s(s.name)+" ")])])}),e.fileList.length>=5?t("div",{staticClass:"tips1"},[e._v(" 最多5个文件 ")]):e._e()],2)],1):e._e(),1===e.questionConfigForm.source?t("div",{staticClass:"source-box"},[t("div",e._l(e.selectedLeafNodes,function(s){return t("div",{directives:[{name:"key",rawName:"v-key",value:s.id,expression:"item.id"}],staticClass:"item-source"},[t("div",{staticClass:"source-title"},[e._v(e._s(s.title))]),t("i",{staticClass:"iconfont icon-shanchu",on:{click:function(t){return e.delzsd(s)}}})])}),0),e.selectedLeafNodes.length<5?t("div",{staticClass:"plus-circle-outlined",class:0===e.selectedLeafNodes.length?"top-middle":"",on:{click:function(t){e.showChapterModal=!0}}},[e._v("点击添加章节知识点")]):e._e()]):e._e()],1),t("a-form-model-item",{attrs:{label:"补充内容(选填)",prop:"plusInput","wrapper-col":{span:26}}},[t("a-textarea",{staticClass:"textarea",attrs:{placeholder:"您可以补充其它出题要求,如: 重点考察 “网络”与“安全”相关的知识点内容,题干字数控制在50个字以内,选项字数在10个字以内。","auto-size":{minRows:4,maxRows:6}},model:{value:e.questionConfigForm.plusInput,callback:function(t){e.$set(e.questionConfigForm,"plusInput",t)},expression:"questionConfigForm.plusInput"}})],1),t("a-form-model-item",{attrs:{label:"试题数量",prop:"num"}},[t("a-row",{staticClass:"test-num-box"},[t("a-col",{attrs:{span:16}},[t("a-slider",{attrs:{min:1,max:10},model:{value:e.questionConfigForm.num,callback:function(t){e.$set(e.questionConfigForm,"num",t)},expression:"questionConfigForm.num"}})],1),t("a-col",{attrs:{span:6}},[t("a-input-number",{staticStyle:{marginLeft:"16px"},attrs:{min:1,max:10},model:{value:e.questionConfigForm.num,callback:function(t){e.$set(e.questionConfigForm,"num",t)},expression:"questionConfigForm.num"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:"试题难度",prop:"level"}},[t("a-radio-group",{model:{value:e.questionConfigForm.level,callback:function(t){e.$set(e.questionConfigForm,"level",t)},expression:"questionConfigForm.level"}},[t("a-radio",{attrs:{value:"easy"}},[e._v(" 简单")]),t("a-radio",{attrs:{value:"medium"}},[e._v(" 适中")]),t("a-radio",{attrs:{value:"hard"}},[e._v(" 困难")])],1)],1),t("a-form-model-item",{attrs:{label:"试题类型",prop:"pt"}},[t("a-radio-group",{staticClass:"c11",model:{value:e.questionConfigForm.pt,callback:function(t){e.$set(e.questionConfigForm,"pt",t)},expression:"questionConfigForm.pt"}},[e._l(e.types,function(s,i){return[t("a-radio",{attrs:{value:"".concat(i),disabled:"简答"===s}},[e._v(e._s(s))])]})],2)],1)],1),t("a-button",{staticClass:"primary",staticStyle:{width:"128px",height:"38px",margin:"0 auto"},attrs:{loading:e.isLoading,type:"primary",size:"large"},on:{click:e.generateQuestions}},[e._v(" 确 定 ")])],1),t("div",{staticClass:"middle-box"},[t("div",{staticClass:"result-box"},[e._m(1),e.questions&&e.questions.length?t("div",{staticClass:"batch-operations"},[t("a-checkbox",{on:{change:function(t){return e.selectAllQuestions(t.target.checked)}},model:{value:e.selectAll,callback:function(t){e.selectAll=t},expression:"selectAll"}},[e._v("全选")]),t("a-button",{staticClass:"primary",attrs:{type:"primary"},on:{click:e.checkIsCheck}}
1,[e._v("加入题库")])],1):e._e()]),t("div",{staticClass:"question_box"},[e._l(e.questions,function(s,i){var n,a;return t("div",{key:i,staticClass:"question_item"},[t("div",{staticClass:"question_content_box"},[t("div",{staticClass:"question_buttons"},[t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.addSingleQuestion(s)}}},[e._v("加入题库")]),t("a-button",{attrs:{type:"link"},on:{click:function(t){return e.openEditModel(s,i)}}},[e._v("编辑")])],1),t("a-checkbox",{on:{change:e.selectQuestion},model:{value:s.isChecked,callback:function(t){e.$set(s,"isChecked",t)},expression:"item.isChecked"}}),t("div",{staticClass:"question_content"},[t("div",{staticClass:"title"},[e._v(" 【"+e._s(e.typez[s.LX])+"题】 "+e._s(null===(n=s.TM.replace(/<[^<>]+>/g,""))||void 0===n?void 0:n.replace(/ /gi,""))+" ")]),new Set(["0","1"]).has(s.LX)?t("div",{staticClass:"choices"},[e._l(s.DAYXX.XXJH,function(i,n){var a,r;return[t("div",{staticClass:"choices_item",class:null!==(a=e.showDA(s))&&void 0!==a&&a.includes(e.choicesSet[n])?"active":""},[t("div",{staticClass:"choices_item_index",class:new Set(["0","4"]).has(s.LX)?"circle_box":"square_box"},[e._v(" "+e._s(e.choicesSet[n])+" ")]),i?t("div",{staticClass:"choices_item_content"},[e._v(" "+e._s(null===(r=i.replace(/<[^<>]+>/g,""))||void 0===r?void 0:r.replace(/ /gi,""))+" ")]):e._e()])]})],2):e._e(),new Set(["4"]).has(s.LX)?t("div",{staticClass:"choices"},[e._l(["对","错"],function(i,n){var a,r;return[t("div",{key:n,staticClass:"choices_item",class:null!==(a=e.showDA(s))&&void 0!==a&&a.includes(e.choicesSet[n])?"active":""},[t("div",{staticClass:"choices_item_index",class:new Set(["0","4"]).has(s.LX)?"circle_box":"square_box"},[e._v(" "+e._s(e.choicesSet[n])+" ")]),i?t("div",{staticClass:"choices_item_content"},[e._v(" "+e._s(null===(r=i.replace(/<[^<>]+>/g,""))||void 0===r?void 0:r.replace(/ /gi,""))+" ")]):e._e()])]})],2):e._e(),s.DAJX?t("div",{staticClass:"answer_analysis_box"},[e._v(" 答案解析:"+e._s(null===(a=s.DAJX.replace(/<[^<>]+>/g,""))||void 0===a?void 0:a.replace(/ /gi,""))+" ")]):e._e()])],1)])}),!e.questions||0===e.questions.length||e.isLoading?t("logo",{staticClass:"middle-logo",attrs:{loading:e.isLoading}}):e._e()],2)]),t("a-modal",{staticClass:"modal-box",attrs:{width:850,centered:!0,title:"章节内容选择",footer:null,visible:e.showChapterModal},on:{ok:e.handleChapterOk,cancel:function(t){e.showChapterModal=!1}}},[t("div",{staticClass:"chapter-select-modal"},[t("div",{staticStyle:{"margin-bottom":"16px",height:"500px","overflow-y":"auto","overflow-x":"hidden"}},[t("Tree",{attrs:{checkable:"",checkStrictly:!0,"tree-data":e.treeData,"default-expanded-keys":e.expandedKeys,"checked-keys":e.checkedKeys,"selected-keys":e.selectedKeys,multiple:!0,selectable:!0},on:{expand:e.handleTreeExpand,check:e.handleTreeCheck,select:e.handleTreeSelect},scopedSlots:e._u([{key:"title",fn:function(s){var i=s.title,n=(s.level,s.disableCheckbox);return[t("span",{class:{"disabled-node":n},attrs:{title:n?"该节点不可选择":i}},[e._v(" "+e._s(i)+" ")])]}}])})],1),t("div",{staticClass:"btn-group"},[t("a-button",{staticClass:"cancel",attrs:{type:"default"},on:{click:function(t){e.showChapterModal=!1}}},[e._v("取消")]),t("a-button",{staticClass:"primary",attrs:{type:"primary"},on:{click:e.handleChapterOk}},[e._v("确定")])],1)])]),t("a-modal",{staticClass:"modal-box",attrs:{width:800,centered:!0,title:"章节导入",visible:e.showChapterImport,"cancel-button-props":null},on:{ok:e.handleOk,cancel:function(t){e.showChapterImport=!1}}},[t("div",{staticClass:"zj-box"},[t("div",{staticClass:"zj-title"},[t("span",[e._v("必修章节")]),t("a-checkbox",{on:{change:e.zjOnChange},model:{value:e.zjAll,callback:function(t){e.zjAll=t},expression:"zjAll"}},[e._v(" 全选")])],1),e._l(e.chapterList,function(s,i){return t("div",{key:i},[t("div",{staticClass:"zj-item"},[t("div",{staticClass:"mc-line",attrs:{title:s.ZJMC}},[e._v(e._s(e.isOrder?"第"+(i+1)+"章":"")+" "+e._s(s.ZJMC||"未知命名")+" ")]),t("div")]),e._l(s.ZLJH,function(s,n){return[t("div",{key:"zl-".concat(n),staticClass:"child-item"},[t("div",{staticClass:"mc-line",attrs:{title:i+1+"."+n+"1 "+s.ZJMC}},[e._v(" "+e._s(e.isOrder?i+1+"."+(n+1):"")+" "+e._s(s.ZJMC)+" ")]),e.isDoc(s)?t("div",[t("a-checkbox",{on:{change:function(t){return e.itemOnChange(s,i,n)}},model:{value:s.isChecked,callback:function(t){e.$set(s,"isChecked",t)},expression:"items.isChecked"}}
1)],1):e._e()]),e._l(s.KJJH,function(s,a){return["文档"===s.MTLXMC?t("div",{key:"kc-".concat(a),staticClass:"child-item-1"},[t("div",{staticClass:"mc-line",attrs:{title:s.MC}},[e._v(" "+e._s(s.MTLXMC)+" "+e._s(s.MC)+" ")]),t("div",[t("a-checkbox",{on:{change:function(t){return e.itemOnChange(s,i,n,a)}},model:{value:s.isChecked,callback:function(t){e.$set(s,"isChecked",t)},expression:"itemss.isChecked"}})],1)]):e._e()]})]})],2)})],2)]),t("a-modal",{staticClass:"modal-box",attrs:{width:910,centered:!0,cancelText:" ",footer:null,title:"编辑试题",visible:e.showEditModel},on:{cancel:e.closeModeal}},[t("div",[t("a-form-model",{ref:"formModal",attrs:{rules:e.rules1,model:e.form,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[t("a-form-model-item",{attrs:{label:"试题类型",prop:"LX"}},[t("a-select",{staticStyle:{width:"70%","margin-right":"20px"},attrs:{placeholder:"请选择题型"},on:{change:e.txSelect},model:{value:e.form.LX,callback:function(t){e.$set(e.form,"LX",t)},expression:"form.LX"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("单选题")]),t("a-select-option",{attrs:{value:"1"}},[e._v("多选题")]),t("a-select-option",{attrs:{value:"2"}},[e._v("填空题")]),t("a-select-option",{attrs:{value:"3"}},[e._v("简答题")]),t("a-select-option",{attrs:{value:"4"}},[e._v("判断题")])],1)],1),t("a-form-model-item",{attrs:{label:"试题难度",prop:"ND"}},[t("a-radio-group",{model:{value:e.form.ND,callback:function(t){e.$set(e.form,"ND",t)},expression:"form.ND"}},[t("a-radio",{attrs:{value:"0"}},[e._v("简单")]),t("a-radio",{attrs:{value:"1"}},[e._v("适中")]),t("a-radio",{attrs:{value:"2"}},[e._v("困难")])],1)],1),t("a-form-model-item",{attrs:{label:"题干",prop:"TM"}},[e.showEditModel?t("WangEditor",{attrs:{styleParams:e.styleParams,onEditorChange:function(t){return e.onEditorChangeForm(t,"TM")},editorConfigOut:e.editorConfigOut},model:{value:e.form.TM,callback:function(t){e.$set(e.form,"TM",t)},expression:"form.TM"}}):e._e()],1),"0"===e.form.LX||"1"===e.form.LX?t("a-form-model-item",{attrs:{prop:"GS",label:"选项数量"}},[t("a-select",{staticStyle:{width:"70%","margin-right":"20px"},attrs:{placeholder:"请选择答案个数 "},on:{change:e.selectNum},model:{value:e.form.GS,callback:function(t){e.$set(e.form,"GS",t)},expression:"form.GS"}},e._l(10,function(s){return t("a-select-option",{attrs:{value:s}},[e._v(" "+e._s(s)+" ")])}),1)],1):e._e(),"0"===e.form.LX?e._l(e.DAYXXList,function(s,i){return t("a-form-model-item",{key:i,attrs:{label:"选项"+(i+1),rules:[{required:!0,message:"请输入选项答案!"}]}},[t("a-checkbox",{key:i,on:{change:function(t){return e.isTrue(t,i,e.DAYXXList)}},model:{value:s.isSelect,callback:function(t){e.$set(s,"isSelect",t)},expression:"item.isSelect"}},[e._v("是否正确答案 ")]),e.showEditModel?t("WangEditor",{attrs:{styleParams:e.styleParams,onEditorChange:function(t){return e.onEditorChange(t,s,i)},editorConfigOut:e.editorConfigOut},model:{value:s.txt,callback:function(t){e.$set(s,"txt",t)},expression:"item.txt"}}):e._e()],1)}):e._e(),"1"===e.form.LX?e._l(e.DAYXXList,function(s,i){return t("a-form-model-item",{attrs:{label:"选项"+(i+1),rules:[{required:!0,message:"请输入选项答案!"}]}},[t("a-checkbox",{on:{change:function(t){return e.mitChange(t,i,e.DAYXXList)}},model:{value:s.isSelect,callback:function(t){e.$set(s,"isSelect",t)},expression:"item.isSelect"}},[e._v(" 是否正确答案 ")]),e.showEditModel?t("WangEditor",{attrs:{styleParams:e.styleParams,onEditorChange:function(t){return e.onEditorChange(t,s,i)},editorConfigOut:e.editorConfigOut},model:{value:s.txt,callback:function(t){e.$set(s,"txt",t)},expression:"item.txt"}}):e._e()],1)}):e._e(),"2"===e.form.LX?[t("div",{staticClass:"tip-opt"},[t("div",{staticClass:"tips"},[e._v("注:填空用【】表示,示例: 1+【】=2")]),t("a-button",{attrs:{type:"primary",ghost:""},on:{click:e.addFilling}},[e._v("添加空")])],1),t("a-form-model-item",{attrs:{label:"答案"}},e._l(e.gapFillingList,function(s,i){return t("div",{key:i,staticClass:"fling-box"},[t("div",{staticClass:"left-txt"},[e._v(e._s(s.title))]),t("a-input",{attrs:{placeholder:"请输入答案"},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)}),0),t("div",{staticClass:"tips",staticStyle:{"margin-bottom":"25px"}},[e._v("注:一个空有多种答案是,用英文逗号“,”隔开,示例:A与C之间的字母是 b,B ")])]:e._e(),"4"===e.form.LX?t("a-form-model-item",{attrs:{label:"答案",prop:"PDDA"}},[t("a-radio-group",{model:{value:e.form.PDDA,callback:function(t){e.$set(e.form,"PDDA",t)},expression:"form.PDDA"}},[t("a-radio",{attrs:{value:"1"}},[e._v("对")]),t("a-radio",{attrs:{value:"2"}}
1,[e._v("错")])],1)],1):e._e(),"3"===e.form.LX?t("a-form-model-item",{attrs:{label:"答案",prop:"JDDA"}},[e.showEditModel?t("WangEditor",{attrs:{styleParams:e.styleParams,onEditorChange:function(t){return e.onEditorChangeForm(t,"JDDA")},editorConfigOut:e.editorConfigOut},model:{value:e.form.JDDA,callback:function(t){e.$set(e.form,"JDDA",t)},expression:"form.JDDA"}}):e._e()],1):e._e(),t("a-form-model-item",{attrs:{label:"答案解析",prop:"DAJX"}},[e.showEditModel?t("WangEditor",{attrs:{styleParams:e.styleParams,onEditorChange:function(t){return e.onEditorChangeForm(t,"DAJX")},editorConfigOut:e.editorConfigOut},model:{value:e.form.DAJX,callback:function(t){e.$set(e.form,"DAJX",t)},expression:"form.DAJX"}}):e._e()],1)],2)],1),t("div",{staticClass:"btn-box"},[t("a-button",{attrs:{type:"primary",loading:e.isLoading},on:{click:e.handleOk1}},[e._v("保 存")])],1)]),t("a-modal",{staticClass:"modal-box",attrs:{width:600,centered:!0,title:"加入题库",visible:e.showAddQuestionModal,footer:null,mask:!0,"mask-closable":!0,"transition-name":"zoom","mask-transition-name":"fade"},on:{cancel:function(t){e.showAddQuestionModal=!1}}},[t("a-form-model",{ref:"addQuestionForm",attrs:{"label-col":e.labelCol2,labelAlign:"left","wrapper-col":e.wrapperCol1,model:e.addQuestionForm,rules:e.rules}},[t("a-form-model-item",{attrs:{label:"试题归属章节",prop:"select"}},[t("div",{staticStyle:{display:"flex","flex-direction":"column-reverse"}},[t("a-select",{staticStyle:{"margin-top":"13px"},attrs:{placeholder:"请选择节"},model:{value:e.addQuestionForm.select,callback:function(t){e.$set(e.addQuestionForm,"select",t)},expression:"addQuestionForm.select"}},[e._l(e.currentChapter.ZLJH,function(s,i){return[t("a-select-option",{key:i,attrs:{value:s.ZJID}},[e._v(e._s(s.ZJMC))])]})],2),t("a-select",{attrs:{placeholder:"请选择章"},on:{change:e.chapterChange},model:{value:e.addQuestionForm.chapter,callback:function(t){e.$set(e.addQuestionForm,"chapter",t)},expression:"addQuestionForm.chapter"}},[e._l(e.chapters,function(s,i){return[t("a-select-option",{key:i,attrs:{value:s.ZJID}},[e._v(e._s(s.ZJMC))])]})],2)],1)])],1),t("div",{staticClass:"btn-group"},[t("a-button",{staticClass:"cancel",on:{click:function(t){e.showAddQuestionModal=!1}}},[e._v("取消")]),t("a-button",{staticClass:"primary",attrs:{loading:e.isLoading,type:"primary"},on:{click:e.addQuestion}},[e._v(" 确定加入 ")])],1)],1)],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-title"},[t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2026/03/31/png/yT/897cf0880f174d08b42607a8f584cc44_TePj7DVk2UNd6LVv.png",alt:""}}),e._v("试题配置 ")])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-title"},[t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2026/03/31/png/yT/897cf0880f174d08b42607a8f584cc44_TePj7DVk2UNd6LVv.png",alt:""}}),e._v("生成结果 ")])}],a=s(69870),r=s(17654),o=s(57888),l=s(9133),c=(s(95038),s(31859)),u=(s(28706),s(2008),s(50113),s(48980),s(48598),s(62062),s(54554),s(36033),s(2892),s(79432),s(16034),s(42762),s(23500),s(7516)),d=s(3067),h=s(44118),p=s(7631),m=s(34644),f=s(61145),v=s(54475),g=s(67193),C=s.n(g),y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"logo"},[t("div",{staticClass:"img-box"},[e.loading?t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2025/10/23/gif/N0/07123a80943f481f8d0dfa769272f67e_Cey3BC31R77IDmzP.gif",alt:""}}):t("img",{attrs:{src:"https://res.cqooc.com:31443/res/u/2025/10/23/png/Nm/208d1f3ae05c4f99b16d35c9018f09cb_BKyxKwtUQ7vMYFsZ.png",alt:""}})]),t("div",{staticClass:"text"},[e._v(" "+e._s(e.text)+" ")])])},b=[],L={name:"logo",components:{},props:{loading:{type:Boolean,default:!1},text:{type:String,default:"等待生成试题中"}},data:function(){return{}},computed:{},watch:{},methods:{},mounted:function(){}},x=L,D=s(81656),k=(0,D.A)(x,y,b,!1,null,"39d66d0b",null),_=k.exports,S={name:"AIQuestion",components:{Logo:_,WangEditor:v.A,UploadElement:h.A,Tree:c.A},data:function(){var e=this;return{isOrder:!0,isLoading:!1,showChapterImport:!1,zjAll:!1,checks:0,optionals:0,kjType:{video:"视频",doc:"文档",image:"图片",audio:"音频",other:"其他"}
1,chapterList:[],chapters:[],KJJH:[],questions:[],questionConfigForm:{source:1,level:"easy",input:"君子曰:学不可以已。\n\n  青,取之于蓝,而青于蓝;冰,水为之,而寒于水。木直中绳,𫐓以为轮,其曲中规。虽有槁暴,不复挺者,𫐓使之然也。故木受绳则直,金就砺则利,君子博学而日参省乎己,则知明而行无过矣。\n\n  吾尝终日而思矣,不如须臾之所学也;吾尝跂而望矣,不如登高之博见也。登高而招,臂非加长也,而见者远;顺风而呼,声非加疾也,而闻者彰。假舆马者,非利足也,而致千里;假舟楫者,非能水也,而绝江河。君子生非异也,善假于物也。\n\n  积土成山,风雨兴焉;积水成渊,蛟龙生焉;积善成德,而神明自得,圣心备焉。故不积跬步,无以至千里;不积小流,无以成江海。骐骥一跃,不能十步;驽马十驾,功在不舍。锲而舍之,朽木不折;锲而不舍,金石可镂。蚓无爪牙之利,筋骨之强,上食埃土,下饮黄泉,用心一也。蟹六跪而二螯,非蛇鳝之穴无可寄托者,用心躁也。",plusInput:void 0,inputType:void 0,num:1,pt:"DanXuan"},supportType:new Set(["jpg","png","mp3","doc","docx","pdf","txt","audio","image"]),contentSeletObj:{chapter:void 0,select:void 0,content:void 0,currentChapter:{},currentContent:{},seletedsObj:{},seleteds:[],seletedKeys:[],others:[]},addQuestionForm:{config:1,chapter:void 0,select:void 0,GRLY:1},types:{DanXuan:"单选",DuoXuan:"多选",TianKong:"填空",JianDa:"简答",PanDuan:"判断"},typez:{0:"单选",1:"多选",2:"填空",3:"简答",4:"判断"},rules1:{TM:[{required:!0,message:"请输入题干",trigger:"blur"}],GLKC:[{required:!0,message:"请选择关联课程",trigger:"change"}],LX:[{required:!0,message:"请选择试题类型",trigger:"change"}],DAJX:[{required:!1,message:"请输入答案解析",trigger:"blur"}],ND:[{required:!0,message:"请选择试题难度",trigger:"change"}],GS:[{required:!0,message:"请选择答案数量",trigger:"change"}],JDDA:[{required:!0,message:"请输入简答答案",trigger:"blur"}],PDDA:[{required:!0,message:"请选择判断答案",trigger:"change"}],LY:[{required:!0,message:"请选择是否同步个人题库",trigger:"change"}]},styleParams:{height:"165px"},editorConfigOut:{placeholder:"请输入答案"},labelCol1:{span:7},wrapperCol1:{span:16},labelCol2:{span:7},wrapperCol2:{span:23},labelCol:{span:4},wrapperCol:{span:20},gapFillingList:[{title:"第一【】",value:""}],DAYXXList:[{isSelect:!1}],editIndex:0,form:{TM:"",GLKC:"",LX:"0",LY:"",DAJX:"",ND:"1",GS:"1",JID:"",ZID:"",PDDA:""},rules:{chapter:[{validator:function(e,t,s){s()},trigger:"change"}],files:[{validator:function(t,s,i){2===e.questionConfigForm.source&&(e.fileList&&0!==e.fileList.length||i(new Error("请上传课件"))),i()},trigger:"change"}],select:[{required:!0,message:"请选择章节",trigger:"change"}],list:[{validator:function(t,s,i){e.checkeds&&0!==e.checkeds.length||i(new Error("请选择题目")),i()},trigger:"change"}]},fileList:[],currentChapter:{},checkeds:[],showEditModel:!1,showAddQuestionModal:!1,selectAll:!1,showChapterModal:!1,treeData:[],expandedKeys:[],checkedKeys:[],selectedKeys:[],selectedLeafNodes:[],choicesSet:{0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K"},choicesSetf:{A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10}}},computed:{isSingleChapterSelection:function(){var e=this.contentSeletObj,t=e.seletedsObj,s=e.chapter,i=Object.keys(t);return 0===i.length||1===i.length&&(!t[s]||1===Object.keys(t[s]).length)}},watch:{showChapterModal:function(e){e&&(this.treeData&&0!==this.treeData.length||(this.treeData=this.buildTreeData(this.chapterList)),this.selectedLeafNodes&&this.selectedLeafNodes.length>0&&(this.checkedKeys=this.selectedLeafNodes.map(function(e){return e.key}),this.selectedKeys=(0,l.A)(this.checkedKeys)))}},methods:{showDA:function(e){var t,s,i,n=this,a=null,r=(null===e||void 0===e||null===(t=e.DAYXX)||void 0===t?void 0:t.DAJH)||[];if(!r.length)return a;
1if(null!==(s=["0","1"])&&void 0!==s&&s.includes(null===e||void 0===e?void 0:e.LX)){var o=r.map(function(e){return n.choicesSet[e]});a=o.filter(Boolean).join("、")}else if(null!==(i=["2","3"])&&void 0!==i&&i.includes(null===e||void 0===e?void 0:e.LX))a=r.join("、");else if("4"===(null===e||void 0===e?void 0:e.LX)){var l=r.map(function(e){return"1"===e?"A":"B"});a=l.join("、")}return a},openEditModel:function(e,t){var s,i,n=this;this.editIndex=t;var a=(0,f.lk)();this.form={id:(null===e||void 0===e?void 0:e.id)||a,ID:(null===e||void 0===e?void 0:e.id)||a,TM:null===e||void 0===e?void 0:e.TM,LX:null===e||void 0===e?void 0:e.LX,ND:null===e||void 0===e?void 0:e.ND,DAJX:null===e||void 0===e?void 0:e.DAJX,GS:null===e||void 0===e||null===(s=e.DAYXX)||void 0===s||null===(s=s.XXJH)||void 0===s?void 0:s.length,PDDA:""};var r,o,l,c=null===e||void 0===e?void 0:e.DAYXX;if(null!==(i=["0","1"])&&void 0!==i&&i.includes(null===e||void 0===e?void 0:e.LX))this.DAYXXList=[],null===c||void 0===c||null===(r=c.XXJH)||void 0===r||r.map(function(e,t){n.DAYXXList.push({txt:e})}),(null===(o=this.DAYXXList)||void 0===o?void 0:o.length)>0&&(null===c||void 0===c||null===(l=c.DAJH)||void 0===l||l.map(function(e){n.DAYXXList[Number(e)]["isSelect"]=!0}));else if("2"===(null===e||void 0===e?void 0:e.LX)){var u;this.gapFillingList=[],null===c||void 0===c||null===(u=c.XXJH)||void 0===u||u.map(function(e,t){var s=e||n.numberToUpperCase(t);n.gapFillingList.push({title:s,value:null===c||void 0===c?void 0:c.DAJH[t]})})}else"4"===(null===e||void 0===e?void 0:e.LX)?null!==c&&void 0!==c&&c.DAJH[0]&&(this.form.PDDA=null===c||void 0===c?void 0:c.DAJH[0]):"3"===(null===e||void 0===e?void 0:e.LX)&&(this.form.JDDA=null===c||void 0===c?void 0:c.DAJH[0]);this.showEditModel=!0},closeModeal:function(){this.form={TM:"",GLKC:"",LX:"0",LY:"",DAJX:"",ND:"1",GS:"1",ZID:"",JID:"",PDDA:"",JDDA:""},this.DAYXXList=[],this.gapFillingList=[],this.showEditModel=!1},onEditorChangeForm:function(e,t){this.form[t]=e},onEditorChange:function(e,t,s){t["txt"]=e},txSelect:function(e){this.form.GS=1,this.form.ND="1",this.DAYXXList=[],this.selectNum(1)},selectNum:function(e){if(this.DAYXXList.length>=e)this.DAYXXList.length=e;else for(var t=e-this.DAYXXList.length,s=0;s<t;s++)this.DAYXXList.push({isSelect:!1,txt:""})},isTrue:function(e,t,s){e.target.checked&&(s.map(function(e){e.isSelect=!1}),s[t]["isSelect"]=!0)},mitChange:function(e,t,s){s[t]["isSelect"]=e.target.checked,this.DAYXXList=C()(s)},buildTreeData:function(e){try{if(!Array.isArray(e))throw new Error("输入数据必须是数组格式");var t=new Map,s=[];return e.forEach(function(e){if(e.ZJID){var i=(0,o.A)((0,o.A)({},e),{},{key:e.ZJID,title:e.ZJMC||"未命名章节",type:"chapter",level:1,raw:e,children:[],selectable:!1,disableCheckbox:!0});t.set(e.ZJID,i),s.push(i),Array.isArray(e.ZLJH)&&e.ZLJH.forEach(function(s){if(s.ZJID){var n=(0,o.A)((0,o.A)({},s),{},{key:s.ZJID,title:s.ZJMC||"未命名小节",type:"section",level:2,parentId:e.ZJID,raw:s,children:[],selectable:!1,disableCheckbox:!0});t.set(s.ZJID,n),i.children.push(n),Array.isArray(s.KJJH)&&s.KJJH.forEach(function(e){if(e.ID){var t=(0,o.A)((0,o.A)({},e),{},{key:e.ID,title:e.MC||"未命名资源",type:"resource",level:3,parentId:s.ZJID,mediaType:e.MTLX||"",raw:e,selectable:!0});n.children.push(t)}})}})}}),s}catch(i){return[]}},handleTreeExpand:function(e){this.expandedKeys=e},handleTreeSelect:function(e,t){var s=this;if(t.node&&t.node.disabled)return this.$message.info("该节点不可选择"),void(this.selectedKeys=this.selectedKeys.filter(function(e){return s.checkedKeys.includes(e)}));this.selectedKeys=e.filter(function(e){return s.checkedKeys.includes(e)})},handleTreeCheck:function(e,t){var s=this.getAllResourceKeys(this.treeData),i=Array.isArray(e)?e:e.checked||[],n=i.filter(function(e){return s.includes(e)});n.length>5?this.$message.error("最多选择5个资源"):(this.checkedKeys=n,this.updateSelectedLeafNodes(n),this.selectedKeys=(0,l.A)(n))},getAllResourceKeys:function(e){var t=[],s=function e(s){Array.isArray(s)&&s.forEach(function(s){"resource"===s.type&&s.selectable&&t.push(s.key),s.children&&s.children.length>0&&e(s.children)})};return s(e),t},updateSelectedLeafNodes:function(e){var t=[],s=function s(i){Array.isArray(i)&&i.forEac
1h(function(i){e.includes(i.key)&&i.selectable&&t.push(i),i.children&&i.children.length>0&&s(i.children)})};s(this.treeData),this.selectedLeafNodes=t},handleChapterOk:function(){this.checkedKeys.length>0&&(this.contentSeletObj.content=this.checkedKeys,this.contentSeletObj.selectedLeafNodes=this.selectedLeafNodes,this.contentChange2(this.checkedKeys)),this.showChapterModal=!1},addFilling:function(){var e=this.gapFillingList.length,t=this.numberToUpperCase(e);this.gapFillingList.push({title:t,value:""})},numberToUpperCase:function(e){var t="第",s=e+1+"";function i(t,s){var i="";if(9===e)return s?"":"十";var n=~~e>9&&~~e<19;switch(~~t){case 1:i=s?"十一":n?"":"一";break;case 2:i=s?"十二":n?"":"二";break;case 3:i=s?"十三":n?"":"三";break;case 4:i=s?"十四":n?"":"四";break;case 5:i=s?"十五":n?"":"五";break;case 6:i=s?"十六":n?"":"六";break;case 7:i=s?"十七":n?"":"七";break;case 8:i=s?"十八":n?"":"八";break;case 9:i=s?"十九":n?"":"九";break;case 0:i="十";break;default:break}return i}for(var n=0;n<s.length;n++)t+=i(s.substring(n,n+1),n);return t+"【】"},deleteChecked:function(e,t){!Array.isArray(this.questions)||!e||t<0||t>=this.checkeds.length||(this.questions.forEach(function(t){t.id===e.id&&(t.isChecked=!1)}),this.checkeds.splice(t,1),this.selectAll=this.questions.length>0&&this.checkeds.length===this.questions.length)},selectQuestion:function(){Array.isArray(this.questions)&&(this.checkeds=this.questions.filter(function(e){return e.isChecked}),this.selectAll=this.questions.length>0&&this.checkeds.length===this.questions.length)},checkIsCheck:function(e){this.checkeds.length>0?this.showAddQuestionModal=!0:this.$message.warning("请选择题目")},selectAllQuestions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Array.isArray(this.questions)&&0!==this.questions.length&&(this.questions.forEach(function(t){t.isChecked=e}),this.checkeds=e?(0,l.A)(this.questions):[],this.selectAll=e)},addSingleQuestion:function(e){Array.isArray(this.questions)&&e&&(this.questions.forEach(function(t){t.isChecked=t.id===e.id}),this.checkeds=[e],this.selectAll=!1,this.showAddQuestionModal=!0)},deleteQuestion:function(e,t){!Array.isArray(this.questions)||t<0||t>=this.questions.length||(this.questions.splice(t,1),this.checkeds=this.questions.filter(function(e){return e.isChecked}),this.selectAll=this.questions.length>0&&this.checkeds.length===this.questions.length)},addQuestion:function(){var e=this;this.$refs.addQuestionForm.validate(function(){var t=(0,r.A)((0,a.A)().mark(function t(s){var i,n,r,o,c;return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=13;break}return i=(0,l.A)(e.checkeds),i.map(function(t){t.ZID=e.addQuestionForm.chapter,t.JID=e.addQuestionForm.select}),n={GRLY:e.addQuestionForm.GRLY,JID:e.addQuestionForm.select,TMJH:(0,l.A)(i),ZID:e.addQuestionForm.chapter},e.isLoading=!0,t.next=7,(0,m.Rz)({KCID:e.KCID},n);case 7:r=t.sent,o=r.code,c=r.message,r.result,e.isLoading=!1,200===o?(e.$message.success(c),e.showAddQuestionModal=!1):e.$message.error(c);case 13:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},batchRequestWithQsGenerate:function(e){var t=this;return(0,r.A)((0,a.A)().mark(function s(){var i,n;return(0,a.A)().wrap(function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,i=e.map(function(){var e=(0,r.A)((0,a.A)().mark(function e(s){var i,n,r;return(0,a.A)().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.zT)({ZYID:s.ZYID,KCBJ:1},t.KCID);case 2:return i=e.sent,i.code,i.message,n=i.result,r="image"===String(n.ZYMTLX).toLowerCase(),e.abrupt("return",r?n.TPLJ||"":n.YLLJ||"");case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),s.next=4,Promise.all(i);case 4:return n=s.sent,s.abrupt("return",n);case 8:throw s.prev=8,s.t0=s["catch"](0),s.t0;case 11:case"end":return s.stop()}},s,null,[[0,8]])}))()},generateQuestions:function(){var e=this;this.$refs.questionConfigForm.validate(function(){var t=(0,r.A)((0,a.A)().mark(function t(s){var i,n,o,c,u,d;return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportType.has((0,p.aw)(e.questionConfigForm.input)),i={difficulty:e.questionConfigForm.level,files:[],input:e.questionConfigForm.plusInput,num:e.questionConfigForm.num,pt:e.questionConfigForm.pt},t.prev=2,!s){t.next=22;break}if(e.isLoading=!0,1!==e.questionConfigForm.source){t.next=12;break}return t.next=8,e.batchRequestWithQsGenerate(e.selectedLeafNodes);case 8:n=t.sent,i.files=n,t.next=13;break;case 12:i.files=e.fileList.map(function(e){return e.url});case 13:return t.next=15,(0,m.eJ)({KCID:e.KCID},i);case 15:return o=t.sent,c=o.result,u=c,t.next=20,(0,f.rT)((0,r.A)((0,a.A)().mark(function t(){return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,m.ur)({taskId:u,KCID:e.KCID});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)})),function(e){e.code;var t=e.result;return!(null===t||void 0===t||!t.RW_NR)},5e3,18e4).then(function(t){var s=t.code,i=t.result,n=t.message;if(e.isLoading=!1,200===s){var a=i.RW_NR;e.questions&&0!==e.questions.length?e.questions=[].concat((0,l.A)(a),(0,l.A)(e.questions)):e.questions=a||[];var r=(0,f.lk)();e.questions.map(function(e,t){e.id="".concat(r).concat(t)}),a&&null!==a&&void 0!==a&&a.length?e.$message.success(n):e.$message.error("试题生成失败,请重试!")}else e.$message.error(n)}).catch(function(t){e.$message.error("试题生成失败,请重试!"),e.isLoading=!1});case 20:e.isLoading=!1,200===code?(e.questions&&0!==e.questions.length?e.questions=[].concat((0,l.A)(c),(0,l.A)(e.questions)):e.questions=c||[],d=(0,f.lk)(),e.questions.map(function(e,t){e.id="".concat(d).concat(t)}),c&&null!==c&&void 0!==c&&c.length?e.$message.success(message):e.$message.error("试题生成失败,请重试!")):e.$message.error(message);case 22:t.next=27;break;case 24:t.prev=24,t.t0=t["catch"](2),e.isLoading=!1;case 27:case"end":return t.stop()}},t,null,[[2,24]])}));return function(e){return t.apply(this,arguments)}}())},handleRemove:function(e,t){var s=this.fileList.findIndex(function(t){return t.uid===e.uid});-1!==s&&this.fileList.splice(s,1)},handleCoverChange:function(e,t){if("error"===e.status||"uploading"===e.status){var s=this.fileList.findIndex(function(t){return t.uid===e.uid});-1!==s&&this.fileList.splice(s,1)}},delzsd:function(e){this.selectedLeafNodes=this.selectedLeafNodes.filter(function(t){return t!==e}),this.selectedKeys=this.selectedKeys.filter(function(t){return t!==e.key}),this.checkedKeys=this.checkedKeys.filter(function(t){return t!==e.key})},fjSucess:function(e,t){var s=e.file,i=(0,f.z8)(t.url);"remove"!==e.status&&(this.fileList&&this.fileList.length?this.fileList.push({url:i,uid:t.uid,type:(0,p.aw)(s.name),name:s.name,status:"done"}):this.fileList=[{url:i,uid:t.uid,type:(0,p.aw)(s.name),name:s.name,status:"done"}])},handleFjBeforeUpload:function(e){var t=e.name.toLowerCase(),s=200;return["mp4"].includes((0,p.aw)(t))&&(s=300),e.size/1024>1024*s?(this.$message.error("文件不能大于".concat(s,"Mb")),!1):"png"!==(0,p.aw)(t)&&"jpg"!==(0,p.aw)(t)&&"doc"!==(0,p.aw)(t)&&"docx"!==(0,p.aw)(t)&&"pdf"!==(0,p.aw)(t)&&"mp3"!==(0,p.aw)(t)&&"txt"!==(0,p.aw)(t)?(this.$message.error("文件只能上传jpg、png、mp3、doc、docx、 pdf、 txt格式"),!1):void 0},chapterChange:function(){var e=this;this.currentChapter={},this.addQuestionForm.select=void 0;var t=this.chapters.find(function(t){return t.ZJID===e.addQuestionForm.chapter});t&&(this.currentChapter=t)},contentChange:function(){var e,t=this;this.contentSeletObj.currentChapter={},this.contentSeletObj.currentContent={},this.contentSeletObj.select=void 0;
1var s=null===(e=this.chapterList)||void 0===e?void 0:e.find(function(e){return e.ZJID===t.contentSeletObj.chapter});s&&(this.contentSeletObj.currentChapter=s),this.treeData=[],this.checkedKeys=[]},contentChange1:function(){var e,t=this;this.contentSeletObj.currentContent={};var s=null===(e=this.contentSeletObj)||void 0===e||null===(e=e.currentChapter)||void 0===e||null===(e=e.ZLJH)||void 0===e?void 0:e.find(function(e){return e.ZJID===t.contentSeletObj.select});if(s){var i;this.contentSeletObj.currentContent=s;var n=new Set(null===(i=this.contentSeletObj)||void 0===i||null===(i=i.currentContent)||void 0===i?void 0:i.KJJH.map(function(e){return e.ID}));this.contentSeletObj.others=this.contentSeletObj.seleteds.filter(function(e){return!n.has(e.ID)}),this.checkedKeys=[]}},isOptionDisabled:function(e){var t=this.contentSeletObj.seletedKeys;return t.length>=5&&!t.includes(e)},contentChange2:function(e){var t,s,i=new Set(e),n=this.contentSeletObj,a=n.seletedsObj,r=n.chapter,o=n.select,c=n.currentContent;(Object.keys(a).forEach(function(e){var t=a[e];Object.keys(t).forEach(function(e){var s=t[e].filter(function(e){return i.has(e.ID)});0===s.length?delete t[e]:t[e]=s}),0===Object.keys(t).length&&delete a[e]}),e&&r&&o)&&(a[r]||(a[r]={}),a[r][o]=(null===c||void 0===c||null===(s=c.KJJH)||void 0===s?void 0:s.filter(function(e){return i.has(e.ID)}))||[]);var u=[];Object.values(a).forEach(function(e){Object.values(e).forEach(function(e){u.push.apply(u,(0,l.A)(e))})}),this.contentSeletObj.seleteds=u,this.contentSeletObj.seletedKeys=(0,l.A)(e);var d=new Set((null===c||void 0===c||null===(t=c.KJJH)||void 0===t?void 0:t.map(function(e){return e.ID}))||[]);this.contentSeletObj.others=u.filter(function(e){return!d.has(e.ID)}),this.KJJH=[].concat(u)},onChange:function(e){},isDoc:function(e){if(e.KJJH&&e.KJJH.length){var t=e.KJJH.find(function(e){return"文档"===e.MTLXMC});return!!t}return!1},openShowChapter:function(){var e=this,t={KCID:this.KCID};(0,u.Ym)(t).then(function(t){e.zjAll=!1,e.showChapterImport=!0,200===t.code?e.chapterList=(null===t||void 0===t?void 0:t.result)||[]:e.$message.error(t.message)})},itemOnChange:function(e,t){var s,i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(-1!==a){var r=this.chapterList[t].ZLJH[n].KJJH.filter(function(e){return"文档"===e.MTLXMC}),o=this.chapterList[t].ZLJH[n].KJJH.filter(function(e){return e.isChecked&&"文档"===e.MTLXMC});this.chapterList[t].ZLJH[n].isChecked=o.length===r.length}else this.chapterList[t].ZLJH[n].KJJH.map(function(e){e.isChecked=!!i.chapterList[t].ZLJH[n].isChecked});this.zjAll?e.isChecked||(this.zjAll=!1):(this.checks=0,this.optionals=0,null===(s=this.chapterList)||void 0===s||s.map(function(e){var t;null===(t=e.ZLJH)||void 0===t||t.map(function(e){var t;i.isDoc(e)&&(i.optionals++,e.isChecked&&i.checks++,null===(t=e.KJJH)||void 0===t||t.map(function(e){"文档"===e.MTLXMC&&(i.optionals++,e.isChecked&&i.checks++)}))})}),this.zjAll=this.checks===this.optionals);this.chapterList=(0,l.A)(this.chapterList)},zjOnChange:function(){var e,t=this;null===(e=this.chapterList)||void 0===e||e.map(function(e){var s,i;null!==(s=e.ZLJH)&&void 0!==s&&s.length&&(null===(i=e.ZLJH)||void 0===i||i.map(function(e){var s;t.isDoc(e)&&(e.isChecked=!!t.zjAll,null===(s=e.KJJH)||void 0===s||s.map(function(e){"文档"===e.MTLXMC&&(e.isChecked=!!t.zjAll)}))}))}),this.chapterList=(0,l.A)(this.chapterList)},handleOk1:function(){var e=this;this.$refs.formModal.validate(function(){var t=(0,r.A)((0,a.A)().mark(function t(s){var i,n,r,o,l,c,u,d,h,p,m;return(0,a.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=22;break}if(l=[],c=[],u=e.form.LX,d=!0,!["0","1"].includes(u)){t.next=11;break}if(e.DAYXXList.map(function(e,t){c.push(e.txt),e.isSelect&&(d=!1,l.push(t+""))}),!d){t.next=9;break}return t.abrupt("return",e.$message.warning("请设置正确答案!"));case 9:t.next=19;break;case 11:if("2"!==u){t.next=18;break}if(h=!0,e.gapFillingList.forEach(function(t,s){var i=t.title;""===i.trim()&&(t.title=e.numberToUpperCase(s)),c.push(t.title),""!==t.value.trim()?l.push(t.value):h=!1}),h){t.next=16;break}return t.abrupt("return",e.$message.warning("请完成必填项!"));case 16:t.next=19;break;case 18:"4"===u?(c.push("对"),c.push("错"),e.form.PDDA&&l.push(Number(null===(p=e.form)||void 0===p?void 0:p.PDDA)-1)):"3"===u&&(c.push(e.form.TM),e.form.JDDA&&l.push(e.form.JDDA));case 19:m={id:null===(i=e.form)||void 0===i?void 0:i.id,LX:u,TM:null===(n=e.form)||void 0===n?void 0:n.TM,ND:null===(r=e.form)||void 0===r?void 0:r.ND,DAYXX:{DAJH:l,XXJH:"3"===u?[]:c},DAJX:null===(o=e.form)||void 0===o?void 0:o.DAJX},e.questions[e.editIndex]=m,e.showEditModel=!1;case 22:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},handleOk:function(){var e,t=this,s=[];
1null===(e=this.chapterList)||void 0===e||e.map(function(e){var i,n;null!==(i=e.ZLJH)&&void 0!==i&&i.length&&(null===(n=e.ZLJH)||void 0===n||n.map(function(e){var i;t.isDoc(e)&&(null===(i=e.KJJH)||void 0===i||i.map(function(e){e.isChecked&&s.push(e)}))}))}),this.KJJH=[].concat(s),this.showChapterImport=!1},deleteNR:function(e,t){var s;this.KJJH.splice(t,1),this.contentSeletObj.content=null===(s=this.contentSeletObj)||void 0===s||null===(s=s.content)||void 0===s?void 0:s.filter(function(t){return e.ID!==t})},getChapterList:function(){var e=this,t={KCID:this.KCID};(0,u.Ym)(t).then(function(t){var s=t.code,i=t.result,n=t.message;200===s?(e.chapterList=i||[],e.treeData=e.buildTreeData(e.chapterList)):e.$message.error(n)})},getSimpleChapterList:function(){var e=this,t={KCID:this.KCID,FW:2};(0,d.Ly)(t).then(function(t){var s;200===t.code&&null!==(s=t.result)&&void 0!==s&&s.length?e.chapters=t.result:(200!=t.code&&e.$message.error(t.message),e.chapters=[])})}},mounted:function(){this.$route.query.id&&(this.KCID=this.$route.query.id,this.getSimpleChapterList(),this.getChapterList())}},A=S,w=(0,D.A)(A,i,n,!1,null,"5e0d6852",null),I=w.exports},58799:function(e,t,s){"use strict";s.d(t,{A:function(){return C}});s(74423),s(62010),s(2892),s(21699);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"add-test-container"},[t("div",{staticClass:"test-header"},[t("div",{staticClass:"header-left"},[t("a-input",{staticClass:"title-input",attrs:{autocomplete:"new-password",disabled:e.isDisabled,placeholder:"请输入试卷标题"},model:{value:e.form.MC,callback:function(t){e.$set(e.form,"MC",t)},expression:"form.MC"}})],1),t("div",{staticClass:"header-right"},[t("a-radio-group",{staticClass:"type-radio",on:{change:e.changeLx},model:{value:e.form.LX,callback:function(t){e.$set(e.form,"LX",t)},expression:"form.LX"}},[t("a-radio-button",{attrs:{value:"1"}},[e._v("系统一键组题")]),t("a-radio-button",{attrs:{value:"2"}},[e._v("系统组题-自主章节")]),t("a-radio-button",{attrs:{value:"3"}},[e._v("固定试题")])],1)],1),t("a-button",{staticClass:"export-btn",on:{click:e.exportPaper}},[e._v("导出试卷")]),t("a-button",{staticClass:"close-btn",on:{click:e.handleClose}},[t("a-icon",{attrs:{type:"close"}})],1)],1),e.form.LX?t("div",{staticClass:"hint-bar"},[t("a-icon",{staticClass:"hint-icon",attrs:{type:"info-circle"}}),t("span",{staticClass:"hint-text"},[1==e.form.LX?[e._v("配置题型、数量、分值后,系统会根据比例自动分配题目,学生考试时将随机获取试题。")]:e._e(),2==e.form.LX?[e._v("选择章节、题型后,系统会根据配置随机抽取题目,同一题型可多次添加。")]:e._e(),3==e.form.LX?[e._v("从题库中选择试题,配置试题分值,支持预览试卷和导出功能。")]:e._e()],2)],1):e._e(),1==e.form.LX?t("div",{staticClass:"test-content"},[e._m(0),t("div",{staticClass:"config-table-wrapper"},[t("a-table",{attrs:{columns:e.txColumns,"data-source":e.txList,bordered:"",pagination:!1,size:"middle","row-key":function(e,t){return t}},scopedSlots:e._u([{key:"isChecked",fn:function(s,i){return[t("a-checkbox",{attrs:{disabled:e.isDisabled},on:{change:function(t){return e.onChange(t,i)}},model:{value:i.isChecked,callback:function(t){e.$set(i,"isChecked",t)},expression:"record.isChecked"}})]}},{key:"name",fn:function(t,s){return[e._v(" "+e._s(s.name)+" ")]}},{key:"STND",fn:function(s,i){return[t("a-select",{staticStyle:{width:"90px"},attrs:{allowClear:"",placeholder:"不限",disabled:!i.isChecked||e.isDisabled},model:{value:i.STND,callback:function(t){e.$set(i,"STND",t)},expression:"record.STND"}},[t("a-select-option",{attrs:{value:""}},[e._v("不限")]),e._l(e.STND,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.value}},[e._v(" "+e._s(s.name)+" ")])})],2)]}},{key:"sts",fn:function(s,i){return[t("a-input-number",{staticStyle:{width:"70px"},attrs:{disabled:!i.isChecked||e.isDisabled,min:0},model:{value:i.sts,callback:function(t){e.$set(i,"sts",t)},expression:"record.sts"}})]}},{key:"mtfz",fn:function(s,i){return[t("a-input-number",{staticStyle:{width:"70px"},attrs:{disabled:!i.isChecked||e.isDisabled,min:0,max:100},model:{value:i.mtfz,callback:function(t){e.$set(i,"mtfz",t)},expression:"record.mtfz"}})]}},{key:"total",fn:function(s,i){return[t("span",{staticClass:"total-num"},[e._v(e._s(Number(""==i.sts?0:i.sts)*Number(""==i.mtfz?0:i.mtfz)))]),e._v(" 题可用 ")]}},{key:"action",fn:function(s,i,n){return[t("a-button",{staticClass:"delete-btn",attrs:{type:"text",disabled:e.isDisabled},on:{click:function(t){return e.deleteTxItem(n)}}},[e._v("删除")])]}}],null,!1,707293671)}
1)],1)]):e._e(),2==e.form.LX?t("div",{staticClass:"test-content"},[t("div",{staticClass:"rule-list"},[e._l(e.sysData,function(s,i){return t("div",{key:s.order,staticClass:"rule-item"},[t("span",{staticClass:"rule-label"},[e._v("规则 "+e._s(i+1))]),t("a-select",{staticStyle:{width:"100px"},on:{change:function(t){return e.changeRuleLX(t,s)}},model:{value:s.lx,callback:function(t){e.$set(s,"lx",t)},expression:"record.lx"}},e._l(e.txList1,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.lx}},[e._v(e._s(s.name))])}),1),t("a-select",{staticStyle:{width:"110px"},attrs:{allowClear:"",placeholder:"不限难度"},model:{value:s.STND,callback:function(t){e.$set(s,"STND",t)},expression:"record.STND"}},[t("a-select-option",{attrs:{value:""}},[e._v("不限难度")]),e._l(e.STND,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.value}},[e._v(" "+e._s(s.name)+" ")])})],2),t("a-select",{staticStyle:{"min-width":"100px"},attrs:{placeholder:"请选择章",allowClear:""},on:{change:function(t,n){return e.changeZTable(t,n,s,i)}},model:{value:s.SSZ,callback:function(t){e.$set(s,"SSZ",t)},expression:"record.SSZ"}},e._l(e.chapterList,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.ZJID,attr:s,title:s.ZJMC}},[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"章")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1),t("a-select",{staticStyle:{"min-width":"100px"},attrs:{allowClear:"",placeholder:"全部节"},model:{value:s.SSJ,callback:function(t){e.$set(s,"SSJ",t)},expression:"record.SSJ"}},e._l(e.jListObj[s.order],function(s,i){return t("a-select-option",{key:i,attrs:{value:s.ZJID,title:s.ZJMC}},[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"节")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1),t("div",{staticClass:"rule-input-group"},[t("a-input-number",{staticStyle:{width:"60px"},attrs:{min:1},model:{value:s.SL,callback:function(t){e.$set(s,"SL",t)},expression:"record.SL"}}),t("span",{staticClass:"rule-unit"},[e._v("题")])],1),t("div",{staticClass:"rule-input-group"},[t("a-input-number",{staticStyle:{width:"60px"},attrs:{min:1},model:{value:s.MTFZ,callback:function(t){e.$set(s,"MTFZ",t)},expression:"record.MTFZ"}}),t("span",{staticClass:"rule-unit"},[e._v("分/题")])],1),t("a-button",{staticClass:"rule-delete",attrs:{type:"text",size:"small"},on:{click:function(t){return e.deleteRow(s,i)}}},[t("a-icon",{attrs:{type:"close"}})],1)],1)}),t("div",{staticClass:"add-rule-btn",on:{click:e.addRuleRow}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" 添加抽题规则 ")],1)],2)]):e._e(),3==e.form.LX?t("div",{staticClass:"test-content"},[e._m(1),t("div",{staticClass:"fixed-test-wrapper"},[t("div",{staticClass:"left-panel"},[t("div",{staticClass:"search-bar"},[t("a-select",{staticClass:"tag-select",staticStyle:{width:"112px"},on:{change:e.cleckSearch},model:{value:e.gdstParams.LX,callback:function(t){e.$set(e.gdstParams,"LX",t)},expression:"gdstParams.LX"}},[t("a-select-option",{attrs:{value:""}},[e._v("全部题型")]),e._l(e.txList,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.lx}},[e._v(" "+e._s(s.name)+" ")])})],2),t("a-select",{staticClass:"tag-select",staticStyle:{width:"112px"},attrs:{allowClear:"",placeholder:"全部难度"},on:{change:e.cleckSearch},model:{value:e.gdstParams.ND,callback:function(t){e.$set(e.gdstParams,"ND",t)},expression:"gdstParams.ND"}},e._l(e.STND,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.value}},[e._v(" "+e._s(s.name)+" ")])}),1),t("a-select",{staticClass:"tag-select",staticStyle:{width:"130px"},attrs:{placeholder:"全部章",allowClear:""},on:{change:e.changeZ},model:{value:e.gdstParams.ZID,callback:function(t){e.$set(e.gdstParams,"ZID",t)},expression:"gdstParams.ZID"}},e._l(e.chapterList,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.ZJID,title:s.ZJMC}},[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"章")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1),t("a-select",{staticClass:"tag-select",staticStyle:{width:"112px"},attrs:{allowClear:"",placeholder:"全部节"},on:{change:e.cleckSearch},model:{value:e.gdstParams.JID,callback:function(t){e.$set(e.gdstParams,"JID",t)},expression:"gdstParams.JID"}},e._l(e.jList,function(s,i){return t("a-select-option",{key:i,attrs:{value:s.ZJID,title:"第"+(i+1)+"节 "+s.ZJMC}}
1,[e.isOrder?t("span",[e._v("第"+e._s(i+1)+"节")]):e._e(),e._v(" "+e._s(s.ZJMC||"未命名")+" ")])}),1),t("a-input-search",{staticClass:"search-input",staticStyle:{width:"200px"},attrs:{placeholder:"搜索题目..."},on:{search:e.cleckSearch},model:{value:e.gdstParams.TM,callback:function(t){e.$set(e.gdstParams,"TM",t)},expression:"gdstParams.TM"}}),t("a-button",{staticClass:"add-btn",attrs:{type:"primary",disabled:0===e.selectedRowKeys.length},on:{click:e.addClick}},[e._v("添加到试卷")])],1),t("div",{staticClass:"question-list-wrapper"},[e._l(e.stData,function(s,i){return t("div",{key:s.ID,staticClass:"question-item"},[t("a-checkbox",{staticClass:"question-checkbox",attrs:{checked:e.selectedRowKeys.includes(s.ID)},on:{change:function(t){return e.onSingleSelect(t,s.ID)}}}),t("div",{staticClass:"question-content"},[t("div",{staticClass:"question-title"},[e._v(e._s(s.TM))]),t("div",{staticClass:"question-tags"},[t("span",{staticClass:"tag tag-type"},[e._v(e._s(e.txObj[s.LX]))]),t("span",{staticClass:"tag tag-difficulty",class:"difficulty-"+s.ND},[e._v(e._s(0==s.ND?"简单":1==s.ND?"适中":"困难"))]),t("span",{staticClass:"tag tag-chapter"},[e._v(e._s(e.delZhang(s)))]),s.JID?t("span",{staticClass:"tag tag-section"},[e._v(e._s(e.delJie(s,s.JID)))]):e._e()])])],1)}),0===e.stData.length?t("div",{staticClass:"empty-question"},[t("a-icon",{attrs:{type:"file-text"}}),t("span",[e._v("暂无匹配试题")])],1):e._e()],2),t("div",{staticClass:"pagination-bar"},[t("div",{staticClass:"pagination-left"},[t("span",[e._v("每页")]),t("a-select",{staticClass:"page-size-select",staticStyle:{width:"70px"},on:{change:e.cleckSearch},model:{value:e.gdstParams.pageSize,callback:function(t){e.$set(e.gdstParams,"pageSize",t)},expression:"gdstParams.pageSize"}},[t("a-select-option",{attrs:{value:10}},[e._v("10")]),t("a-select-option",{attrs:{value:20}},[e._v("20")]),t("a-select-option",{attrs:{value:50}},[e._v("50")])],1),t("span",[e._v("条")])],1),t("div",{staticClass:"pagination-right"},[t("span",[e._v("第"+e._s(e.gdstParams.pageNo)+"/共"+e._s(Math.ceil(e.gdstParams.total/e.gdstParams.pageSize))+"页,共"+e._s(e.gdstParams.total)+"条")]),t("a-button",{staticClass:"page-btn",attrs:{disabled:e.gdstParams.pageNo<=1},on:{click:e.prevPage}},[e._v("上一页")]),t("a-button",{staticClass:"page-btn",attrs:{disabled:e.gdstParams.pageNo>=Math.ceil(e.gdstParams.total/e.gdstParams.pageSize)},on:{click:e.nextPage}},[e._v("下一页")])],1)])]),t("div",{staticClass:"right-panel"},[t("div",{staticClass:"selected-header"},[t("span",{staticClass:"selected-title"},[e._v("已选试题")]),e.WTJH.length?t("span",{staticClass:"selected-count"},[e._v(e._s(e.WTJH.length)+"题")]):e._e()]),t("div",{staticClass:"selected-list-wrapper"},[e._l(e.groupedWTJH,function(s,i){return t("div",{key:i,staticClass:"group-section"},[t("div",{staticClass:"group-header"},[t("span",{staticClass:"group-name"},[e._v(e._s(s.name)+"("+e._s(s.list.length)+"题,共"+e._s(s.totalFS)+"分)")]),t("div",{staticClass:"group-actions"},[t("a-input-number",{staticStyle:{width:"60px"},attrs:{min:0,max:100,size:"small",placeholder:"分值"},model:{value:s.batchFS,callback:function(t){e.$set(s,"batchFS",t)},expression:"group.batchFS"}}),t("a-button",{staticClass:"batch-btn",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.batchSetFS(s)}}},[e._v("批量设分")])],1)]),e._l(s.list,function(s,i){return t("div",{key:s.ID,staticClass:"group-item"},[t("span",{staticClass:"item-index"},[e._v(e._s(i+1)+".")]),t("span",{staticClass:"item-title"},[e._v(e._s(s.TM))]),t("a-input-number",{staticStyle:{width:"60px"},attrs:{min:0,size:"small"},on:{blur:e.getTotal},model:{value:s.FS,callback:function(t){e.$set(s,"FS",t)},expression:"item.FS"}}),t("a-button",{staticClass:"delete-btn",attrs:{type:"text",size:"small"},on:{click:function(t){return e.removeSelected(s.ID)}}},[e._v("×")])],1)})],2)}),0===e.WTJH.length?t("div",{staticClass:"empty-tip"},[t("a-icon",{attrs:{type:"file-text"}}),t("span",[e._v("暂无已选试题")])],1):e._e()],2)])])]):e._e(),e.form.LX?t("div",{staticClass:"result-footer"},[t("div",{staticClass:"result-card"},[1==e.form.LX?t("div",{staticClass:"result-content"},[t("div",{staticClass:"result-summary"},[t("span",[e._v("试卷总题数 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.tsTotal))]),e._v(" 道,共 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.fsTotal))]),e._v(" 分")]),100!=e.fsTotal?t("span",{staticClass:"result-warning"},[e._v("请配置为100分!")]):t("span",{staticClass:"result-success"}
1,[e._v("已配置为100分")])])]):e._e(),2==e.form.LX?t("div",{staticClass:"result-content"},[t("div",{staticClass:"result-summary"},[e._v(" 试卷总题数 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.sjzts))]),e._v(" 道,其中简单题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.jdzts))]),e._v(" 道、适中题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.szzts))]),e._v(" 道、困难题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.knzts))]),e._v(" 道、随机难度题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.bxzts))]),e._v(" 道,共 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.sjTotal))]),e._v(" 分 "),100!=e.sjTotal?t("span",{staticClass:"result-warning"},[e._v(",请配置为100分!")]):t("span",{staticClass:"result-success"},[e._v(",已配置为100分")])])]):e._e(),3==e.form.LX?t("div",{staticClass:"result-content"},[t("div",{staticClass:"result-summary"},[e._v(" 试卷总题数 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.WTJH.length))]),e._v(" 道, "),t("span",[e._v("其中单选题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.lx0))]),e._v(" 道 ")]),t("span",[e._v("多选题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.lx1))]),e._v(" 道 ")]),t("span",[e._v("填空题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.lx2))]),e._v(" 道 ")]),t("span",[e._v("简答题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.lx3))]),e._v(" 道 ")]),t("span",[e._v("判断题 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.lx4))]),e._v(" 道 ")]),e._v(",共 "),t("b",{staticClass:"highlight-num"},[e._v(e._s(e.gdstTotal.total))]),e._v(" 分 "),100!=e.gdstTotal.total?t("span",{staticClass:"result-warning"},[e._v(",请配置为100分!")]):t("span",{staticClass:"result-success"},[e._v(",已配置为100分")])])]):e._e()]),e.isDisabled?e._e():t("div",{staticClass:"action-buttons"},[t("a-button",{staticClass:"action-btn-check",on:{click:e.testPaperPaper}},[e._v("一键检测")]),t("a-button",{staticClass:"action-btn-save",attrs:{type:"primary"},on:{click:e.testPaperSave}},[e._v("检测保存")])],1)]):e._e()])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-header"},[t("span",{staticClass:"content-title"},[e._v("配置题型")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-header"},[t("span",{staticClass:"content-title"},[e._v("从题库选择试题")])])}],a=(s(96305),s(38135)),r=s(57888),o=s(69870),l=s(17654),c=s(9133),u=(s(2008),s(50113),s(48980),s(62062),s(34782),s(54554),s(26099),s(27495),s(38781),s(25440),s(23500),s(10318)),d=s(3067),h=s(74696),p=s(51920),m={name:"AddTest",props:{title:{type:String,default:""},isDisabled:{type:Boolean,default:!1},itemData:{type:Object,default:function(){}},testVisible:{type:Boolean,default:!1}},watch:{testVisible:{handler:function(e,t){e&&"编辑试卷"==this.title?(this.getSimpleList(),this.getPaperInfo(this.itemData.ID)):e&&"预览试卷"==this.title?this.getPaperInfo(this.itemData.ID):e&&"添加试卷"==this.title&&this.initData()},immediate:!0,deep:!0}},data:function(){return{stDataAll:[],WTJH:[],selectedRowKeys:[],type3STJH:[],checkedList:[],STND:[{name:"简单",value:"0"},{name:"适中",value:"1"},{name:"困难",value:"2"}],gdstParams:{LX:"",TM:"",ND:void 0,JID:void 0,ZID:void 0,pageSize:10,pageNo:1,total:0},params:{pageSize:10,total:0,pageNo:1},GJZ:"",txColumns:[{title:"",dataIndex:"isChecked",key:"isChecked",width:60,scopedSlots:{customRender:"isChecked"}},{title:"题型",dataIndex:"name",key:"name",width:100,scopedSlots:{customRender:"name"}},{title:"难度",dataIndex:"STND",key:"STND",width:90,scopedSlots:{customRender:"STND"}},{title:"数量",dataIndex:"sts",key:"sts",width:80,scopedSlots:{customRender:"sts"}},{title:"每题分值",dataIndex:"mtfz",key:"mtfz",width:100,scopedSlots:{customRender:"mtfz"}},{title:"题库可用",dataIndex:"total",key:"total",width:100,scopedSlots:{customRender:"total"}}],sysColumns:[{title:"题型",dataIndex:"LX",key:"LX",width:90,scopedSlots:{customRender:"LX"}},{title:"试题难度",dataIndex:"STND",key:"STND",width:90,scopedSlots:{customRender:"STND"}}
1,{title:"章",dataIndex:"SSZ",key:"SSZ",width:120,scopedSlots:{customRender:"SSZ"}},{title:"节",dataIndex:"SSJ",key:"SSJ",width:120,scopedSlots:{customRender:"SSJ"}},{title:"数量",dataIndex:"SL",key:"SL",width:80,scopedSlots:{customRender:"SL"}},{title:"分值",dataIndex:"MTFZ",key:"MTFZ",width:80,scopedSlots:{customRender:"MTFZ"}},{title:"分值",dataIndex:"ZFZ",key:"ZFZ",width:100,scopedSlots:{customRender:"ZFZ"}},{title:"操作",key:"action",width:80,scopedSlots:{customRender:"action"}}],stColumns:[{title:"章",dataIndex:"ZHANG",width:80,scopedSlots:{customRender:"ZHANG"}},{title:"节",dataIndex:"JID",width:80,scopedSlots:{customRender:"JID"}},{title:"类型",dataIndex:"actionLX",width:80,scopedSlots:{customRender:"actionLX"}},{title:"试题难度",dataIndex:"STND",width:80,scopedSlots:{customRender:"STND"}},{title:"题干",dataIndex:"actionTG",scopedSlots:{customRender:"actionTG"}}],selectedColumns:[{title:"序号",dataIndex:"index",key:"index",width:60,scopedSlots:{customRender:"index"}},{title:"类型",dataIndex:"actionLX",width:80,scopedSlots:{customRender:"actionLX"}},{title:"题干",dataIndex:"actionTG",scopedSlots:{customRender:"actionTG"}},{title:"分值",dataIndex:"FS",key:"FS",width:80,scopedSlots:{customRender:"FS"}},{title:"操作",key:"action",width:80,scopedSlots:{customRender:"action"}}],data:[],stData:[],form:{MC:"",LX:"1"},rules:{MC:[{required:!0,message:"请输入试卷标题",trigger:"blur"}]},txList:[{lx:"0",isChecked:!0,name:"单选题",sts:"",mtfz:"",STND:""},{lx:"1",isChecked:!0,name:"多选题",sts:"",mtfz:"",STND:""},{lx:"2",isChecked:!0,name:"填空题",sts:"",mtfz:"",STND:""},{lx:"3",isChecked:!0,name:"简答题",sts:"",mtfz:"",STND:""},{lx:"4",isChecked:!0,name:"判断题",sts:"",mtfz:"",STND:""}],txList1:[{lx:"0",isChecked:!0,name:"单选题"},{lx:"1",isChecked:!0,name:"多选题"},{lx:"2",isChecked:!0,name:"填空题"},{lx:"3",isChecked:!0,name:"简答题"},{lx:"4",isChecked:!0,name:"判断题"}],chapterList:[],jList:[],gdstTotal:{},sysData:[],txObj:{0:"单选题",1:"多选题",2:"填空题",3:"简答题",4:"判断题"},jListObj:{},isOrder:!1}},mounted:function(){this.advSet()},computed:{tsTotal:function(){var e=0;return this.txList.forEach(function(t){t.sts&&""!=t.sts&&t.isChecked&&(e+=Number(t.sts))}),e},fsTotal:function(){var e=0;return this.txList.forEach(function(t){t.sts&&""!=t.sts&&t.mtfz&&""!=t.mtfz&&(e+=Number(t.sts)*Number(t.mtfz))}),e},sjTotal:function(){var e=0;return this.sysData.forEach(function(t){""!=t.SL&&""!=t.MTFZ&&(e+=Number(t.SL)*Number(t.MTFZ))}),e},sjzts:function(){var e=0;return this.sysData.forEach(function(t){""!=t.SL&&(e+=Number(t.SL))}),e},jdzts:function(){var e=0;return this.sysData.forEach(function(t){"0"===t.STND&&""!=t.SL&&(e+=Number(t.SL))}),e},szzts:function(){var e=0;return this.sysData.forEach(function(t){"1"===t.STND&&""!=t.SL&&(e+=Number(t.SL))}),e},knzts:function(){var e=0;return this.sysData.forEach(function(t){"2"===t.STND&&""!=t.SL&&(e+=Number(t.SL))}),e},bxzts:function(){var e=0;return this.sysData.forEach(function(t){""===t.STND&&""!=t.SL&&(e+=Number(t.SL))}),e},groupedWTJH:function(){var e=this,t={0:"单选题",1:"多选题",2:"填空题",3:"简答题",4:"判断题"},s=[],i=[0,1,2,3,4];return i.forEach(function(i){var n=e.WTJH.filter(function(e){return e.LX==i});if(n.length){var a=n.reduce(function(e,t){return e+Number(t.FS||0)},0);s.push({lx:i,name:t[i],list:n,totalFS:a,batchFS:void 0})}}),s}},methods:{advSet:function(){var e=this;this.$route.query.id;(0,p.NM)(this.$route.query.id).then(function(t){var s;200===(null===t||void 0===t?void 0:t.code)?e.isOrder="2"!==(null===(s=t.result)||void 0===s||null===(s=s.KCXX)||void 0===s?void 0:s.ZJXH):e.$message.error(null===t||void 0===t?void 0:t.message)})},handleClose:function(){this.$emit("cancel")},exportPaper:function(){this.$message.info("导出功能开发中")},goDetail:function(){var e=[],t=[],s=[],i=[],n=[];this.WTJH.forEach(function(a){0==a.LX?e.push(a):1==a.LX?t.push(a):2==a.LX?s.push(a):3==a.LX?i.push(a):4==a.LX&&n.push(a)});var a=[];e.length&&a.push({LX:"0",WTS:e.length,WTJH:e}),t.length&&a.push({LX:"1",WTS:t.length,WTJH:t}),s.length&&a.push({LX:"2",WTS:s.length,WTJH:s}),i.length&&a.push({LX:"3",WTS:i.length,WTJH:i}),n.length&&a.push({LX:"4",WTS:n.length,WTJH:n}),localStorage.setItem("previewSJJH",JSON.stringify(a)),window.open("/courseManagement/previewExam","_blank")},getTotal:function(){var e=this;this.gdstTotal={total:0,lx0:0,lx1:0,lx2:0,lx3:0,lx4:0},this.WTJH.forEach(function(t){t.FS&&""!=t.FS&&(e.gdstTotal.total+=Number(t.FS)),0==t.LX&&e.gdstTotal.lx0++,1==t.LX&&e.gdstTotal.lx1++,2==t.LX&&e.gdstTotal.lx2++,3==t.LX&&e.gdstTotal.lx3++,4==t.LX&&e.gdstTotal.lx4++})},removeSelected:function(e){var t=this.WTJH.findIndex(function(t){return t.ID===e});-1!==t&&this.WTJH.splice(t,1),this.selectedRowKeys=this.selectedRowKeys.filter(function(t){return t!==e}),this.getTotal()},batchSetFS:function(e){var t=this;void 0!==e.batchFS&&null!==e.batchFS&&""!==e.batchFS?(e.list.forEach(function(s){t.$set(s,"FS",e.batchFS)}),this.getTotal()):this.$message.warning("请输入分值")},addClick:function(){var e=this;this.checkedList=(0,c.A)(this.selectedRowKeys),this.WTJH=[],this.checkedList.forEach(function(t){e.stDataAll.forEach(function(s){t===s.ID&&e.WTJH.push(s)})}),this.WTJH.forEach(function(t){e.stData.forEach(function(e){t.ID===e.ID&&(t.FS=e.FS)})});var t=[];this.WTJH.forEach(function(s){var i=s;e.stData.forEach(function(e){s.ID===e.ID&&(s.FS=e.FS,i=e)}),t.push(i)}),this.WTJH=t,this.getTotal()},onSelectChange:function(e){this.selectedRowKeys=e},onSingleSelect:function(e,t){e.target.checked?this.selectedRowKeys.includes(t)||this.selectedRowKeys.push(t):this.selectedRowKeys=this.selectedRowKeys.filter(function(e){return e!==t})},prevPage:function(){this.gdstParams.pageNo>1&&(this.gdstParams.pageNo--,this.getProblemsList())},nextPage:function(){var e=Math.ceil(this.gdstParams.total/this.gdstParams.pageSize);this.gdstParams.pageNo<e&&(this.gdstParams.pageNo++,this.getProblemsList())},getProblemsList:function(){var e=this,t=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:-1,s={KCID:this.$route.query.id,ND:this.gdstParams.ND,JID:this.gdstParams.JID,ZID:this.gdstParams.ZID,TM:this.gdstParams.TM,LX:-1===t?this.gdstParams.LX:t,pageNo:this.gdstParams.pageNo,pageSize:this.gdstParams.pageSize};-1!==t&&(this.gdstParams.LX=t),(0,h.f)(s,this.$route.query.id).then(function(t){var s;if(200===t.code&&null!==(s=t.result)&&void 0!==s&&s.length){t.result.forEach(function(e){e.FS=""}),e.stData=t.result;var i=[];e.WTJH.forEach(function(t){var s=t;e.stData.forEach(function(e){t.ID==e.ID&&(e.FS=t.FS,s=e)}),i.push(s)}),e.WTJH=i;var n=[];e.stDataAll.forEach(function(e){n.push(e.ID)}),e.stData.forEach(function(t){-1==n.indexOf(t.ID)&&e.stDataAll.push(t)}),e.gdstParams.total=Number(t.page.totalCount)}else e.stData=[],e.gdstParams.total=0,200!=t.code&&e.$message.error(t.message)})},changeZ:function(e){var t;this.jList=(null===(t=this.chapterList.filter(function(t){return e==t.ZJID})[0])||void 0===t?void 0:t.ZLJH)||[],this.gdstParams.JID=void 0,this.cleckSearch()},delZhang:function(e,t){var s,i="-";return null===(s=this.chapterList)||void 0===s||s.find(function(t,s){t.ZJID==e.ZID&&(i="第".concat(s+1,"章 ")+t.ZJMC)}),t&&(i=i.substr(0,t)+"..."),i},delJie:function(e,t,s){var i,n="-";return null===(i=this.chapterList)||void 0===i||i.map(function(s){var i;s.ZJID===e.ZID&&(null===s||void 0===s||null===(i=s.ZLJH)||void 0===i||i.map(function(e,s){e.ZJID===t&&(n="第".concat(s+1,"节 ")+e.ZJMC)}))}),s&&(n=n.substr(0,s)+"..."),n},changeLx:function(e){1!==e.target.value&&this.getSimpleList(),3==e.target.value&&this.getProblemsList()},getSimpleList:function(){var e=this,t={KCID:this.$route.query.id,FW:2};(0,d.Ly)(t).then(function(t){var s;200===t.code&&null!==(s=t.result)&&void 0!==s&&s.length?e.chapterList=t.result:(e.chapterList=[],200!=t.code&&e.$message.error(t.message))})},initData:function(){this.form={MC:"",LX:"1"},this.WTJH=[],this.sysData=[],this.gdstTotal={},this.selectedRowKeys=[],this.txList=[{lx:"0",isChecked:!0,name:"单选题",sts:"",mtfz:"",STND:""},{lx:"1",isChecked:!0,name:"多选题",sts:"",mtfz:"",STND:""},{lx:"2",isChecked:!0,name:"填空题",sts:"",mtfz:"",STND:""},{lx:"3",isChecked:!0,name:"简答题",sts:"",mtfz:"",STND:""},{lx:"4",isChecked:!0,name:"判断题",sts:"",mtfz:"",STND:""}]},getPaperInfo:function(e){var t=this,s={ID:e,KCID:this.$route.query.id};(0,u.hQ)(s).then(function(){var e=(0,l.A)((0,o.A)().mark(function e(s){var i,n,a,r,l;return(0,o.A)().wrap(function(e){while(1)switch(e.prev=e.next){case 0:200===s.code&&s.result&&(1==s.result.LX?(t.form={LX:s.result.LX,MC:s.result.MC},t.txList.forEach(function(e){e.isChecked=!1}),null===(i=s.result)||void 0===i||null===(i=i.SJJH)||void 0===i||i.forEach(function(e){t.txList.forEach(function(t){e.LX==t.lx&&(t.isChecked=!0,t.sts=e.WTS,t.mtfz=e.FS)})})):3==s.result.LX?(t.form={LX:s.result.LX,MC:s.result.MC},t.type3STJH=null===(n=s.result)||void 0===n?void 0:n.SJJH,t.WTJH=[],t.type3STJH.forEach(function(e){var s;null===(s=e.WTJH)||void 0===s||s.forEach(function(e){t.WTJH.push(e)})}),t.getTotal(),t.getSimpleList(),t.selectedRowKeys=[],r=!0,null===(a=s.result)||void 0===a||null===(a=a.SJJH)||void 0===a||a.forEach(function(e){var s;t.getProblemsList(e.LX),r=!1,null===e||void 0===e||null===(s=e.WTJH)||void 0===s||s.forEach(function(e){t.selectedRowKeys.push(e.ID)})}),r&&setTimeout(function(){t.getProblemsList()},1e3)):2==s.result.LX&&(t.form={LX:s.result.LX,MC:s.result.MC},t.sysData=[],null===(l=s.result)||void 0===l||null===(l=l.SJJH)||void 0===l||l.forEach(function(e,s){var i=[],n=t.generateCryptoUniqueId();null!==e&&void 0!==e&&e.ZID&&t.chapterList.map(function(s){s.ZJID===e.ZID&&(i=s.ZLJH,t.$set(t.jListObj,[n],s.ZLJH))}),t.sysData.push({lx:e.LX,LX:t.txObj[e.LX],MTFZ:e.FS,SL:e.WTS,SSJ:e.JID,STND:e.ND,SSZ:e.ZID,order:n,jList:i})})));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())},paginationChange:function(e){this.gdstParams.pageNo=e,this.getProblemsList()},cleckSearch:function(){this.gdstParams.pageNo=1,this.getProblemsList()},testPaperPaper:function(){var e=this;if(this.form.MC){if("1"==this.form.LX){var t=0;if(this.txList.forEach(function(e){e.sts&&""!=e.sts&&e.mtfz&&""!=e.mtfz&&(t+=Number(e.sts)*Number(e.mtfz))}),100!=t)return void this.$message.warning("系统一键组题需配置为100分");var s=[];this.txList.forEach(function(e){e.isChecked&&e.mtfz&&""!=e.mtfz&&e.sts&&""!=e.sts&&s.push({LX:e.lx,FS:e.mtfz,WTS:e.sts,ND:e.STND})});var i={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:s};(0,u.nt)(i,this.$route.query.id).then(function(t){200===t.code?e.$message.success("检测成功"):e.$message.warning(t.message)})}else if(3==this.form.LX){var n=0;if(this.WTJH.forEach(function(e){e.FS&&""!=e.FS&&(n+=Number(e.FS))}),100!=n)return void this.$message.warning("系统一键组题需配置为100分");var a=[],r=[],o=[],l=[],c=[];this.WTJH.forEach(function(e){0==e.LX?a.push(e):1==e.LX?r.push(e):2==e.LX?o.push(e):3==e.LX?l.push(e):4==e.LX&&c.push(e)});var d=[];a.length&&d.push({LX:"0",WTS:a.length,WTJH:a}),r.length&&d.push({LX:"1",WTS:r.length,WTJH:r}),o.length&&d.push({LX:"2",WTS:o.length,WTJH:o}),l.length&&d.push({LX:"3",WTS:l.length,WTJH:l}),c.length&&d.push({LX:"4",WTS:c.length,WTJH:c});var h={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:d};(0,u.nt)(h,this.$route.query.id).then(function(t){200===t.code?e.$message.success("检测成功"):e.$message.warning(t.message)})}else if("2"==this.form.LX){if(this.sysData.forEach(function(t){if(""==t.WTS||""==t.FS)return e.$message.warning("数量和每题分值不能为空")}),100!=this.sjTotal)return void this.$message.warning("系统一键组题需配置为100分");var p=[];this.sysData.forEach(function(e){e.MTFZ&&""!=e.MTFZ&&e.SL&&""!=e.SL&&p.push({LX:e.lx,FS:e.MTFZ,WTS:e.SL,JID:e.SSJ,ND:e.STND,ZID:e.SSZ})});var m={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:p};(0,u.nt)(m,this.$route.query.id).then(function(t){200===t.code?e.$message.success("检测成功"):e.$message.warning(t.message)})}}else this.$message.warning("请输入试卷标题")},testPaperSave:function(){var e=this;if(this.form.MC){if("1"==this.form.LX){var t=0;if(this.txList.forEach(function(e){e.sts&&""!=e.sts&&e.mtfz&&""!=e.mtfz&&(t+=Number(e.sts)*Number(e.mtfz))}),100!=t)return void this.$message.warning("系统一键组题需配置为100分");var s=[];this.txList.forEach(function(e){e.isChecked&&e.mtfz&&""!=e.mtfz&&e.sts&&""!=e.sts&&s.push({LX:e.lx,FS:e.mtfz,WTS:e.sts,ND:e.STND})});var i={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:s};"添加试卷"==this.title?(0,u.s)(i,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}):(i.ID=this.itemData.ID,(0,u.OV)(i,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}))}else if(3==this.form.LX){var n=0;if(this.WTJH.forEach(function(e){e.FS&&""!=e.FS&&(n+=Number(e.FS))}),100!=n)return void this.$message.warning("系统一键组题需配置为100分");var a=[],r=[],o=[],l=[],c=[];this.WTJH.forEach(function(e){0==e.LX?a.push(e):1==e.LX?r.push(e):2==e.LX?o.push(e):3==e.LX?l.push(e):4==e.LX&&c.push(e)});var d=[];a.length&&d.push({LX:"0",WTS:a.length,WTJH:a}),r.length&&d.push({LX:"1",WTS:r.length,WTJH:r}),o.length&&d.push({LX:"2",WTS:o.length,WTJH:o}),l.length&&d.push({LX:"3",WTS:l.length,WTJH:l}),c.length&&d.push({LX:"4",WTS:c.length,WTJH:c});var h={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:d};"添加试卷"==this.title?(0,u.s)(h,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}):(h.ID=this.itemData.ID,(0,u.OV)(h,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}))}else if("2"==this.form.LX){if(this.sysData.forEach(function(t){if(""==t.WTS||""==t.FS)return e.$message.warning("数量和每题分值不能为空")}),100!=this.sjTotal)return void this.$message.warning("系统一键组题需配置为100分");var p=[];this.sysData.forEach(function(e){e.MTFZ&&""!=e.MTFZ&&e.SL&&""!=e.SL&&p.push({LX:e.lx,FS:e.MTFZ,WTS:e.SL,JID:e.SSJ,ND:e.STND,ZID:e.SSZ})});var m={MC:this.form.MC,LX:this.form.LX,KCID:this.$route.query.id,SJJH:p};"添加试卷"==this.title?(0,u.s)(m,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}):(m.ID=this.itemData.ID,(0,u.OV)(m,this.$route.query.id).then(function(t){200===t.code?(e.$message.success("操作成功"),e.$emit("success")):e.$message.warning(t.message)}))}}else this.$message.warning("请输入试卷标题")},onChange:function(e,t){e.target.checked||(t.sts=0)},generateCryptoUniqueId:function(){var e=(new Date).getTime();window.performance&&"function"===typeof window.performance.now&&(e+=performance.now());var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var s=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?s:3&s|8).toString(16)});return t},deleteTxItem:function(e){this.txList.splice(e,1)},txChange:function(e){var t=this.sysData.length-1-this.sysData.slice().reverse().findIndex(function(t){return t.lx===e.lx}),s=(0,r.A)((0,r.A)({STND:"",SSZ:void 0,SSJ:void 0,MTFZ:"",SL:"",ZFZ:""},e),{},{order:this.generateCryptoUniqueId(),LX:this.txObj[e.lx]});-1!==t?this.sysData.splice(t,0,s):this.sysData.push(s)},changeZTable:function(e,t,s,i){var n,a,r=(null===t||void 0===t||null===(n=t.data)||void 0===n||null===(n=n.attrs)||void 0===n||null===(n=n.attr)||void 0===n?void 0:n.ZLJH)||[];s["jList"]=(null===t||void 0===t||null===(a=t.data)||void 0===a||null===(a=a.attrs)||void 0===a||null===(a=a.attr)||void 0===a?void 0:a.ZLJH)||[],s["SSJ"]=void 0,this.$set(this.jListObj,[s.order],r)},changeRuleLX:function(e,t){t.LX=this.txObj[e]},addRuleRow:function(){var e={STND:"",SSZ:void 0,SSJ:void 0,MTFZ:"",SL:"",lx:"0",LX:"单选题",order:this.generateCryptoUniqueId()};this.sysData.push(e)},stndChagne:function(e){},deleteRow:function(e,t){var s=this;
1a.A.confirm({title:"提示",content:"您确定要删除吗?",okText:"确定",cancelText:"取消",onOk:function(){s.sysData.splice(t,1)},onCancel:function(){}})}}},f=m,v=s(81656),g=(0,v.A)(f,i,n,!1,null,"20f4dd86",null),C=g.exports},24935:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return Z}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"course-materials-container"},[t("SharedResource")],1)},n=[],a=(s(79432),function(){var e=this,t=e._self._c;return t("div",{staticClass:"sharedResource-container"},[t("ProfileResource",{attrs:{entryType:1}})],1)}),r=[],o=s(96754),l={name:"SharedResource",components:{ProfileResource:o.A}},c=l,u=s(81656),d=(0,u.A)(c,a,r,!1,null,"1d0aa46a",null),h=d.exports,p=(s(27495),s(5746),function(){var e=this,t=e._self._c;return t("div",{staticClass:"questionBankManagement-container"},[t("div",{staticClass:"questionBankManagement-box"},[t("div",{staticClass:"header-box"},[t("div",{staticClass:"action-box"},[t("a-button",{attrs:{type:"primary"}},[e._v(" 添加试题 ")]),t("a-button",{attrs:{type:"primary"}},[e._v(" 个人题库导入 ")]),t("a-button",{attrs:{type:"primary"}},[e._v(" 批量导入 ")])],1),t("div",{staticClass:"questionBankManagement-search-box"},[t("a-select",{staticStyle:{"margin-right":"8px"},attrs:{"default-value":"sjlx"}},[t("a-select-option",{attrs:{value:"sjlx"}},[e._v(" 试题类型 ")])],1),t("a-select",{staticStyle:{"margin-right":"8px"},attrs:{"default-value":"sjlx"}},[t("a-select-option",{attrs:{value:"sjlx"}},[e._v(" 归属章 ")])],1),t("a-select",{staticStyle:{"margin-right":"8px"},attrs:{"default-value":"sjlx"}},[t("a-select-option",{attrs:{value:"sjlx"}}
1,[e._v(" 归属节 ")])],1),t("a-input-search",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入课程或学校关键词备份","enter-button":""},on:{search:e.cleckSearch},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1)]),t("a-table",{staticStyle:{"margin-top":"21px"},attrs:{columns:e.columns,"data-source":e.data,bordered:"",pagination:!1,rowClassName:function(e,t){return t%2===1?"table-striped":null}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(s,i){return t("span",{on:{click:e.handleQuestionBankManagementAudit}},[t("a",{staticStyle:{"margin-right":"15px"}},[e._v(" 编辑 ")]),t("a",{staticClass:"danger"},[e._v(" 移除 ")])])}},{key:"actionTM",fn:function(s,i){return t("span",{},[t("span",{domProps:{innerHTML:e._s(i.TM)}})])}}])}),t("div",{staticClass:"last-content ant-pro-grid-content wide"},[e.pagination.total>0?t("a-pagination",{style:{textAlign:"right"},attrs:{pageSize:10,"show-total":function(e){return"共 ".concat(e," 条")},current:e.pagination.pageNo,"show-quick-jumper":"",total:e.pagination.total},on:{change:e.handleTableChange}}):e._e()],1)],1),t("a-modal",{staticClass:"modal-box",attrs:{width:800,centered:!0,cancelText:" ",footer:null,title:e.questionBankManagementTitle,visible:e.questionBankManagementVisible},on:{cancel:e.questionBankManagementCancel}},[t("a-form-model",{attrs:{model:e.form,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[t("a-form-model-item",{attrs:{label:"审核结果"}},[t("a-radio-group",{model:{value:e.form.resource,callback:function(t){e.$set(e.form,"resource",t)},expression:"form.resource"}},[t("a-radio",{attrs:{value:"1"}},[e._v(" 通过 ")]),t("a-radio",{attrs:{value:"2"}},[e._v(" 不通过 ")])],1)],1),t("a-form-model-item",{attrs:{label:"备注说明"}},[t("a-input",{attrs:{type:"textarea","auto-size":{minRows:3,maxRows:5}},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),t("a-form-model-item",{attrs:{label:"证书预览"}},[t("img",{staticStyle:{width:"361px",height:"253px"},attrs:{src:s(21639)}})])],1),t("div",{staticClass:"btn-box"},[t("a-button",{staticClass:"btn",staticStyle:{width:"178px"},attrs:{type:"primary"},on:{click:e.questionBankManagementSave}},[e._v("添 加")])],1)],1)],1)}),m=[],f=s(69870),v=s(17654),g=s(57888),C=s(74696),y=[{title:"章",dataIndex:"name",key:"name"},{title:"节",dataIndex:"age",key:"age"},{title:"类型",dataIndex:"LX",key:"LX"},{title:"试题难度",dataIndex:"address",key:"address"},{title:"题干",key:"actionTM",scopedSlots:{customRender:"actionTM"}},{title:"创建时间",dataIndex:"CJSJ",key:"CJSJ"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],b=[{key:"1",name:"J",age:32,address:"New",tags:["nice","developer"]},{key:"2",name:"Ji",age:42,address:"Londo",tags:["loser"]},{key:"3",name:"Jo",age:32,address:"S",tags:["cool","teacher"]}],L={name:"QuestionBankManagement",data:function(){return{search:"",activeMenu:"join",data:b,kcid:"",columns:y,pagination:{},questionBankManagementTitle:"申请审核",questionBankManagementVisible:!1,labelCol:{span:4},wrapperCol:{span:14},form:{name:"",region:void 0,date1:void 0,delivery:!1,type:[],resource:"",desc:""},options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],value:""}},mounted:function(){this.$route.query.id&&(this.kcid=this.$route.query.id,this.getList())},methods:{cleckSearch:function(){},handleTableChange:function(e,t,s){this.pagination.pageNo=e,this.getList()},getList:function(){var e=this;(0,C.f)((0,g.A)({},this.pagination),this.kcid).then(function(){var t=(0,v.A)((0,f.A)().mark(function t(s){return(0,f.A)().wrap(function(t){while(1)switch(t.prev=t.next){case 0:200===s.code?e.data=s.result||[]:e.$message.error(s.message);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},questionBankManagementCancel:function(){this.questionBankManagementVisible=!1},questionBankManagementSave:function(){},handleQuestionBankManagementAudit:function(){this.questionBankManagementVisible=!0}}},x=L,D=(0,u.A)(x,p,m,!1,null,"0eaf67b8",null),k=D.exports,_=(s(62010),function(){var e,t,i=this,n=i._self._c;return n("div",{staticClass:"test-paper-container"},[n("div",{staticClass:"test-paper-box"},[n("div",{staticClass:"header-box"},[i.canEdit?n("div",{staticClass:"action-box"},[n("a-button",{attrs:{type:"primary"},on:{click:i.addTest}},[i._v(" 添加试卷 ")])],1):i._e(),n("div",{staticClass:"test-paper-search-box"},[n("a-select",{staticStyle:{"margin-right":"8px",width:"140px"},on:{change:i.onChange},model:{value:i.params.LX,callback:function(e){i.$set(i.params,"LX",e)},expression:"params.LX"}},i._l(i.sjList,function(e,t){return n("a-select-option",{key:t,attrs:{value:e.value,title:e.name}},[i._v(" "+i._s(e.name)+" ")])}),1),n("a-input-search",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入名称","enter-button":""},on:{search:i.cleckSearch},model:{value:i.params.MC,callback:function(e){i.$set(i.params,"MC",e)},expression:"params.MC"}})],1)]),n("a-table",{staticStyle:{"margin-top":"21px"},attrs:{columns:i.columns,"data-source":i.sjData,pagination:!1,bordered:"",rowClassName:function(e,t){return t%2===1?"table-striped":null}},scopedSlots:i._u([{key:"action",fn:function(e,t){return n("span",{},[n("a",{on:{click:function(e){return i.edit(t)}}},[i._v(" 编辑 ")]),n("a",{staticClass:"danger",on:{click:function(e){return i.deleteItem(t)}}},[i._v(" 移除 ")])])}},{key:"actionLX",fn:function(e,t){return n("span",{},[n("span",[i._v(i._s("1"==t.LX?"系统一键组题":"2"==t.LX?"系统组题-自主章节":"固定试题"))])])}},{key:"actionSJ",fn:function(e,t){return n("span",{},[n("span",[i._v(i._s(i._f("nyr")(t.CJSJ)))])])}}])}),(null===(e=i.params)||void 0===e?void 0:e.total)>
10?n("div",{staticClass:"last-content"},[n("a-pagination",{attrs:{pageSize:i.params.pageSize,"show-total":function(e){return"共 ".concat(e," 条")},"show-quick-jumper":"",current:i.params.pageNo,total:null===(t=i.params)||void 0===t?void 0:t.total},on:{change:i.handleTableChange}})],1):i._e()],1),n("a-modal",{staticClass:"modal-box",attrs:{width:800,centered:!0,cancelText:" ",footer:null,title:i.testPaperTitle,visible:i.testPaperVisible},on:{cancel:i.testPaperCancel}},[n("a-form-model",{attrs:{model:i.form,"label-col":i.labelCol,"wrapper-col":i.wrapperCol}},[n("a-form-model-item",{attrs:{label:"审核结果"}},[n("a-radio-group",{model:{value:i.form.resource,callback:function(e){i.$set(i.form,"resource",e)},expression:"form.resource"}},[n("a-radio",{attrs:{value:"1"}},[i._v(" 通过 ")]),n("a-radio",{attrs:{value:"2"}},[i._v(" 不通过 ")])],1)],1),n("a-form-model-item",{attrs:{label:"备注说明"}},[n("a-input",{attrs:{type:"textarea","auto-size":{minRows:3,maxRows:5}},model:{value:i.form.desc,callback:function(e){i.$set(i.form,"desc",e)},expression:"form.desc"}})],1),n("a-form-model-item",{attrs:{label:"证书预览"}},[n("img",{staticStyle:{width:"361px",height:"253px"},attrs:{src:s(21639)}})])],1),n("div",{staticClass:"btn-box"},[n("a-button",{staticClass:"btn",staticStyle:{width:"178px"},attrs:{type:"primary"},on:{click:i.testPaperSave}},[i._v("添 加")])],1)],1),n("a-modal",{staticClass:"modal-box add-test",attrs:{width:"100%",bodyStyle:{height:"calc(100vh - 110px)",overflow:"auto"},footer:null,title:i.testTitle,visible:i.testVisible},on:{cancel:i.testCancel}},[n("AddTest",{attrs:{title:i.testTitle,isDisabled:i.isDisabled,testVisible:i.testVisible,itemData:i.itemData},on:{success:i.success}})],1),n("a-modal",{staticClass:"modal-box",attrs:{width:520,centered:!0,cancelText:" ",footer:null,title:"确认删除",visible:i.scVisible},on:{cancel:i.scHandleCancel}},[n("div",{staticClass:"modal-text"},[i._v("试卷删除后将无法恢复,确认删除?")]),n("div",{staticClass:"btn-box"},[n("a-button",{staticClass:"btn",attrs:{type:"danger"},on:{click:i.handleOk}},[i._v("确 认")]),n("a-button",{staticClass:"btn",staticStyle:{"margin-left":"20px"},on:{click:i.scHandleCancel}},[i._v("取消")])],1)])],1)}),S=[],A=s(18975),w=A.A,I=(0,u.A)(w,_,S,!1,null,"27bb0534",null),T=I.exports,J=s(15151),M=s(31816),X={name:"index",data:function(){return{isShowAIQ:!1,menuList:[{title:"课程共享资源",code:"SharedResource"},{title:"课程题库管理",code:"QuestionBankTeacher"},{title:"课程试卷管理",code:"TestPaperManagement"}],selectedMenu:"SharedResource"}},components:{AIQuestion:M.A,SharedResource:h,QuestionBankManagement:k,QuestionBankTeacher:J.A,TestPaperManagement:T},methods:{colseAiQ:function(e){var t=this;this.isShowAIQ=!1,setTimeout(function(){try{e.GRLY&&(t.$refs["QuestionBankTeacher"].getList(),t.$message.success("试题已添加,数据更新中。。。"))}catch(s){}},1e3)},toAIQuestion:function(){var e=this;this.isShowAIQ=!0,this.$nextTick(function(){e.$refs.AIQuestion.checkeds=[],e.$refs.AIQuestion.questions=[]})},handleChangeMenu:function(e){this.selectedMenu=e.code}},mounted:function(){this.$route.query.addCs&&(this.selectedMenu="TestPaperManagement");var e=localStorage.getItem("courseIndex");e&&(e=JSON.parse(e),3==e.JS&&(this.menuList=[{title:"课程共享资源",code:"SharedResource"}]))}},P=X,F=(0,u.A)(P,i,n,!1,null,"cc78c582",null),Z=F.exports},12216:function(e,t,s){"use strict";s.d(t,{Bs:function(){return C},Fe:function(){return h},Hp:function(){return l},Mx:function(){return r},NJ:function(){return L},P:function(){return y},Pb:function(){return u},R9:function(){return x},SO:function(){return f},Ve:function(){return p},ZQ:function(){return d},aP:function(){return a},e2:function(){return g},nO:function(){return D},oU:function(){return c},tE:function(){return o},uU:function(){return m},w9:function(){return b},xT:function(){return v}});var i=s(76471),n={teacherMyProblemsAdd:"/teacher/my/problems/add",teacherMyProblemsDelete:"/teacher/my/problems/delete",teacherMyProblemsInfo:"/teacher/my/problems/info",teacherMyProblemsList:"/teacher/my/problems/list",teacherMyProblemsUpdate:"/teacher/my/problems/update",teacherCourseExaminationResultInfo:"/teacher/course/examination/result/info",teacherCourseProblemsAdd:"/teacher/course/problems/add",teacherCourseProblemsDelete:"/teacher/course/problems/delete",teacherCourseProblemsBatchDelete:"/teacher/course/problems/batch/delete",teacherCourseProblemsStatistics:"/teacher/course/problems/stat",teacherCourseProblemsInfo:"/teacher/course/problems/info",teacherCourseProblemsList:"/teacher/course/problems/list",teacherCourseProblemsUpdate:"/teacher/course/problems/update",teacherCourseProblemsBatchChapterUpdate:"/teacher/course/problems/batch/chapter/update",teacherCourseProblemsBatchAdd:"/teacher/course/problems/batch/add",teacherExport:"/teacher/my/problems/export",teacherProblemsImport:"/teacher/my/problems/import",teacherCourseProblemsImport:"/teacher/course/problems/import",teacherCourseProblemsRecordInfo:"/teacher/course/problems/record/info",teacherCourseProblemsRecordList:"/teacher/course/problems/record/list"};function a(e){return(0,i.Ay)({url:n.teacherMyProblemsAdd,method:"post",data:e})}function r(e){return(0,i.Ay)({url:n.teacherMyProblemsDelete,method:"DELETE",params:e})}function o(e){return(0,i.Ay)({url:n.teacherMyProblemsInfo,method:"get",params:e})}function l(e){return(0,i.Ay)({url:n.teacherMyProblemsList,method:"get",params:e})}function c(e){return(0,i.Ay)({url:n.teacherMyProblemsUpdate,method:"post",data:e})}function u(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsAdd+"?KCID="+t,method:"post",data:e})}function d(e){return(0,i.Ay)({url:n.teacherCourseProblemsDelete,method:"DELETE",params:e})}function h(e){return(0,i.Ay)({url:n.teacherCourseProblemsBatchDelete,method:"DELETE",params:e})}function p(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsStatistics+"?KCID="+t,method:"get",params:e})}function m(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsInfo+"?KCID="+t,method:"get",params:e})}function f(e){return(0,i.Ay)({url:n.teacherCourseProblemsList,method:"get",params:e})}function v(e,t,s){return(0,i.Ay)({url:n.teacherCourseProblemsUpdate+"?KCID="+t+"&ID="+s,method:"post",data:e})}function g(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsBatchChapterUpdate+"?KCID="+t,method:"post",data:e})}function C(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsBatchAdd+"?KCID="+t,method:"post",data:e})}function y(e){return(0,i.Ay)({url:n.teacherExport,method:"get",params:e,responseType:"arraybuffer"})}function b(e){return(0,i.Ay)({url:n.teacherProblemsImport,method:"post",data:e.file})}function L(e,t){return(0,i.Ay)({url:n.teacherCourseProblemsImport+"?KCID="+t,method:"post",data:e.file})}function x(e){return(0,i.Ay)({url:n.teacherCourseProblemsRecordInfo,method:"get",params:e})}function D(e){return(0,i.Ay)({url:n.teacherCourseProblemsRecordList,method:"get",params:e})}},51920:function(e,t,s){"use strict";s.d(t,{Ah:function(){return o},EV:function(){return r},NB:function(){return l},NM:function(){return a},SY:function(){return c}});var i=s(76471),n={indexApi:"/student/course/index",myCourseScoreApi:"/student/course/myCourse/score",strategyInfoApi:"/student/strategy/info",studentCertificateApplyApi:"/student/certificate/apply",teacherMyCourseScoreInfo:"/teacher/myCourse/score/info"};function a(e){return(0,i.Ay)({url:n.indexApi+"?KCID="+e,method:"get"})}function r(e,t){return(0,i.Ay)({url:n.teacherMyCourseScoreInfo+"?XSID="+e+"&KCID="+t,method:"get"})}function o(e){return(0,i.Ay)({url:n.myCourseScoreApi+"?KCID="+e,method:"get"})}function l(e){return(0,i.Ay)({url:n.studentCertificateApplyApi+"?KCID="+e,method:"post"})}function c(e){return(0,i.Ay)({url:n.strategyInfoApi+"?KCID="+e,method:"get"})}},8966:function(e,t,s){"use strict";s.d(t,{$i:function(){return m},B4:function(){return g},Cg:function(){return u},Ju:function(){return v},Ox:function(){return h},TI:function(){return c},UT:function(){return f},Ug:function(){return r},Vk:function(){return a},Ym:function(){return o},ax:function(){return y},bT:function(){return C},cY:function(){return b},nB:function(){return l},nd:function(){return p},qw:function(){return d}});var i=s(76471),n={list:"/pub/course/detail",chapterList:"/pub/course/chapter/list",qaList:"/pub/course/faqs/list",scoreList:"/pub/course/score/list",forum:"/pub/forum/plate/list",pubLearnStatus:"/pub/learn/status",pubLearnApply:"/pub/learn/appl
1y",libResCommentList:"/lib/comments/list",libResMakeComment:"/lib/comments/make",studentStrategyRequiredLessonList:"/student/strategy/required/lesson/list",pubCourseScoreStat:"/pub/course/score/stat",aiCourseChapterList:"/pub/course/ai/chapter/list",aiCourseDetail:"/pub/course/ai/detail",aiCourseKnowledgeDetail:"/pub/course/ai/knowledge/detail",aiCourseKnowledgeList:"/pub/course/ai/knowledge/list",pubCourseKnowledgeStat:"/agent/api/public/stats"};function a(e){return(0,i.Ay)({url:n.pubCourseScoreStat,method:"get",params:e})}function r(e){return(0,i.Ay)({url:n.list,method:"get",params:e})}function o(e){return(0,i.Ay)({url:n.chapterList,method:"get",params:e})}function l(e){return(0,i.Ay)({url:n.qaList,method:"get",params:e})}function c(e){return(0,i.Ay)({url:n.scoreList,method:"get",params:e})}function u(e){return(0,i.Ay)({url:n.forum,method:"get",params:e})}function d(e){return(0,i.Ay)({url:n.pubLearnStatus,method:"get",params:e})}function h(e){return(0,i.Ay)({url:n.pubLearnApply+"?KCID="+(null===e||void 0===e?void 0:e.KCID),method:"post",data:e})}function p(e){return(0,i.Ay)({url:n.libResCommentList,method:"get",params:e})}function m(e,t){return(0,i.Ay)({url:n.libResMakeComment+"?SCID="+t,method:"post",data:e})}function f(e){return(0,i.Ay)({url:n.studentStrategyRequiredLessonList+"?KCID="+e,method:"get"})}function v(e,t){return(0,i.Ay)({url:n.aiCourseChapterList+"?KCID="+t,method:"get",params:e})}function g(e,t){return(0,i.Ay)({url:n.aiCourseDetail+"?KCID="+t,method:"get",params:e})}function C(e,t){return(0,i.Ay)({url:n.aiCourseKnowledgeDetail+"?KCID="+t,method:"get",params:e})}function y(e,t){return(0,i.Ay)({url:n.aiCourseKnowledgeList+"?KCID="+t,method:"get",params:e})}function b(e){return(0,i.Ay)({url:n.pubCourseKnowledgeStat,method:"get",baseURL:"",params:e})}},10318:function(e,t,s){"use strict";s.d(t,{CK:function(){return l},Lp:function(){return o},OV:function(){return u},hQ:function(){return c},nt:function(){return r},s:function(){return a}});var i=s(76471),n={addPaper:"/teacher/course/paper/add",validPaper:"/teacher/course/paper/valid",paperList:"/teacher/course/paper/list",deletePaper:"/teacher/course/paper/delete",paperInfo:"/teacher/course/paper/info",updatePaper:"/teacher/course/paper/update"};function a(e,t){return(0,i.Ay)({url:n.addPaper+"?KCID="+t,method:"post",data:e})}function r(e,t){return(0,i.Ay)({url:n.validPaper+"?KCID="+t,method:"post",data:e})}function o(e){return(0,i.Ay)({url:n.paperList,method:"get",params:e})}function l(e){return(0,i.Ay)({url:n.deletePaper,method:"DELETE",params:e})}function c(e){return(0,i.Ay)({url:n.paperInfo,method:"GET",params:e})}function u(e,t){return(0,i.Ay)({url:n.updatePaper+"?KCID="+t,method:"post",data:e})}},3067:function(e,t,s){"use strict";s.d(t,{EQ:function(){return c},JW:function(){return h},Ly:function(){return o},RJ:function(){return d},SY:function(){return p},hk:function(){return m},p_:function(){return l},sw:function(){return a},uB:function(){return r},we:function(){return u}});var i=s(76471),n={forumList:"/teacher/forum/list",examinationList:"/teacher/course/examination/task/list",testList:"/teacher/course/examination/test/list",simpleList:"/teacher/course/chapter/simple/list",examList:"/teacher/course/examination/exam/list",examInfo:"/teacher/course/examination/exam/info",strategySave:"/teacher/strategy/save",strategyInfo:"/teacher/strategy/info",examinationUpdate:"/teacher/course/examination/update",examinationDelete:"/teacher/course/examination/delete"};function a(e){return(0,i.Ay)({url:n.forumList,method:"get",params:e})}function r(e){return(0,i.Ay)({url:n.examinationList,method:"get",params:e})}function o(e){return(0,i.Ay)({url:n.simpleList,method:"get",params:e})}function l(e){return(0,i.Ay)({url:n.testList,method:"get",params:e})}function c(e){return(0,i.Ay)({url:n.examList,method:"get",params:e})}function u(e){return(0,i.Ay)({url:n.examInfo,method:"get",params:e})}function d(e,t){return(0,i.Ay)({url:n.examinationUpdate+"?KCID="+t,method:"put",data:e})}function h(e,t){return(0,i.Ay)({url:n.strategySave+"?KCID="+t,method:"post",data:e})}function p(e){return(0,i.Ay)({url:n.strategyInfo,method:"get",params:e})}function m(e){return(0,i.Ay)({url:n.examinationDelete,method:"delete",params:e})}},7516:function(e,t,s){"use strict";s.d(t,{$Y:function(){return w},C9:function(){return y},DI:function(){return u},F4:function(){return _},FP:function(){return d},GC:function(){return A},Lx:function(){return m},NA:function(){return M},Xy:function(){return c},Ym:function(){return a},_V:function(){return l},bE:function(){return h},d4:function(){return f},eg:function(){return J},ey:function(){return x},hk:function(){return o},mo:function(){return k},on:function(){return T},pU:function(){return g},ps:function(){return L},r5:function(){return r},rB:function(){return C},se:function(){return p},st:function(){return D},vv:function(){return I},xe:function(){return v},ye:function(){return b},zT:function(){return S}});var i=s(76471),n={chapterList:"/teacher/course/chapter/full/list",addChapter:"/teacher/course/chapter/quick/add",chapterUpdate:"/teacher/course/chapter/name/update",deleteChapter:"/teacher/course/chapter/delete",sortSet:"/teacher/course/chapter/sort/set",lessonSet:"/teacher/course/lesson/sort/set",createForum:"/teacher/forum/create",updateForum:"teacher/forum/update",resSubmit:"/teacher/my/res/submit",resList:"/teacher/my/res/list",addResources:"/teacher/course/chapter/resources/add",updateResources:"/teacher/course/chapter/resources/update",deleteLesson:"/teacher/course/lesson/delete",paperAll:"/teacher/course/paper/all/list",addExamination:"/teacher/course/examination/add",taskInfo:"/teacher/course/examination/task/info",testInfo:"/teacher/course/examination/test/info",timeSet:"/teacher/course/chapter/time/set",pubSet:"/teacher/course/chapter/pub/set",submitAudit:"/teacher/course/term/submitAudit",lessonQaList:"/teacher/course/lesson/qa/list",lessonQaSet:"/teacher/course/lesson/qa/set",teacherMyView:"/teacher/my/res/view",courseResView:"/teacher/course/res/view",cacheRefresh:"/teacher/course/chapter/cache/refresh",teacherCourseExaminationListExport:"/teacher/course/examination/list/export",teacherCourseExaminationUpdateBatch:"/teacher/course/examination/update/batch",addChapterName:"/teacher/course/chapter/add",teacherCourseExaminationBaseConfigInfo:"/teacher/course/examination/base/config/info"};
1function a(e){return(0,i.Ay)({url:n.chapterList,method:"get",params:e})}function r(e){return(0,i.Ay)({url:n.teacherCourseExaminationListExport+"?lx="+e.lx+"&examId="+e.examId+"&courseId="+e.courseId+"&KCID="+e.courseId,method:"post",data:e,responseType:"arraybuffer"})}function o(e,t){return(0,i.Ay)({url:n.addChapter+"?KCID="+t,method:"post",data:e})}function l(e,t){return(0,i.Ay)({url:n.addChapterName+"?KCID="+t,method:"post",data:e})}function c(e,t){return(0,i.Ay)({url:n.chapterUpdate+"?KCID="+t,method:"PUT",data:e})}function u(e,t){return(0,i.Ay)({url:n.deleteChapter+"?KCID="+t,method:"DELETE",data:e})}function d(e,t){return(0,i.Ay)({url:n.sortSet+"?KCID="+t,method:"PUT",data:e})}function h(e,t){return(0,i.Ay)({url:n.lessonSet+"?KCID="+t,method:"PUT",data:e})}function p(e,t){return(0,i.Ay)({url:n.createForum+"?KCID="+t,method:"POST",data:e})}function m(e,t){return(0,i.Ay)({url:n.updateForum+"?KCID="+t,method:"PUT",data:e})}function f(e,t){return(0,i.Ay)({url:n.resSubmit,method:"POST",data:e})}function v(e){return(0,i.Ay)({url:n.resList,method:"get",params:e})}function g(e,t){return(0,i.Ay)({url:n.addResources+"?KCID="+t,method:"POST",data:e})}function C(e,t){return(0,i.Ay)({url:n.updateResources+"?KCID="+t,method:"PUT",data:e})}function y(e,t){return(0,i.Ay)({url:n.deleteLesson+"?KCID="+t,method:"DELETE",data:e})}function b(e){return(0,i.Ay)({url:n.paperAll,method:"get",params:e})}function L(e,t){return(0,i.Ay)({url:n.addExamination+"?KCID="+t,method:"POST",data:e})}function x(e,t){return(0,i.Ay)({url:n.timeSet+"?KCID="+t,method:"PUT",data:e})}function D(e,t){return(0,i.Ay)({url:n.pubSet+"?KCID="+t,method:"PUT",data:e})}function k(e){return(0,i.Ay)({url:n.taskInfo,method:"get",params:e})}function _(e){return(0,i.Ay)({url:n.testInfo,method:"get",params:e})}function S(e,t){return(0,i.Ay)({url:n.courseResView+"?KCID="+t,method:"get",params:e})}function A(e,t){return(0,i.Ay)({url:n.submitAudit+"?KCID="+t,method:"POST",data:e})}function w(e,t){return(0,i.Ay)({url:n.lessonQaList+"?KCID="+t,method:"POST",data:e})}function I(e,t){return(0,i.Ay)({url:n.lessonQaSet+"?KCID="+t,method:"POST",data:e})}function T(e){return(0,i.Ay)({url:n.cacheRefresh+"?KCID="+e,method:"POST"})}function J(e,t){return(0,i.Ay)({url:n.teacherCourseExaminationBaseConfigInfo+"?KCID="+e+"&LX="+t,method:"get"})}function M(e,t){return(0,i.Ay)({url:n.teacherCourseExaminationUpdateBatch+"?KCID="+t,method:"PUT",data:e})}},59761:function(e,t,s){"use strict";s.d(t,{Ck:function(){return o},Gc:function(){return u},NF:function(){return r},Y_:function(){return l},ro:function(){return c},te:function(){return a}});var i=s(76471),n={spaceStaApi:"/teacher/my/res/space/sta",spaceApplyApi:"/teacher/my/res/space/apply",addMyResApi:"/teacher/my/res/add",updateMyResApi:"/teacher/my/res/update",deleteMyResApi:"/teacher/my/res/delete",myResListApi:"/teacher/my/res/list",myResUrlApi:"/teacher/my/res/url"};function a(){return(0,i.Ay)({url:n.spaceStaApi,method:"get"})}function r(e){return(0,i.Ay)({url:n.spaceApplyApi,method:"post",data:e})}function o(e){return(0,i.Ay)({url:n.updateMyResApi,method:"put",data:e})}function l(e){return(0,i.Ay)({url:n.deleteMyResApi,method:"delete",params:e})}function c(e){return(0,i.Ay)({url:n.myResListApi,method:"get",params:e})}function u(e){return(0,i.Ay)({url:n.myResUrlApi,method:"get",params:e})}},22671:function(e,t,s){"use strict";s.d(t,{BB:function(){return h},Bo:function(){return r},HU:function(){return o},QT:function(){return c},_1:function(){return d},b6:function(){return p},k7:function(){return u},sQ:function(){return l},zH:function(){return a}});var i=s(76471),n={addCourseResApi:"/teacher/course/res/add",updateCourseResApi:"/teacher/course/res/update",deleteCourseResApi:"/teacher/course/res/delete",courseResList:"/teacher/course/res/list",stuCourseResList:"/student/course/res/list",resView:"/teacher/course/res/view",myResView:"/teacher/my/res/view",studentResView:"/student/course/res/view",studentResUrl:"/student/course/res/url"};function a(e,t){return(0,i.Ay)({url:n.addCourseResApi+"?KCID="+t,method:"post",data:e})}function r(e,t){return(0,i.Ay)({url:n.updateCourseResApi+"?KCID="+t,method:"put",data:e})}function o(e,t){return(0,i.Ay)({url:n.deleteCourseResApi+"?KCID="+t,method:"delete",params:e})}function l(e,t){return(0,i.Ay)({url:n.courseResList+"?KCID="+t,method:"get",params:e})}function c(e,t){return(0,i.Ay)({url:n.stuCourseResList+"?KCID="+t,method:"get",params:e})}function u(e){return(0,i.Ay)({url:n.resView,method:"get",params:e})}function d(e){return(0,i.Ay)({url:n.myResView,method:"get",params:e})}function h(e){return(0,i.Ay)({url:n.studentResView,method:"get",params:e})}function p(e){return(0,i.Ay)({url:n.studentResUrl,method:"get",params:e})}},27408:function(e,t,s){"use strict";s.d(t,{S:function(){return r},k:function(){return a}});var i=s(76471),n={advSet:"/teacher/course/advSet/info",setAdvSet:"/teacher/course/setAdvSet"};function a(e){return(0,i.Ay)({url:n.advSet,method:"get",params:e})}function r(e,t){return(0,i.Ay)({url:n.setAdvSet+"?KCID="+t,method:"put",data:e})}},34644:function(e,t,s){"use strict";s.d(t,{BK:function(){return d},Rz:function(){return c},Tg:function(){return u},e$:function(){return r},eJ:function(){return l},iV:function(){return h},n5:function(){return a},ur:function(){return o}});var i=s(76471),n={chatInfo:"/student/course/ai/chat/info",qsGenerate:"teacher/course/ai/qs/generate",generateTaskDetail:"teacher/course/ai/qs/generateTaskDetail",generateTaskId:"teacher/course/ai/qs/generateTaskId",aiBotInfo:"teacher/course/ai/bot/info",createProblemsBatch:"teacher/course/problems/batch/create",updateAiBot:"teacher/course/ai/bot/update",examinationTaskList:"teacher/course/examination/task/att/full/list",setExaminationTasks:"teacher/course/examination/task/att/set"};function a(e){return(0,i.Ay)({url:n.chatInfo,method:"get",params:e})}function r(e){return(0,i.Ay)({url:n.aiBotInfo,method:"get",params:e})}function o(e){return(0,i.Ay)({url:n.generateTaskDetail,method:"get",params:e})}function l(e,t){return(0,i.Ay)({timeout:12e4,url:n.generateTaskId,method:"post",params:e,data:t})}function c(e,t){return(0,i.Ay)({url:n.createProblemsBatch,method:"post",params:e,data:t})}function u(e,t){return(0,i.Ay)({url:n.updateAiBot,method:"post",params:e,data:t})}function d(e){return(0,i.Ay)({url:n.examinationTaskList,method:"get",params:e})}function h(e,t){return(0,i.Ay)({url:n.setExaminationTasks,method:"post",params:e,data:t})}},74696:function(e,t,s){"use strict";s.d(t,{f:function(){return a}});var i=s(76471),n={list:"/teacher/course/problems/list"};function a(e,t){return(0,i.Ay)({url:n.list+"?KCID="+t,method:"get",params:e})}},46547:function(e,t,s){"use strict";s.d(t,{Rs:function(){return C},VL:function(){return y}});s(76471),s(79432),s(26099),s(27495),s(38781),s(11392);var i=s(72505),n=s.n(i),a=s(36400),r=s(74053),o=s.n(r),l=s(56427),c=s(41802),u=s(21396),d=s.n(u),h=s(85471),p=/(^|\.)(cqooc\.ic\.zx|(?:cqooc|cqvooc)\.com\.zxdev\.top)$/.test(window.location.hostname),m=n().create({baseURL:p?"http://file.cqooc.ic.zx/api":"https://res.cqooc.com:31443/api",timeout:6e5}),f=function(e){if(e.response){var t=e.response.data,s=o().get(c.Xh);403===e.response.status&&l.A.error({message:"Forbidden",description:t.message}),401!==e.response.status||t.result&&t.result.isLogin||(l.A.error({message:"Unauthorized",description:"Authorization verification failed"}),s&&a.A.dispatch("Logout").then(function(){setTimeout(function(){window.location.reload()},1500)}))}return Promise.reject(e)};m.interceptors.request.use(function(e){var t=o().get(c.Xh);t&&(e.headers[c.Xh]=t);var s=(new Date).getTime();e.headers["ts"]=s;var i="";if(e.url.startsWith("/pub/")){var n=e.url.indexOf("?"),a=n>0?e.url.substring(0,n):e.url;i=e.baseURL+a+"**2ooc&#(?^&("+s}else t&&(i=t+"_2Cqooc&#(*@&("+s);var r=d().MD5(i).toString();return e.headers["sg"]=r,e},f);var v=[];m.interceptors.response.use(function(e){var t;if(401==e.data.code){if(o().remove(c.Xh),o().remove("userInfo"),h.Ay.prototype.$EventBus.$emit("logout",e),0===v.length){var s=document.getElementsByClassName("login-box-modal");0===(null===s||void 0===s?void 0:s.length)&&h.Ay.prototype.$LoginRegisterModal({type:"login"})}
1v.push(1)}else 405==e.data.code?l.A.error({message:"操作失败",description:e.data.message}):200==e.data.code&&(v=[]);if(200==e.data.code&&e.data.encryption){var i="0$0H_3p4$567890F0Kd0?123456789$@",n=d().enc.Utf8.parse("0012345900000678"),a=d().enc.Utf8.parse(i),r=d().AES.decrypt(e.data.result,a,{iv:n,mode:d().mode.CBC,padding:d().pad.Pkcs7}).toString(d().enc.Utf8);e.data.result=JSON.parse(r)}return null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.code||null===e||void 0===e||!e.headers["content-disposition"]||(e.data["content-disposition"]=null===e||void 0===e?void 0:e.headers["content-disposition"]),e.data},f);var g=m;function C(e){return g.defaults.timeout=6e5,g({url:"/app/res/upload",method:"post",data:e})}function y(e){return g.defaults.timeout=6e5,g({url:"/app/file/upload",method:"post",data:e})}},56286:function(e){e.exports={filePath:"/teaching-research-admin/resource",sessionName:"teaching-research-admin"}},4191:function(e,t,s){"use strict";s(69870),s(17654),s(25418),s(75374),s(18423)},99258:function(e,t,s){"use strict";s.d(t,{W5:function(){return n},lZ:function(){return i}});navigator.userAgent.indexOf("uni-app"),navigator.userAgent.indexOf("chongqing_app");var i=[{title:"音频",sid:"audio"},{title:"视频",sid:"video"},{title:"图片",sid:"image"},{title:"动画",sid:"swf"},{title:"混合媒体",sid:"multi"},{title:"其他",sid:"other"},{title:"文本",sid:"txt"},{title:"Word文档",sid:"doc"},{title:"PPT文档",sid:"ppt"},{title:"Excel文档",sid:"xls"},{title:"PDF",sid:"pdf"}],n=[{title:"教学课件",sid:"1"},{title:"电子教案",sid:"2"},{title:"教学录像",sid:"3"},{title:"试卷",sid:"4"},{title:"实验/实训/实习",sid:"5"},{title:"教学案例",sid:"6"},{title:"习题作业",sid:"7"},{title:"文献资料",sid:"8"},{title:"名词术语",sid:"9"},{title:"人物",sid:"10"},{title:"常见问题",sid:"11"},{title:"任务工单",sid:"12"},{title:"学习手册",sid:"13"},{title:"票证账表",sid:"14"},{title:"工程图纸",sid:"15"},{title:"演示文稿",sid:"16"},{title:"例题习题",sid:"17"},{title:"媒体素材",sid:"18"},{title:"电子教材",sid:"19"},{title:"模拟实训/实验动画",sid:"20"},{title:"专家讲座",sid:"21"},{title:"学生作品",sid:"22"},{title:"教学设计",sid:"23"},{title:"评价考核",sid:"24"},{title:"教学软件",sid:"25"},{title:"虚拟仿真",sid:"26"},{title:"电子挂图",sid:"27"},{title:"专业标准",sid:"28"},{title:"专业调研",sid:"29"},{title:"行业标准",sid:"30"},{title:"行业信息",sid:"31"},{title:"技能竞赛",sid:"32"},{title:"职业认证",sid:"33"},{title:"课程标准",sid:"34"},{title:"教学日历",sid:"35"},{title:"学习指南",sid:"36"},{title:"工程录像",sid:"37"},{title:"教学系统",sid:"38"},{title:"拓展阅读",sid:"39"},{title:"专业资料",sid:"40"},{title:"微教案",sid:"41"},{title:"微习题",sid:"42"},{title:"微课件",sid:"43"},{title:"微反思",sid:"44"},{title:"微视频",sid:"45"},{title:"教学大纲",sid:"46"},{title:"重点难点",sid:"47"},{title:"课程简介",sid:"48"},{title:"成绩分布",sid:"49"},{title:"学习数据",sid:"50"},{title:"评教结果",sid:"51"},{title:"教学评价",sid:"52"},{title:"参赛教案",sid:"53"},{title:"教学实施报告",sid:"54"},{title:"专业人才培养方案",sid:"55"},{title:"申报书",sid:"56"},{title:"其他",sid:"99"}]},7631:function(e,t,s){"use strict";s.d(t,{OH:function(){return d},aw:function(){return p},x5:function(){return c}});var i=s(69870),n=s(17654),a=(s(26099),s(76471),s(4191),s(72505)),r=s.n(a),o=(s(7452),s(46547));function l(e){var t="data:text/html;charset=utf-8,"+encodeURIComponent(e);return fetch(t).then(function(e){return e.blob()}).then(function(e){return e})}function c(e){return u.apply(this,arguments)}function u(){return u=(0,n.A)((0,i.A)().mark(function e(t){var s,n,a,r,c;return(0,i.A)().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(t);case 2:return n=e.sent,a=new File([n],"text/plain.txt",{type:"text/plain",lastModified:Date.now()}),r=new FormData,r.append("file",a),e.next=8,(0,o.VL)(r);case 8:return c=e.sent,200===c.code&&(s=c),e.abrupt("return",s);case 11:case"end":return e.stop()}},e)})),u.apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return h=(0,n.A)((0,i.A)().mark(function e(t){var s;return(0,i.A)().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r().get(t,{responseType:"text"});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}},e)})),h.apply(this,arguments)}function p(e){if(e&&"string"===typeof e){var t=e.split(".");return t[t.length-1]}}},18975:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(54554),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_0__),_cmp_AddTest_vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58799),_api_courseManagement_TestPaperManagement__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(10318),columns=[{title:"  试卷名称",dataIndex:"MC",key:"MC"},{title:"试卷类型",dataIndex:"actionLX",scopedSlots:{customRender:"actionLX"}},{title:"引用次数",dataIndex:"YHCS",key:"YHCS"},{title:"考试次数",dataIndex:"KSCS",key:"KSCS"}
1,{title:"创建时间",key:"actionSJ",scopedSlots:{customRender:"actionSJ"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}];__webpack_exports__.A={name:"TestPaperManagement",components:{AddTest:_cmp_AddTest_vue__WEBPACK_IMPORTED_MODULE_1__.A},data:function(){return{scVisible:!1,KCID:"",canEdit:!1,itemData:{},sjList:[{name:"全部",value:"-1"},{name:"系统一键组题",value:"1"},{name:"系统组题-自主章节",value:"2"},{name:"固定试题",value:"3"}],testTitle:"添加试卷",testVisible:!1,activeMenu:"join",sjData:[],columns:columns,pagination:{current:1,pageSize:10,total:0},testPaperTitle:"申请审核",testPaperVisible:!1,labelCol:{span:4},wrapperCol:{span:14},form:{name:"",region:void 0,date1:void 0,delivery:!1,type:[],resource:"",desc:""},value:"",params:{LX:"-1",MC:"",pageNo:1,pageSize:10,total:0},isDisabled:!1}},methods:{initEdit:function initEdit(){var _localStorage$getItem,canEdit=null!==(_localStorage$getItem=localStorage.getItem("CUR.COURSE.BJZT"))&&void 0!==_localStorage$getItem&&_localStorage$getItem;this.canEdit=eval(canEdit),this.canEdit||this.columns.splice(5,1)},onChange:function(){this.cleckSearch()},handleOk:function(){var e=this,t={KCID:this.KCID,ID:this.itemData.ID};(0,_api_courseManagement_TestPaperManagement__WEBPACK_IMPORTED_MODULE_2__.CK)(t).then(function(t){200===t.code&&(e.$message.success("操作成功"),e.scVisible=!1,e.cleckSearch())})},scHandleCancel:function(){this.scVisible=!1},edit:function(e){this.testTitle="编辑试卷",this.isDisabled=!1,this.itemData=e,this.testVisible=!0},deleteItem:function(e){this.itemData=e,this.scVisible=!0},getPaperList:function(){var e=this,t={KCID:this.KCID,pageNo:this.params.pageNo,pageSize:this.params.pageSize,LX:this.params.LX,MC:this.params.MC};-1==t.LX&&delete t.LX,(0,_api_courseManagement_TestPaperManagement__WEBPACK_IMPORTED_MODULE_2__.Lp)(t).then(function(t){var s,i;200==t.code&&null!==(s=t.result)&&void 0!==s&&s.length?(e.sjData=t.result,e.params.total=(null===t||void 0===t||null===(i=t.page)||void 0===i?void 0:i.totalCount)-0):e.sjData=[]})},cleckSearch:function(){this.params.pageNo=1,this.getPaperList()},success:function(){this.testVisible=!1,this.getPaperList()},testCancel:function(){this.testVisible=!1},addTest:function(){this.testTitle="添加试卷",this.testVisible=!0,this.isDisabled=!1},handleTableChange:function(e){this.params.pageNo=e,this.getPaperList()},testPaperCancel:function(){this.testPaperVisible=!1},testPaperSave:function(){},handleTestPaperAudit:function(){this.testPaperVisible=!0}},mounted:function(){this.KCID=this.$route.query.id,this.KCID&&""!=this.KCID&&this.getPaperList(),this.$route.query.id&&this.$route.query.addCs&&this.$route.query.KSID&&(this.itemData.ID=this.$route.query.KSID,this.testTitle="预览试卷",this.isDisabled=!0,this.testVisible=!0),this.initEdit()}}},40617:function(e,t,s){"use strict";e.exports=s.p+"img/MP3.6c0f0bd0.gif"},21639:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAiCAYAAAAd6YoqAAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkK
1ZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAVhSURBVFiFrdl/rB1VEQfwz3u8Bgo8hRabSgBtGgUBf0ZbQLDF4I8A4YcERBMjNLUCCUmLoNGkog0moqgYAWm0mhhFgYRQUKAhQJWIiCg1RS0kmvDAAsXyQxtAQZ5/zC53dt2z976m32Rz55ydnZ05Z86c79k7tnbtWjPA63E2luJg7IPtuBA3zMRQwin4OvbDv/AQbseP8MSoRsZmEMhnsRp7F+7Pwssd/XOq36c77k3gpYK9HfgSvjGKc+OjKOEaXKocxEOYTu2T8GNswSPVtQU/xWlJbxp/KtjcG5fhJ6M4ODGCzvfwsVbfD3EXnsSeuBP/xeG4Csd02Dm4us7EvTgXm7AYH8SLeJ1I27PTcx8XKXdOn5PDUmsJNqb2gzgDf+nQPQ4bjD7LcAJu6eh/K67DIanv2JYvDQybke8meSvejX936C0QCzTjPpFeD+MVMVun4b1J5xc41P8PzGa8E38TBQauxGElR/tG73C8JbU/UQgCbmy1V4qU+Y6YpdvxLRwtUirj5oLNFzVT7NDq6kRfIMcm+RGxDrpwPN6W2qvw7R67V2sGsxAnFnQ3YCq1318y2hfIgiT/oUfvrCT/EZf36Na4Gr9L7U/36N6X5ANLSn2BjCX5+R69RUm+skevjW8m+T09vuR9prim+wL5e5IXFnTmYF5qb+qx18aDSd6vZSfjzUneWjLWF8j9SV5ksENnTGC31J7u0CnhlZYfXaM9F+9I7XtLxvoC2WhAK8bxlQ6dbdVV44099tp4U5L/gcc7dC4zGKin8OuSsWGb1+okn4NlHTpbkvzJIfYyPpXkzYIZZJylWUjW9BkbFshVmtVlnaAs7zPI6VxqTxQ7/DAcI3b1GpdXv/PFXvMDQYNqPIAr+gyOQicWaW5ay/FLUd83VHIukbcJ7lTC0uq5GpsqRzdWNu/W3Ahvw7uGOTlKIJO683d34fAFmqO7W+XoOrGBzauuJVgryObspH8yzqvuz+p4z6OCmPZiWCBr8AxW9Og8IRbrEjyX+pfhDjHKU2LEs50XxABM6SmrYi09i4v7HC1tMPOwHke0+h/HPWKBb61+a+oypvuQtHvhHS8blOArxL5ymCCJh+BI7F/dnyUOWR8QM7h9lED2x29xQOr7Pb4myOF/WvqLRVEYmsctTOLWKoAVYsY2pvuzxJHhM4IJE8z5ARyFx7Kx9nlkTBDEzGlW45KCMxeJANt4RjDeh0XqTOMgwRCO072Lf65gC76IL6f2lOCCr26q7Rm5pRXER8UBpwtfrV6ecU/lzF34Z+G5PUUwF2qeJC8V5feCjmfWiDS+tmofJCrpq0UmL/aP4MOpvbwniJUdQSwXU7++JwiCgN4k9qJlmrRmFT5feO46zWJxvPgCg2ZqPSXIm8qZU3RjkVhDNZ4TI3x/t/pQvF1Ut7mpbwl+VdC/2eD88rTwebqekTMMgpjWpAZtXN9qH2XngyDOMIs1Z+bagi5xUq0xB6czSK3z0s1rRN3uwrkiP2uciT8P93Uo/io+IdWYj/MLus/iZ6m9gghkL8FvaqzreeFFSb5b/8jNFD8XKVbjCz2630/yUkyOi9SoqfILypz/aM3j78qZeDkiViV5Pj5U0PuN+DhB+H7EuOa3oy0imC5kPjWl/xy/s9iseXI8oaD3vOYnpIXj2Dd19H00XpzkUlneFVif5D62kIns3HG8NnXs0fPgG5Jc+l67K5BHekFRq8mIJ8c1Z2G2buwhuFGNbQW9XYHMhCfFXxddyIFsmxDMsy5n7eNmjdniA3ON0l8BuwKZlE4qs+dTDYrU9gmxuB8dYnyHWOD1Hv
1KanXRyFOxT/U6Lmd9R0GucYf4Hs2cXg5SJar0AAAAASUVORK5CYII="},85662:function(e,t,s){"use strict";e.exports=s.p+"img/mp3.8047a6c8.jpg"},26614:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAwCAYAAABT9ym6AAAAAXNSR0IArs4c6QAABShJREFUaEPtWd1rHFUU/527M5s2qU39wIekCWIFpQ+tIWrpgwXbRASDiogEWahQRPxAKAUf+uprn3zrH6BYKFZsoTRBWkTQlrQ1Jk1DS4xNmvhRW5N0sskmu3NkdnaTnXvv7pnNRqMhA2Emc7/O7/x+55x7dwjr5KJ1ggMbQP5rTG4w8r9hhM/v3LKYvf8JM3cB/ERsw4kmibnH3eQcpX23fo09rsaOVmnx4M7k4uTMJQbvXun8RPgTCepK7r99caVzVDPOCmSxp+WID/9YNRPZ+hKQVolEt3Ng7HStc0njrUAyvc2nweiSBsdpJyAHhQ+SHRPH4/RfaR8rkIWe5j4G2lc6qX0cnU0QHU8knGFwNlvV3NwwRR3DdyuN+ReBVGW62ZloJAF87HTe/rKMjM3XEUbIhWo9BPXw86BNzTVa4wOZCSD7O+AvAODCX+DP4Fm72AdyGfDCH2BvFLm7PwB+uruuY/yE3rUyI5SE8+wpqMYVJ6/l9bL3gHvnwAt3IjYE5pfCKD4vG1byJjeH3NgXd9x9Vx+tCkji8SNI7DhcGwt+GvD6gZnLYM4uW11uT8EMEAHBPX9FofH8JNT4ycfowOitUsPKM0Kq3dn9KRSngez0MvWSC0vb2Qf7magjdJdXM1/BCn/yqxfcvd9dkIH0tvSp7a+30+amJecETrJ6iBlEBC54sOjMcv3DWCgTE1buTeT+dH/K2fX5ZyKQXN8rt+iRva1BRwaDQPl7SHT4HNxtl9Rfajfi3VgfoJn+FO06EQPItXf/ovqWbRaJ5qVbKmEzOKsLKUlZ1lR7fyAeEH/4sIfktga7x4Uso2tLQm4gKQR6QZuBZHXpUh7ISZkRHv7I4+SDViCWZB/RvGF3IX4CY6yOMQwN461c/0Ds5A3FA+Jf/3CJETM0o2/kmKnMoBQztvXVbADklMyIP/S+h7qCtIy8HvWrqHFJakJImcoj0Mz1FLXFAMJD73m++0BeWkV9Fqk2NRuVgt5uq8BF48JkIsWEOb/yhlPU9rXMCA+94/luYxgjmkvMOlFdljLSqxYjeiW3rUfejXhA/MFDHpJbYwW7oWFRa5ULvbmHiU4Y/Kdmb6ao7YzMiD/4todkyIgslWiBlIJX2zoZjEvjg3aV/jkmkIGDHi/FSLh/K2bP6mNE2lxpDGnp2nQkQc2NpKjtrMwID6SWgJh1QQMmbsMrx5CkRNv6NDuSovYeGYj/01seu1usMSLXjejeTEwFAhJ9vVBav8QF0u3BCYFIBdFMr3rMaAUxmm3FGLFlMUqPpqj9mxiM9L/psdsQ1pESMGHwVzz3yLt0IWTi1E81PxYXyBseJ+pDaWkLG1TrdUDqr23LJelZpZUHciEGIz++ViItXfNRS00HVz6/iFlPB2qJIZWZiAnk6qseOyEjcaiWvLra7WohAPJtDEaudC0BqdYIaW8mzSeOJ0DN/Zai52IAyfZ1TlGysdEa7MaJW+NeOCiZySN6cBJjEgx/bvQld8+Vc6VOsZ52ct/vGUd903a79yon/urquC3BC4fn3DxyU9eeSe4fuywCyfS2nnEeeuplOJst+VYSxz/bnpu6CVelm/RvL+U/Kyg6puqboOq2Asot3Wxpvz5oFU44iBkwpWwStPs+OJeG702Cs7M36jonnrSdc4y5ww890xcZeDpsVGE9Wasr+A04zKBZIrzodkycjwUkr9yST29EvCOoe2uFg4immHGJHHVUj42iTWtm3Go7ZQPIanu01vk2GKnVg6s9ft0w8jejmipelPQYbQAAAABJRU5ErkJggg=="},50320:function(e,t,s){"use strict";e.exports=s.p+"img/zyfmt.4a3d97a1.jpg"},11976:function(){}}]);

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.