1 |
- var ve=Object.defineProperty,be=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var W=(r,d,c)=>d in r?ve(r,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[d]=c,A=(r,d)=>{for(var c in d||(d={}))Ce.call(d,c)&&W(r,c,d[c]);if(Y)for(var c of Y(d))qe.call(d,c)&&W(r,c,d[c]);return r},U=(r,d)=>be(r,we(d));var L=(r,d,c)=>new Promise((w,a)=>{var p=s=>{try{m(c.next(s))}catch(y){a(y)}},h=s=>{try{m(c.throw(s))}catch(y){a(y)}},m=s=>s.done?w(s.value):Promise.resolve(s.value).then(p,h);m((c=c.apply(r,d)).next())});import{u as Le}from"./tabsView.a2c8f242.js";import{d as P,r as E,F as K,a as I,B as le,i as e,l as C,_ as j,ce as _,a9 as g,p as q,k as o,cg as ae,b as se,dv as ke,ch as F,aj as Te,ae as X,di as xe,aa as ie,bn as oe,ai as Se,e as Ee,c as Ae,u as Ie,M as Ne,dk as Ue,q as Z,db as D,a0 as Fe,at as _e,dm as Be}from"./index.6bfa570d.js";import{l as De}from"./knowledgeTypeData.3b15dd0b.js";import{P as Pe}from"./index.d38cf90b.js";import{S as Me}from"./index.61053fe7.js";import{_ as Oe,b as ne,$ as je,a0 as ee,a1 as Ke}from"./api.b20da898.js";import{q as N,d as B,s as k,f as Re}from"./index.e57421ba.js";import{N as ue}from"./Cascader.03393193.js";import{D as $e}from"./DeleteFilled.184dd264.js";import{N as ze}from"./PageHeader.9e62c42a.js";import"./searchs.b637f0d6.js";import"./vuedraggable.umd.f17929ae.js";import"./index.c36ff199.js";import"./oss-file-upload.b4b00ff5.js";import"./api.f91d5647.js";import"./api.84095c8f.js";import"./api.71e33ee2.js";import"./constant.b4bfe346.js";import"./index.464a526e.js";import"./use-async.054e51d2.js";import"./dateUtil.1ad76c84.js";import"./dayjs.min.e0f291c5.js";const Ve=P({name:"add-question-list",emits:["select"],props:{selectList:{type:Array,default:()=>[]}},setup(r,{emit:d}){const c=E(),w=K(()=>{var u;return((u=r.selectList)==null?void 0:u.map(S=>S.id))||[]}),a=I({pagination:{page:1,rows:10,total:0},loading:!1,list:[],categorys:[],selectList:[]}),p=I({score:null,difficultyCoefficient:null,questionTypeCode:null,keyword:null,categoryId:null,courseTypeCode:null}),h=()=>[{type:"selection",disabled:t=>w.value.includes(t.id)},{title:"\u9898\u76EE\u540D\u79F0",key:"name",width:230,render(t){return e("div",null,[e("div",null,[t.name]),e("div",null,[o("\u7F16\u53F7:"),t.id])])}},{title:"\u9898\u76EE\u7C7B\u578B",key:"questionTypeCode",render(t){return N[t.questionTypeCode]}},{title:"\u8003\u70B9",key:"examinationKnowledgePointCategoryName"},{title:"\u96BE\u5EA6",key:"difficultyCoefficient",render(t){var S;const u=((S=B.find(M=>{var v;return((v=M.value)==null?void 0:v.toLocaleUpperCase())===t.difficultyCoefficient}))==null?void 0:S.label)||t.difficultyCoefficient;return t.difficultyCoefficientName=u,u}},{title:"\u5206\u503C",key:"totalScore"}],m=()=>L(this,null,function*(){var t;a.loading=!0;try{const u=yield Oe(A({page:a.pagination.page,rows:a.pagination.rows},p));Array.isArray((t=u==null?void 0:u.data)==null?void 0:t.rows)&&(a.list=u.data.rows,a.pagination.total=u.data.total)}catch(u){}a.loading=!1}),s=()=>L(this,null,function*(){var t;try{const u=yield ne({page:1,rows:1e3});Array.isArray((t=u==null?void 0:u.data)==null?void 0:t.rows)&&(a.categorys=y(u.data.rows))}catch(u){}}),y=t=>(t.forEach(u=>{u.children&&u.children.length?y(u.children):u.children=null}),t),T=()=>{a.pagination.page=1,m()};return le(()=>{s(),m()}),()=>e("div",{class:k.questionBank},[e(Me,{ref:c,style:{"box-shadow":"none",marginBottom:0,paddingTop:0},"label-width":"",model:p,onSubmit:T,onSetModel:t=>Object.assign(p,t),saveKey:"add-question-list-key"},{default:()=>[e(C,{path:"keyword",label:"\u5173\u952E\u5B57"},{default:()=>[e(j,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0/\u7F16\u53F7",value:p.keyword,"onUpdate:value":t=>p.keyword=t,onKeydown:t=>{t.code==="Enter"&&T()},clearable:!0},null)]}),e(C,{path:"score",label:"\u5206\u503C"},{default:()=>[e(j,{placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",value:p.score,"onUpdate:value":t=>p.score=t,onKeydown:t=>{t.code==="Enter"&&T()},clearable:!0},null)]}),e(C,{path:"questionTypeCode",label:"\u9898\u76EE\u7C7B\u578B"},{default:()=>[e(_,{placeholder:"\u8BF7\u9009\u62E9\u9898\u76EE\u7C7B\u578B",value:p.questionTypeCode,"onUpdate:value":t=>p.questionTypeCode=t,options:Object.keys(N).map(t=>({label:N[t],value:t})),clearable:!0},null)]}),e(C,{path:"categoryId",label:"\u8003\u70B9"},{default:()=>[e(ue,{placeholder:"\u8BF7\u9009\u62E9\u8003\u70B9",value:p.categoryId,"onUpdate:value":t=>p.categoryId=t,options:a.categorys,checkStrategy:"child",childrenField:"children",expandTrigger:"hover",valueField:"categoryId",labelField:"name",clearable:!0},null)]}),e(C,{path:"difficultyCoefficient",label:"\u96BE\u5EA6"},{default:()=>[e(_,{placeholder:"\u8BF7\u9009\u62E9\u96BE\u5EA6",clearable:!0,value:p.difficultyCoefficient,"onUpdate:value":t=>p.difficultyCoefficient=t,options:B},null)]}),e(C,null,{default:()=>[e(g,null,{default:()=>[e(q,{type:"primary",onClick:()=>{var t;return(t=c.value)==null?void 0:t.submit()}},{default:()=>[o("\u641C\u7D22")]}),e(q,{type:"default",onClick:()=>{var t;return(t=c.value)==null?void 0:t.reset()}},{default:()=>[o("\u91CD\u7F6E")]})]})]})]}),e(ae,{loading:a.loading,maxHeight:"60vh",columns:h(),data:a.list,"row-key":t=>t.id,defaultCheckedRowKeys:w.value,checkedRowKeys:a.selectList,"onUpdate:checkedRowKeys":t=>a.selectList=t},null),e(g,{justify:"space-between",align:"center",style:{padding:"8px 0"}},{default:()=>[e(Pe,{style:{margin:0},page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.total,"onUpdate:pageTotal":t=>a.pagination.total=t,onList:m,sync:!0,saveKey:"add-question-list-page-key"},null),e(g,null,{default:()=>[e(q,{onClick:()=>d("select")},{default:()=>[o("\u53D6\u6D88")]}),e(q,{type:"primary",onClick:()=>{const t=a.list.map(u=>a.selectList.includes(u.id)?u:null).filter(Boolean);console.log("\u{1F680} ~ list",t),d("select",t)}},{default:()=>[o("\u786E\u5B9A")]})]})]})])}}),Je=P({name:"musicPreView",props:{item:{type:Object,default:()=>{}}},setup(r,{emit:d}){const w=se().getToken,a={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},p=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",h=a[p];let s=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":h)+`/instrument/?_t=${Date.now()}&id=${r.item.id}&modelType=practise&modeType=json&Authorization=${w}&isCbs=true`;return()=>e("div",null,[e("iframe",{width:"667px",height:"375px",frameborder:"0",src:s},null)])}}),He="_item_11krl_1",Qe={item:He};function O(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!oe(r)}const Ge=["A","B","C","D","E","F","G","H","I","M"],Ye=[{label:"\u666E\u901A\u7EA7",value:"1"},{label:"\u8FDB\u9636\u7EA7",value:"2"},{label:"\u5927\u5E08\u7EA7",value:"3"}],We=P({name:"previewUnit",props:{list:{type:Array,default:()=>[]}},setup(r,{}){console.log("\u{1F680} ~ \u9898\u76EE\u5217\u8868",JSON.parse(JSON.stringify(r.list)));const d=I({open:!1,music:{}}),c=K(()=>{const w=[];return r.list.forEach(a=>{var m;const p=((m=a==null?void 0:a.mediaUrls)==null?void 0:m.split(",").map(s=>({src:s,type:s!=null&&s.includes(".mp3")?"audio":"img"})))||[];let h="";try{h=a.questionTypeCode!="PLAY"?a.questionExtendsInfo:JSON.parse(a.questionExtendsInfo)}catch(s){}w.push(U(A({},a),{mediaUrls:p,questionExtendsInfo:h}))}),w});return()=>{let w;return e("div",null,[e(g,{vertical:!0},O(w=c.value.map((a,p)=>e(ke,{hoverable:!0,size:"small"},{header:()=>e("div",null,[e(g,null,{default:()=>[e("span",null,[p+1,o("\u3001"),a.name]),e("span",null,[o("("),a.totalScore,o("\u5206)")]),e(F,{size:"small",type:"primary"},{default:()=>[N[a.questionTypeCode]]}),e(F,{size:"small",type:"primary"},{default:()=>{var h;return[(h=B.find(m=>m.value==a.difficultyCoefficient))==null?void 0:h.label]}})]})]),default:()=>{let h,m;return e("div",null,[e("div",{innerHTML:a.questionDetail},null),a.questionTypeCode!="PLAY"?e("div",null,[e(g,null,O(h=a.mediaUrls.map(s=>e(Te,null,[s.type==="audio"?e("audio",{src:s.src,controls:!0},null):e(X,{height:80,src:s.src},null)])))?h:{default:()=>[h]}),e(g,{vertical:!0,wrapItem:!1},O(m=a.answers.map((s,y)=>e("div",{class:Qe.item},[e(g,{align:"center"},{default:()=>[e("span",null,[Ge[y],o(".")]),s.questionAnswerTypeCode=="TXT"?s.questionAnswer:s.questionAnswerTypeCode=="IMAGE"?e(X,{height:50,src:s.questionAnswer},null):e("audio",{src:s.questionAnswer,controls:!0},null)]}),e("span",null,[s.questionExtra]),!["SORT","LINK"].includes(a.questionTypeCode)&&e(q,{text:!0,type:"success"},{default:()=>[s.rightAnswerFlag?"\u6B63\u786E\u7B54\u6848":""]})])))?m:{default:()=>[m]})]):e(q,{onClick:()=>{var s;d.open=!0,d.music={id:(s=a.questionExtendsInfo)==null?void 0:s.musicSheetId}}},{default:()=>{var s;return[o("\u6F14\u594F\u66F2\u76EE: "),(s=a.questionExtendsInfo)==null?void 0:s.musicName,e(g,{style:{marginLeft:"8px"}},{default:()=>[e(F,{size:"small",type:"primary"},{default:()=>{var y;return[o("\u5408\u683C\u5206\u6570: "),(y=a.questionExtendsInfo)==null?void 0:y.score]}}),e(F,{size:"small",type:"primary"},{default:()=>{var y,T;return[o("\u7EC3\u4E60\u5C0F\u8282\uFF1A"),(y=a.questionExtendsInfo)==null?void 0:y.start,o("-"),(T=a.questionExtendsInfo)==null?void 0:T.end]}}),e(F,{size:"small",type:"primary"},{default:()=>{var y;return[o("\u6D4B\u9A8C\u96BE\u5EA6\uFF1A"),(y=Ye.find(T=>{var t;return T.value==((t=a.questionExtendsInfo)==null?void 0:t.difficulty)}))==null?void 0:y.label]}})]})]}}),e(xe,{style:{marginTop:"10px"},showIcon:!1},{default:()=>[o("\u7B54\u6848\u89E3\u6790:"),a.answerAnalysis]})])}})))?w:{default:()=>[w]}),e(ie,{show:d.open,"onUpdate:show":a=>d.open=a,preset:"dialog",showIcon:!1,title:"\u66F2\u8C31\u9884\u89C8",style:{width:"auto"}},{default:()=>[e(Je,{item:d.music},null)]})])}}});function Xe(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!oe(r)}function te(){return{score:null,questionTypeCodes:"",difficultyCoefficient:"",name:"",questionNum:null,maxScore:0,categoryId:null,courseTypeCode:""}}const Lt=P({name:"unit-test-index-editAndUpdate",emits:["handleSuccess"],setup(r,{emit:d}){var H;const c=Se(),w=Ee(),a=w.query,p=Ae(),h=Object.entries(N).map(([i,l])=>({label:l,value:i})),m=Le(),s=()=>{m.closeCurrentTab(w),p.push({path:"/educationalManage/unitExamination"})},y=E([]),T=()=>L(this,null,function*(){var i;try{const l=yield ne({page:1,rows:1e3});Array.isArray((i=l==null?void 0:l.data)==null?void 0:i.rows)&&(y.value=Re(l.data.rows,"children"))}catch(l){}}),t=Ie(),u=E(!1),S=E(null),M=se();E("normal");const v=I({operatorId:((H=M.getUserInfo)==null?void 0:H.id)||"",id:a.unitExaminationId||"",name:a.name||"",courseTypeCode:a.courseTypeCode||null,passScore:Number(a.passScore)||null,timeMinutes:Number(a.timeMinutes)||null}),R=E(),x=I({questionList:[te()]}),$="questionList";(()=>{const i=localStorage.getItem($)||"";try{x.questionList=JSON.parse(i)}catch(l){}})(),Ne(x,()=>{localStorage.setItem($,JSON.stringify(x.questionList))});const re={name:[{required:!0,message:"\u8BF7\u586B\u5199\u7C7B\u578B\u540D\u79F0",trigger:["input","blur"]}],courseTypeCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B",trigger:"change"}],passScore:[{type:"number",required:!0,message:"\u8BF7\u586B\u5199\u8FBE\u6807\u5206\u6570",trigger:["input","blur"]}],timeMinutes:[{type:"number",required:!0,message:"\u8BF7\u586B\u5199\u6D4B\u9A8C\u65F6\u957F",trigger:["input","blur"]}]},ce=()=>L(this,null,function*(){if(!!v.id){u.value=!0;try{const i=yield je(v.id);Array.isArray(i==null?void 0:i.data)&&i.data.forEach(l=>{let b=U(A({},l==null?void 0:l.question),{answers:(l==null?void 0:l.answers)||[]});n.selectList.push(b)})}catch(i){}u.value=!1}});le(()=>{T(),ce()});const de=()=>{var i;(i=S.value)==null||i.validate(l=>L(this,null,function*(){if(!l){if(!n.selectList.length){t.error("\u8BF7\u6DFB\u52A0\u9898\u76EE");return}if(v.passScore>z.value){t.error("\u9636\u6BB5\u81EA\u6D4B\u7684\u5408\u683C\u5206\u6570\u9AD8\u4E8E\u9898\u76EE\u7684\u603B\u5206\u503C");return}c.warning({title:"\u63D0\u793A",content:"\u8BF7\u786E\u4FDD\u6D4B\u9A8C\u66F2\u76EE\u5DF2\u6DFB\u52A0\u5230\u4E1A\u52A1\u7CFB\u7EDF",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>L(this,null,function*(){const b=U(A({},v),{questionList:n.selectList});let f=null;console.log(b),v.id?f=yield ee(b):f=yield ee(b),(f==null?void 0:f.code)==200?(t.success("\u4FDD\u5B58\u6210\u529F"),s()):t.warning("\u4FDD\u5B58\u5931\u8D25")}),onNegativeClick:()=>{}})}}))},n=I({open:!1,selectList:[],checkList:[],previewOpen:!1}),z=K(()=>n.selectList.reduce((i,l)=>i+l.totalScore,0)),pe=i=>{x.questionList.splice(i,1)},fe=()=>[{type:"selection"},{title:"\u9898\u76EE\u540D\u79F0",key:"name",width:230,render(i){return e("div",null,[e("div",null,[i.name])])}},{title:"\u9898\u76EE\u7C7B\u578B",key:"questionTypeCode",render(i){return N[i.questionTypeCode]}},{title:"\u8003\u70B9",key:"examinationKnowledgePointCategoryName"},{title:"\u96BE\u5EA6",key:"difficultyCoefficient",render(i){var l;return((l=B.find(b=>{var f;return((f=b.value)==null?void 0:f.toLocaleUpperCase())===i.difficultyCoefficient}))==null?void 0:l.label)||i.difficultyCoefficient}},{title:"\u5206\u503C",key:"totalScore"},{title:"\u64CD\u4F5C",key:"action",width:180,render(i,l){return e(g,null,{default:()=>[e(q,{text:!0,type:"primary",disabled:l===0,onClick:()=>V("up",l)},{default:()=>[o("\u4E0A\u79FB")]}),e(q,{text:!0,type:"primary",disabled:l===n.selectList.length-1,onClick:()=>V("down",l)},{default:()=>[o("\u4E0B\u79FB")]})]})}}],ye=()=>{c.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u9898\u76EE?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>L(this,null,function*(){n.selectList=n.selectList.filter(i=>!n.checkList.includes(i.id))})})},V=(i,l)=>{i==="up"?n.selectList[l]=n.selectList.splice(l-1,1,n.selectList[l])[0]:n.selectList[l]=n.selectList.splice(l+1,1,n.selectList[l])[0]},me=E(),ge=()=>{if(!x.questionList.length){t.error("\u8BF7\u5148\u6DFB\u52A0\u8003\u70B9");return}if(n.selectList.length){c.warning({title:"\u8B66\u544A",content:"\u5DF2\u6709\u9009\u62E9\u7684\u9898\u76EE,\u91CD\u65B0\u751F\u6210\u4F1A\u6E05\u7A7A\u5F53\u524D\u5DF2\u9009\u7684\u9898\u76EE,\u662F\u5426\u7EE7\u7EED?",positiveText:"\u7EE7\u7EED",negativeText:"\u53D6\u6D88",onPositiveClick:()=>L(this,null,function*(){J()})});return}J()},J=()=>L(this,null,function*(){var i;n.selectList=[],(i=R.value)==null||i.validate(l=>L(this,null,function*(){if(!l){const b=x.questionList.map((Q,he)=>{var G;return U(A({},Q),{name:`\u8003\u70B9${he+1}`,questionTypeCodes:((G=Q.questionTypeCodes)==null?void 0:G.join(","))||""})});let f=yield Ke(b);Array.isArray(f==null?void 0:f.data)&&(n.selectList=f.data,t.success("\u968F\u673A\u751F\u6210\u9898\u76EE\u6210\u529F"))}}))});return()=>{let i;return e("div",{class:["system-menu-container",k["unit-test-index-editAndUpdate"]]},[e(ze,{"on-back":()=>s(),title:a.name?a.name:"\u65B0\u589E\u9636\u6BB5\u81EA\u6D4B"},null),e("div",{class:["section-container"]},[e(Ue,{show:u.value},{default:()=>[e(Z,{ref:S,model:v,rules:re,disabled:!!a.isLock,requireMarkPlacement:"left",labelPlacement:"left"},{default:()=>[e(g,{itemStyle:{width:"30%"}},{default:()=>[e(C,{label:"\u6D4B\u9A8C\u540D\u79F0",path:"name",required:!0},{default:()=>[e(j,{style:{width:"210px"},placeholder:"\u8BF7\u8F93\u5165\u6D4B\u9A8C\u540D\u79F0",value:v.name,"onUpdate:value":l=>v.name=l},null)]}),e(C,{ref:me,label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode",required:!0},{default:()=>[e(_,{style:{width:"210px"},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B",clearable:!0,value:v.courseTypeCode,"onUpdate:value":l=>v.courseTypeCode=l,options:De},null)]})]}),e(g,{itemStyle:{width:"30%"}},{default:()=>[e(C,{label:"\u5408\u683C\u5206\u6570",path:"passScore",required:!0},{default:()=>[e(D,{style:{width:"210px"},placeholder:"\u8BF7\u8F93\u5165\u5408\u683C\u5206\u6570",value:v.passScore,"onUpdate:value":l=>v.passScore=l,clearable:!0,showButton:!1,min:0,max:100},{suffix:()=>"\u5206"})]}),e(C,{label:"\u6D4B\u9A8C\u65F6\u957F",path:"timeMinutes",required:!0},{default:()=>[e(D,{style:{width:"210px"},placeholder:"\u8BF7\u8F93\u5165\u6D4B\u9A8C\u65F6\u957F",value:v.timeMinutes,"onUpdate:value":l=>v.timeMinutes=l,clearable:!0,showButton:!1,min:0},{suffix:()=>"\u5206\u949F"})]})]}),e(C,{label:"\u7EC4\u5377\u6761\u4EF6",required:!0,labelPlacement:"top"},{default:()=>[e("div",{class:k.juanWrap,style:{flex:1,alignItems:"center"}},[e(Z,{ref:R,model:x,labelPlacement:"left"},Xe(i=x.questionList.map((l,b)=>e("div",{class:k.ramdomItem},[e(g,{itemStyle:{flex:1}},{default:()=>[e(C,{path:`questionList[${b}].categoryId`,required:!0,rule:{required:!0,message:"\u8BF7\u9009\u62E9\u8003\u70B9",trigger:["input","blur"]}},{default:()=>e(ue,{value:l.categoryId,"onUpdate:value":f=>l.categoryId=f,class:k.kaodian,options:y.value,checkStrategy:"child",childrenField:"children",valueField:"categoryId",labelField:"name",expandTrigger:"hover"},null),label:()=>e("p",{class:k.kaoLabel},[e("span",null,[o("* ")]),o("\u8003\u70B9"),b+1])}),e(C,{label:"* \u9898\u76EE\u6570\u91CF",path:`questionList[${b}].questionNum`,rule:{type:"number",required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u6570\u91CF",trigger:["input","blur"]}},{default:()=>e(D,{style:{width:"270px"},showButton:!1,min:0,max:100,value:l.questionNum,"onUpdate:value":f=>l.questionNum=f},{suffix:()=>"\u9898"}),label:()=>e("p",{class:k.kaoLabel},[e("span",null,[o("* ")]),o("\u9898\u76EE\u6570\u91CF")])}),e(C,{label:"\u96BE\u5EA6",required:!0,path:`questionList[${b}].difficultyCoefficient`,rule:{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6",trigger:["input","blur"]}},{default:()=>e(_,{options:B,value:l.difficultyCoefficient,"onUpdate:value":f=>l.difficultyCoefficient=f},null),label:()=>e("p",{class:k.kaoLabel},[e("span",null,[o("* ")]),o("\u96BE\u5EA6")])}),e(C,{label:"\u603B\u5206\u503C",required:!0,path:`questionList[${b}].score`,rule:{type:"number",required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C",trigger:["input","blur"]}},{default:()=>e(D,{showButton:!1,style:{width:"270px"},min:0,max:100,value:l.score,"onUpdate:value":f=>l.score=f},{suffix:()=>"\u5206"}),label:()=>e("p",{class:k.kaoLabel},[e("span",null,[o("* ")]),o("\u603B\u5206\u503C")])}),e(C,{label:"\u9898\u578B",required:!0,path:`questionList[${b}].questionTypeCodes`,rule:{type:"array",required:!0,message:"\u8BF7\u9009\u62E9\u9898\u76EE\u7C7B\u578B",trigger:["input","blur"]}},{default:()=>e(_,{multiple:!0,options:h,value:l.questionTypeCodes,"onUpdate:value":f=>l.questionTypeCodes=f},null),label:()=>e("p",{class:k.kaoLabel},[e("span",null,[o("* ")]),o("\u9898\u578B")])})]}),e(q,{class:k.delIcon,size:"tiny",type:"error",circle:!0,onClick:()=>pe(b)},{default:()=>[e(Fe,{component:e($e,null,null)},null)]})])))?i:{default:()=>[i]}),e(g,{style:{padding:"0 10px 0 10px"}},{default:()=>[e(q,{type:"warning",style:{width:"170px"},onClick:()=>{x.questionList.push(te())}},{default:()=>[o("+ \u6DFB\u52A0\u8003\u70B9")]}),e(q,{type:"success",onClick:ge,disabled:!!a.isLock},{default:()=>[n.selectList.length?"\u6839\u636E\u8003\u70B9\u91CD\u65B0\u751F\u6210\u9898\u76EE":"\u6839\u636E\u8003\u70B9\u751F\u6210\u6D4B\u9A8C\u9898\u76EE"]}),e(q,{type:"success",onClick:()=>n.open=!0,disabled:!!a.isLock},{default:()=>[o("\u624B\u52A8\u9009\u62E9\u9898\u76EE\u6DFB\u52A0")]})]})])]})]}),e(g,{vertical:!0,wrapItem:!1},{default:()=>[e(g,{wrapItem:!1,justify:"space-between"},{default:()=>[e(g,null,{default:()=>[e("div",{style:{color:"red"}},[o("*\xA0")]),o("\u5DF2\u9009\u9898\u76EE\u5217\u8868"),e("div",null,[o("\u5171 "),e("span",{style:{color:"red"}},[n.selectList.length]),o(" \u9053\u9898\u76EE")]),e("div",null,[o("\u603B\u5206: "),e("span",{style:{color:"red"}},[z.value]),o(" \u5206")])]}),e(q,{type:"error",onClick:ye},{default:()=>[o("\u6279\u91CF\u5220\u9664")]})]}),e(ae,{columns:fe(),data:n.selectList,"row-key":l=>l.id,onUpdateCheckedRowKeys:l=>n.checkList=l},null)]}),e(g,{style:{paddingTop:"10px"}},{default:()=>[n.selectList.length?e(q,{onClick:()=>n.previewOpen=!0},{default:()=>[o("\u9884\u89C8\u9898\u76EE")]}):null,e(q,{type:"primary",onClick:de,disabled:!!a.isLock},{default:()=>[o("\u4FDD\u5B58\u6D4B\u9A8C")]})]})]})]),e(ie,{preset:"dialog",showIcon:!1,title:"\u9009\u62E9\u9898\u76EE",show:n.open,"onUpdate:show":l=>n.open=l,style:{width:"80vw"}},{default:()=>[e("div",null,[e(Ve,{selectList:n.selectList,onSelect:l=>{l&&(n.selectList=n.selectList.concat(l)),n.open=!1}},null)])]}),e(_e,{show:n.previewOpen,"onUpdate:show":l=>n.previewOpen=l,width:"80vw"},{default:()=>[e(Be,{title:"\u9884\u89C8",closable:!0},{default:()=>[e(We,{list:n.selectList},null)]})]})])}}});export{Lt as default};
|