ss-component-new 1.3.262 → 1.3.263
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.
- package/dist/{array-B7wO-0f1.cjs → array-Dran49KI.cjs} +1 -1
- package/dist/{array-CYUGpz4O.js → array-eoEZosoh.js} +2 -2
- package/dist/{index-Co3wp2Cy.cjs → index-8WGtmbRz.cjs} +1 -1
- package/dist/{index-CvbjYGvP.js → index-BEIhV9SX.js} +1 -1
- package/dist/{index-BtR9HB1Q.js → index-BMKOhAua.js} +1 -1
- package/dist/{index-6lE4lIdS.cjs → index-C3Ptg78M.cjs} +1 -1
- package/dist/{index-XuUCP5i3.cjs → index-C8iHedd-.cjs} +1 -1
- package/dist/{index-BBt479yJ.cjs → index-CDAD78uL.cjs} +1 -1
- package/dist/{index-3JAC0BY8.cjs → index-CHq0b-zB.cjs} +1 -1
- package/dist/{index-B_l4zLmV.js → index-CR0p1rBc.js} +3 -3
- package/dist/{index-Gjye2Azo.js → index-CRZHUWpC.js} +2 -2
- package/dist/{index-CqGR39Q8.js → index-CS-flako.js} +1 -1
- package/dist/{index-BsUEryLM.js → index-CWePfaws.js} +7 -7
- package/dist/{index-CmZd-fdB.cjs → index-CYMg6uja.cjs} +1 -1
- package/dist/{index-JjGHGe5l.js → index-CaefM49R.js} +1 -1
- package/dist/{index-B2DPjbG8.cjs → index-ClouXXMe.cjs} +2 -2
- package/dist/{index-DdsQowL_.cjs → index-Cm-U9tfu.cjs} +1 -1
- package/dist/{index-D0kDkVh3.js → index-Cp4vuXJ2.js} +5 -5
- package/dist/{index-C4jRTFH9.js → index-D2U6CU-M.js} +2 -2
- package/dist/{index-Cf3QbECm.js → index-DY-ufi0D.js} +1 -1
- package/dist/{index-mvUm8jPu.cjs → index-DgroST_b.cjs} +1 -1
- package/dist/{index-D1EYr6nn.cjs → index-DiRRa2aL.cjs} +1 -1
- package/dist/{index-BsEoPl4e.cjs → index-DsTdVkqf.cjs} +1 -1
- package/dist/{index-BlpPah1w.cjs → index-Gsgko7hZ.cjs} +1 -1
- package/dist/{index-BOCJmIW5.js → index-uvNkzWF3.js} +2 -2
- package/dist/{index-BhWYB1l5.js → index-vzXAzEFZ.js} +1 -1
- package/dist/{main-CEytD3Ne.js → main-NwPOo-yo.js} +2 -2
- package/dist/{main-TiuHYRao.cjs → main-rVXsTF8F.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-CkBG9GLz.js → threeModel-CSaOx5lv.js} +1 -1
- package/dist/{threeModel-DQSSo6tg.cjs → threeModel-eVInH7HH.cjs} +1 -1
- package/dist/{threeSceneView-CEIV2olY.js → threeSceneView-BGJJb7MR.js} +3 -3
- package/dist/{threeSceneView-X_VX7OHS.cjs → threeSceneView-DjOeIm6C.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-YBwC7n_T.cjs → threeSceneViewForCPMPIP-BimvMbbp.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Cv0SaJIR.js → threeSceneViewForCPMPIP-DRuYDJgc.js} +1 -1
- package/dist/{threeViewerHost-CASwaHr5.js → threeViewerHost-BDeO3Dsm.js} +1 -1
- package/dist/{threeViewerHost-DQkTh1v6.cjs → threeViewerHost-CtuY-X_d.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),g=require("./index-BzcWcIFK.cjs"),ee=require("./index-jU-5AL6b.cjs"),j=require("./index-CUw6nGTo.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyjUeBm.cjs");require("./index-B2DPjbG8.cjs");require("./index-BpPyaNFa.cjs");const C=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-Bb7RsNv1.cjs");require("./request-BBDPqFah.cjs");require("./index-BsEoPl4e.cjs");require("./index-C2veg6vn.cjs");const G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-DkmYhMPj.cjs"),xe={class:"param-auth"},be={class:"body"},Te={class:"node-content-wrapper"},Pe={class:"node-label-wrapper"},Be={class:"node-label"},De=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup(q,{expose:N}){const V=q,w={value:"uniqueKey",label:"label",children:"children",class:m=>{}},{buildParamAuthTree:p}=g.useRole(),u=e.ref(),x=e.computed(()=>p(V.params)),d=e.computed(()=>V.checkedParams.map(m=>`${m.id}_${m.prop}`));return N({getCheckedParams:()=>{var c;return((c=u.value)==null?void 0:c.getCheckedNodes())||[]}}),(m,c)=>{const f=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",xe,[c[0]||(c[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",be,[e.createVNode(f,{ref_key:"paramTreeRef",ref:u,class:"param-tree",data:x.value,props:w,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":d.value,"default-checked-keys":d.value,height:"100%"},{default:e.withCtx(({node:n,data:A})=>[e.createElementVNode("div",Te,[e.createElementVNode("div",Pe,[e.createElementVNode("div",Be,e.toDisplayString(n.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),c[1]||(c[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Se=G._export_sfc(De,[["__scopeId","data-v-b7ce5c18"]]),$e={class:"param-wrapper"},Le={class:"param-body"},Re={class:"role-form-wrapper"},qe={class:"edit-footer"},Ae={class:"footer-right"},Fe=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup(q,{expose:N,emit:V}){const w=V,p=e.ref(),u=e.ref(!1),x=()=>{u.value=!0},d=()=>{u.value=!1},y=()=>{d()},m=()=>{const f=c();w("updateParams",f),d()},c=()=>{var n;return((n=p.value)==null?void 0:n.getCheckedParams())||[]};return N({openEditDialog:x}),(f,n)=>(e.openBlock(),e.createBlock(j.ssDialog,{class:"param-edit-dialog",visible:u.value,title:"参数权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",$e,[n[0]||(n[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Le,[e.createElementVNode("div",Re,[e.createVNode(Se,{ref_key:"paramAuthTree",ref:p,params:f.params,"checked-params":f.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",qe,[n[1]||(n[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ae,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:m,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),Oe=G._export_sfc(Fe,[["__scopeId","data-v-875ed466"]]),Ie={class:"scope-management-wrapper"},Ue={class:"scope-management-body"},ze={class:"scope-form-wrapper"},Me={class:"edit-footer"},Ke={class:"footer-right"},je=e.defineComponent({__name:"index",emits:["confirm"],setup(q,{expose:N,emit:V}){const w=V,{initDepartmentScope:p}=ee.useDataPermission(),u=e.ref(),x=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),d=e.ref(p()),y=e.ref(!1),m=()=>{y.value=!0},c=()=>{y.value=!1},f=async h=>{d.value=te.clone(h),m()},n=()=>{d.value=p(),c()},A=async()=>{var h,_;await((_=(h=u.value)==null?void 0:h.validate)==null?void 0:_.call(h)),w("confirm",te.clone(d.value)),n()};return N({handleEdit:f}),(h,_)=>{const F=e.resolveComponent("el-radio"),O=e.resolveComponent("el-radio-group"),H=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-col"),J=e.resolveComponent("el-row"),I=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(j.ssDialog,{class:"scope-edit-dialog",visible:y.value,title:"数据权限",onBeforeDestroy:c,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ie,[_[1]||(_[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ue,[e.createElementVNode("div",ze,[e.createVNode(I,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:u,model:d.value,rules:x},{default:e.withCtx(()=>[e.createVNode(J,{gutter:20},{default:e.withCtx(()=>[e.createVNode($,{span:24},{default:e.withCtx(()=>[e.createVNode(H,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:d.value.departmentScope,"onUpdate:modelValue":_[0]||(_[0]=b=>d.value.departmentScope=b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ee.departmentScopeOptions),b=>(e.openBlock(),e.createBlock(F,{key:b.value,value:b.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Me,[_[2]||(_[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ke,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:n,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:A,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),Ge=G._export_sfc(je,[["__scopeId","data-v-40d37c72"]]),He={class:"role-management"},Je={class:"header"},Qe={class:"header-right"},We={class:"body"},Xe={class:"role-table-wrapper"},Ye={class:"operate-list"},Ze=["onClick"],et={class:"pagination-wrapper"},tt={class:"role-management-wrapper"},ot={class:"role-management-body"},at={class:"role-form-wrapper"},lt={class:"node-content-wrapper"},st={class:"node-label-wrapper"},rt={class:"node-label"},nt={key:0,class:"status-tag"},it={key:1,class:"status-tag"},dt={class:"edit-footer"},ct={class:"footer-right"},ut={class:"role-management-wrapper"},pt={class:"role-management-body"},mt={class:"role-form-wrapper"},ft={class:"node-content-wrapper"},_t={class:"node-label-wrapper"},vt={class:"node-label"},Vt={key:0,class:"status-tag"},ht={key:1,class:"status-tag"},gt={key:2,class:"status-tag"},Ct={key:3,class:"status-tag"},Nt={class:"edit-footer"},yt={class:"footer-right"},kt=e.defineComponent({__name:"index",setup(q){const N={value:"id",label:"label",children:"children"},{initDepartmentScope:V,recAndInitNodeDataPermission:w}=ee.useDataPermission(),{initRoleItem:p,pageInfo:u,setPageNum:x,setPageSize:d,initGetByPage:y,initCreate:m,initUpdate:c,initDelete:f,propertyAuthTree:n,initPropertyAuthTree:A,getStatusLabelByValue:h,getStatusTagByValue:_,getFeatureStatusLabelByValue:F,getFeatureStatusTagByValue:O,initRoleConfig:H,hasRoleEditAuth:$,isTableFeature:J}=g.useRole(),I=e.ref([]),b=async()=>{const o=await y(),{roleData:t=[]}=o;return t},Q=async()=>{I.value=await b()},ve=o=>{x(o),Q()},Ve=o=>{d(o),Q()},L=async()=>{await Q(),await H()};e.onMounted(()=>{L()});const W=e.ref(),oe=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),U=e.ref(),s=e.ref(p()),ae=e.ref([]),z=e.ref(),le=(o,t)=>{var a;o.stopPropagation(),ae.value=t.params||[],(a=z==null?void 0:z.value)==null||a.openEditDialog()},he=o=>{var i;const t=(i=o==null?void 0:o[0])==null?void 0:i.id,a=s.value.params.filter(T=>T.id!==t);s.value.params=[...a,...o]},M=e.ref(!1),ge=()=>{M.value=!0},X=()=>{M.value=!1},se=async o=>{if(!$.value)return;const t=[];o&&t.push(o.role_id),await A(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:n.value}),s.value=p(o,a),ge()},Y=()=>{s.value=p(),X()},re=async()=>{var a,i,T;await((i=(a=W.value)==null?void 0:a.validate)==null?void 0:i.call(a));let o=((T=U.value)==null?void 0:T.getCheckedNodes())||[];o=o.filter(P=>P.isPropertyLeaf),o=o.map(P=>({...P,...P.dataPermission})),s.value.main_ids=o;const{role_id:t}=s.value;t?await ye():await Ne(),Y()},Ce=async o=>{if(!$.value)return;const{status:t}=o;g.statusConstants.ENABLE.value===t?o.status=g.statusConstants.DISABLED.value:o.status=g.statusConstants.ENABLE.value,await c(o),await L()},Ne=async()=>{await m(s.value),await L()},ye=async()=>{await c(s.value),await L()},ke=async o=>{await f(o),await L()},Ee=async(o,t)=>{if(!$.value)return;const{value:a}=o,i=t.row;if(a==="edit"){se(i);return}if(a==="delete"){await ke(i);return}},ne=async(o,t)=>{o.stopPropagation();const{status:a}=t;g.featureStatusConstants.EDITABLE.value===a?t.status=g.featureStatusConstants.DISABLE.value:t.status=g.featureStatusConstants.EDITABLE.value},R=o=>{var a;return(((a=U.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ie=e.ref(),K=e.ref(),Z=e.ref(V()),de=(o,t)=>{var a;o.stopPropagation(),K.value=t,t.isPropertyLeaf&&(Z.value=te.clone(t.dataPermission)),t.isProperty||(Z.value=V("")),(a=ie.value)==null||a.handleEdit(Z.value)},we=o=>{const{isProperty:t,isPropertyLeaf:a}=K.value;if(a){K.value.dataPermission=o;return}if(!t){w(K.value,o);return}};return(o,t)=>{var pe,me,fe,_e;const a=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-tag"),T=e.resolveComponent("el-table"),P=e.resolveComponent("el-pagination"),B=e.resolveComponent("el-input"),k=e.resolveComponent("el-form-item"),E=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),ce=e.resolveComponent("el-tree"),ue=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,[t[7]||(t[7]=e.createElementVNode("div",{class:"header-left"},null,-1)),e.createElementVNode("div",Qe,[e.createVNode(C._sfc_main,{emptyColor:!0,onClickTrigger:t[0]||(t[0]=r=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",We,[e.createElementVNode("div",Xe,[e.createVNode(T,{class:"role-table",data:I.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(a,{prop:"name",label:"名称",align:"center"}),e.createVNode(a,{prop:"code",label:"编码",align:"center"}),e.createVNode(a,{prop:"remark",label:"备注",align:"center"}),e.createVNode(a,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(r=>[e.createVNode(i,{class:"status-tag",type:e.unref(_)(r.row.status),title:"点击切换",onClick:l=>Ce(r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)(r.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(a,{label:"操作",align:"center"},{default:e.withCtx(r=>[e.createElementVNode("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.operateList),l=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:l.value,onClick:e.withModifiers(S=>Ee(l,r),["stop"])},e.toDisplayString(l.label),9,Ze))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",et,[t[8]||(t[8]=e.createElementVNode("div",null,null,-1)),e.createVNode(P,{onSizeChange:Ve,onCurrentChange:ve,"current-page":(pe=e.unref(u))==null?void 0:pe.pageNum,"page-sizes":(me=e.unref(u))==null?void 0:me.pageSizes,"page-size":((fe=e.unref(u))==null?void 0:fe.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(u))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[9]||(t[9]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(j.ssDialog,{class:"role-edit-dialog",visible:M.value,title:"角色信息",onBeforeDestroy:X,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",tt,[t[11]||(t[11]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",ot,[e.createElementVNode("div",at,[e.createVNode(ue,{class:"role-edit-form",ref_key:"roleFormRef",ref:W,model:s.value,rules:oe},{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.name,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value.name=r),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.code,"onUpdate:modelValue":t[2]||(t[2]=r=>s.value.code=r),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.remark,"onUpdate:modelValue":t[3]||(t[3]=r=>s.value.remark=r),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(k,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(ce,{ref_key:"propertyTreeRef",ref:U,class:"auth-tree",data:e.unref(n),props:N,"node-key":"id","show-checkbox":"","default-expanded-keys":s.value.checked_ids,"default-checked-keys":s.value.checked_ids,height:"100%"},{default:e.withCtx(({node:r,data:l})=>{var S;return[e.createElementVNode("div",lt,[e.createElementVNode("div",st,[e.createElementVNode("div",rt,e.toDisplayString(r.label),1)]),l.isPropertyLeaf&&R(l)?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(i,{class:"status-tag",type:e.unref(O)(l.status),title:"点击切换",onClick:v=>ne(v,l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(l.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),l.isProperty&&R(l)&&((S=l.params)==null?void 0:S.length)>0?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(i,{class:"status-tag",type:"success",onClick:v=>le(v,l)},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[10]},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",dt,[t[12]||(t[12]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:Y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:re,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(Oe,{ref_key:"paramAuthDialog",ref:z,params:ae.value,"checked-params":s.value.params,onUpdateParams:he},null,8,["params","checked-params"]),e.createVNode(j.ssDialog,{class:"role-edit-dialog",visible:M.value,title:"角色信息",onBeforeDestroy:X,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[t[16]||(t[16]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createVNode(ue,{class:"role-edit-form",ref_key:"roleFormRef",ref:W,model:s.value,rules:oe},{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.name,"onUpdate:modelValue":t[4]||(t[4]=r=>s.value.name=r),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.code,"onUpdate:modelValue":t[5]||(t[5]=r=>s.value.code=r),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.remark,"onUpdate:modelValue":t[6]||(t[6]=r=>s.value.remark=r),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(k,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(ce,{ref_key:"propertyTreeRef",ref:U,class:"auth-tree",data:e.unref(n),props:N,"node-key":"id","show-checkbox":"","default-expanded-keys":s.value.checked_ids,"default-checked-keys":s.value.checked_ids,height:"100%"},{default:e.withCtx(({node:r,data:l})=>{var S;return[e.createElementVNode("div",ft,[e.createElementVNode("div",_t,[e.createElementVNode("div",vt,e.toDisplayString(r.label),1)]),l.isPropertyLeaf&&R(l)?(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(i,{class:"status-tag",type:e.unref(O)(l.status),title:"点击切换",onClick:v=>ne(v,l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(l.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),l.isProperty&&R(l)&&((S=l.params)==null?void 0:S.length)>0?(e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(i,{class:"status-tag",type:"success",onClick:v=>le(v,l)},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[13]},1032,["onClick"])])):e.createCommentVNode("",!0),l.isPropertyLeaf&&R(l)&&e.unref(J)(l)?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(i,{class:"status-tag",type:"warning",onClick:v=>de(v,l)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.level==1&&r.checked&&!l.isProperty?(e.openBlock(),e.createElementBlock("div",Ct,[e.createVNode(i,{class:"status-tag",type:"warning",onClick:v=>de(v,l)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[15]},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",Nt,[t[17]||(t[17]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",yt,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:Y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:re,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(Ge,{ref_key:"scopeDialog",ref:ie,onConfirm:we},null,512)],64)}}}),Et=G._export_sfc(kt,[["__scopeId","data-v-2c4dd59a"]]);exports.default=Et;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),g=require("./index-BzcWcIFK.cjs"),ee=require("./index-jU-5AL6b.cjs"),j=require("./index-CUw6nGTo.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyjUeBm.cjs");require("./index-ClouXXMe.cjs");require("./index-BpPyaNFa.cjs");const C=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-Bb7RsNv1.cjs");require("./request-BBDPqFah.cjs");require("./index-DsTdVkqf.cjs");require("./index-C2veg6vn.cjs");const G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-DkmYhMPj.cjs"),xe={class:"param-auth"},be={class:"body"},Te={class:"node-content-wrapper"},Pe={class:"node-label-wrapper"},Be={class:"node-label"},De=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup(q,{expose:N}){const V=q,w={value:"uniqueKey",label:"label",children:"children",class:m=>{}},{buildParamAuthTree:p}=g.useRole(),u=e.ref(),x=e.computed(()=>p(V.params)),d=e.computed(()=>V.checkedParams.map(m=>`${m.id}_${m.prop}`));return N({getCheckedParams:()=>{var c;return((c=u.value)==null?void 0:c.getCheckedNodes())||[]}}),(m,c)=>{const f=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",xe,[c[0]||(c[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",be,[e.createVNode(f,{ref_key:"paramTreeRef",ref:u,class:"param-tree",data:x.value,props:w,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":d.value,"default-checked-keys":d.value,height:"100%"},{default:e.withCtx(({node:n,data:A})=>[e.createElementVNode("div",Te,[e.createElementVNode("div",Pe,[e.createElementVNode("div",Be,e.toDisplayString(n.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),c[1]||(c[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Se=G._export_sfc(De,[["__scopeId","data-v-b7ce5c18"]]),$e={class:"param-wrapper"},Le={class:"param-body"},Re={class:"role-form-wrapper"},qe={class:"edit-footer"},Ae={class:"footer-right"},Fe=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup(q,{expose:N,emit:V}){const w=V,p=e.ref(),u=e.ref(!1),x=()=>{u.value=!0},d=()=>{u.value=!1},y=()=>{d()},m=()=>{const f=c();w("updateParams",f),d()},c=()=>{var n;return((n=p.value)==null?void 0:n.getCheckedParams())||[]};return N({openEditDialog:x}),(f,n)=>(e.openBlock(),e.createBlock(j.ssDialog,{class:"param-edit-dialog",visible:u.value,title:"参数权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",$e,[n[0]||(n[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Le,[e.createElementVNode("div",Re,[e.createVNode(Se,{ref_key:"paramAuthTree",ref:p,params:f.params,"checked-params":f.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",qe,[n[1]||(n[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ae,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:m,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),Oe=G._export_sfc(Fe,[["__scopeId","data-v-875ed466"]]),Ie={class:"scope-management-wrapper"},Ue={class:"scope-management-body"},ze={class:"scope-form-wrapper"},Me={class:"edit-footer"},Ke={class:"footer-right"},je=e.defineComponent({__name:"index",emits:["confirm"],setup(q,{expose:N,emit:V}){const w=V,{initDepartmentScope:p}=ee.useDataPermission(),u=e.ref(),x=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),d=e.ref(p()),y=e.ref(!1),m=()=>{y.value=!0},c=()=>{y.value=!1},f=async h=>{d.value=te.clone(h),m()},n=()=>{d.value=p(),c()},A=async()=>{var h,_;await((_=(h=u.value)==null?void 0:h.validate)==null?void 0:_.call(h)),w("confirm",te.clone(d.value)),n()};return N({handleEdit:f}),(h,_)=>{const F=e.resolveComponent("el-radio"),O=e.resolveComponent("el-radio-group"),H=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-col"),J=e.resolveComponent("el-row"),I=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(j.ssDialog,{class:"scope-edit-dialog",visible:y.value,title:"数据权限",onBeforeDestroy:c,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ie,[_[1]||(_[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ue,[e.createElementVNode("div",ze,[e.createVNode(I,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:u,model:d.value,rules:x},{default:e.withCtx(()=>[e.createVNode(J,{gutter:20},{default:e.withCtx(()=>[e.createVNode($,{span:24},{default:e.withCtx(()=>[e.createVNode(H,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:d.value.departmentScope,"onUpdate:modelValue":_[0]||(_[0]=b=>d.value.departmentScope=b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ee.departmentScopeOptions),b=>(e.openBlock(),e.createBlock(F,{key:b.value,value:b.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Me,[_[2]||(_[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ke,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:n,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:A,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),Ge=G._export_sfc(je,[["__scopeId","data-v-40d37c72"]]),He={class:"role-management"},Je={class:"header"},Qe={class:"header-right"},We={class:"body"},Xe={class:"role-table-wrapper"},Ye={class:"operate-list"},Ze=["onClick"],et={class:"pagination-wrapper"},tt={class:"role-management-wrapper"},ot={class:"role-management-body"},at={class:"role-form-wrapper"},lt={class:"node-content-wrapper"},st={class:"node-label-wrapper"},rt={class:"node-label"},nt={key:0,class:"status-tag"},it={key:1,class:"status-tag"},dt={class:"edit-footer"},ct={class:"footer-right"},ut={class:"role-management-wrapper"},pt={class:"role-management-body"},mt={class:"role-form-wrapper"},ft={class:"node-content-wrapper"},_t={class:"node-label-wrapper"},vt={class:"node-label"},Vt={key:0,class:"status-tag"},ht={key:1,class:"status-tag"},gt={key:2,class:"status-tag"},Ct={key:3,class:"status-tag"},Nt={class:"edit-footer"},yt={class:"footer-right"},kt=e.defineComponent({__name:"index",setup(q){const N={value:"id",label:"label",children:"children"},{initDepartmentScope:V,recAndInitNodeDataPermission:w}=ee.useDataPermission(),{initRoleItem:p,pageInfo:u,setPageNum:x,setPageSize:d,initGetByPage:y,initCreate:m,initUpdate:c,initDelete:f,propertyAuthTree:n,initPropertyAuthTree:A,getStatusLabelByValue:h,getStatusTagByValue:_,getFeatureStatusLabelByValue:F,getFeatureStatusTagByValue:O,initRoleConfig:H,hasRoleEditAuth:$,isTableFeature:J}=g.useRole(),I=e.ref([]),b=async()=>{const o=await y(),{roleData:t=[]}=o;return t},Q=async()=>{I.value=await b()},ve=o=>{x(o),Q()},Ve=o=>{d(o),Q()},L=async()=>{await Q(),await H()};e.onMounted(()=>{L()});const W=e.ref(),oe=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),U=e.ref(),s=e.ref(p()),ae=e.ref([]),z=e.ref(),le=(o,t)=>{var a;o.stopPropagation(),ae.value=t.params||[],(a=z==null?void 0:z.value)==null||a.openEditDialog()},he=o=>{var i;const t=(i=o==null?void 0:o[0])==null?void 0:i.id,a=s.value.params.filter(T=>T.id!==t);s.value.params=[...a,...o]},M=e.ref(!1),ge=()=>{M.value=!0},X=()=>{M.value=!1},se=async o=>{if(!$.value)return;const t=[];o&&t.push(o.role_id),await A(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:n.value}),s.value=p(o,a),ge()},Y=()=>{s.value=p(),X()},re=async()=>{var a,i,T;await((i=(a=W.value)==null?void 0:a.validate)==null?void 0:i.call(a));let o=((T=U.value)==null?void 0:T.getCheckedNodes())||[];o=o.filter(P=>P.isPropertyLeaf),o=o.map(P=>({...P,...P.dataPermission})),s.value.main_ids=o;const{role_id:t}=s.value;t?await ye():await Ne(),Y()},Ce=async o=>{if(!$.value)return;const{status:t}=o;g.statusConstants.ENABLE.value===t?o.status=g.statusConstants.DISABLED.value:o.status=g.statusConstants.ENABLE.value,await c(o),await L()},Ne=async()=>{await m(s.value),await L()},ye=async()=>{await c(s.value),await L()},ke=async o=>{await f(o),await L()},Ee=async(o,t)=>{if(!$.value)return;const{value:a}=o,i=t.row;if(a==="edit"){se(i);return}if(a==="delete"){await ke(i);return}},ne=async(o,t)=>{o.stopPropagation();const{status:a}=t;g.featureStatusConstants.EDITABLE.value===a?t.status=g.featureStatusConstants.DISABLE.value:t.status=g.featureStatusConstants.EDITABLE.value},R=o=>{var a;return(((a=U.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ie=e.ref(),K=e.ref(),Z=e.ref(V()),de=(o,t)=>{var a;o.stopPropagation(),K.value=t,t.isPropertyLeaf&&(Z.value=te.clone(t.dataPermission)),t.isProperty||(Z.value=V("")),(a=ie.value)==null||a.handleEdit(Z.value)},we=o=>{const{isProperty:t,isPropertyLeaf:a}=K.value;if(a){K.value.dataPermission=o;return}if(!t){w(K.value,o);return}};return(o,t)=>{var pe,me,fe,_e;const a=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-tag"),T=e.resolveComponent("el-table"),P=e.resolveComponent("el-pagination"),B=e.resolveComponent("el-input"),k=e.resolveComponent("el-form-item"),E=e.resolveComponent("el-col"),D=e.resolveComponent("el-row"),ce=e.resolveComponent("el-tree"),ue=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,[t[7]||(t[7]=e.createElementVNode("div",{class:"header-left"},null,-1)),e.createElementVNode("div",Qe,[e.createVNode(C._sfc_main,{emptyColor:!0,onClickTrigger:t[0]||(t[0]=r=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",We,[e.createElementVNode("div",Xe,[e.createVNode(T,{class:"role-table",data:I.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(a,{prop:"name",label:"名称",align:"center"}),e.createVNode(a,{prop:"code",label:"编码",align:"center"}),e.createVNode(a,{prop:"remark",label:"备注",align:"center"}),e.createVNode(a,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(r=>[e.createVNode(i,{class:"status-tag",type:e.unref(_)(r.row.status),title:"点击切换",onClick:l=>Ce(r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)(r.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(a,{label:"操作",align:"center"},{default:e.withCtx(r=>[e.createElementVNode("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.operateList),l=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:l.value,onClick:e.withModifiers(S=>Ee(l,r),["stop"])},e.toDisplayString(l.label),9,Ze))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",et,[t[8]||(t[8]=e.createElementVNode("div",null,null,-1)),e.createVNode(P,{onSizeChange:Ve,onCurrentChange:ve,"current-page":(pe=e.unref(u))==null?void 0:pe.pageNum,"page-sizes":(me=e.unref(u))==null?void 0:me.pageSizes,"page-size":((fe=e.unref(u))==null?void 0:fe.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(u))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[9]||(t[9]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(j.ssDialog,{class:"role-edit-dialog",visible:M.value,title:"角色信息",onBeforeDestroy:X,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",tt,[t[11]||(t[11]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",ot,[e.createElementVNode("div",at,[e.createVNode(ue,{class:"role-edit-form",ref_key:"roleFormRef",ref:W,model:s.value,rules:oe},{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.name,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value.name=r),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.code,"onUpdate:modelValue":t[2]||(t[2]=r=>s.value.code=r),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.remark,"onUpdate:modelValue":t[3]||(t[3]=r=>s.value.remark=r),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(k,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(ce,{ref_key:"propertyTreeRef",ref:U,class:"auth-tree",data:e.unref(n),props:N,"node-key":"id","show-checkbox":"","default-expanded-keys":s.value.checked_ids,"default-checked-keys":s.value.checked_ids,height:"100%"},{default:e.withCtx(({node:r,data:l})=>{var S;return[e.createElementVNode("div",lt,[e.createElementVNode("div",st,[e.createElementVNode("div",rt,e.toDisplayString(r.label),1)]),l.isPropertyLeaf&&R(l)?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(i,{class:"status-tag",type:e.unref(O)(l.status),title:"点击切换",onClick:v=>ne(v,l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(l.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),l.isProperty&&R(l)&&((S=l.params)==null?void 0:S.length)>0?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(i,{class:"status-tag",type:"success",onClick:v=>le(v,l)},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[10]},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",dt,[t[12]||(t[12]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:Y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:re,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(Oe,{ref_key:"paramAuthDialog",ref:z,params:ae.value,"checked-params":s.value.params,onUpdateParams:he},null,8,["params","checked-params"]),e.createVNode(j.ssDialog,{class:"role-edit-dialog",visible:M.value,title:"角色信息",onBeforeDestroy:X,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[t[16]||(t[16]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createVNode(ue,{class:"role-edit-form",ref_key:"roleFormRef",ref:W,model:s.value,rules:oe},{default:e.withCtx(()=>[e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.name,"onUpdate:modelValue":t[4]||(t[4]=r=>s.value.name=r),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.code,"onUpdate:modelValue":t[5]||(t[5]=r=>s.value.code=r),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:s.value.remark,"onUpdate:modelValue":t[6]||(t[6]=r=>s.value.remark=r),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(D,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(k,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(ce,{ref_key:"propertyTreeRef",ref:U,class:"auth-tree",data:e.unref(n),props:N,"node-key":"id","show-checkbox":"","default-expanded-keys":s.value.checked_ids,"default-checked-keys":s.value.checked_ids,height:"100%"},{default:e.withCtx(({node:r,data:l})=>{var S;return[e.createElementVNode("div",ft,[e.createElementVNode("div",_t,[e.createElementVNode("div",vt,e.toDisplayString(r.label),1)]),l.isPropertyLeaf&&R(l)?(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(i,{class:"status-tag",type:e.unref(O)(l.status),title:"点击切换",onClick:v=>ne(v,l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(l.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),l.isProperty&&R(l)&&((S=l.params)==null?void 0:S.length)>0?(e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(i,{class:"status-tag",type:"success",onClick:v=>le(v,l)},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[13]},1032,["onClick"])])):e.createCommentVNode("",!0),l.isPropertyLeaf&&R(l)&&e.unref(J)(l)?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(i,{class:"status-tag",type:"warning",onClick:v=>de(v,l)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.level==1&&r.checked&&!l.isProperty?(e.openBlock(),e.createElementBlock("div",Ct,[e.createVNode(i,{class:"status-tag",type:"warning",onClick:v=>de(v,l)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[15]},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",Nt,[t[17]||(t[17]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",yt,[e.createVNode(C._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:Y,modelValue:"取消",buttonType:"info"}),e.createVNode(C._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:re,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(Ge,{ref_key:"scopeDialog",ref:ie,onConfirm:we},null,512)],64)}}}),Et=G._export_sfc(kt,[["__scopeId","data-v-2c4dd59a"]]);exports.default=Et;
|
|
@@ -4,14 +4,14 @@ var sn = (a, r, l) => lp(a, typeof r != "symbol" ? r + "" : r, l);
|
|
|
4
4
|
import { ref as ie, watch as _l, nextTick as zr, resolveComponent as ml, createBlock as pl, openBlock as se, withCtx as De, createElementVNode as te, renderSlot as qn, computed as Vl, createElementBlock as qe, createCommentVNode as Il, normalizeClass as un, toDisplayString as Va, defineComponent as Hr, onMounted as Kn, onUnmounted as Ht, withModifiers as Br, createVNode as Te, createTextVNode as bl, Fragment as zl, renderList as Xl, onBeforeUnmount as Rs, normalizeStyle as cn, unref as Pl, createSlots as Ut, mergeProps as qt, resolveDynamicComponent as An, shallowRef as Sc, reactive as Xr, getCurrentInstance as Ac, inject as wt, provide as Ds, toRef as rp, onBeforeMount as Tc, watchEffect as np, getCurrentScope as ip, onScopeDispose as sp, toRefs as wu, withDirectives as op, vShow as tp } from "vue";
|
|
5
5
|
import { k as up, l as cp, E as Tl, h as Kt, f as Su, c as Au, b as fn, am as Ec, an as dp, ao as pp, ap as ut, al as Tu } from "./request-DeDL4lsA.js";
|
|
6
6
|
import { j as ui, c as xe, h as wi, p as ar, s as ir, i as _i, b as Ui, o as Cc, u as di, a as Si, a2 as Wt, a0 as so, r as Bo, a3 as ei, g as on, n as wo, m as bo, E as In, t as zs, a4 as fp, a5 as oo, a6 as hp, a7 as Eu, a8 as vp, _ as yp } from "./index-y8S00w40.js";
|
|
7
|
-
import { S as gp, b as Rr, _ as Cu, f as mp, h as ps, i as Lo, a as yr, j as bp, d as Yt, e as _p, c as kp, k as to, l as xp } from "./index-
|
|
7
|
+
import { S as gp, b as Rr, _ as Cu, f as mp, h as ps, i as Lo, a as yr, j as bp, d as Yt, e as _p, c as kp, k as to, l as xp } from "./index-CaefM49R.js";
|
|
8
8
|
import { _ as or } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { u as wp, b as Gl, N as Sp, O as Ap, Q as Tp, R as Ep, U as Du, Y as Cp, Z as Os, _ as Dp, $ as zp, C as Op, f as ct, x as Dc, a0 as Ts, a1 as Mp, a2 as zc, a3 as Oc, v as dt, a4 as Ip, w as Bp, j as $i, B as Lp, V as pt, a5 as zu, m as is, n as As, a6 as $p, z as Np, a7 as Rp, a8 as Pp, a9 as jp, s as mi, aa as Fp, ab as Mc, d as Ic } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-QdQaZtjW.js";
|
|
10
10
|
import { s as $r } from "./index-CnjGqJZS.js";
|
|
11
|
-
import { a as Bc, T as Lc } from "./threeViewerHost-
|
|
11
|
+
import { a as Bc, T as Lc } from "./threeViewerHost-BDeO3Dsm.js";
|
|
12
12
|
import { g as Or, e as $o, p as St, t as So, c as hs, q as Ps, r as Hp, b as qr, s as js, u as Jt, w as yn, x as No, y as Up, z as qp, A as Kp, B as Wp, l as Yp, C as Jp, D as Gp, F as Xp, I as Zp, E as $c, G as tn, H as us, J as ai, K as Pi, L as ft, M as Vp, o as Qp, N as ht, O as e0, P as a0 } from "./index-D1QwVcxQ.js";
|
|
13
13
|
import { g as bi, u as Ao, c as Nc, d as Fs, b as Gt, a as To } from "./index-BHbbxGc-.js";
|
|
14
|
-
import { a as l0, s as r0 } from "./index-
|
|
14
|
+
import { a as l0, s as r0 } from "./index-CS-flako.js";
|
|
15
15
|
import "./index-CwH35J8v.js";
|
|
16
16
|
import { u as Rc } from "./index-BzPHIMQx.js";
|
|
17
17
|
/* empty css */
|
|
@@ -8664,7 +8664,7 @@ ${Ar}`,
|
|
|
8664
8664
|
let da;
|
|
8665
8665
|
p !== "" ? da = [p] : da = xe(q.value);
|
|
8666
8666
|
const S = {
|
|
8667
|
-
fixContent: await Dt(da, we == null ? void 0 : we.value),
|
|
8667
|
+
fixContent: await Dt(da, we == null ? void 0 : we.value, "Manual", q.value),
|
|
8668
8668
|
buttonName: "methodButton",
|
|
8669
8669
|
relatedContents: t == null ? void 0 : t.related,
|
|
8670
8670
|
columns: we.value,
|
|
@@ -10796,7 +10796,7 @@ ${Ar}`,
|
|
|
10796
10796
|
]);
|
|
10797
10797
|
};
|
|
10798
10798
|
}
|
|
10799
|
-
}, B2 = /* @__PURE__ */ or(I2, [["__scopeId", "data-v-
|
|
10799
|
+
}, B2 = /* @__PURE__ */ or(I2, [["__scopeId", "data-v-3542d4e0"]]), L2 = { class: "static-form-card" }, $2 = {
|
|
10800
10800
|
key: 0,
|
|
10801
10801
|
class: "static-form-body"
|
|
10802
10802
|
}, N2 = { class: "static-form-label" }, R2 = ["onClick"], P2 = { key: 1 }, j2 = {
|
|
@@ -3,12 +3,12 @@ import { u as $e, o as je, s as ce, f as ue } from "./index-BzPHIMQx.js";
|
|
|
3
3
|
import { A as Le, B as He } from "./index-y8S00w40.js";
|
|
4
4
|
import { s as ee } from "./index-CnjGqJZS.js";
|
|
5
5
|
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-QdQaZtjW.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-Cp4vuXJ2.js";
|
|
7
7
|
import "./index-BHtNKL1L.js";
|
|
8
8
|
import { _ as V } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
9
9
|
import "./index-D1QwVcxQ.js";
|
|
10
10
|
import "./request-DeDL4lsA.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-CS-flako.js";
|
|
12
12
|
import "./index-CwH35J8v.js";
|
|
13
13
|
import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
import { c as fe } from "./clone-B213wVHW.js";
|
|
@@ -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 { X as m } from "./index-
|
|
2
|
+
import { X as m } from "./index-Cp4vuXJ2.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-BMJrv3M8.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|