ss-component-new 1.3.414 → 1.3.415

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{array-D_lEz3-j.js → array-C6OdbPQ9.js} +2 -2
  2. package/dist/{array-DYLqRd7l.cjs → array-DmjXKlpK.cjs} +1 -1
  3. package/dist/{index-Casuz8Vp.cjs → index--TgqYrZc.cjs} +3 -3
  4. package/dist/{index-DY3aYQHA.cjs → index-8Urth4VT.cjs} +1 -1
  5. package/dist/{index-Bl5a8pH8.js → index-B-EizQFy.js} +2167 -2134
  6. package/dist/{index-CKzWVkpj.js → index-B3Z2HbJW.js} +1 -1
  7. package/dist/{index-CjV1C8sT.cjs → index-B4nzrEgl.cjs} +1 -1
  8. package/dist/{index-DYiY7D0W.js → index-B4ouy3El.js} +1 -1
  9. package/dist/{index-w1oBL1gJ.js → index-BKf-rOwE.js} +1 -1
  10. package/dist/{index-CK0l2Ml-.cjs → index-BVigGIkW.cjs} +2 -2
  11. package/dist/{index-CJJevI6C.cjs → index-BgDoXxnN.cjs} +1 -1
  12. package/dist/{index-CrRj6hNn.cjs → index-C7FJ3zvS.cjs} +1 -1
  13. package/dist/{index-Ba53ogKK.js → index-CEeOqd9g.js} +2 -2
  14. package/dist/{index-BCWRYy0b.js → index-CHaXvVsZ.js} +2 -2
  15. package/dist/{index-5BOhtSaG.js → index-CMIG3zru.js} +8 -8
  16. package/dist/{index-Da2Xb1RX.js → index-CPekdGe9.js} +2 -2
  17. package/dist/{index-DCwXwslK.js → index-CPl5clIF.js} +1067 -1035
  18. package/dist/{index-C1Iza7fB.cjs → index-CbbBN6_1.cjs} +1 -1
  19. package/dist/{index-CUJJfquN.cjs → index-CqcZ6Hbg.cjs} +1 -1
  20. package/dist/{index-CiuREeu1.cjs → index-DAX8T606.cjs} +1 -1
  21. package/dist/{index-C_rr5XQg.cjs → index-DIzwWIe-.cjs} +1 -1
  22. package/dist/{index-53_vfbFK.js → index-DK1-jWC0.js} +1 -1
  23. package/dist/{index-Cw9DvwCF.js → index-DnKH7LRu.js} +3 -3
  24. package/dist/{index-Dpy7DX_X.cjs → index-FLJJKkyQ.cjs} +1 -1
  25. package/dist/{index-DovRe4j5.cjs → index-I-s-QfVJ.cjs} +12 -12
  26. package/dist/{index-Do3cYG8p.js → index-aYsID9DE.js} +1 -1
  27. package/dist/{main-Dw6fy-Wz.cjs → main-BK6LUeIR.cjs} +1 -1
  28. package/dist/{main-BGVtFZVe.js → main-DLWQY8bl.js} +2 -2
  29. package/dist/ss-component.cjs +1 -1
  30. package/dist/ss-component.css +1 -1
  31. package/dist/ss-component.js +5 -5
  32. package/dist/ss-component2.cjs +1 -1
  33. package/dist/ss-component2.js +8 -8
  34. package/dist/{threeModel-DBd1dst8.js → threeModel-BeCt3JW8.js} +1 -1
  35. package/dist/{threeModel-C81BUDEj.cjs → threeModel-D_5szEHS.cjs} +1 -1
  36. package/dist/{threeSceneView-DecwgIvE.js → threeSceneView-Cy7aJHos.js} +3 -3
  37. package/dist/{threeSceneView-BmCIbgFw.cjs → threeSceneView-DqWt8Soc.cjs} +1 -1
  38. package/dist/{threeSceneViewForCPMPIP-Bl5oULDr.js → threeSceneViewForCPMPIP-BFnW_k3q.js} +1 -1
  39. package/dist/{threeSceneViewForCPMPIP-BZzyqlh4.cjs → threeSceneViewForCPMPIP-Cp4DP9Kz.cjs} +1 -1
  40. package/dist/{threeViewerHost-B_NFg86U.js → threeViewerHost-BOBeI0tj.js} +1 -1
  41. package/dist/{threeViewerHost-M-zpRrsk.cjs → threeViewerHost-D64feDPk.cjs} +1 -1
  42. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
2
- import { V as C } from "./index-Bl5a8pH8.js";
2
+ import { V as C } from "./index-B-EizQFy.js";
3
3
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = () => {
5
5
  const i = l("日志管理"), o = l(), a = l([
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-Dl8yi2iS.cjs"),N=require("./index-DBxrIHI8.cjs"),L=require("./index-Pve69buQ.cjs"),oe=require("./index-BOkUwKV5.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CkTzrR_j.cjs");require("./index-Casuz8Vp.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-BszVYrt4.cjs");require("./index-Dpy7DX_X.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-ex65UiGA.cjs"),je={class:"param-auth"},Ge={class:"body"},Qe={class:"node-content-wrapper"},He={class:"node-label-wrapper"},Je={class:"node-label"},We=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup($,{expose:E}){const c=$,y={value:"uniqueKey",label:"label",children:"children",class:f=>{}},{buildParamAuthTree:g}=N.useRole(),p=e.ref(),w=e.computed(()=>g(c.params)),i=e.computed(()=>c.checkedParams.map(f=>`${f.id}_${f.prop}`));return E({getCheckedParams:()=>{var d;return((d=p.value)==null?void 0:d.getCheckedNodes())||[]}}),(f,d)=>{const v=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",je,[d[0]||(d[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createVNode(v,{ref_key:"paramTreeRef",ref:p,class:"param-tree",data:w.value,props:y,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":i.value,"default-checked-keys":i.value,height:"100%"},{default:e.withCtx(({node:u,data:P})=>[e.createElementVNode("div",Qe,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,e.toDisplayString(u.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),d[1]||(d[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Xe=z._export_sfc(We,[["__scopeId","data-v-b7ce5c18"]]),Ye={class:"param-wrapper"},Ze={class:"param-body"},et={class:"role-form-wrapper"},tt={class:"edit-footer"},ot={class:"footer-right"},at=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup($,{expose:E,emit:c}){const y=c,g=e.ref(),p=e.ref(!1),w=()=>{p.value=!0},i=()=>{p.value=!1},_=()=>{i()},f=()=>{const v=d();y("updateParams",v),i()},d=()=>{var u;return((u=g.value)==null?void 0:u.getCheckedParams())||[]};return E({openEditDialog:w}),(v,u)=>(e.openBlock(),e.createBlock(oe.ssDialog,{class:"param-edit-dialog",visible:p.value,title:"参数权限",onBeforeDestroy:i,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[u[0]||(u[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createVNode(Xe,{ref_key:"paramAuthTree",ref:g,params:v.params,"checked-params":v.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",tt,[u[1]||(u[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ot,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:_,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:f,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),lt=z._export_sfc(at,[["__scopeId","data-v-875ed466"]]),rt={class:"scope-management-wrapper"},nt={class:"scope-management-body"},st={class:"scope-form-wrapper"},it={class:"edit-footer"},ct={class:"footer-right"},dt=e.defineComponent({__name:"index",emits:["confirm"],setup($,{expose:E,emit:c}){const y=c,{initDepartmentScope:g}=L.useDataPermission(),p=e.ref(),w=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),i=e.ref(g()),_=e.ref(!1),f=()=>{_.value=!0},d=()=>{_.value=!1},v=async h=>{i.value=te.clone(h),f()},u=()=>{i.value=g(),d()},P=async()=>{var h,m;await((m=(h=p.value)==null?void 0:h.validate)==null?void 0:m.call(h)),y("confirm",te.clone(i.value)),u()};return E({handleEdit:v}),(h,m)=>{const U=e.resolveComponent("el-radio"),M=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),G=e.resolveComponent("el-row"),Q=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(oe.ssDialog,{class:"scope-edit-dialog",visible:_.value,title:"数据权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[m[1]||(m[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",nt,[e.createElementVNode("div",st,[e.createVNode(Q,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:p,model:i.value,rules:w},{default:e.withCtx(()=>[e.createVNode(G,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:24},{default:e.withCtx(()=>[e.createVNode(K,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:i.value.departmentScope,"onUpdate:modelValue":m[0]||(m[0]=C=>i.value.departmentScope=C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(L.departmentScopeOptions),C=>(e.openBlock(),e.createBlock(U,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",it,[m[2]||(m[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:u,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:P,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),ut=z._export_sfc(dt,[["__scopeId","data-v-40d37c72"]]),pt={class:"role-management"},mt={class:"header"},_t={class:"header-left"},ft={class:"query-wrapper"},vt={class:"header-right"},Vt={class:"body"},gt={class:"role-table-wrapper"},ht={class:"operate-list"},Ct=["onClick"],Nt={class:"pagination-wrapper"},yt={class:"role-management-wrapper"},wt={class:"role-management-body"},kt={class:"role-form-wrapper"},Et={class:"auth-tree-wrapper"},xt={class:"node-content-wrapper"},bt={class:"node-label-wrapper"},Tt={class:"node-label"},Pt={key:0,class:"status-tag"},Bt={key:1,class:"status-tag"},Dt={key:2,class:"status-tag"},St={key:3,class:"status-tag"},Lt={class:"edit-footer"},$t={class:"footer-right"},It=e.defineComponent({__name:"index",setup($){const E={value:"id",label:"label",children:"children"},c=L.useMenuState(L.pinia),{initDepartmentScope:y,recAndInitNodeDataPermission:g}=L.useDataPermission(),{initRoleItem:p,queryInfo:w,resetQuery:i,pageInfo:_,setPageNum:f,setPageSize:d,initGetByPage:v,initCreate:u,initUpdate:P,initDelete:h,propertyAuthTree:m,initPropertyAuthTree:U,getStatusLabelByValue:M,getStatusTagByValue:K,getFeatureStatusLabelByValue:j,getFeatureStatusTagByValue:G,initRoleConfig:Q,hasRoleEditAuth:C,isTableFeature:fe,initImport:ve,initExport:Ve,exportTemplate:ge}=N.useRole(),ae=e.ref([]),he=async()=>{const o=await v(),{roleData:t=[]}=o;return t},B=async()=>{ae.value=await he()},Ce=o=>{f(o),B()},Ne=o=>{d(o),B()},ye=async()=>{i(),c.setImportLoading(!0),await B().finally(()=>{c.setImportLoading(!1)})},T=async()=>{await B(),await Q()};e.onMounted(()=>{T()});const le=e.ref(),we=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),I=e.ref(),q=e.ref(""),n=e.ref(p());e.watch(q,o=>{I.value.filter(o)});const ke=(o,t)=>o?t.label.includes(o):!0,re=e.ref([]),R=e.ref(),Ee=(o,t)=>{var a;o.stopPropagation(),re.value=t.params||[],(a=R==null?void 0:R.value)==null||a.openEditDialog()},xe=o=>{var s;const t=(s=o==null?void 0:o[0])==null?void 0:s.id,a=n.value.params.filter(V=>V.id!==t);n.value.params=[...a,...o]},H=e.ref(!1),be=()=>{H.value=!0},ne=()=>{q.value="",H.value=!1},se=async o=>{if(!C.value)return;const t=[];o&&t.push(o.role_id),await U(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:m.value}),n.value=p(o,a),be()},ie=()=>{n.value=p(),ne()},Te=async()=>{var a,s,V;await((s=(a=le.value)==null?void 0:a.validate)==null?void 0:s.call(a));let o=((V=I.value)==null?void 0:V.getCheckedNodes())||[];o=o.filter(k=>k.isPropertyLeaf),o=o.map(k=>{const{departmentScope:X}=k.dataPermission||{};return{...k,department_scope:X}}),n.value.main_ids=o;const{role_id:t}=n.value;t?await De():await Be(),ie()},Pe=async o=>{if(!C.value)return;const{status:t}=o;N.statusConstants.ENABLE.value===t?o.status=N.statusConstants.DISABLED.value:o.status=N.statusConstants.ENABLE.value,await P(o),await T()},Be=async()=>{await u(n.value),await T()},De=async()=>{await P(n.value),await T()},Se=async o=>{await h(o),await T()},Le=async(o,t)=>{if(!C.value)return;const{value:a}=o,s=t.row;if(a==="edit"){se(s);return}if(a==="delete"){await Se(s);return}},$e=async(o,t)=>{o.stopPropagation();const{status:a}=t;N.featureStatusConstants.EDITABLE.value===a?t.status=N.featureStatusConstants.DISABLED.value:t.status=N.featureStatusConstants.EDITABLE.value},J=o=>{var a;return(((a=I.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ce=e.ref(),A=e.ref(),W=e.ref(y()),de=(o,t)=>{var a;o.stopPropagation(),A.value=t,t.isPropertyLeaf&&(W.value=te.clone(t.dataPermission)),t.isProperty||(W.value=y("")),(a=ce.value)==null||a.handleEdit(W.value)},Ie=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},qe=async()=>{await Re()},Re=async()=>{const o=document.createElement("input");o.type="file",o.accept=".xlsx",o.onchange=async t=>{var V;const s=(V=t.target.files)==null?void 0:V[0];if(s)try{c.setImportLoading(!0),await ve(s),await T(),c.setImportLoading(!1)}catch{c.setImportLoading(!1)}},o.click()},Ae=async()=>{c.setImportLoading(!0),await Ve().finally(()=>{c.setImportLoading(!1)})},Fe=async()=>{ge()};return(o,t)=>{var ue,pe,me,_e;const a=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),V=e.resolveComponent("el-icon"),k=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),Oe=e.resolveComponent("el-dropdown"),D=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-tag"),ze=e.resolveComponent("el-table"),Ue=e.resolveComponent("el-pagination"),F=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-col"),Y=e.resolveComponent("el-row"),Me=e.resolveComponent("el-tree"),Ke=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createElementVNode("div",_t,[e.createElementVNode("div",ft,[e.createVNode(a,{modelValue:e.unref(w).name,"onUpdate:modelValue":t[0]||(t[0]=l=>e.unref(w).name=l),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:B},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("查询")])),_:1,__:[6]}),e.createVNode(s,{type:"primary",plain:"",onClick:ye},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("重置")])),_:1,__:[7]})])]),e.createElementVNode("div",vt,[e.createVNode(s,{type:"primary",onClick:qe},{default:e.withCtx(()=>[t[8]||(t[8]=e.createTextVNode(" 导入 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.upload_default))]),_:1})]),_:1,__:[8]}),e.createVNode(Oe,null,{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(k,{onClick:Fe},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("导出模板")])),_:1,__:[10]}),e.createVNode(k,{onClick:Ae},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("导出数据")])),_:1,__:[11]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary"},{default:e.withCtx(()=>[t[9]||(t[9]=e.createTextVNode(" 导出 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.arrow_down_default))]),_:1})]),_:1,__:[9]})]),_:1}),e.createVNode(b._sfc_main,{emptyColor:!0,onClickTrigger:t[1]||(t[1]=l=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",Vt,[e.createElementVNode("div",gt,[e.createVNode(ze,{class:"role-table",data:ae.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(D,{prop:"name",label:"名称",align:"center"}),e.createVNode(D,{prop:"code",label:"编码",align:"center"}),e.createVNode(D,{prop:"remark",label:"备注",align:"center"}),e.createVNode(D,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(l=>[e.createVNode(S,{class:"status-tag",type:e.unref(K)(l.row.status),title:"点击切换",onClick:r=>Pe(l.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(M)(l.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(D,{label:"操作",align:"center"},{default:e.withCtx(l=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.operateList),r=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:r.value,onClick:e.withModifiers(Z=>Le(r,l),["stop"])},e.toDisplayString(r.label),9,Ct))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",Nt,[t[12]||(t[12]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ue,{onSizeChange:Ne,onCurrentChange:Ce,"current-page":(ue=e.unref(_))==null?void 0:ue.pageNum,"page-sizes":(pe=e.unref(_))==null?void 0:pe.pageSizes,"page-size":((me=e.unref(_))==null?void 0:me.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(_))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[13]||(t[13]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(oe.ssDialog,{class:"role-edit-dialog",visible:H.value,title:"角色信息",onBeforeDestroy:ne,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[t[17]||(t[17]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",wt,[e.createElementVNode("div",kt,[e.createVNode(Ke,{class:"role-edit-form",ref_key:"roleFormRef",ref:le,model:n.value,rules:we},{default:e.withCtx(()=>[e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.name,"onUpdate:modelValue":t[2]||(t[2]=l=>n.value.name=l),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.code,"onUpdate:modelValue":t[3]||(t[3]=l=>n.value.code=l),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.remark,"onUpdate:modelValue":t[4]||(t[4]=l=>n.value.remark=l),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:24},{default:e.withCtx(()=>[e.createVNode(F,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[e.createVNode(a,{modelValue:q.value,"onUpdate:modelValue":t[5]||(t[5]=l=>q.value=l)},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.search_default))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(Me,{ref_key:"propertyTreeRef",ref:I,class:"auth-tree",data:e.unref(m),props:E,"node-key":"id","show-checkbox":"","default-expanded-keys":n.value.checked_ids,"default-checked-keys":n.value.checked_ids,"filter-node-method":ke},{default:e.withCtx(({node:l,data:r})=>{var Z;return[e.createElementVNode("div",xt,[e.createElementVNode("div",bt,[e.createElementVNode("div",Tt,e.toDisplayString(l.label),1)]),r.isPropertyLeaf&&J(r)?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(S,{class:"status-tag",type:e.unref(G)(r.status),title:"点击切换",onClick:x=>$e(x,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(j)(r.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),r.isProperty&&J(r)&&((Z=r.params)==null?void 0:Z.length)>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(S,{class:"status-tag",type:"success",onClick:x=>Ee(x,r)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.isPropertyLeaf&&J(r)&&e.unref(fe)(r)?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[15]},1032,["onClick"])])):e.createCommentVNode("",!0),l.level==1&&l.checked&&!r.isProperty?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[16]},1032,["onClick"])])):e.createCommentVNode("",!0)])]}),_:1},8,["data","default-expanded-keys","default-checked-keys"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Lt,[t[18]||(t[18]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",$t,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:ie,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Te,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(lt,{ref_key:"paramAuthDialog",ref:R,params:re.value,"checked-params":n.value.params,onUpdateParams:xe},null,8,["params","checked-params"]),e.createVNode(ut,{ref_key:"scopeDialog",ref:ce,onConfirm:Ie},null,512)],64)}}}),qt=z._export_sfc(It,[["__scopeId","data-v-5da1e93d"]]);exports.default=qt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-Dl8yi2iS.cjs"),N=require("./index-DBxrIHI8.cjs"),L=require("./index-Pve69buQ.cjs"),oe=require("./index-BOkUwKV5.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CkTzrR_j.cjs");require("./index--TgqYrZc.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-BszVYrt4.cjs");require("./index-FLJJKkyQ.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-ex65UiGA.cjs"),je={class:"param-auth"},Ge={class:"body"},Qe={class:"node-content-wrapper"},He={class:"node-label-wrapper"},Je={class:"node-label"},We=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup($,{expose:E}){const c=$,y={value:"uniqueKey",label:"label",children:"children",class:f=>{}},{buildParamAuthTree:g}=N.useRole(),p=e.ref(),w=e.computed(()=>g(c.params)),i=e.computed(()=>c.checkedParams.map(f=>`${f.id}_${f.prop}`));return E({getCheckedParams:()=>{var d;return((d=p.value)==null?void 0:d.getCheckedNodes())||[]}}),(f,d)=>{const v=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",je,[d[0]||(d[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createVNode(v,{ref_key:"paramTreeRef",ref:p,class:"param-tree",data:w.value,props:y,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":i.value,"default-checked-keys":i.value,height:"100%"},{default:e.withCtx(({node:u,data:P})=>[e.createElementVNode("div",Qe,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,e.toDisplayString(u.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),d[1]||(d[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Xe=z._export_sfc(We,[["__scopeId","data-v-b7ce5c18"]]),Ye={class:"param-wrapper"},Ze={class:"param-body"},et={class:"role-form-wrapper"},tt={class:"edit-footer"},ot={class:"footer-right"},at=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup($,{expose:E,emit:c}){const y=c,g=e.ref(),p=e.ref(!1),w=()=>{p.value=!0},i=()=>{p.value=!1},_=()=>{i()},f=()=>{const v=d();y("updateParams",v),i()},d=()=>{var u;return((u=g.value)==null?void 0:u.getCheckedParams())||[]};return E({openEditDialog:w}),(v,u)=>(e.openBlock(),e.createBlock(oe.ssDialog,{class:"param-edit-dialog",visible:p.value,title:"参数权限",onBeforeDestroy:i,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[u[0]||(u[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createVNode(Xe,{ref_key:"paramAuthTree",ref:g,params:v.params,"checked-params":v.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",tt,[u[1]||(u[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ot,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:_,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:f,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),lt=z._export_sfc(at,[["__scopeId","data-v-875ed466"]]),rt={class:"scope-management-wrapper"},nt={class:"scope-management-body"},st={class:"scope-form-wrapper"},it={class:"edit-footer"},ct={class:"footer-right"},dt=e.defineComponent({__name:"index",emits:["confirm"],setup($,{expose:E,emit:c}){const y=c,{initDepartmentScope:g}=L.useDataPermission(),p=e.ref(),w=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),i=e.ref(g()),_=e.ref(!1),f=()=>{_.value=!0},d=()=>{_.value=!1},v=async h=>{i.value=te.clone(h),f()},u=()=>{i.value=g(),d()},P=async()=>{var h,m;await((m=(h=p.value)==null?void 0:h.validate)==null?void 0:m.call(h)),y("confirm",te.clone(i.value)),u()};return E({handleEdit:v}),(h,m)=>{const U=e.resolveComponent("el-radio"),M=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),G=e.resolveComponent("el-row"),Q=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(oe.ssDialog,{class:"scope-edit-dialog",visible:_.value,title:"数据权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[m[1]||(m[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",nt,[e.createElementVNode("div",st,[e.createVNode(Q,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:p,model:i.value,rules:w},{default:e.withCtx(()=>[e.createVNode(G,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:24},{default:e.withCtx(()=>[e.createVNode(K,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:i.value.departmentScope,"onUpdate:modelValue":m[0]||(m[0]=C=>i.value.departmentScope=C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(L.departmentScopeOptions),C=>(e.openBlock(),e.createBlock(U,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",it,[m[2]||(m[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:u,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:P,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),ut=z._export_sfc(dt,[["__scopeId","data-v-40d37c72"]]),pt={class:"role-management"},mt={class:"header"},_t={class:"header-left"},ft={class:"query-wrapper"},vt={class:"header-right"},Vt={class:"body"},gt={class:"role-table-wrapper"},ht={class:"operate-list"},Ct=["onClick"],Nt={class:"pagination-wrapper"},yt={class:"role-management-wrapper"},wt={class:"role-management-body"},kt={class:"role-form-wrapper"},Et={class:"auth-tree-wrapper"},xt={class:"node-content-wrapper"},bt={class:"node-label-wrapper"},Tt={class:"node-label"},Pt={key:0,class:"status-tag"},Bt={key:1,class:"status-tag"},Dt={key:2,class:"status-tag"},St={key:3,class:"status-tag"},Lt={class:"edit-footer"},$t={class:"footer-right"},It=e.defineComponent({__name:"index",setup($){const E={value:"id",label:"label",children:"children"},c=L.useMenuState(L.pinia),{initDepartmentScope:y,recAndInitNodeDataPermission:g}=L.useDataPermission(),{initRoleItem:p,queryInfo:w,resetQuery:i,pageInfo:_,setPageNum:f,setPageSize:d,initGetByPage:v,initCreate:u,initUpdate:P,initDelete:h,propertyAuthTree:m,initPropertyAuthTree:U,getStatusLabelByValue:M,getStatusTagByValue:K,getFeatureStatusLabelByValue:j,getFeatureStatusTagByValue:G,initRoleConfig:Q,hasRoleEditAuth:C,isTableFeature:fe,initImport:ve,initExport:Ve,exportTemplate:ge}=N.useRole(),ae=e.ref([]),he=async()=>{const o=await v(),{roleData:t=[]}=o;return t},B=async()=>{ae.value=await he()},Ce=o=>{f(o),B()},Ne=o=>{d(o),B()},ye=async()=>{i(),c.setImportLoading(!0),await B().finally(()=>{c.setImportLoading(!1)})},T=async()=>{await B(),await Q()};e.onMounted(()=>{T()});const le=e.ref(),we=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),I=e.ref(),q=e.ref(""),n=e.ref(p());e.watch(q,o=>{I.value.filter(o)});const ke=(o,t)=>o?t.label.includes(o):!0,re=e.ref([]),R=e.ref(),Ee=(o,t)=>{var a;o.stopPropagation(),re.value=t.params||[],(a=R==null?void 0:R.value)==null||a.openEditDialog()},xe=o=>{var s;const t=(s=o==null?void 0:o[0])==null?void 0:s.id,a=n.value.params.filter(V=>V.id!==t);n.value.params=[...a,...o]},H=e.ref(!1),be=()=>{H.value=!0},ne=()=>{q.value="",H.value=!1},se=async o=>{if(!C.value)return;const t=[];o&&t.push(o.role_id),await U(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:m.value}),n.value=p(o,a),be()},ie=()=>{n.value=p(),ne()},Te=async()=>{var a,s,V;await((s=(a=le.value)==null?void 0:a.validate)==null?void 0:s.call(a));let o=((V=I.value)==null?void 0:V.getCheckedNodes())||[];o=o.filter(k=>k.isPropertyLeaf),o=o.map(k=>{const{departmentScope:X}=k.dataPermission||{};return{...k,department_scope:X}}),n.value.main_ids=o;const{role_id:t}=n.value;t?await De():await Be(),ie()},Pe=async o=>{if(!C.value)return;const{status:t}=o;N.statusConstants.ENABLE.value===t?o.status=N.statusConstants.DISABLED.value:o.status=N.statusConstants.ENABLE.value,await P(o),await T()},Be=async()=>{await u(n.value),await T()},De=async()=>{await P(n.value),await T()},Se=async o=>{await h(o),await T()},Le=async(o,t)=>{if(!C.value)return;const{value:a}=o,s=t.row;if(a==="edit"){se(s);return}if(a==="delete"){await Se(s);return}},$e=async(o,t)=>{o.stopPropagation();const{status:a}=t;N.featureStatusConstants.EDITABLE.value===a?t.status=N.featureStatusConstants.DISABLED.value:t.status=N.featureStatusConstants.EDITABLE.value},J=o=>{var a;return(((a=I.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ce=e.ref(),A=e.ref(),W=e.ref(y()),de=(o,t)=>{var a;o.stopPropagation(),A.value=t,t.isPropertyLeaf&&(W.value=te.clone(t.dataPermission)),t.isProperty||(W.value=y("")),(a=ce.value)==null||a.handleEdit(W.value)},Ie=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},qe=async()=>{await Re()},Re=async()=>{const o=document.createElement("input");o.type="file",o.accept=".xlsx",o.onchange=async t=>{var V;const s=(V=t.target.files)==null?void 0:V[0];if(s)try{c.setImportLoading(!0),await ve(s),await T(),c.setImportLoading(!1)}catch{c.setImportLoading(!1)}},o.click()},Ae=async()=>{c.setImportLoading(!0),await Ve().finally(()=>{c.setImportLoading(!1)})},Fe=async()=>{ge()};return(o,t)=>{var ue,pe,me,_e;const a=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),V=e.resolveComponent("el-icon"),k=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),Oe=e.resolveComponent("el-dropdown"),D=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-tag"),ze=e.resolveComponent("el-table"),Ue=e.resolveComponent("el-pagination"),F=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-col"),Y=e.resolveComponent("el-row"),Me=e.resolveComponent("el-tree"),Ke=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createElementVNode("div",_t,[e.createElementVNode("div",ft,[e.createVNode(a,{modelValue:e.unref(w).name,"onUpdate:modelValue":t[0]||(t[0]=l=>e.unref(w).name=l),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:B},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("查询")])),_:1,__:[6]}),e.createVNode(s,{type:"primary",plain:"",onClick:ye},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("重置")])),_:1,__:[7]})])]),e.createElementVNode("div",vt,[e.createVNode(s,{type:"primary",onClick:qe},{default:e.withCtx(()=>[t[8]||(t[8]=e.createTextVNode(" 导入 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.upload_default))]),_:1})]),_:1,__:[8]}),e.createVNode(Oe,null,{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(k,{onClick:Fe},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("导出模板")])),_:1,__:[10]}),e.createVNode(k,{onClick:Ae},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("导出数据")])),_:1,__:[11]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary"},{default:e.withCtx(()=>[t[9]||(t[9]=e.createTextVNode(" 导出 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.arrow_down_default))]),_:1})]),_:1,__:[9]})]),_:1}),e.createVNode(b._sfc_main,{emptyColor:!0,onClickTrigger:t[1]||(t[1]=l=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",Vt,[e.createElementVNode("div",gt,[e.createVNode(ze,{class:"role-table",data:ae.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(D,{prop:"name",label:"名称",align:"center"}),e.createVNode(D,{prop:"code",label:"编码",align:"center"}),e.createVNode(D,{prop:"remark",label:"备注",align:"center"}),e.createVNode(D,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(l=>[e.createVNode(S,{class:"status-tag",type:e.unref(K)(l.row.status),title:"点击切换",onClick:r=>Pe(l.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(M)(l.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(D,{label:"操作",align:"center"},{default:e.withCtx(l=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.operateList),r=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:r.value,onClick:e.withModifiers(Z=>Le(r,l),["stop"])},e.toDisplayString(r.label),9,Ct))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",Nt,[t[12]||(t[12]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ue,{onSizeChange:Ne,onCurrentChange:Ce,"current-page":(ue=e.unref(_))==null?void 0:ue.pageNum,"page-sizes":(pe=e.unref(_))==null?void 0:pe.pageSizes,"page-size":((me=e.unref(_))==null?void 0:me.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(_))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[13]||(t[13]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(oe.ssDialog,{class:"role-edit-dialog",visible:H.value,title:"角色信息",onBeforeDestroy:ne,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[t[17]||(t[17]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",wt,[e.createElementVNode("div",kt,[e.createVNode(Ke,{class:"role-edit-form",ref_key:"roleFormRef",ref:le,model:n.value,rules:we},{default:e.withCtx(()=>[e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.name,"onUpdate:modelValue":t[2]||(t[2]=l=>n.value.name=l),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.code,"onUpdate:modelValue":t[3]||(t[3]=l=>n.value.code=l),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.remark,"onUpdate:modelValue":t[4]||(t[4]=l=>n.value.remark=l),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:24},{default:e.withCtx(()=>[e.createVNode(F,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[e.createVNode(a,{modelValue:q.value,"onUpdate:modelValue":t[5]||(t[5]=l=>q.value=l)},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.search_default))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(Me,{ref_key:"propertyTreeRef",ref:I,class:"auth-tree",data:e.unref(m),props:E,"node-key":"id","show-checkbox":"","default-expanded-keys":n.value.checked_ids,"default-checked-keys":n.value.checked_ids,"filter-node-method":ke},{default:e.withCtx(({node:l,data:r})=>{var Z;return[e.createElementVNode("div",xt,[e.createElementVNode("div",bt,[e.createElementVNode("div",Tt,e.toDisplayString(l.label),1)]),r.isPropertyLeaf&&J(r)?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(S,{class:"status-tag",type:e.unref(G)(r.status),title:"点击切换",onClick:x=>$e(x,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(j)(r.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),r.isProperty&&J(r)&&((Z=r.params)==null?void 0:Z.length)>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(S,{class:"status-tag",type:"success",onClick:x=>Ee(x,r)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.isPropertyLeaf&&J(r)&&e.unref(fe)(r)?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[15]},1032,["onClick"])])):e.createCommentVNode("",!0),l.level==1&&l.checked&&!r.isProperty?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[16]},1032,["onClick"])])):e.createCommentVNode("",!0)])]}),_:1},8,["data","default-expanded-keys","default-checked-keys"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Lt,[t[18]||(t[18]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",$t,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:ie,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Te,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(lt,{ref_key:"paramAuthDialog",ref:R,params:re.value,"checked-params":n.value.params,onUpdateParams:xe},null,8,["params","checked-params"]),e.createVNode(ut,{ref_key:"scopeDialog",ref:ce,onConfirm:Ie},null,512)],64)}}}),qt=z._export_sfc(It,[["__scopeId","data-v-5da1e93d"]]);exports.default=qt;
@@ -1,5 +1,5 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { V as m } from "./index-Bl5a8pH8.js";
2
+ import { V as m } from "./index-B-EizQFy.js";
3
3
  import { g as d, c as _ } from "./index-BkWwwzGI.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
@@ -6,7 +6,7 @@ import { J as Y } from "./JSEncrypt-B36c1iN5.js";
6
6
  import { a2 as Se } from "./index-CMbbPEqT.js";
7
7
  import { A as _e } from "./index-CyU6mja2.js";
8
8
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { m as Ce } from "./index-DCwXwslK.js";
9
+ import { n as Ce } from "./index-CPl5clIF.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
12
12
  const e = new Y();