editAndUpdate.ff27442f.js 19 KB

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