import{d as V,ax as T,r as o,z as F,a as I,f as R,e,b as a,h as _,bg as S,H as s,q as f,bn as D,b4 as N,ae as d,aj as U,an as M,ao as $,aw as j,ab as q,av as H,ak as A,b3 as G,M as J,_ as K}from"./index-e450010e.js";const L={class:"app-container"},O={class:"glm-btn-box"},P={style:{margin:"20px"}},Q=V({__name:"cc",setup(W){const c=T({dialogShow:!1,rowInfo:{},title:""}),b=[{sex:"张德银",name:"我公司的企业安全文化是什么?",num:"2022-07-22 22:10:30",age:"1"},{sex:"杨吉方",name:"DCS?",num:"2022-07-22 22:10:30",age:"1"},{sex:"江金锋",name:"谈谈你对精益管理的理解?",num:"2022-07-22 22:10:30",age:"1"},{sex:"江金锋",name:"为了避免6s活动流于形式,应该注意哪些事项?",num:"2022-07-22 22:10:30",age:"1"}];o(""),o([]),o([]);const p=o(""),h=o([]),g=i=>{c.title="答案列表",c.dialogShow=!0,c.rowInfo=i},w=i=>{d.confirm("你确定删除这条信息吗?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})},x=()=>{if(h.value.length===0){d.alert("请选择要删除的数据","提示",{confirmButtonText:"确定"});return}d.confirm("确定要批量删除所选数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})};return(i,u)=>{const y=U,v=M,E=$,m=j,n=q,z=H,k=F("RefreshRight"),B=A,l=G,C=J;return I(),R("div",L,[e(z,{class:"search"},{default:a(()=>[e(m,{span:12},{default:a(()=>[e(E,null,{default:a(()=>[e(v,{label:"问题"},{default:a(()=>[e(y,{placeholder:"请输入要查询的问题",modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=t=>p.value=t),style:{width:"350px"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(m,{span:12,style:{"text-align":"right"}},{default:a(()=>[e(n,{type:"primary",class:"btn",icon:_(S)},{default:a(()=>[s("查询")]),_:1},8,["icon"])]),_:1})]),_:1}),f("div",O,[e(n,{icon:_(D),type:"primary",plain:"",class:"button-margin",onClick:x},{default:a(()=>[s("批量删除")]),_:1},8,["icon"]),e(n,{class:"button-margin"},{default:a(()=>[e(B,null,{default:a(()=>[e(k)]),_:1})]),_:1})]),f("div",P,[e(_(N),{ref:"multipleTableRef",data:b,stripe:"",style:{width:"100%"},"header-cell-style":{background:"#F4F5F9","text-align":"center"}},{default:a(()=>[e(l,{type:"selection"}),e(l,{prop:"name","show-overflow-tooltip":"",label:"问题",resizable:!1}),e(l,{prop:"sex",label:"提问人",width:"90",align:"center",resizable:!1}),e(l,{prop:"age",label:"阅读量",width:"90",align:"center",resizable:!1}),e(l,{prop:"age",label:"赞",width:"90",align:"center",resizable:!1}),e(l,{prop:"age",label:"踩",width:"90",align:"center",resizable:!1}),e(l,{prop:"age",label:"评论",width:"90",align:"center",resizable:!1}),e(l,{prop:"age",label:"回答人数",width:"90",align:"center",resizable:!1}),e(l,{prop:"abc",label:"状态",width:"90",align:"center",resizable:!1},{default:a(t=>[e(C,{modelValue:t.row.status,"onUpdate:modelValue":r=>t.row.status=r,style:{"--el-switch-on-color":"#1E5EFF"}},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(l,{prop:"num",label:"时间",width:"200",resizable:!1}),e(l,{fixed:"right",label:"操作",width:"300",resizable:!1},{default:a(({row:t})=>[e(n,{type:"primary",link:"",size:"small",onClick:r=>g(t)},{default:a(()=>[s("查看答案列表")]),_:2},1032,["onClick"]),e(n,{type:"primary",link:"",size:"small"},{default:a(()=>[s("下架")]),_:1}),e(n,{type:"primary",link:"",size:"small",onClick:r=>w(t)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},512)])])}}});const Y=K(Q,[["__scopeId","data-v-57d508b5"]]);export{Y as default};