1 |
- {"version":3,"sources":["webpack:///./src/components/myListSelect.vue?93f5","webpack:///./src/views/QusetionBankManage/components/TestBasket.vue?5f1f","webpack:///./src/components/MultiListSelect.vue?be19","webpack:///./src/views/QusetionBankManage/components/ChapterTree.vue?64e1","webpack:///./src/views/QusetionBankManage/components/EditChapterMenus.vue?0399","webpack:///./src/views/QusetionBankManage/components/PointsTree.vue?17dd","webpack:///./src/views/QusetionBankManage/QusetionBankManage.vue","webpack:///./src/views/QusetionBankManage/components/ChapterTree.vue","webpack:///./src/views/QusetionBankManage/components/EditChapterMenus.vue","webpack:///src/views/QusetionBankManage/components/EditChapterMenus.vue","webpack:///./src/views/QusetionBankManage/components/EditChapterMenus.vue?8755","webpack:///./src/views/QusetionBankManage/components/EditChapterMenus.vue?74e4","webpack:///src/views/QusetionBankManage/components/ChapterTree.vue","webpack:///./src/views/QusetionBankManage/components/ChapterTree.vue?7504","webpack:///./src/views/QusetionBankManage/components/ChapterTree.vue?c540","webpack:///./src/views/QusetionBankManage/components/PointsTree.vue","webpack:///./src/views/QusetionBankManage/components/EditPointsMenus.vue","webpack:///src/views/QusetionBankManage/components/EditPointsMenus.vue","webpack:///./src/views/QusetionBankManage/components/EditPointsMenus.vue?1417","webpack:///./src/views/QusetionBankManage/components/EditPointsMenus.vue?0637","webpack:///src/views/QusetionBankManage/components/PointsTree.vue","webpack:///./src/views/QusetionBankManage/components/PointsTree.vue?7f7c","webpack:///./src/views/QusetionBankManage/components/PointsTree.vue?7687","webpack:///./src/components/myListSelect.vue","webpack:///src/components/myListSelect.vue","webpack:///./src/components/myListSelect.vue?7d7b","webpack:///./src/components/myListSelect.vue?858e","webpack:///./src/components/MultiListSelect.vue","webpack:///src/components/MultiListSelect.vue","webpack:///./src/components/MultiListSelect.vue?aa6a","webpack:///./src/components/MultiListSelect.vue?a94e","webpack:///./src/views/QusetionBankManage/components/QuestionImport.vue","webpack:///src/views/QusetionBankManage/components/QuestionImport.vue","webpack:///./src/views/QusetionBankManage/components/QuestionImport.vue?77b1","webpack:///./src/views/QusetionBankManage/components/QuestionImport.vue?cf0f","webpack:///./src/views/QusetionBankManage/components/TestBasket.vue","webpack:///src/views/QusetionBankManage/components/TestBasket.vue","webpack:///./src/views/QusetionBankManage/components/TestBasket.vue?599f","webpack:///./src/views/QusetionBankManage/components/TestBasket.vue?84fe","webpack:///src/views/QusetionBankManage/QusetionBankManage.vue","webpack:///./src/views/QusetionBankManage/QusetionBankManage.vue?2fe0","webpack:///./src/views/QusetionBankManage/QusetionBankManage.vue?5ac1","webpack:///./src/components/myPagination.vue","webpack:///src/components/myPagination.vue","webpack:///./src/components/myPagination.vue?4b05","webpack:///./src/components/myPagination.vue?0839","webpack:///./src/mixins/myPagination.js","webpack:///./src/views/QusetionBankManage/QusetionBankManage.vue?2d1b","webpack:///./src/views/QusetionBankManage/components/EditPointsMenus.vue?72dc"],"names":["render","_vm","this","_c","_self","staticClass","attrs","on","handleShowSubjectSelect","_v","_s","activeSubject","educationCategory","name","class","isShowSubjectSelect","$event","id","$store","state","baseInfo","SubjectsArr","subjectCallBack","_e","ChapterId","KnowledgePointIdList","length","QuestionImport","templateLoading","GetQuestionTemplate","toPath","staticStyle","onSearch","callback","key","ref","getQuestion","clearPoints","clearChapter","difficultyList","activeDifficulty","replaceFields","difficultyCallBack","model","value","$$v","expression","questionTypeList","activeQuestionType","questionTypeCallBack","spinning","_l","questionData","item","index","refInFor","scopedSlots","_u","fn","scope","disciplineQuestionType","difficulty","questionConvertState","_QuestionGetList","slot","convertFailMessage","data","customRequest","questionDown","toEdit","toggle","directives","rawName","inbox","addToTest","delFromTest","pagination","handleChange","showDrawer","storage","testBox","dotNum","staticRenderFns","handleShowDropdown","activeBookVersion","iconCaret","isShowDropdown","hideSropdown","bookVersions","activeKey","editionClick","treeData","onLoadData","onSelect","title","getPopupContainer","fontSplice","showModal","_ChapterDelete","visible","confirmLoading","handOK","handCancle","type","form","span","rules","required","message","initialValue","record","detail","components","Editor","mounted","methods","ChapterGetInfo","console","e","remark","textBookId","parentId","ChapterCreate","ChapterUpdate","component","EditChapterMenus","props","watch","created","okText","cancelText","mask","onOk","_this","ChapterDelete","then","searchOption","catch","resolve","ParentId","TextbookId","KeyWord","SkipCount","MaxResultCount","ChapterGetList","treeNode","_ChapterGetList","loadChild","_TextbookGetList","DisciplineId","IsActive","TextbookGetList","_KnowledgePointGetDelete","disciplineId","KnowledgePointGetCreate","KnowledgePointGetUpdate","EditPointsMenus","KnowledgePointGetDelete","_KnowledgePointGetList","KnowledgePointGetList","needAll","selectedKeys","indexOf","allSelect","itemClick","default","defaultSelect","handler","deep","sendData","v","handleOk","handleCancel","loading","sureUpload","TIP","md5","beforeUpload","fileData","typeID","fileId","targetId","targetType","QuestionResolve","getFileID","afterVisibleChange","onClose","testName","testTime","groupQuestion","delByQuestiontype","dataGroup","delBySubject","_PaperCreate","computed","arr","paperQuestions","disciplines","questionId","disciplineQuestionTypeId","singleScore","examTime","PaperCreate","query","examId","mixins","ChapterTree","PointsTree","myListSelect","TestBasket","QuestionItem","MultiListSelect","oPagination","textBox","checkSoruceToken","localStorage","QuestionReplace","QuestionGetQuestionDoc","download","DisciplineQuestionTypeId","Difficulty","IncludeChildChapter","IncludeAncestor","QuestionGetList","_DisciplineQuestionTypeGetList","DisciplineQuestionTypeGetList","pager","total","showTotal","showSizeChanger","pageSizeOptions","sizeChange","currentChange","current","$set","myPagination","defaultPageSize","pageSize","onShowSizeChange","log","TableChange","pages"],"mappings":"2IAAA,W,6GCAA,W,oCCAA,W,kCCAA,W,2GCAA,W,kCCAA,W,gECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,SAAS,CAACE,YAAY,eAAeC,MAAM,CAAC,KAAO,aAAaC,GAAG,CAAC,MA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J,qBACA5D,aAEA8D,kBACAD,0BAGA0C,OACApH,iBACA0G,uBACA,qBACA,0BACA,wBACA,2BAEAjC,qBACAiC,eACA,yBAGAW,YACAd,YACAC,SACApB,qBACA,wBAEAC,cACA,uCACA,GAEA1D,eACA,iBAGA+E,oBACA,oBAGAnB,kBACAmB,wBACA,WACA,eACAY,YACAC,gBACAC,QACArC,8BACAsC,OACAf,8BACAA,qCACAgB,cACA,OACApH,SAEAqH,kBACAC,SACAlB,wCACAA,yCACAmB,qCACAH,2BACAA,4BACA,oBACAA,uBAEAA,gBAEAI,UACAJ,oBAMApC,kBACA,4CAEAL,cAEA,OADAyB,0BACA,gBACA,sBAEA,YADAqB,IAGA,iBACA,OACAC,sBACAC,qCACAC,WACAC,YACAC,sBAEAC,kBACAT,SACAU,mCACA,aACA5F,aAEA,OACAnB,SACA4D,aACAtC,aAAAsC,mBACA,GAEA,WAEA,iCACA,iBACA4C,MAEAD,UACA,sBAKAS,kBACA,iBACA,OACAP,YACAC,qCACAC,WACAC,YACAC,sBAEAC,kBACAT,SACAlB,qBACA,8BACA,aACAhE,aAEA,OACAnB,SACA4D,aACAtC,aAAAsC,mBACA,GAEA,WAEA,iBACAuB,8CAEAoB,UACA,oBAGAU,aACA9B,6BACA,iBACA,OACAsB,kBACAC,qCACAC,WACAC,YACAC,sBAEAC,kBACAT,SACAlB,uBACA,iBACAP,qBAEAA,mCACA,aACAzD,aAEA,OACAnB,SACA4D,aACAtC,aAAAsC,mBACA,GAEA,WAEA,iCACAuB,sCACA,mBAEAoB,UACA,oBAIAW,mBACA,0BACA,OAEA,OACAC,mCACAC,YACAR,YACAC,sBAEAQ,4BACAlC,0BACA,2BACA,8CACAA,8BACA,kCACA,6BACA,2BAIA3B,gBACA2B,mCACA,oBACA,yBACA,qBAEAxB,YACAwB,8BACA,OACA7F,oBAEA,2BACA,4BACA,2BAEA2D,sBACAmC,mBACA,yCACA,oBACA,4BAGA,8BAGA/B,eACA,uBACA,gCClUmX,ICQ/W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Ac,CAAEA,KAAM,MAAO,CAACtG,EAAG,UAAU,CAACoE,WAAW,CAAC,CAAC1D,KAAK,YAAY2D,QAAQ,cAAc5B,MAAO,CACzsB,OACA,CAAC8D,MAAO,CAAC,CAAEC,UAAU,EAAMC,QAAS,WAClCC,aAAuB,QAAV5G,EAAIsG,KAAatG,EAAI6G,OAAOjG,KAAK,KAC7CiC,WAAW,oOAAoOxC,MAAM,CAAC,YAAc,UAAU,IAAI,IAAI,IAAI,MAAM,IAE5T4E,EAAkB,GCuBtB,GACA8B,YACAC,eAEA/C,OACA,OACAkC,kBACAlD,YACAiD,WACAK,iCACAD,QACAO,UACAC,YAGAG,YAGAC,SACAlB,eAcAoB,wBACA,cACA,gBACA,aAGAhB,UACAiB,mBACA,iCACA,OAEA,GADA,uBACA,mBACA,UACA,EAEAmC,2CACAhC,yBAEAiC,2BACA,+BACA,uBACArC,4CACA,oCACA,oBACA,UACA,yBAGA,uBACA,UACA,GAGA,GACApG,mBAEA0I,6BACA,+BACA,uBAEA,iCACA,gCACA,oBACA,UACA,8BAMArD,aACAe,sBACA,gBACA,eACA,kBCpHuX,ICQnX,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIa,I,QCwCA,GACfS,wBACAd,YACA4C,mBAEA1F,OACA,OACAzB,eACAP,SACA4D,cAEA5C,YACAyC,YACAlE,0BAGAsG,OACApH,iBACA0G,uBACA,gCAGAH,YACAC,SACApB,qBACA,wBAEAC,cACA,uCACA,GAEA3D,cACA,sCAGAgF,qBACA,+BAGAmC,4BACAnC,wBACA,WACA,eACAY,YACAC,gBACAC,QACArC,+BACAsC,OACAf,8BACAA,2DACAgB,cACA,OACApH,SAEA4I,kBACAtB,SACAlB,wCACAA,yCACAmB,qCACAH,2BACAA,4BACA,2CACA,SACAA,mCACA,OACA5G,6CAEA4G,yBAEAA,gBAEAI,UACAJ,oBAMApC,kBACA,2CAGA6D,yBACA,iBACA,OACAnB,YACAU,mCACAR,WACAC,YACAC,sBAEAg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AEAlJ,OACA,OACAhB,YACAtB,mBACAa,eACA,gBAEA9B,iBACA4B,kBACAC,sBACAO,oBACAC,wBACAI,gBACA5B,aACAC,wBACAoH,WAEA9H,yBAGAiH,UACA,kDACA,sBACAX,yDAEA,sDACA,aACA,sDACA,4DACA,0CAMA6E,UACAjH,SACA,iGACA,UAEAoI,UACA,2CAGAtF,OACAsF,WACAhG,sBACA,4CACA,8BAMA,OALA,WACAhE,WAEAA,WAEA,MAIA6D,UACA,yBAEAC,SACAmG,mBACA,gCACA,MACA,4CACAC,qCAEA,OACA,mBAAA1M,iBAIAsD,qBACAkD,uBACA,gDACAmE,gCACA,OACAc,aACAlB,UAEA/D,wBACAmG,4BACAnG,sBACA,8BACA,gDACA,0BACA,UACA,oDAEA,UACA,mDAIAjD,gBACAiD,wBACA,OACApG,SAEAwM,4BACAC,+BAIA7L,sBACA,wBACA,OACA4H,oCAEA5H,2BACA6L,kCACA,0BACA,UACA,2BAIA/I,eACAtB,WACA,mCACA,6BACAgE,uBACArC,cACA,+BACAqC,+EAGA3C,aACArB,WACAgE,sBACA,mCACArC,UACA,+BACAqC,sEACAA,+EAEA/E,eACA,oBACA,yCAGAD,cACA,oBACA,uCAIAD,kBACA,+BACA,qDACA,0BACA,wBACAiF,6CACAA,oEAGAtD,uBACA,iBACA,OACAsF,mCACAsE,oDACAC,oCACAtE,cACA7H,+CACAD,yBACAqM,uBACAC,mBACAjF,qBACAC,+DACAC,2CACA,GAEAgF,4BACA1G,sBACA,mCACA,kCACA,8BAMA,OALA,WACAhE,WAEAA,WAEA,IAEA,mCACA,mBACA,UACA,oBAIA2K,iCACA,6BACA,OACAvE,oCAEAwE,2BACA5G,sBACA,2BAIA3E,sBACA2E,sBACA,6BACA,yBAGApE,wBACAoE,sBACA,+BACA,yBAEA/C,UACA,0CAEAD,YACA,2CAEArC,YACA,eACA,6BACAkM,YACA,kBACA,yBAEAjM,YACAoF,gBAGA1F,iBACA,uCAEAG,UACA,mBACAjB,UAGAiE,aAC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J6H,YAAYpK,GACR,MAAMqK,EAAQ,IAAK/O,KAAK0E,YACxBqK,EAAMR,QAAU7J,EAAW6J,QAC3BvO,KAAK0E,WAAaqK,M,kCCvB9B,W,kCCAA","file":"js/chunk-4843abff.98c7513e.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./myListSelect.vue?vue&type=style&index=0&id=65cc9d27&prod&scoped=true&lang=less&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TestBasket.vue?vue&type=style&index=0&id=b9cc4faa&prod&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiListSelect.vue?vue&type=style&index=0&id=6ab36d9b&prod&scoped=true&lang=less&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChapterTree.vue?vue&type=style&index=0&id=4319d7d8&prod&scoped=true&lang=css&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditChapterMenus.vue?vue&type=style&index=0&id=4172a407&prod&scoped=true&lang=css&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PointsTree.vue?vue&type=style&index=0&id=23a23943&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"question-bank\"},[_c('div',{staticClass:\"top\"},[_c('div',{staticClass:\"top-left flex-items\"},[_c('a-icon',{staticClass:\"subject-icon\",attrs:{\"type\":\"menu-fold\"},on:{\"click\":_vm.handleShowSubjectSelect}}),[_c('span',{staticClass:\"subject-title only-line-1\"},[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":_vm.handleShowSubjectSelect}},[_vm._v(_vm._s(_vm.activeSubject.educationCategory)+_vm._s(_vm.activeSubject.name))])]),_c('div',{staticClass:\"subject-select-box\",class:{'subject-select-box-show':_vm.isShowSubjectSelect},on:{\"mouseleave\":function($event){_vm.isShowSubjectSelect=false}}},[_c('div',{staticClass:\"type-group\"},[(_vm.activeSubject.id)?_c('MultiListSelect',{attrs:{\"data\":_vm.$store.state.baseInfo.SubjectsArr,\"needAll\":false,\"defaultSelect\":[_vm.activeSubject.id]},on:{\"callBack\":_vm.subjectCallBack}}):_vm._e()],1)])]],2),_c('div',{staticClass:\"top-right flex-align\"},[_c('div',[_c('a-button',{staticClass:\"m-r8\",attrs:{\"disabled\":!_vm.ChapterId&&_vm.KnowledgePointIdList.length==0},on:{\"click\":_vm.QuestionImport}},[_vm._v(\"试题导入\")]),_c('a-button',{staticClass:\"m-r8\",attrs:{\"loading\":_vm.templateLoading,\"disabled\":!_vm.activeSubject.id,\"type\":\"primary\"},on:{\"click\":_vm.GetQuestionTemplate}},[_vm._v(\" 获取下载模板\")]),_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.toPath('intelligencePaper')}}},[_vm._v(\"智能组题\")])],1),_c('a-input-search',{staticStyle:{\"width\":\"400px\"},attrs:{\"placeholder\":\"搜索题干\",\"enter-button\":\"\"},on:{\"search\":_vm.onSearch}})],1)]),_c('div',{staticClass:\"main\"},[_c('div',{staticClass:\"main-left\"},[_c('a-tabs',{attrs:{\"default-active-key\":\"1\"},on:{\"change\":_vm.callback}},[_c('a-tab-pane',{key:\"1\",attrs:{\"tab\":\"章节\"}},[_c('ChapterTree',{ref:\"ChapterTree\",attrs:{\"activeSubject\":_vm.activeSubject},on:{\"getQuestion\":_vm.getQuestion,\"clearPoints\":_vm.clearPoints}})],1),_c('a-tab-pane',{key:\"2\",attrs:{\"tab\":\"知识点\",\"force-render\":\"\"}},[_c('PointsTree',{ref:\"PointsTree\",attrs:{\"activeSubject\":_vm.activeSubject},on:{\"getQuestion\":_vm.getQuestion,\"clearChapter\":_vm.clearChapter}})],1)],1)],1),_c('div',{staticClass:\"main-right\"},[_c('div',{staticClass:\"question-list\"},[_c('myListSelect',{attrs:{\"title\":\"试题难度\",\"data\":_vm.difficultyList,\"defaultSelect\":_vm.activeDifficulty,\"replaceFields\":_vm.replaceFields},on:{\"callBack\":_vm.difficultyCallBack},model:{value:(_vm.activeDifficulty),callback:function ($$v) {_vm.activeDifficulty=$$v},expression:\"activeDifficulty\"}}),_c('myListSelect',{attrs:{\"title\":\"试题题型\",\"data\":_vm.questionTypeList,\"defaultSelect\":_vm.activeQuestionType},on:{\"callBack\":_vm.questionTypeCallBack},model:{value:(_vm.activeQuestionType),callback:function ($$v) {_vm.activeQuestionType=$$v},expression:\"activeQuestionType\"}}),_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[[_vm._l((_vm.questionData),function(item,index){return (_vm.questionData.length>0)?_c('div',{key:item.id,staticClass:\"question-item m16\"},[_c('QuestionItem',{ref:'QuestionItem'+index,refInFor:true,attrs:{\"data\":item},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"flex-align bordr-bottom-gray p-8\"},[_c('div',[_c('span',{staticClass:\"m-r36\"},[_vm._v(\"题型:\"+_vm._s(item.disciplineQuestionType))]),_c('span',{staticClass:\"m-r36\"},[_vm._v(\"难度:\"+_vm._s(item.difficulty))])]),_c('div',{staticClass:\"flex\"},[(item.questionConvertState!=0)?_c('span',[_c('a-icon',{staticClass:\"blue-hover m-r8\",attrs:{\"type\":\"undo\"},on:{\"click\":_vm._QuestionGetList}})],1):_vm._e(),(item.questionConvertState!=0)?[_c('a-tooltip',[(item.questionConvertState>1)?_c('template',{slot:\"title\"},[_vm._v(\" \"+_vm._s(item.convertFailMessage)+\" \")]):_vm._e(),_c('div',{staticClass:\"flex m-r8\",staticStyle:{\"display\":\"block\"}},[_c('span',[_vm._v(\"替换状态:\")]),(item.questionConvertState==1)?_c('span',{staticStyle:{\"color\":\"orange\"}},[_vm._v(\"转换中\")]):_vm._e(),(item.questionConvertState==2)?_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"转换失败\")]):_vm._e(),(item.questionConvertState==3)?_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"解析替换失败\")]):_vm._e()])],2)]:_vm._e(),_c('a-upload',{attrs:{\"showUploadList\":false,\"customRequest\":(data)=>_vm.customRequest(data,item.id,index)}},[_c('a',{staticClass:\"m-r16\"},[_vm._v(\"上传替换\")])]),_c('a',{staticClass:\"m-r16\",on:{\"click\":function($event){return _vm.questionDown(item)}}},[_vm._v(\"下载\")]),_c('a',{staticClass:\"m-r16\",on:{\"click\":function($event){return _vm.toEdit(item,index)}}},[_vm._v(\"纠错\")]),_c('a',{staticClass:\"m-r16\",on:{\"click\":function($event){return _vm.toggle(index)}}},[_vm._v(\"详情\")]),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!item.inbox),expression:\"!item.inbox\"}],staticClass:\"m-r16\",on:{\"click\":function($event){return _vm.addToTest(item)}}},[_vm._v(\"加入试卷\")]),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.inbox),expression:\"item.inbox\"}],staticClass:\"m-r16\",on:{\"click\":function($event){return _vm.delFromTest(item)}}},[_vm._v(\"移出试卷\")])],2)])]}}],null,true)})],1):_vm._e()}),(_vm.questionData.length===0)?_c('a-empty'):_vm._e()]],2),_c('div',{staticClass:\"paging-box\"},[_c('oPagination',{attrs:{\"pagination\":_vm.pagination},on:{\"change\":_vm.handleChange}})],1)],1)])]),_c('QuestionImport',{ref:\"QuestionImport\"}),_c('div',{staticClass:\"basket\",on:{\"click\":_vm.showDrawer}},[_c('div',{staticClass:\"basket-inner\"},[(_vm.$store.state.storage.testBox.length>0)?_c('div',{staticClass:\"basket-dot\"},[_vm._v(_vm._s(_vm.dotNum))]):_vm._e(),_vm._v(\" 试题篮 \")])]),_c('TestBasket',{ref:\"TestBasket\"})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"edition\"},[_c('div',{staticClass:\"flex-align\",on:{\"click\":_vm.handleShowDropdown}},[_c('span',{staticClass:\"edition-name only-line-1\"},[_vm._v(_vm._s(_vm.activeBookVersion.name))]),_c('span',[_c('a-icon',{staticClass:\"edition-icon\",attrs:{\"type\":_vm.iconCaret}})],1)]),_c('div',{staticClass:\"drop-down\",class:{'drop-down-show':_vm.isShowDropdown},on:{\"mouseleave\":_vm.hideSropdown}},[_c('div',{staticClass:\"drop-down-content\"},_vm._l((_vm.bookVersions),function(item,index){return _c('div',{key:index,class:['drop-down-item',{'active-btn':item.id==_vm.activeKey?true:false}],on:{\"click\":function($event){return _vm.editionClick(item)}}},[_vm._v(_vm._s(item.name))])}),0)])]),_c('div',{staticClass:\"tree-box\"},[_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[(_vm.treeData.length>0)?_c('a-tree',{attrs:{\"treeData\":_vm.treeData,\"load-data\":_vm.onLoadData,\"replace-fields\":_vm.replaceFields,\"selectedKeys\":[_vm.ChapterId]},on:{\"select\":_vm.onSelect},scopedSlots:_vm._u([{key:\"custom\",fn:function(item){return [_c('div',{staticClass:\"custom-box\"},[_c('a-tooltip',{attrs:{\"overlayClassName\":\"custom-title\",\"placement\":\"top\",\"title\":item.title,\"get-popup-container\":_vm.getPopupContainer}},[_c('span',[_vm._v(_vm._s(_vm.fontSplice(item.title)))])]),_c('span',{staticClass:\"toolbar\"},[_c('a-popover',{attrs:{\"placement\":\"right\"}},[_c('template',{slot:\"content\"},[_c('div',{staticClass:\"blue-hover\",staticStyle:{\"margin-bottom\":\"8px\"},on:{\"click\":function($event){return _vm.showModal('add',item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"plus\"}}),_vm._v(\"添加目录 \")],1),_c('div',{staticClass:\"blue-hover\",staticStyle:{\"margin-bottom\":\"8px\"},on:{\"click\":function($event){return _vm.showModal('edit',item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"form\"}}),_vm._v(\"修改名称 \")],1),_c('div',{staticClass:\"blue-hover\",on:{\"click\":function($event){return _vm._ChapterDelete(item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"close\"}}),_vm._v(\"删除目录 \")],1)]),_c('a-icon',{staticClass:\"blue-hover tool-icon\",attrs:{\"type\":\"ellipsis\"}})],2)],1)],1)]}}],null,false,3787476803)}):_c('a-empty')],1)],1),_c('EditChapterMenus',{ref:\"EditChapterMenus\"})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a-modal',{attrs:{\"visible\":_vm.visible,\"confirmLoading\":_vm.confirmLoading,\"width\":\"700px\",\"maskClosable\":false,\"destroyOnClose\":true,\"width\":900},on:{\"ok\":_vm.handOK,\"cancel\":_vm.handCancle}},[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\" \"+_vm._s((_vm.type==='add'&&'创建子')||(_vm.type==='edit'&&'编辑'))+\"章节 \")]),_c('div',{staticClass:\"modal-box\"},[_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[_c('a-form',{attrs:{\"form\":_vm.form,\"layout\":\"horizontal\"},on:{\"submit\":_vm.handOK}},[_c('a-form-item',{attrs:{\"label\":\"目录名称:\",\"label-col\":{ span: 3 },\"wrapper-col\":{ span: 20 }}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:([\n 'name',\n {rules: [{ required: true, message: '此项为必填!' },\n ],initialValue:_vm.type=='edit'?_vm.record.name:''}\n ]),expression:\"[\\n 'name',\\n {rules: [{ required: true, message: '此项为必填!' },\\n ],initialValue:type=='edit'?record.name:''}\\n ]\"}],attrs:{\"placeholder\":\"请输入\"}})],1),_c('a-form-item',{attrs:{\"label\":\"备注:\",\"label-col\":{ span: 3 },\"wrapper-col\":{ span: 20 }}},[_c('Editor',{model:{value:(_vm.detail),callback:function ($$v) {_vm.detail=$$v},expression:\"detail\"}})],1)],1)],1)],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-modal :visible=\"visible\" @ok=\"handOK\" :confirmLoading=\"confirmLoading\" @cancel=\"handCancle\" width=\"700px\"\r\n :maskClosable=\"false\" :destroyOnClose=\"true\" :width=\"900\">\r\n <div slot=\"title\">\r\n {{(type==='add'&&'创建子')||(type==='edit'&&'编辑')}}章节\r\n </div>\r\n <div class=\"modal-box\">\r\n <a-spin :spinning=\"spinning\">\r\n <a-form :form=\"form\" @submit=\"handOK\" layout=\"horizontal\">\r\n <a-form-item label=\"目录名称:\" :label-col=\"{ span: 3 }\" :wrapper-col=\"{ span: 20 }\">\r\n <a-input placeholder=\"请输入\" v-decorator=\"[\r\n 'name',\r\n {rules: [{ required: true, message: '此项为必填!' },\r\n ],initialValue:type=='edit'?record.name:''}\r\n ]\" />\r\n </a-form-item>\r\n <a-form-item label=\"备注:\" :label-col=\"{ span: 3 }\" :wrapper-col=\"{ span: 20 }\">\r\n <Editor v-model=\"detail\" />\r\n </a-form-item>\r\n </a-form>\r\n </a-spin>\r\n </div>\r\n </a-modal>\r\n </div>\r\n</template>\r\n<script>\r\n import Editor from '@/components/Editor.vue'\r\n import { ChapterCreate, ChapterGetInfo, ChapterUpdate } from '@/api/api'\r\n export default {\r\n components: {\r\n Editor\r\n },\r\n data() {\r\n return {\r\n confirmLoading: false,\r\n spinning: false,\r\n visible: false,\r\n form: this.$form.createForm(this),\r\n type: '',\r\n record: {},\r\n detail: '',\r\n };\r\n },\r\n mounted() {\r\n\r\n },\r\n methods: {\r\n showModal(type, record) {\r\n if (type === 'edit') {\r\n this.spinning = true;\r\n let data = {\r\n id: record.id\r\n }\r\n ChapterGetInfo(data).then(res => {\r\n console.log(res, '详情')\r\n this.spinning = false;\r\n this.detail = res.remark;\r\n }).catch(err => {\r\n this.spinning = false;\r\n })\r\n }\r\n console.log(record, 'record')\r\n this.record = record;\r\n this.visible = true;\r\n this.type = type;\r\n },\r\n //表单确认\r\n handOK(e) {\r\n e.preventDefault();\r\n this.form.validateFields((err, values) => {\r\n if (!err) {\r\n this.confirmLoading = true;\r\n if (this.type === 'add') {\r\n let data = {\r\n ...values,\r\n remark: this.detail,\r\n textBookId: this.$parent.activeBookVersion.id,\r\n parentId: this.record.id\r\n }\r\n ChapterCreate(data).then(res => {\r\n this.$message.success('创建成功!')\r\n this.confirmLoading = false;\r\n console.log(this.record, 'this.record55555')\r\n this.$parent.loadChild(this.record);\r\n this.handCancle();\r\n }).catch(err => {\r\n this.confirmLoading = false;\r\n })\r\n }\r\n if (this.type === 'edit') {\r\n let data = {\r\n ...values,\r\n remark: this.detail\r\n }\r\n let params = {\r\n id: this.record.id\r\n }\r\n ChapterUpdate(data, params).then(res => {\r\n this.$message.success('修改成功!')\r\n this.confirmLoading = false;\r\n // this.$parent._ChapterGetList();\r\n this.record.dataRef.title = values.name;\r\n this.record.dataRef.name = values.name;\r\n this.handCancle();\r\n }).catch(err => {\r\n this.confirmLoading = false;\r\n })\r\n }\r\n }\r\n })\r\n },\r\n handCancle() {\r\n this.visible = false;\r\n this.record = {};\r\n this.detail = '';\r\n }\r\n }\r\n };\r\n</script>\r\n<style scoped>\r\n .file-row {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: flex-end;\r\n }\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditChapterMenus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditChapterMenus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditChapterMenus.vue?vue&type=template&id=4172a407&scoped=true&\"\nimport script from \"./EditChapterMenus.vue?vue&type=script&lang=js&\"\nexport * from \"./EditChapterMenus.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditChapterMenus.vue?vue&type=style&index=0&id=4172a407&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4172a407\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div>\r\n <div class=\"edition\">\r\n <div class=\"flex-align\" @click=\"handleShowDropdown\">\r\n <span class=\"edition-name only-line-1\">{{activeBookVersion.name}}</span>\r\n <span>\r\n <a-icon :type=\"iconCaret\" class=\"edition-icon\" />\r\n </span>\r\n </div>\r\n <div class=\"drop-down\" :class=\"{'drop-down-show':isShowDropdown}\" @mouseleave=\"hideSropdown\">\r\n <div class=\"drop-down-content\">\r\n <div\r\n :class=\"['drop-down-item',{'active-btn':item.id==activeKey?true:false}]\"\r\n v-for=\"(item,index) in bookVersions\"\r\n :key=\"index\"\r\n @click=\"editionClick(item)\"\r\n >{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"tree-box\">\r\n <a-spin :spinning=\"spinning\">\r\n <a-tree\r\n v-if=\"treeData.length>0\"\r\n @select=\"onSelect\"\r\n :treeData=\"treeData\"\r\n :load-data=\"onLoadData\"\r\n :replace-fields=\"replaceFields\"\r\n :selectedKeys=\"[ChapterId]\"\r\n >\r\n <template slot=\"custom\" slot-scope=\"item\">\r\n <div class=\"custom-box\">\r\n <a-tooltip\r\n overlayClassName=\"custom-title\"\r\n placement=\"top\"\r\n :title=\"item.title\"\r\n :get-popup-container=\"getPopupContainer\"\r\n >\r\n <span>{{fontSplice(item.title)}}</span>\r\n </a-tooltip>\r\n <span class=\"toolbar\">\r\n <a-popover placement=\"right\">\r\n <template slot=\"content\">\r\n <div\r\n class=\"blue-hover\"\r\n style=\"margin-bottom: 8px;\"\r\n @click=\"showModal('add',item)\"\r\n >\r\n <a-icon type=\"plus\" style=\"margin-right: 8px;\" />添加目录\r\n </div>\r\n <div\r\n class=\"blue-hover\"\r\n style=\"margin-bottom: 8px;\"\r\n @click=\"showModal('edit',item)\"\r\n >\r\n <a-icon type=\"form\" style=\"margin-right: 8px;\" />修改名称\r\n </div>\r\n <div class=\"blue-hover\" @click=\"_ChapterDelete(item)\">\r\n <a-icon type=\"close\" style=\"margin-right: 8px;\" />删除目录\r\n </div>\r\n </template>\r\n <a-icon type=\"ellipsis\" class=\"blue-hover tool-icon\" />\r\n </a-popover>\r\n </span>\r\n </div>\r\n </template>\r\n </a-tree>\r\n <a-empty v-else />\r\n </a-spin>\r\n </div>\r\n <EditChapterMenus ref=\"EditChapterMenus\" />\r\n </div>\r\n</template>\r\n<script>\r\nimport { TextbookGetList, ChapterGetList, ChapterDelete } from \"@/api/api\";\r\nimport EditChapterMenus from \"./EditChapterMenus.vue\";\r\nimport { searchOption } from \"@/utils/tools\";\r\nexport default {\r\n components: {\r\n EditChapterMenus\r\n },\r\n props: [\"activeSubject\"],\r\n data() {\r\n return {\r\n spinning: false,\r\n replaceFields: {\r\n key: \"id\",\r\n title: \"name\"\r\n },\r\n activeKey: \"\",\r\n treeData: [],\r\n bookVersions: [], //教材版本\r\n activeBookVersion: {}, //当前教材版本\r\n ChapterId: \"\", //选中的章节id\r\n\r\n isShowDropdown: false,\r\n iconCaret:'caret-right',\r\n };\r\n },\r\n watch: {\r\n activeSubject(nval) {\r\n console.log(nval, \"66666\");\r\n this.bookVersions = [];\r\n this.activeBookVersion = {};\r\n this._TextbookGetList();\r\n this.$emit(\"getQuestion\");\r\n },\r\n activeBookVersion(nval) {\r\n console.log(nval);\r\n this._ChapterGetList();\r\n }\r\n },\r\n created() {},\r\n mounted() {},\r\n methods: {\r\n getPopupContainer(trigger) {\r\n return trigger.parentElement;\r\n },\r\n fontSplice(str) {\r\n if (str.length > 10) return str.slice(0, 10) + \"...\";\r\n else return str;\r\n },\r\n clearChapter() {\r\n if (!this.ChapterId) {\r\n return;\r\n }\r\n console.log(\"章节清了\");\r\n this.ChapterId = \"\";\r\n },\r\n //删除章节\r\n _ChapterDelete(record) {\r\n console.log(record, \"record\");\r\n let _this = this;\r\n this.$confirm({\r\n okText: '确认',\r\n cancelText: '取消',\r\n mask: false,\r\n title: `您确认要删除\"${record.name}\"章节吗?`,\r\n onOk() {\r\n console.log(record.id, \"record.id\");\r\n console.log(_this.ChapterId, \"ChapterId\");\r\n _this.spinning = true;\r\n let data = {\r\n id: record.id\r\n };\r\n ChapterDelete(data)\r\n .then(res => {\r\n console.log(record.dataRef, \"record.dataRef\");\r\n console.log(_this.treeData, \"_this.treeData\");\r\n searchOption(record.dataRef, _this.treeData);\r\n _this.treeData = [..._this.treeData];\r\n _this.$message.success(\"删除成功!\");\r\n if (record.id === _this.ChapterId) {\r\n _this.$emit(\"getQuestion\");\r\n }\r\n _this.spinning = false;\r\n })\r\n .catch(err => {\r\n _this.spinning = false;\r\n });\r\n }\r\n });\r\n },\r\n //增加,修改章节\r\n showModal(type, record = {}) {\r\n this.$refs.EditChapterMenus.showModal(type, record);\r\n },\r\n onLoadData(treeNode) {\r\n console.log(treeNode, \"treeNode\");\r\n return new Promise(resolve => {\r\n if (treeNode.dataRef.children) {\r\n resolve();\r\n return;\r\n }\r\n this.spinning = true;\r\n let data = {\r\n ParentId: treeNode.dataRef.id,\r\n TextbookId: this.activeBookVersion.id,\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n ChapterGetList(data)\r\n .then(res => {\r\n treeNode.dataRef.children = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.treeData = [...this.treeData];\r\n this.spinning = false;\r\n resolve();\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n });\r\n },\r\n //章节列表\r\n _ChapterGetList() {\r\n this.spinning = true;\r\n let data = {\r\n ParentId: \"\",\r\n TextbookId: this.activeBookVersion.id,\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n ChapterGetList(data)\r\n .then(res => {\r\n console.log(res, \"章节树\");\r\n this.treeData = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.spinning = false;\r\n console.log(this.treeData, \"this.treeData \");\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n },\r\n loadChild(record) {\r\n console.log(record, \"record66666\");\r\n this.spinning = true;\r\n let data = {\r\n ParentId: record.id || \"\", //父级知识点id\r\n TextbookId: this.activeBookVersion.id, //教材id\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n ChapterGetList(data)\r\n .then(res => {\r\n console.log(res, \"子节点66\");\r\n if (res.totalCount > 0) {\r\n record.dataRef.isLeaf = false;\r\n }\r\n record.dataRef.children = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.treeData = [...this.treeData];\r\n console.log(this.treeData, \"treeData\");\r\n this.spinning = false;\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n },\r\n //获取学科下的教材版本\r\n _TextbookGetList() {\r\n if (!this.activeSubject.id) {\r\n return;\r\n }\r\n let data = {\r\n DisciplineId: this.activeSubject.id, //学科id\r\n IsActive: true,\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n TextbookGetList(data).then(res => {\r\n console.log(res, \"学科下的教材版本\");\r\n this.bookVersions = res.items;\r\n if (!this.activeBookVersion.id && res.items.length > 0) {\r\n console.log(\"进这了\", res.items[0]);\r\n this.activeBookVersion = res.items[0];\r\n this.activeKey = res.items[0].id;\r\n this._ChapterGetList();\r\n }\r\n });\r\n },\r\n editionClick(item) {\r\n console.log(item, \"activeBookVersion\");\r\n this.activeKey = item.id;\r\n this.activeBookVersion = item;\r\n this.hideSropdown()\r\n },\r\n onSelect(selectedKeys) {\r\n console.log(selectedKeys, \"selectedKeys\");\r\n let data = {\r\n ChapterId: selectedKeys[0] || \"\"\r\n };\r\n this.ChapterId = data.ChapterId;\r\n this.$emit(\"getQuestion\", data);\r\n this.$emit(\"clearPoints\");\r\n },\r\n handleShowDropdown(e){\r\n e.preventDefault();\r\n this.isShowDropdown=!this.isShowDropdown;\r\n if(this.isShowDropdown){\r\n this.iconCaret='caret-down';\r\n }\r\n else{\r\n this.iconCaret='caret-right';\r\n }\r\n },\r\n hideSropdown() {\r\n this.isShowDropdown=false;\r\n this.iconCaret='caret-right';\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.active-btn {\r\n color: #fff;\r\n background-color: #1980ff;\r\n}\r\n\r\n.edition {\r\n padding: 8px 16px;\r\n border-bottom: 1px solid rgba(232, 232, 232, 1);\r\n cursor: pointer;\r\n position: relative;\r\n}\r\n\r\n.edition:hover .edition-name {\r\n color: rgb(24, 144, 255);\r\n}\r\n\r\n.drop-down {\r\n width: 100%;\r\n max-height: 0px;\r\n position: absolute;\r\n top: 40px;\r\n left: 0;\r\n background-color: #fff;\r\n z-index: 99;\r\n transition: all 1s;\r\n overflow: hidden;\r\n}\r\n\r\n.edition:hover .drop-down {\r\n /* max-height: 200px; */\r\n}\r\n\r\n.drop-down.drop-down-show {\r\n max-height: 200px;\r\n}\r\n\r\n.drop-down-content {\r\n padding: 8px;\r\n border-bottom: 1px solid rgba(232, 232, 232, 1);\r\n display: flex;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.tree-box {\r\n width: 100%;\r\n min-height: 200px;\r\n overflow-x: auto;\r\n}\r\n\r\n::v-deep .custom-title{\r\n font-size: 1px;\r\n}\r\n.drop-down-item {\r\n padding: 0 6px;\r\n border-radius: 2px;\r\n margin-bottom: 6px;\r\n cursor: pointer;\r\n}\r\n\r\n.drop-down-item:hover:not(.active-btn) {\r\n color: rgb(24, 144, 255);\r\n}\r\n\r\n.toolbar {\r\n position: absolute;\r\n right: 10px;\r\n margin-top: 0px;\r\n border: none;\r\n font-size: 16px;\r\n font-weight: bold;\r\n}\r\n\r\n.tool-icon {\r\n font-size: 20px;\r\n}\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChapterTree.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChapterTree.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ChapterTree.vue?vue&type=template&id=4319d7d8&scoped=true&\"\nimport script from \"./ChapterTree.vue?vue&type=script&lang=js&\"\nexport * from \"./ChapterTree.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ChapterTree.vue?vue&type=style&index=0&id=4319d7d8&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4319d7d8\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"tree-box\"},[_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[(_vm.treeData.length>0)?_c('a-tree',{attrs:{\"treeData\":_vm.treeData,\"load-data\":_vm.onLoadData,\"replace-fields\":_vm.replaceFields,\"selectedKeys\":_vm.KnowledgePointIdList},on:{\"select\":_vm.onSelect},scopedSlots:_vm._u([{key:\"custom\",fn:function(item){return [_c('div',{staticClass:\"custom-box\"},[_c('a-tooltip',{attrs:{\"overlayClassName\":\"custom-title\",\"placement\":\"top\",\"title\":item.title,\"get-popup-container\":_vm.getPopupContainer}},[_c('span',[_vm._v(_vm._s(_vm.fontSplice(item.title)))])]),_c('span',{staticClass:\"toolbar\"},[_c('a-popover',{attrs:{\"placement\":\"right\"}},[_c('template',{slot:\"content\"},[_c('div',{staticClass:\"blue-hover\",staticStyle:{\"margin-bottom\":\"8px\"},on:{\"click\":function($event){return _vm.showModal('add',item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"plus\"}}),_vm._v(\"添加目录 \")],1),_c('div',{staticClass:\"blue-hover\",staticStyle:{\"margin-bottom\":\"8px\"},on:{\"click\":function($event){return _vm.showModal('edit',item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"form\"}}),_vm._v(\"修改名称 \")],1),_c('div',{staticClass:\"blue-hover\",on:{\"click\":function($event){return _vm._KnowledgePointGetDelete(item)}}},[_c('a-icon',{staticStyle:{\"margin-right\":\"8px\"},attrs:{\"type\":\"close\"}}),_vm._v(\"删除目录 \")],1)]),_c('a-icon',{staticClass:\"blue-hover tool-icon\",attrs:{\"type\":\"ellipsis\"}})],2)],1)],1)]}}],null,false,3241740690)}):_c('a-empty')],1)],1),_c('EditPointsMenus',{ref:\"EditPointsMenus\"})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a-modal',{attrs:{\"visible\":_vm.visible,\"confirmLoading\":_vm.confirmLoading,\"width\":\"700px\",\"maskClosable\":false,\"destroyOnClose\":true,\"width\":900},on:{\"ok\":_vm.handOK,\"cancel\":_vm.handCancle}},[_c('div',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\" \"+_vm._s((_vm.type==='add'&&'创建子')||(_vm.type==='edit'&&'编辑'))+\"知识点 \")]),_c('div',{staticClass:\"modal-box\"},[_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[_c('a-form',{attrs:{\"form\":_vm.form,\"layout\":\"horizontal\"},on:{\"submit\":_vm.handOK}},[_c('a-form-item',{attrs:{\"label\":\"目录名称:\",\"label-col\":{ span: 3 },\"wrapper-col\":{ span: 20 }}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:([\n 'name',\n {rules: [{ required: true, message: '此项为必填!' },\n ],initialValue:_vm.type=='edit'?_vm.record.name:''}\n ]),expression:\"[\\n 'name',\\n {rules: [{ required: true, message: '此项为必填!' },\\n ],initialValue:type=='edit'?record.name:''}\\n ]\"}],attrs:{\"placeholder\":\"请输入\"}})],1)],1)],1)],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-modal :visible=\"visible\" @ok=\"handOK\" :confirmLoading=\"confirmLoading\" @cancel=\"handCancle\" width=\"700px\"\r\n :maskClosable=\"false\" :destroyOnClose=\"true\" :width=\"900\">\r\n <div slot=\"title\">\r\n {{(type==='add'&&'创建子')||(type==='edit'&&'编辑')}}知识点\r\n </div>\r\n <div class=\"modal-box\">\r\n <a-spin :spinning=\"spinning\">\r\n <a-form :form=\"form\" @submit=\"handOK\" layout=\"horizontal\">\r\n <a-form-item label=\"目录名称:\" :label-col=\"{ span: 3 }\" :wrapper-col=\"{ span: 20 }\">\r\n <a-input placeholder=\"请输入\" v-decorator=\"[\r\n 'name',\r\n {rules: [{ required: true, message: '此项为必填!' },\r\n ],initialValue:type=='edit'?record.name:''}\r\n ]\" />\r\n </a-form-item>\r\n <!-- <a-form-item label=\"备注:\" :label-col=\"{ span: 3 }\" :wrapper-col=\"{ span: 20 }\">\r\n <Editor v-model=\"detail\" />\r\n </a-form-item> -->\r\n </a-form>\r\n </a-spin>\r\n </div>\r\n </a-modal>\r\n </div>\r\n</template>\r\n<script>\r\n import Editor from '@/components/Editor.vue'\r\n import { KnowledgePointGetCreate, KnowledgePointGetOne, KnowledgePointGetUpdate } from '@/api/api'\r\n export default {\r\n components: {\r\n Editor\r\n },\r\n data() {\r\n return {\r\n confirmLoading: false,\r\n spinning: false,\r\n visible: false,\r\n form: this.$form.createForm(this),\r\n type: '',\r\n record: {},\r\n detail: '',\r\n };\r\n },\r\n mounted() {\r\n\r\n },\r\n methods: {\r\n showModal(type, record) {\r\n // if (type === 'edit') {\r\n // this.spinning = true;\r\n // let data = {\r\n // id: record.id\r\n // }\r\n // KnowledgePointGetOne(data).then(res => {\r\n // console.log(res, '详情')\r\n // this.spinning = false;\r\n // this.detail = res.remark;\r\n // }).catch(err => {\r\n // this.spinning = false;\r\n // })\r\n // }\r\n console.log(record, 'record')\r\n this.record = record;\r\n this.visible = true;\r\n this.type = type;\r\n },\r\n //表单确认\r\n handOK(e) {\r\n e.preventDefault();\r\n this.form.validateFields((err, values) => {\r\n if (!err) {\r\n this.confirmLoading = true;\r\n if (this.type === 'add') {\r\n let data = {\r\n ...values,\r\n // remark: this.detail,\r\n disciplineId: this.$parent.activeSubject.id,\r\n parentId: this.record.id\r\n }\r\n KnowledgePointGetCreate(data).then(res => {\r\n this.$message.success('创建成功!')\r\n this.confirmLoading = false;\r\n console.log(this.record, 'this.record55555')\r\n this.$parent.loadChild(this.record);\r\n this.handCancle();\r\n }).catch(err => {\r\n this.confirmLoading = false;\r\n })\r\n }\r\n if (this.type === 'edit') {\r\n let data = {\r\n ...values,\r\n // remark: this.detail\r\n }\r\n let params = {\r\n id: this.record.id\r\n }\r\n KnowledgePointGetUpdate(data, params).then(res => {\r\n this.$message.success('修改成功!')\r\n this.confirmLoading = false;\r\n // this.$parent._ChapterGetList();\r\n this.record.dataRef.title = values.name;\r\n this.record.dataRef.name = values.name;\r\n this.handCancle();\r\n }).catch(err => {\r\n this.confirmLoading = false;\r\n })\r\n }\r\n }\r\n })\r\n },\r\n handCancle() {\r\n console.log('添加了进这了')\r\n this.visible = false;\r\n this.record = {};\r\n this.detail = '';\r\n }\r\n }\r\n };\r\n</script>\r\n<style scoped>\r\n .file-row {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: flex-end;\r\n }\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditPointsMenus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditPointsMenus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditPointsMenus.vue?vue&type=template&id=7d2ca5b4&scoped=true&\"\nimport script from \"./EditPointsMenus.vue?vue&type=script&lang=js&\"\nexport * from \"./EditPointsMenus.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditPointsMenus.vue?vue&type=style&index=0&id=7d2ca5b4&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7d2ca5b4\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div>\r\n <div class=\"tree-box\">\r\n <a-spin :spinning=\"spinning\">\r\n <a-tree\r\n v-if=\"treeData.length>0\"\r\n @select=\"onSelect\"\r\n :treeData=\"treeData\"\r\n :load-data=\"onLoadData\"\r\n :replace-fields=\"replaceFields\"\r\n :selectedKeys=\"KnowledgePointIdList\"\r\n >\r\n <template slot=\"custom\" slot-scope=\"item\">\r\n <div class=\"custom-box\">\r\n <a-tooltip\r\n overlayClassName=\"custom-title\"\r\n placement=\"top\"\r\n :title=\"item.title\"\r\n :get-popup-container=\"getPopupContainer\"\r\n >\r\n <span>{{fontSplice(item.title)}}</span>\r\n </a-tooltip>\r\n <span class=\"toolbar\">\r\n <a-popover placement=\"right\">\r\n <template slot=\"content\">\r\n <div\r\n class=\"blue-hover\"\r\n style=\"margin-bottom: 8px;\"\r\n @click=\"showModal('add',item)\"\r\n >\r\n <a-icon type=\"plus\" style=\"margin-right: 8px;\" />添加目录\r\n </div>\r\n <div\r\n class=\"blue-hover\"\r\n style=\"margin-bottom: 8px;\"\r\n @click=\"showModal('edit',item)\"\r\n >\r\n <a-icon type=\"form\" style=\"margin-right: 8px;\" />修改名称\r\n </div>\r\n <div class=\"blue-hover\" @click=\"_KnowledgePointGetDelete(item)\">\r\n <a-icon type=\"close\" style=\"margin-right: 8px;\" />删除目录\r\n </div>\r\n </template>\r\n <a-icon type=\"ellipsis\" class=\"blue-hover tool-icon\" />\r\n </a-popover>\r\n </span>\r\n </div>\r\n </template>\r\n </a-tree>\r\n <a-empty v-else />\r\n </a-spin>\r\n </div>\r\n <EditPointsMenus ref=\"EditPointsMenus\" />\r\n </div>\r\n</template>\r\n<script>\r\nimport EditPointsMenus from \"./EditPointsMenus.vue\";\r\nimport { KnowledgePointGetList, KnowledgePointGetDelete } from \"@/api/api\";\r\nimport { searchOption } from \"@/utils/tools\";\r\nexport default {\r\n props: [\"activeSubject\"],\r\n components: {\r\n EditPointsMenus\r\n },\r\n data() {\r\n return {\r\n replaceFields: {\r\n key: \"id\",\r\n title: \"name\"\r\n },\r\n spinning: false,\r\n treeData: [],\r\n KnowledgePointIdList: []\r\n };\r\n },\r\n watch: {\r\n activeSubject(nval) {\r\n console.log(nval, \"66666\");\r\n this._KnowledgePointGetList();\r\n }\r\n },\r\n mounted() {},\r\n methods: {\r\n getPopupContainer(trigger) {\r\n return trigger.parentElement;\r\n },\r\n fontSplice(str) {\r\n if (str.length > 10) return str.slice(0, 10) + \"...\";\r\n else return str;\r\n },\r\n clearPoints() {\r\n if (this.KnowledgePointIdList.length == 0) {\r\n return;\r\n }\r\n console.log(\"知识点清了\");\r\n this.KnowledgePointIdList = [];\r\n },\r\n //知识点删除\r\n _KnowledgePointGetDelete(record) {\r\n console.log(record, \"record\");\r\n let _this = this;\r\n this.$confirm({\r\n okText: '确认',\r\n cancelText: '取消',\r\n mask: false,\r\n title: `您确认要删除\"${record.name}\"知识点吗?`,\r\n onOk() {\r\n console.log(record.id, \"record.id\");\r\n console.log(_this.KnowledgePointIdList, \"KnowledgePointIdList\");\r\n _this.spinning = true;\r\n let data = {\r\n id: record.id\r\n };\r\n KnowledgePointGetDelete(data)\r\n .then(res => {\r\n console.log(record.dataRef, \"record.dataRef\");\r\n console.log(_this.treeData, \"_this.treeData\");\r\n searchOption(record.dataRef, _this.treeData);\r\n _this.treeData = [..._this.treeData];\r\n _this.$message.success(\"删除成功!\");\r\n let num = _this.KnowledgePointIdList.indexOf(record.id);\r\n if (num > -1) {\r\n _this.KnowledgePointIdList.splice(num, 1);\r\n let data = {\r\n KnowledgePointIdList: _this.KnowledgePointIdList\r\n };\r\n _this.$emit(\"getQuestion\", data);\r\n }\r\n _this.spinning = false;\r\n })\r\n .catch(err => {\r\n _this.spinning = false;\r\n });\r\n }\r\n });\r\n },\r\n //增加,修改章节\r\n showModal(type, record = {}) {\r\n this.$refs.EditPointsMenus.showModal(type, record);\r\n },\r\n //知识点列表\r\n _KnowledgePointGetList() {\r\n this.spinning = true;\r\n let data = {\r\n ParentId: \"\",\r\n DisciplineId: this.activeSubject.id, //学科id\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n KnowledgePointGetList(data)\r\n .then(res => {\r\n console.log(res, \"知识点章节树\");\r\n this.treeData = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.spinning = false;\r\n console.log(this.treeData, \"this.treeData \");\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n },\r\n onLoadData(treeNode) {\r\n console.log(treeNode, \"treeNode\");\r\n return new Promise(resolve => {\r\n if (treeNode.dataRef.children) {\r\n resolve();\r\n return;\r\n }\r\n this.spinning = true;\r\n let data = {\r\n ParentId: treeNode.dataRef.id,\r\n DisciplineId: this.activeSubject.id,\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n KnowledgePointGetList(data)\r\n .then(res => {\r\n treeNode.dataRef.children = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.treeData = [...this.treeData];\r\n this.spinning = false;\r\n resolve();\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n });\r\n },\r\n loadChild(record) {\r\n console.log(record, \"record66666\");\r\n this.spinning = true;\r\n let data = {\r\n ParentId: record.id || \"\", //父级知识点id\r\n DisciplineId: this.activeSubject.id,\r\n KeyWord: \"\",\r\n SkipCount: 0,\r\n MaxResultCount: 99999\r\n };\r\n KnowledgePointGetList(data)\r\n .then(res => {\r\n console.log(res, \"子节点66\");\r\n if (res.totalCount > 0) {\r\n record.dataRef.isLeaf = false;\r\n }\r\n record.dataRef.children = res.items.map(item => {\r\n if (!item.hasChild) {\r\n item.isLeaf = true;\r\n }\r\n let obj = {\r\n key: item.id,\r\n title: item.name,\r\n scopedSlots: { title: \"custom\" },\r\n ...item\r\n };\r\n return obj;\r\n });\r\n this.treeData = [...this.treeData];\r\n console.log(this.treeData, \"treeData\");\r\n this.spinning = false;\r\n })\r\n .catch(err => {\r\n this.spinning = false;\r\n });\r\n },\r\n onSelect(selectedKeys) {\r\n console.log(selectedKeys, \"selectedKeys\");\r\n // console.log(this.$parent.pagination, '$parent.pagination')\r\n let data = {\r\n KnowledgePointIdList: selectedKeys\r\n };\r\n this.KnowledgePointIdList = data.KnowledgePointIdList;\r\n this.$emit(\"getQuestion\", data);\r\n this.$emit(\"clearChapter\");\r\n }\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.active-btn {\r\n color: #fff;\r\n background-color: #1980ff;\r\n}\r\n\r\n.tree-box {\r\n width: 100%;\r\n min-height: 200px;\r\n overflow-x: auto;\r\n}\r\n\r\n::v-deep .custom-title{\r\n /* background-color: red; */\r\n font-size: 1px;\r\n}\r\n\r\n.drop-down-item {\r\n padding: 0 6px;\r\n border-radius: 2px;\r\n margin-bottom: 6px;\r\n cursor: pointer;\r\n}\r\n\r\n.drop-down-item:hover:not(.active-btn) {\r\n color: rgb(24, 144, 255);\r\n}\r\n\r\n.toolbar {\r\n position: absolute;\r\n right: 10px;\r\n margin-top: 0px;\r\n border: none;\r\n font-size: 16px;\r\n font-weight: bold;\r\n}\r\n\r\n.tool-icon {\r\n font-size: 20px;\r\n}\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PointsTree.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PointsTree.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PointsTree.vue?vue&type=template&id=23a23943&scoped=true&\"\nimport script from \"./PointsTree.vue?vue&type=script&lang=js&\"\nexport * from \"./PointsTree.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PointsTree.vue?vue&type=style&index=0&id=23a23943&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"23a23943\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"type-group\"},[_c('div',{staticClass:\"type-item\"},[_c('div',{staticClass:\"type-name\"},[_vm._v(_vm._s(_vm.title)+\":\")]),_c('div',{staticClass:\"type-list\"},[(_vm.data.length>0)?[(_vm.needAll)?_c('div',{class:{'type-list-item':true,'item-active':_vm.selectedKeys.indexOf('')>-1?true:false},on:{\"click\":function($event){return _vm.allSelect('')}}},[_vm._v(\" 全部 \")]):_vm._e(),_vm._l((_vm.data),function(item,index){return _c('div',{key:index,class:{'type-list-item':true,'item-active':_vm.selectedKeys.indexOf(item.id)>-1?true:false},on:{\"click\":function($event){return _vm.itemClick(item.id)}}},[_vm._v(\" \"+_vm._s(item.name)+\" \")])})]:_vm._e(),(_vm.data.length==0)?[_c('span',{staticStyle:{\"margin-left\":\"16px\"}},[_vm._v(\" 无 \")])]:_vm._e()],2)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"type-group\">\r\n <div class=\"type-item\">\r\n <div class=\"type-name\">{{title}}:</div>\r\n <div class=\"type-list\">\r\n <template v-if=\"data.length>0\">\r\n <div v-if=\"needAll\"\r\n :class=\"{'type-list-item':true,'item-active':selectedKeys.indexOf('')>-1?true:false}\"\r\n @click=\"allSelect('')\">\r\n 全部\r\n </div>\r\n <div :class=\"{'type-list-item':true,'item-active':selectedKeys.indexOf(item.id)>-1?true:false}\"\r\n v-for=\"(item,index) in data\" :key=\"index\" @click=\"itemClick(item.id)\">\r\n {{item.name}}\r\n </div>\r\n </template>\r\n <template v-if=\"data.length==0\">\r\n <span style=\"margin-left: 16px;\">\r\n 无\r\n </span>\r\n </template>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { changeKeys } from '@/utils/tools'\r\n export default {\r\n props: {\r\n value: {\r\n default: ''\r\n },\r\n title: {\r\n type: String,\r\n default: 'title'\r\n },\r\n data: {\r\n type: Array,\r\n default: () => []\r\n },\r\n type: {\r\n type: String,\r\n default: '1', // 1单选 2多选\r\n },\r\n defaultSelect: {\r\n type: Array,\r\n default: () => []\r\n },\r\n needAll: {\r\n type: Boolean,\r\n default: true\r\n },\r\n replaceFields: {\r\n type: Array,\r\n default: () => []\r\n }\r\n },\r\n data() {\r\n return {\r\n selectedKeys: [...this.defaultSelect],\r\n }\r\n },\r\n watch: {\r\n value: {\r\n handler(newVal, oldVal) {\r\n console.log(newVal, '改变了')\r\n this.selectedKeys = newVal\r\n },\r\n deep: true\r\n },\r\n data(nVal) {\r\n console.log(nVal, 'nVal题型')\r\n if (this.replaceFields.length > 0) {\r\n this.data = changeKeys(nVal, this.replaceFields)\r\n }\r\n }\r\n },\r\n mounted() {\r\n },\r\n methods: {\r\n sendData() {\r\n let data = JSON.parse(JSON.stringify(this.selectedKeys))\r\n this.$emit('input', this.selectedKeys)\r\n this.$emit('callBack', data)\r\n },\r\n allSelect(key) {\r\n this.selectedKeys = [key];\r\n this.sendData();\r\n },\r\n itemClick(key) {\r\n let allIndex = this.selectedKeys.indexOf('');\r\n if (allIndex > -1) {\r\n this.selectedKeys.splice(allIndex, 1)\r\n }\r\n if (this.type == 1) {\r\n this.selectedKeys.pop();\r\n this.selectedKeys.push(key)\r\n } else {\r\n let index = this.selectedKeys.indexOf(key);\r\n if (index > -1) {\r\n this.selectedKeys.splice(index, 1)\r\n } else {\r\n this.selectedKeys.push(key)\r\n }\r\n if (this.selectedKeys.length === 0) {\r\n this.selectedKeys = ['']\r\n }\r\n }\r\n this.sendData();\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n .type-name {\r\n min-width: 50px;\r\n max-width: 80px;\r\n }\r\n\r\n .type-item {\r\n display: flex;\r\n }\r\n\r\n .type-list {\r\n display: flex;\r\n flex-wrap: wrap;\r\n flex-direction: row;\r\n }\r\n\r\n .type-list-item {\r\n /* width: 64px; */\r\n padding: 0 6px;\r\n box-sizing: border-box;\r\n text-align: center;\r\n margin: 0 16px;\r\n border-radius: 2px;\r\n margin-bottom: 8px;\r\n cursor: pointer;\r\n }\r\n\r\n .item-active {\r\n color: #fff;\r\n background-color: #1980ff;\r\n }\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./myListSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./myListSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./myListSelect.vue?vue&type=template&id=65cc9d27&scoped=true&\"\nimport script from \"./myListSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./myListSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./myListSelect.vue?vue&type=style&index=0&id=65cc9d27&prod&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65cc9d27\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"type-group\"},_vm._l((_vm.data),function(item){return _c('div',{staticClass:\"type-item\"},[_c('div',{staticClass:\"type-name\"},[_vm._v(_vm._s(item.title)+\":\")]),_c('div',{staticClass:\"type-list\"},[(item.data.length>0)?[(_vm.needAll)?_c('div',{class:{'type-list-item':true,'item-active':_vm.selectedKeys.indexOf('')>-1?true:false},on:{\"click\":function($event){return _vm.allSelect('')}}},[_vm._v(\" 全部 \")]):_vm._e(),_vm._l((item.data),function(v,index){return _c('div',{key:index,class:{'type-list-item':true,'item-active':_vm.selectedKeys.indexOf(v.id)>-1?true:false},on:{\"click\":function($event){return _vm.itemClick(v.id,item,v)}}},[_vm._v(\" \"+_vm._s(v.name)+\" \")])})]:_vm._e(),(item.data.length==0)?[_c('span',{staticStyle:{\"margin-left\":\"16px\"}},[_vm._v(\" 无 \")])]:_vm._e()],2)])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"type-group\">\r\n <div class=\"type-item\" v-for=\"item in data\">\r\n <div class=\"type-name\">{{item.title}}:</div>\r\n <div class=\"type-list\">\r\n <template v-if=\"item.data.length>0\">\r\n <div v-if=\"needAll\"\r\n :class=\"{'type-list-item':true,'item-active':selectedKeys.indexOf('')>-1?true:false}\"\r\n @click=\"allSelect('')\">\r\n 全部\r\n </div>\r\n <div :class=\"{'type-list-item':true,'item-active':selectedKeys.indexOf(v.id)>-1?true:false}\"\r\n v-for=\"(v,index) in item.data\" :key=\"index\" @click=\"itemClick(v.id,item,v)\">\r\n {{v.name}}\r\n </div>\r\n </template>\r\n <template v-if=\"item.data.length==0\">\r\n <span style=\"margin-left: 16px;\">\r\n 无\r\n </span>\r\n </template>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n // title: {\r\n // type: String,\r\n // default: 'title'\r\n // },\r\n data: {\r\n type: Array,\r\n default: () => []\r\n },\r\n type: {\r\n type: String,\r\n default: '1', // 1单选 2多选\r\n },\r\n defaultSelect: {\r\n type: Array,\r\n default: () => []\r\n },\r\n needAll: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n selectedKeys: [...this.defaultSelect],\r\n }\r\n },\r\n methods: {\r\n sendData(v) {\r\n let data = JSON.parse(JSON.stringify(v))\r\n this.$emit('callBack', data)\r\n },\r\n allSelect(key) {\r\n this.selectedKeys = [key];\r\n this.sendData();\r\n },\r\n itemClick(key, item, v) {\r\n console.log(item)\r\n console.log(v)\r\n let allIndex = this.selectedKeys.indexOf('');\r\n if (allIndex > -1) {\r\n this.selectedKeys.splice(allIndex, 1)\r\n }\r\n if (this.type == 1) {\r\n this.selectedKeys.pop();\r\n this.selectedKeys.push(key)\r\n } else {\r\n let index = this.selectedKeys.indexOf(key);\r\n if (index > -1) {\r\n this.selectedKeys.splice(index, 1)\r\n } else {\r\n this.selectedKeys.push(key)\r\n }\r\n }\r\n this.sendData(v);\r\n console.log(this.selectedKeys, 'selectedKeys')\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n .type-name {\r\n min-width: 50px;\r\n max-width: 80px;\r\n }\r\n\r\n .type-item {\r\n display: flex;\r\n }\r\n\r\n .type-list {\r\n display: flex;\r\n flex-wrap: wrap;\r\n flex-direction: row;\r\n }\r\n\r\n .type-list-item {\r\n width: 64px;\r\n text-align: center;\r\n margin: 0 16px;\r\n border-radius: 2px;\r\n margin-bottom: 8px;\r\n cursor: pointer;\r\n }\r\n\r\n .item-active {\r\n color: #fff;\r\n background-color: #1980ff;\r\n }\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiListSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiListSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MultiListSelect.vue?vue&type=template&id=6ab36d9b&scoped=true&\"\nimport script from \"./MultiListSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./MultiListSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MultiListSelect.vue?vue&type=style&index=0&id=6ab36d9b&prod&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ab36d9b\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a-modal',{attrs:{\"title\":\"试题导入\",\"visible\":_vm.visible,\"confirmLoading\":_vm.confirmLoading,\"width\":\"700px\",\"maskClosable\":false,\"width\":900},on:{\"ok\":_vm.handleOk,\"cancel\":_vm.handleCancel}},[_c('template',{slot:\"footer\"},[_c('a-button',{key:\"back\",on:{\"click\":_vm.handleCancel}},[_vm._v(\" 取消 \")]),_c('a-button',{key:\"submit\",attrs:{\"loading\":_vm.loading,\"type\":\"primary\"},on:{\"click\":_vm.sureUpload}},[_vm._v(\" 上传 \")])],1),_c('div',{staticClass:\"modal-box\"},[_c('a-spin',{attrs:{\"spinning\":_vm.spinning}},[(_vm.visible)?_c('a-upload-dragger',{attrs:{\"name\":\"formFile\",\"multiple\":true,\"showUploadList\":false,\"action\":_vm.TIP+'/api/services/File/File/Upload?md5='+_vm.md5,\"accept\":\".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,.txt\",\"beforeUpload\":_vm.beforeUpload},on:{\"change\":_vm.handleChange}},[_c('p',{staticClass:\"ant-upload-drag-icon\"},[_c('a-icon',{attrs:{\"type\":\"inbox\"}})],1),_c('p',{staticClass:\"ant-upload-text\"},[_vm._v(\"点击或将文件拖拽到这里上传\")]),_c('p',{staticClass:\"ant-upload-hint\"},[_vm._v(\" 支持扩展名:.doc .docx .txt... \")])]):_vm._e()],1),_c('p',{staticStyle:{\"margin-top\":\"16px\"}},[_vm._v(\"已选文件:\"+_vm._s(_vm.fileData.name||'无'))])],1)],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-modal title=\"试题导入\" :visible=\"visible\" @ok=\"handleOk\" :confirmLoading=\"confirmLoading\" @cancel=\"handleCancel\"\r\n width=\"700px\" :maskClosable=\"false\" :width=\"900\">\r\n <template slot=\"footer\">\r\n <a-button key=\"back\" @click=\"handleCancel\">\r\n 取消\r\n </a-button>\r\n <a-button :loading=\"loading\" key=\"submit\" type=\"primary\" @click=\"sureUpload\">\r\n 上传\r\n </a-button>\r\n <!-- <a-button key=\"submit\" type=\"primary\" @click=\"handleOk\">\r\n 查看上传列表\r\n </a-button> -->\r\n </template>\r\n <div class=\"modal-box\">\r\n <a-spin :spinning=\"spinning\">\r\n <a-upload-dragger v-if=\"visible\" name=\"formFile\" :multiple=\"true\" :showUploadList=\"false\"\r\n :action=\"TIP+'/api/services/File/File/Upload?md5='+md5\"\r\n accept=\".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,.txt\"\r\n @change=\"handleChange\" :beforeUpload=\"beforeUpload\">\r\n <p class=\"ant-upload-drag-icon\">\r\n <a-icon type=\"inbox\" />\r\n </p>\r\n <p class=\"ant-upload-text\">点击或将文件拖拽到这里上传</p>\r\n <p class=\"ant-upload-hint\">\r\n 支持扩展名:.doc .docx .txt...\r\n </p>\r\n </a-upload-dragger>\r\n </a-spin>\r\n <p style=\"margin-top:16px\">已选文件:{{fileData.name||'无'}}</p>\r\n </div>\r\n </a-modal>\r\n </div>\r\n</template>\r\n<script>\r\n import { getFileMD5, getFileID } from '@/utils/tools'\r\n import { QuestionResolve } from '@/api/api'\r\n export default {\r\n components: {\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n spinning: false,\r\n md5: '',\r\n TIP: process.env.VUE_APP_BaseTIP,\r\n confirmLoading: false,\r\n visible: false,\r\n form: this.$form.createForm(this),\r\n type: '',\r\n detail: '',\r\n fileData: {},\r\n };\r\n },\r\n mounted() {\r\n\r\n },\r\n methods: {\r\n showModal(type) {\r\n console.log(type, 'type')\r\n this.visible = true;\r\n this.type = type;\r\n },\r\n beforeUpload(file, fileList) {\r\n console.log(file, 'file')\r\n console.log(fileList, 'fileList')\r\n this.fileData = file;\r\n return false;\r\n return new Promise((resolve, reject) => {\r\n getFileMD5(file, md5 => {\r\n console.log(md5, 'md5')\r\n this.md5 = md5;\r\n return resolve(true)\r\n })\r\n })\r\n },\r\n handleChange(info) {\r\n const status = info.file.status;\r\n if (status !== 'uploading') {\r\n console.log(info.file, info.fileList);\r\n }\r\n if (status === 'done') {\r\n // this.$message.success(`${info.file.name} file uploaded successfully.`);\r\n console.log(info, 'info')\r\n let type = null,\r\n typeID = '';\r\n if (this.$parent.ChapterId) {\r\n type = 0;\r\n typeID = this.$parent.ChapterId\r\n }\r\n if (this.$parent.KnowledgePointIdList.length > 0) {\r\n type = 1;\r\n typeID = this.$parent.KnowledgePointIdList[0]\r\n }\r\n let data = {\r\n fileId: info.file.response.result,\r\n disciplineId: this.$parent.activeSubject.id,//学科id\r\n targetId: typeID,//目标文件\r\n targetType: type//类型\r\n }\r\n console.log(data, 'params')\r\n this.spinning = true;\r\n QuestionResolve(data).then(res => {\r\n this.$message.success('上传成功!')\r\n this.spinning = false;\r\n this.$router.push({\r\n name: 'questionImportList'\r\n })\r\n }).catch(err => {\r\n this.$message.error('上传失败,请重新上传!')\r\n this.spinning = false;\r\n })\r\n } else if (status === 'error') {\r\n this.$message.error(`${info.file.name} 文件上传失败.`);\r\n }\r\n },\r\n sureUpload() {\r\n if (JSON.stringify(this.fileData) === '{}') {\r\n this.$message.error('请选择上传的文件!');\r\n return;\r\n }\r\n this.loading = true;\r\n this.spinning = true;\r\n getFileID(this.fileData).then(res => {\r\n let type = null,\r\n typeID = '';\r\n if (this.$parent.ChapterId) {\r\n type = 0;\r\n typeID = this.$parent.ChapterId\r\n }\r\n if (this.$parent.KnowledgePointIdList.length > 0) {\r\n type = 1;\r\n typeID = this.$parent.KnowledgePointIdList[0]\r\n }\r\n let data = {\r\n fileId: res,\r\n disciplineId: this.$parent.activeSubject.id,//学科id\r\n targetId: typeID,//目标文件\r\n targetType: type//类型\r\n }\r\n console.log(data, 'params')\r\n QuestionResolve(data).then(rel => {\r\n this.$message.success('上传成功!');\r\n this.spinning = false;\r\n this.loading = false;\r\n this.$router.push({\r\n name: 'questionImportList'\r\n })\r\n }).catch(err => {\r\n this.$message.error('上传失败,请重新上传!')\r\n this.spinning = false;\r\n this.loading = false;\r\n })\r\n }).catch(err => {\r\n this.loading = false;\r\n })\r\n },\r\n handleOk(e) {\r\n this.visible = false;\r\n this.$router.push({\r\n name: 'questionImportList'\r\n })\r\n },\r\n handleCancel(e) {\r\n this.fileData = {};\r\n this.visible = false;\r\n this.spinning = false;\r\n this.loading = false;\r\n },\r\n }\r\n };\r\n</script>\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuestionImport.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuestionImport.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./QuestionImport.vue?vue&type=template&id=583b2d02&scoped=true&\"\nimport script from \"./QuestionImport.vue?vue&type=script&lang=js&\"\nexport * from \"./QuestionImport.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"583b2d02\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a-drawer',{attrs:{\"placement\":\"right\",\"closable\":false,\"visible\":_vm.visible,\"after-visible-change\":_vm.afterVisibleChange,\"bodyStyle\":{'padding':0,}},on:{\"close\":_vm.onClose}},[_c('span',{staticClass:\"d-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\" 我的试卷 \")]),_c('div',{staticClass:\"border-box\",staticStyle:{\"columns\":\"#333333\",\"font-weight\":\"bold\"}},[_vm._v(\"题卡\")]),_c('div',{staticClass:\"border-box flex-items\"},[_c('span',{staticClass:\"text-title\",staticStyle:{\"width\":\"50px\"}},[_vm._v(\"标题:\")]),_c('a-input',{staticStyle:{\"flex\":\"1\"},attrs:{\"placeholder\":\"请输入试卷标题\"},model:{value:(_vm.testName),callback:function ($$v) {_vm.testName=$$v},expression:\"testName\"}})],1),_c('div',{staticClass:\"border-box flex-items\"},[_c('span',{staticClass:\"text-title\",staticStyle:{\"width\":\"80px\"}},[_vm._v(\"考试时间:\")]),_c('a-input-number',{staticStyle:{\"flex\":\"1\"},attrs:{\"id\":\"inputNumber\",\"min\":0},model:{value:(_vm.testTime),callback:function ($$v) {_vm.testTime=$$v},expression:\"testTime\"}}),_c('span',[_vm._v(\"分钟\")])],1),_c('div',{staticClass:\"border-box gray-text\"},[_vm._v(\" 共\"+_vm._s(_vm.$store.state.storage.testBox.length)+\"题 \")]),_vm._l((_vm.groupQuestion),function(item){return _c('div',[_c('div',{staticClass:\"border-box flex-align\"},[_c('div',{staticClass:\"text-title\"},[_vm._v(_vm._s(item.name)),_c('span',{staticClass:\"gray-text\"},[_vm._v(\"(\"+_vm._s(item.data.length)+\"题)\")])]),_c('a',{on:{\"click\":function($event){return _vm.delByQuestiontype(item)}}},[_vm._v(\"移除\")])]),_vm._l((item.dataGroup),function(v){return _c('div',{staticClass:\"border-box flex-align\"},[_c('div',{staticClass:\"d-left nly-line-1\"},[_vm._v(_vm._s(v.name))]),_c('div',{staticClass:\"flex\"},[_c('div',{staticClass:\"m-r8\"},[_c('span',{staticClass:\"blue-text\"},[_vm._v(_vm._s(v.data.length))]),_vm._v(\"题\")]),_c('a',{on:{\"click\":function($event){return _vm.delBySubject(v,item)}}},[_vm._v(\"移除\")])])])})],2)}),_c('a-button',{staticClass:\"preview-btn\",attrs:{\"loading\":_vm.loading},on:{\"click\":_vm._PaperCreate}},[_vm._v(\" 创建试卷 \")])],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-drawer placement=\"right\" :closable=\"false\" :visible=\"visible\" :after-visible-change=\"afterVisibleChange\"\r\n :bodyStyle=\"{'padding':0,}\" @close=\"onClose\">\r\n <span slot=\"title\" class=\"d-title\">\r\n 我的试卷\r\n </span>\r\n <div class=\"border-box\" style=\"columns: #333333;font-weight: bold;\">题卡</div>\r\n <div class=\"border-box flex-items\">\r\n <span class=\"text-title\" style=\"width:50px\">标题:</span>\r\n <!-- <span>2020年12月16日xx学校高中xx试卷</span> -->\r\n <a-input v-model=\"testName\" placeholder=\"请输入试卷标题\" style=\"flex:1\" />\r\n </div>\r\n <div class=\"border-box flex-items\">\r\n <span class=\"text-title\" style=\"width:80px\">考试时间:</span>\r\n <!-- <span>2020年12月16日xx学校高中xx试卷</span> -->\r\n <a-input-number id=\"inputNumber\" v-model=\"testTime\" style=\"flex:1\" :min=\"0\" />\r\n <span>分钟</span>\r\n </div>\r\n <div class=\"border-box gray-text\">\r\n 共{{$store.state.storage.testBox.length}}题\r\n </div>\r\n <div v-for=\"item in groupQuestion\">\r\n <div class=\"border-box flex-align\">\r\n <div class=\"text-title\">{{item.name}}<span class=\"gray-text\">({{item.data.length}}题)</span></div>\r\n <a @click=\"delByQuestiontype(item)\">移除</a>\r\n </div>\r\n <div v-for=\"v in item.dataGroup\" class=\"border-box flex-align\">\r\n <div class=\"d-left nly-line-1\">{{v.name}}</div>\r\n <div class=\"flex\">\r\n <div class=\"m-r8\"><span class=\"blue-text\">{{v.data.length}}</span>题</div>\r\n <a @click=\"delBySubject(v,item)\">移除</a>\r\n </div>\r\n </div>\r\n </div>\r\n <a-button class=\"preview-btn\" :loading=\"loading\" @click=\"_PaperCreate\">\r\n 创建试卷\r\n </a-button>\r\n </a-drawer>\r\n </div>\r\n</template>\r\n<script>\r\n import { groupArr } from '@/utils/tools'\r\n import { PaperCreate } from '@/api/api'\r\n export default {\r\n data() {\r\n return {\r\n loading: false,\r\n visible: false,\r\n testName: '',\r\n testTime: '',\r\n }\r\n },\r\n computed: {\r\n groupQuestion() {\r\n let arr = groupArr(this.$store.state.storage.testBox, 'disciplineQuestionTypeId', 'disciplineQuestionType')\r\n arr = arr.map(item => {\r\n item.dataGroup = groupArr(item.data, 'disciplineId', 'discipline');\r\n return item\r\n });\r\n console.log(arr, 'arr')\r\n return arr;\r\n }\r\n },\r\n mounted() {\r\n\r\n },\r\n methods: {\r\n //创建试卷\r\n _PaperCreate() {\r\n if (!this.testName) {\r\n this.$message.error('请填写试卷名称!');\r\n return;\r\n }\r\n if (!this.testTime) {\r\n this.$message.error('请填写考试时间!');\r\n return;\r\n }\r\n let testBox = this.$store.state.storage.testBox;\r\n if (testBox.length == 0) {\r\n this.$message.error('试卷试题不能为空!');\r\n return;\r\n }\r\n this.loading = true;\r\n console.log(testBox, 'testBox')\r\n let disciplines = [], paperQuestions = [];\r\n testBox.forEach(item => {\r\n if (disciplines.indexOf(item.disciplineId) == -1) {\r\n disciplines.push(item.disciplineId)\r\n }\r\n let obj = {\r\n questionId: item.id,\r\n disciplineQuestionTypeId: item.disciplineQuestionTypeId,\r\n singleScore: 0\r\n }\r\n paperQuestions.push(obj)\r\n })\r\n console.log(disciplines, 'disciplines')\r\n console.log(paperQuestions, 'paperQuestions')\r\n let data = {\r\n name: this.testName,\r\n examTime: this.testTime * 60 * 1000,\r\n disciplines: disciplines,\r\n paperQuestions: paperQuestions\r\n }\r\n console.log(data, 'data')\r\n PaperCreate(data).then(res => {\r\n this.$message.success('创建成功!')\r\n this.loading = false;\r\n this.visible = false;\r\n this.$storage.remove('testBox');\r\n this.testName = '';\r\n this.testTime = '';\r\n this.$router.push({\r\n name: 'examPaperPreview',\r\n query: {\r\n examId: res\r\n }\r\n })\r\n }).catch(err => {\r\n this.loading = false;\r\n })\r\n },\r\n //删除-题型的题\r\n delByQuestiontype(data) {\r\n let testBox = this.$store.state.storage.testBox;\r\n testBox = testBox.filter(item => {\r\n return item.disciplineQuestionTypeId != data.type;\r\n })\r\n this.$storage.set('testBox', testBox);\r\n },\r\n //删除-根据学科和题型\r\n delBySubject(subject, type) {\r\n console.log(subject, 'subject')\r\n let testBox = this.$store.state.storage.testBox;\r\n testBox = testBox.filter(item => {\r\n return item.disciplineQuestionTypeId != type.type && item.disciplineId != subject.type;\r\n })\r\n this.$storage.set('testBox', testBox);\r\n },\r\n afterVisibleChange(val) {\r\n console.log('visible', val);\r\n },\r\n showDrawer() {\r\n this.visible = true;\r\n },\r\n onClose() {\r\n this.visible = false;\r\n },\r\n toPath() {\r\n this.$router.push({\r\n name: 'examPaperPreview'\r\n })\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .d-title {\r\n color: #40a9ff;\r\n font-weight: bold;\r\n font-size: 18px;\r\n }\r\n\r\n .border-box {\r\n color: #333333;\r\n border-bottom: 1px solid rgba(232, 232, 232, 1);\r\n padding: 8px 16px;\r\n }\r\n\r\n .gray-text {\r\n color: #7f7f7f;\r\n }\r\n\r\n .blue-text {\r\n color: rgb(24, 144, 255);\r\n }\r\n\r\n .d-left {\r\n width: 60%;\r\n }\r\n\r\n .preview-btn {\r\n width: 90%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n background-color: rgb(24, 144, 255);\r\n color: #fff;\r\n margin: 32px auto;\r\n cursor: pointer;\r\n }\r\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TestBasket.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TestBasket.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TestBasket.vue?vue&type=template&id=b9cc4faa&scoped=true&\"\nimport script from \"./TestBasket.vue?vue&type=script&lang=js&\"\nexport * from \"./TestBasket.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TestBasket.vue?vue&type=style&index=0&id=b9cc4faa&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b9cc4faa\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"question-bank\">\r\n <div class=\"top\">\r\n <div class=\"top-left flex-items\">\r\n <a-icon type=\"menu-fold\" class=\"subject-icon\" @click=\"handleShowSubjectSelect\" />\r\n <template>\r\n <span\r\n class=\"subject-title only-line-1\"><a href=\"#\" @click=\"handleShowSubjectSelect\">{{activeSubject.educationCategory}}{{activeSubject.name}}</a></span>\r\n <!-- 科目选择 -->\r\n <div class=\"subject-select-box\" v-bind:class=\"{'subject-select-box-show':isShowSubjectSelect}\" @mouseleave=\"isShowSubjectSelect=false\">\r\n <div class=\"type-group\">\r\n <!-- <myListSelect v-for=\"(value,key) in $store.state.baseInfo.SubjectsGroup\" :title=\"key\" :data=\"value\" :needAll=\"false\" /> -->\r\n <MultiListSelect v-if=\"activeSubject.id\" :data=\"$store.state.baseInfo.SubjectsArr\"\r\n :needAll=\"false\" :defaultSelect=\"[activeSubject.id]\" @callBack=\"subjectCallBack\" />\r\n </div>\r\n </div>\r\n </template>\r\n </div>\r\n <div class=\"top-right flex-align\">\r\n <div>\r\n <a-button :disabled=\"!ChapterId&&KnowledgePointIdList.length==0\" class=\"m-r8\"\r\n @click=\"QuestionImport\">试题导入</a-button>\r\n <a-button :loading=\"templateLoading\" :disabled=\"!activeSubject.id\" class=\"m-r8\" type=\"primary\"\r\n @click=\"GetQuestionTemplate\">\r\n 获取下载模板</a-button>\r\n <a-button type=\"primary\" @click=\"toPath('intelligencePaper')\">智能组题</a-button>\r\n </div>\r\n <a-input-search style=\"width:400px;\" placeholder=\"搜索题干\" enter-button @search=\"onSearch\" />\r\n </div>\r\n </div>\r\n <div class=\"main\">\r\n <!-- 左侧菜单树 -->\r\n <div class=\"main-left\">\r\n <a-tabs default-active-key=\"1\" @change=\"callback\">\r\n <a-tab-pane key=\"1\" tab=\"章节\">\r\n <ChapterTree ref=\"ChapterTree\" :activeSubject=\"activeSubject\" @getQuestion=\"getQuestion\"\r\n @clearPoints=\"clearPoints\" />\r\n </a-tab-pane>\r\n <a-tab-pane key=\"2\" tab=\"知识点\" force-render>\r\n <PointsTree ref=\"PointsTree\" :activeSubject=\"activeSubject\" @getQuestion=\"getQuestion\"\r\n @clearChapter=\"clearChapter\" />\r\n </a-tab-pane>\r\n </a-tabs>\r\n </div>\r\n <!-- 右侧试题框 -->\r\n <div class=\"main-right\">\r\n <!-- 题目列表 -->\r\n <div class=\"question-list\">\r\n <!-- 难度 ,题型筛选 -->\r\n <!-- <div> -->\r\n <myListSelect title=\"试题难度\" :data=\"difficultyList\" :defaultSelect=\"activeDifficulty\"\r\n :replaceFields=\"replaceFields\" @callBack=\"difficultyCallBack\" v-model=\"activeDifficulty\" />\r\n <myListSelect title=\"试题题型\" :data=\"questionTypeList\" @callBack=\"questionTypeCallBack\"\r\n :defaultSelect=\"activeQuestionType\" v-model=\"activeQuestionType\" />\r\n <a-spin :spinning=\"spinning\">\r\n <template>\r\n <div v-if=\"questionData.length>0\" class=\"question-item m16\"\r\n v-for=\"(item,index) in questionData\" :key=\"item.id\">\r\n <QuestionItem :ref=\"'QuestionItem'+index\" :data=\"item\">\r\n <template slot-scope=\"scope\">\r\n <div class=\"flex-align bordr-bottom-gray p-8\">\r\n <div>\r\n <span class=\"m-r36\">题型:{{item.disciplineQuestionType}}</span>\r\n <span class=\"m-r36\">难度:{{item.difficulty}}</span>\r\n </div>\r\n <div class=\"flex\">\r\n <span v-if=\"item.questionConvertState!=0\">\r\n <a-icon type=\"undo\" class=\"blue-hover m-r8\" @click=\"_QuestionGetList\"/></span>\r\n <template v-if=\"item.questionConvertState!=0\">\r\n <a-tooltip>\r\n <template slot=\"title\" v-if=\"item.questionConvertState>1\">\r\n {{item.convertFailMessage}}\r\n </template>\r\n <div class=\"flex m-r8\" style=\"display: block;\">\r\n <span>替换状态:</span>\r\n <span style=\"color:orange\"\r\n v-if=\"item.questionConvertState==1\">转换中</span>\r\n <span style=\"color:red\"\r\n v-if=\"item.questionConvertState==2\">转换失败</span>\r\n <span style=\"color:red\"\r\n v-if=\"item.questionConvertState==3\">解析替换失败</span>\r\n </div>\r\n </a-tooltip>\r\n </template>\r\n <a-upload :showUploadList=\"false\"\r\n :customRequest=\"(data)=>customRequest(data,item.id,index)\">\r\n <a class=\"m-r16\">上传替换</a>\r\n </a-upload>\r\n <a class=\"m-r16\" @click=\"questionDown(item)\">下载</a>\r\n <a class=\"m-r16\" @click=\"toEdit(item,index)\">纠错</a>\r\n <a class=\"m-r16\" @click=\"toggle(index)\">详情</a>\r\n <a class=\"m-r16\" @click=\"addToTest(item)\" v-show=\"!item.inbox\">加入试卷</a>\r\n <a class=\"m-r16\" @click=\"delFromTest(item)\" v-show=\"item.inbox\">移出试卷</a>\r\n </div>\r\n </div>\r\n </template>\r\n </QuestionItem>\r\n </div>\r\n <a-empty v-if=\"questionData.length===0\" />\r\n </template>\r\n </a-spin>\r\n\r\n <!-- </div> -->\r\n\r\n <!-- 底部分页 -->\r\n <div class=\"paging-box\">\r\n <!-- <a-pagination size=\"small\" :pagination=\"pagination\" :total=\"50\" show-size-changer\r\n show-quick-jumper /> -->\r\n <oPagination :pagination=\"pagination\" @change=\"handleChange\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- 试题导入模态框 -->\r\n <QuestionImport ref=\"QuestionImport\" />\r\n <!-- 试卷蓝抽屉 -->\r\n <div class=\"basket\" @click=\"showDrawer\">\r\n <div class=\"basket-inner\">\r\n <div v-if=\"$store.state.storage.testBox.length>0\" class=\"basket-dot\">{{dotNum}}</div>\r\n 试题篮\r\n </div>\r\n </div>\r\n <TestBasket ref=\"TestBasket\" />\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { myPagination } from '@/mixins/myPagination.js'\r\n import ChapterTree from './components/ChapterTree.vue'\r\n import PointsTree from './components/PointsTree.vue'\r\n import myListSelect from '@/components/myListSelect.vue'\r\n import MultiListSelect from '@/components/MultiListSelect.vue'\r\n import QuestionImport from './components/QuestionImport.vue'\r\n import TestBasket from './components/TestBasket.vue' //试题蓝\r\n import QuestionItem from '@/components/Questions/QuestionItem'\r\n import oPagination from '@/components/myPagination'\r\n import { download, getFileID, getQueryString } from '@/utils/tools'\r\n import { QuestionGetList, DisciplineQuestionTypeGetList, GetQuestionTemplate, QuestionGetQuestionDoc, QuestionReplace } from '@/api/api'\r\n\r\n export default {\r\n mixins: [myPagination],\r\n components: {\r\n ChapterTree,\r\n PointsTree,\r\n myListSelect,\r\n QuestionImport,\r\n TestBasket,\r\n QuestionItem,\r\n MultiListSelect,\r\n oPagination\r\n },\r\n data() {\r\n return {\r\n spinning: false,\r\n templateLoading: false,\r\n replaceFields: [\r\n ['id', 'value']\r\n ],\r\n activeSubject: {},//当前学科\r\n difficultyList: [],//难度列表\r\n activeDifficulty: [''],//当前难度\r\n questionTypeList: [],//学科题型\r\n activeQuestionType: [''],//当前题型\r\n questionData: [],//试题列表\r\n ChapterId: '',//选中的章节id\r\n KnowledgePointIdList: [],//选中的知识点\r\n KeyWord: '',//查询关键字\r\n\r\n isShowSubjectSelect:false,\r\n }\r\n },\r\n created() {\r\n this.$store.dispatch('GetDifficulty', true).then(res => {\r\n this.difficultyList = res;\r\n console.log(this.difficultyList, 'this.difficultyList')\r\n })\r\n this.$store.dispatch('DisciplineGetList', true).then(res => {\r\n if (res.length > 0) {\r\n this.activeSubject = res[0].data.length > 0 ? res[0].data[0] : {};\r\n this.$refs.ChapterTree._TextbookGetList(this.activeSubject);\r\n this._DisciplineQuestionTypeGetList();\r\n }\r\n })\r\n //console.log(this.$store.state.baseInfo.SubjectsArr, '$store.state.baseInfo.SubjectsArr')\r\n\r\n },\r\n computed: {\r\n dotNum() {\r\n let num = this.$store.state.storage.testBox.length > 99 ? '99+' : this.$store.state.storage.testBox.length\r\n return num\r\n },\r\n textBox() {\r\n return this.$store.state.storage.testBox\r\n }\r\n },\r\n watch: {\r\n textBox(nVal) {\r\n console.log(nVal, 'nVal')\r\n this.questionData = this.questionData.map(item => {\r\n let arr = nVal.filter(v => v.id == item.id);\r\n if (arr.length > 0) {\r\n item.inbox = true;\r\n } else {\r\n item.inbox = false;\r\n }\r\n return item;\r\n })\r\n }\r\n },\r\n mounted() {\r\n this.checkSoruceToken()\r\n },\r\n methods: {\r\n checkSoruceToken(){\r\n const query= getQueryString('token')\r\n if(query){\r\n const sourceToken= localStorage.getItem(\"sourceToken\")\r\n localStorage.setItem(\"isSource\", '1')\r\n //console.log('checkSoruceToken',query,sourceToken,sourceToken===query)\r\n if(sourceToken!==query){\r\n this.$router.push({ name: 'login' })\r\n }\r\n }\r\n },\r\n customRequest(data, id, index) {\r\n console.log(index, 'index')\r\n this.$refs['QuestionItem' + index][0].showLoading(true);\r\n getFileID(data.file).then(res => {\r\n let values = {\r\n questionId: id,\r\n fileId: res\r\n }\r\n console.log(values, 'values')\r\n QuestionReplace(values).then(res => {\r\n console.log(res, '替换成功')\r\n this.$message.success('替换成功');\r\n this.$refs['QuestionItem' + index][0].showLoading(false);\r\n this._QuestionGetList();\r\n }).catch(err => {\r\n this.$refs['QuestionItem' + index][0].showLoading(false);\r\n })\r\n }).catch(err => {\r\n this.$refs['QuestionItem' + index][0].showLoading(false);\r\n })\r\n },\r\n //下载单道试题\r\n questionDown(record) {\r\n console.log(record, 'record')\r\n let data = {\r\n id: record.id\r\n }\r\n QuestionGetQuestionDoc(data).then(res => {\r\n download(res, '试题.docx')\r\n })\r\n },\r\n //下载导入模板\r\n GetQuestionTemplate() {\r\n this.templateLoading = true;\r\n let data = {\r\n disciplineId: this.activeSubject.id\r\n }\r\n GetQuestionTemplate(data).then((res) => {\r\n download(res, '试题标记说明举例.docx')\r\n this.templateLoading = false;\r\n }).catch(err => {\r\n this.templateLoading = false;\r\n })\r\n },\r\n //试题蓝-移除试题\r\n delFromTest(item) {\r\n item.inbox = false;\r\n let testBox = this.$storage.get('testBox');\r\n let index = testBox.findIndex(v => v.id == item.id)\r\n console.log(index, 'index')\r\n testBox.splice(index, 1);\r\n this.$storage.set('testBox', testBox);\r\n console.log(this.$store.state.storage.testBox, '$store.state.storage.testBox')\r\n },\r\n //增加试题到试题蓝\r\n addToTest(item) {\r\n item.inbox = true;\r\n console.log(item, 'item')\r\n let testBox = this.$storage.get('testBox');\r\n testBox.push(item);\r\n this.$storage.set('testBox', testBox);\r\n console.log(this.$storage.get('testBox'), 'localStorage.getItem(key)')\r\n console.log(this.$store.state.storage.testBox, '$store.state.storage.testBox')\r\n },\r\n clearChapter() {\r\n this.$nextTick(() => {\r\n this.$refs.ChapterTree.clearChapter();\r\n })\r\n },\r\n clearPoints() {\r\n this.$nextTick(() => {\r\n this.$refs.PointsTree.clearPoints();\r\n })\r\n },\r\n //回调\r\n getQuestion(data = {}) {\r\n this.ChapterId = data.ChapterId || '';\r\n this.KnowledgePointIdList = data.KnowledgePointIdList || []\r\n this.pagination.current = 1;\r\n this._QuestionGetList();\r\n console.log(this.ChapterId, 'this.ChapterId');\r\n console.log(this.KnowledgePointIdList, 'this.KnowledgePointIdList');\r\n },\r\n //试题列表\r\n _QuestionGetList(params = {}) {\r\n this.spinning = true;\r\n let data = {\r\n DisciplineId: this.activeSubject.id,//学科id 666\r\n DisciplineQuestionTypeId: this.activeQuestionType[0],//学科细分题型Id 666\r\n Difficulty: this.activeDifficulty[0], //666\r\n IsActive: null,\r\n KnowledgePointIdList: this.KnowledgePointIdList,//知识点id\r\n ChapterId: this.ChapterId,//章节id\r\n IncludeChildChapter: true,//是否包括子章节(默认包括)\r\n IncludeAncestor: false,//是否包括父级知识点(默认不包括)\r\n KeyWord: this.KeyWord,//关键字\r\n SkipCount: (this.pagination.current - 1) * this.pagination.pageSize,\r\n MaxResultCount: this.pagination.pageSize,\r\n ...params\r\n }\r\n QuestionGetList(data).then(res => {\r\n console.log(res, '试题列表')\r\n let testBox = this.$storage.get('testBox');\r\n this.questionData = res.items.map(item => {\r\n let arr = testBox.filter(v => v.id == item.id);\r\n if (arr.length > 0) {\r\n item.inbox = true;\r\n } else {\r\n item.inbox = false;\r\n }\r\n return item;\r\n })\r\n this.pagination.total = res.totalCount;\r\n this.spinning = false;\r\n }).catch(err => {\r\n this.spinning = false;\r\n })\r\n },\r\n //获取学科题型\r\n _DisciplineQuestionTypeGetList() {\r\n this.activeQuestionType = [''];\r\n let data = {\r\n disciplineId: this.activeSubject.id//学科题型\r\n }\r\n DisciplineQuestionTypeGetList(data).then(res => {\r\n console.log(res, '学科题型')\r\n this.questionTypeList = res;\r\n })\r\n },\r\n //难度回调 \r\n difficultyCallBack(data) {\r\n console.log(data, '难度回调')\r\n this.activeDifficulty = [data[0]];\r\n this._QuestionGetList();\r\n },\r\n //题型回调\r\n questionTypeCallBack(data) {\r\n console.log(data, '题型回调')\r\n this.activeQuestionType = [data[0]];\r\n this._QuestionGetList();\r\n },\r\n toggle(index) {\r\n this.$refs['QuestionItem' + index][0].toggle();\r\n },\r\n toEdit(item, index) {\r\n this.$refs['QuestionItem' + index][0].toEdit(2);\r\n },\r\n onSearch(val) {\r\n this.KeyWord = val;\r\n const pager = { ...this.pagination };\r\n pager.current = 1;\r\n this.pagination = pager;\r\n this._QuestionGetList();\r\n },\r\n callback(key) {\r\n console.log(key);\r\n },\r\n //试题导入\r\n QuestionImport() {\r\n this.$refs.QuestionImport.showModal()\r\n },\r\n toPath(path) {\r\n this.$router.push({\r\n name: path,\r\n })\r\n },\r\n showDrawer() {\r\n this.$refs.TestBasket.showDrawer()\r\n },\r\n //学科点击回调\r\n subjectCallBack(data) {\r\n console.log(data, '选中的学科')\r\n this.activeDifficulty = [''];\r\n this.activeSubject = data;\r\n this._DisciplineQuestionTypeGetList();\r\n },\r\n //分页change\r\n handleChange(pagination) {\r\n this._QuestionGetList();\r\n },\r\n handleShowSubjectSelect(e){\r\n e.preventDefault();\r\n this.isShowSubjectSelect=!this.isShowSubjectSelect;\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n .question-bank {\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n height: 100%;\r\n background-color: yellow;\r\n }\r\n\r\n .top {\r\n width: 100%;\r\n height: 64px;\r\n border-bottom: 1px solid rgba(232, 232, 232, 1);\r\n display: flex;\r\n position: relative;\r\n }\r\n\r\n .top-left {\r\n width: 240px;\r\n height: 100%;\r\n border-right: 1px solid rgba(232, 232, 232, 1);\r\n padding: 16px;\r\n font-size: 20px;\r\n color: #333333;\r\n /* position: relative; */\r\n }\r\n\r\n .top-left .subject-title a{color:#333333}\r\n\r\n .subject-icon {\r\n margin-right: 8px;\r\n cursor: pointer;\r\n }\r\n\r\n .subject-icon:hover {\r\n color: rgb(24, 144, 255);\r\n }\r\n\r\n // .top-left:hover .subject-select-box {\r\n // max-height: 1000px;\r\n // display: block;\r\n // overflow-y: auto;\r\n // /* opacity: 1; */\r\n // }\r\n\r\n .subject-select-box.subject-select-box-show {\r\n max-height: 1000px;\r\n display: block;\r\n overflow-y: auto;\r\n }\r\n\r\n .subject-select-box {\r\n font-size: 14px;\r\n width: 100%;\r\n max-height: 0px;\r\n position: absolute;\r\n top: 64px;\r\n left: 0;\r\n background-color: #fff;\r\n z-index: 99;\r\n transition: all 1s;\r\n /* opacity: 0; */\r\n /* display: none; */\r\n overflow: hidden;\r\n }\r\n\r\n .subject-title {\r\n flex: 1\r\n }\r\n\r\n .top-right {\r\n padding: 24px;\r\n flex: 1;\r\n }\r\n\r\n .main {\r\n display: flex;\r\n width: 100%;\r\n position: relative;\r\n height: calc(100% - 64px);\r\n }\r\n\r\n .main-left {\r\n width: 240px;\r\n height: 100%;\r\n border-right: 1px solid rgba(232, 232, 232, 1);\r\n overflow-y: auto;\r\n }\r\n\r\n /deep/.ant-tabs-nav .ant-tabs-tab {\r\n padding: 8px 16px;\r\n margin: 0;\r\n }\r\n\r\n /deep/.ant-tabs-bar {\r\n margin: 0;\r\n }\r\n\r\n .main-right {\r\n flex: 1;\r\n width: 100%;\r\n height: 100%;\r\n background-color: #f2f2f2;\r\n position: relative;\r\n }\r\n\r\n .type-group {\r\n padding: 8px;\r\n background-color: #fff;\r\n }\r\n\r\n .paging-box {\r\n width: 100%;\r\n height: 50px;\r\n background-color: #fff;\r\n position: relative;\r\n //bottom: 0;\r\n //right: 0;\r\n display: flex;\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n }\r\n\r\n .question-list {\r\n flex: 1;\r\n width: 100%;\r\n height: 100%;//calc(100% - 50px);\r\n overflow-y: auto;\r\n /* background-color: pink; */\r\n position: absolute;\r\n }\r\n\r\n .basket {\r\n position: absolute;\r\n right: 0;\r\n top: 45%;\r\n width: 36px;\r\n word-break: break-all;\r\n color: #fff;\r\n background-color: #40a9ff;\r\n border-radius: 2px;\r\n text-align: center;\r\n cursor: pointer;\r\n letter-spacing: 5px;\r\n }\r\n\r\n .question-item {\r\n background-color: #fff;\r\n }\r\n\r\n .basket-inner {\r\n flex: 1;\r\n padding: 10px 0;\r\n padding-left: 8px;\r\n position: relative;\r\n }\r\n\r\n .basket-dot {\r\n background-color: red;\r\n border-radius: 8px;\r\n min-width: 20px;\r\n padding: 0 4px;\r\n position: absolute;\r\n top: -8px;\r\n left: -8px;\r\n letter-spacing: 0px;\r\n }\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QusetionBankManage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QusetionBankManage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./QusetionBankManage.vue?vue&type=template&id=694ffeb4&scoped=true&\"\nimport script from \"./QusetionBankManage.vue?vue&type=script&lang=js&\"\nexport * from \"./QusetionBankManage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./QusetionBankManage.vue?vue&type=style&index=0&id=694ffeb4&prod&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"694ffeb4\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a-pagination',{staticClass:\"my-pagination\",attrs:{\"total\":_vm.pagination.total,\"showTotal\":_vm.pagination.showTotal,\"showSizeChanger\":_vm.pagination.showSizeChanger,\"defaultPageSize\":15,\"pageSizeOptions\":_vm.pagination.pageSizeOptions},on:{\"showSizeChange\":_vm.sizeChange,\"change\":_vm.currentChange},model:{value:(_vm.pagination.current),callback:function ($$v) {_vm.$set(_vm.pagination, \"current\", $$v)},expression:\"pagination.current\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-pagination class=\"my-pagination\" v-model=\"pagination.current\" :total=\"pagination.total\"\r\n :showTotal=\"pagination.showTotal\" :showSizeChanger=\"pagination.showSizeChanger\" :defaultPageSize='15'\r\n :pageSizeOptions='pagination.pageSizeOptions' @showSizeChange=\"sizeChange\" @change=\"currentChange\">\r\n </a-pagination>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n // import { myPagination } from '@/mixins/myPagination.js'\r\n export default {\r\n props: ['pagination'],\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n watch: {\r\n pagination: {\r\n handler(newVal, oldVal) {\r\n console.log(newVal, 'newVal')\r\n // console.log(oldVal,'oldVal')\r\n // if (newVal.current !== oldVal.current || newVal.pageSize !== oldVal.pageSize) {\r\n // console.log(newVal, '分页改变了')\r\n // this.$emit('change', newVal)\r\n // }\r\n },\r\n deep: true\r\n }\r\n },\r\n methods: {\r\n sizeChange(page, pageSize) {\r\n console.log(page, pageSize, 'page, pageSize')\r\n this.pagination.current=page;\r\n this.pagination.pageSize=pageSize;\r\n this.$emit('change')\r\n },\r\n currentChange(current, size) {\r\n console.log(current, size, 'current, size')\r\n this.pagination.current=current;\r\n this.pagination.pageSize=size;\r\n this.$emit('change')\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./myPagination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./myPagination.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./myPagination.vue?vue&type=template&id=8753c054&scoped=true&\"\nimport script from \"./myPagination.vue?vue&type=script&lang=js&\"\nexport * from \"./myPagination.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8753c054\",\n null\n \n)\n\nexport default component.exports","export const myPagination = {\r\n data() {\r\n return {\r\n pagination: {\r\n current: 1,\r\n total: 0,\r\n defaultPageSize: 15,\r\n pageSize: 15,\r\n showTotal: total => `共 ${total} 条数据`,\r\n showSizeChanger: true,\r\n pageSizeOptions: [\"15\", \"20\", \"30\",\"50\", \"100\"],\r\n onShowSizeChange: (current, pageSize) => {\r\n console.log(current, pageSize)\r\n this.pagination.pageSize = pageSize;\r\n this.pagination.current = current;\r\n }\r\n },\r\n }\r\n },\r\n methods:{\r\n TableChange(pagination){\r\n const pages = { ...this.pagination };\r\n pages.current = pagination.current;\r\n this.pagination = pages;\r\n }\r\n }\r\n}","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QusetionBankManage.vue?vue&type=style&index=0&id=694ffeb4&prod&scoped=true&lang=less&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditPointsMenus.vue?vue&type=style&index=0&id=7d2ca5b4&prod&scoped=true&lang=css&\""],"sourceRoot":""}
|