ss-component-new 1.3.309 → 1.3.310
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/{MTLLoader-Bo1wV64w.js → MTLLoader-CIEnVGmG.js} +1 -1
- package/dist/{MTLLoader-CNG_nYao.cjs → MTLLoader-OzB6aQ1J.cjs} +1 -1
- package/dist/{OrbitControls-BH8LW1We.js → OrbitControls-AFlrwr_K.js} +1 -1
- package/dist/{OrbitControls-DDAIU013.cjs → OrbitControls-DkGe2Ptd.cjs} +1 -1
- package/dist/{URDFLoader-BxNI_02V.cjs → URDFLoader-DSqxUYRw.cjs} +1 -1
- package/dist/{URDFLoader-Bol9PFUh.js → URDFLoader-SQ3u-Q_8.js} +2 -2
- package/dist/{animationData-DhNrRUji.cjs → animationData-B6OfhxX7.cjs} +1 -1
- package/dist/{animationData-CtNSWsVx.js → animationData-DEAc-sVN.js} +3 -3
- package/dist/{array-CY3ouybd.cjs → array-CAaog6qg.cjs} +1 -1
- package/dist/{array-PWiKLBUl.js → array-Ydde3r7w.js} +4 -4
- package/dist/{clone-BXHgjm5v.js → clone-7AmADFiU.js} +1 -1
- package/dist/clone-DR4pDnuw.cjs +1 -0
- package/dist/{dayjs.min-D5HHSGr1.cjs → dayjs.min-CJNj6LcW.cjs} +1 -1
- package/dist/{dayjs.min-BPKOQl6O.js → dayjs.min-DTIKCUrF.js} +1 -1
- package/dist/{iconfont-C9piaJDU.js → iconfont--3ZMb9Aj.js} +2 -2
- package/dist/{iconfont-BmeJfz0Q.cjs → iconfont-dsQaI5I4.cjs} +1 -1
- package/dist/{index-CJKZT_CV.cjs → index-17CQJTv4.cjs} +1 -1
- package/dist/{index-BuB0yKIt.js → index-2KYbe_7L.js} +2 -2
- package/dist/{index-CuctAwj2.js → index-4dur0sB4.js} +4 -4
- package/dist/{index-CDxB0zrx.cjs → index-5EqtwNP3.cjs} +1 -1
- package/dist/{index-DlIWrxq2.js → index-6-ZsdeZD.js} +4 -4
- package/dist/{index-B-4A72Ju.cjs → index-B0RsEw5m.cjs} +1 -1
- package/dist/{index-D29IWK9R.cjs → index-B2Bsxjo3.cjs} +1 -1
- package/dist/{index-DrVyMHmK.cjs → index-B3t77A1L.cjs} +1 -1
- package/dist/{index-BvkkBMb-.cjs → index-BU3Yohec.cjs} +1 -1
- package/dist/{index-1c2zUnli.cjs → index-Bc-WLx7S.cjs} +1 -1
- package/dist/{index-CwF4Jwpg.js → index-BesmmP6V.js} +4 -4
- package/dist/{index-xVXGJv1n.cjs → index-BhadNQIa.cjs} +1 -1
- package/dist/{index-viJGdi3r.js → index-BkS6ltPu.js} +1 -1
- package/dist/{index-DxrwHdDS.cjs → index-BlLEla5k.cjs} +1 -1
- package/dist/{index-DyY9JgJ7.cjs → index-BsmJfM3E.cjs} +1 -1
- package/dist/{index-DRhv81ty.js → index-BuTyP2j6.js} +1 -1
- package/dist/{index-D0lzijAI.cjs → index-CFZ-f-2F.cjs} +1 -1
- package/dist/{index-Dnx7pVxF.cjs → index-CGaMJ1tM.cjs} +1 -1
- package/dist/{index-Cvcq-T-g.js → index-CIuY1IfZ.js} +1 -1
- package/dist/{index-BasPZ1_1.js → index-CQGipCwR.js} +3 -3
- package/dist/{index-w0mp-zdk.cjs → index-CRqblQs6.cjs} +1 -1
- package/dist/{index-Bbh92DkU.js → index-CT1fhrt6.js} +9 -9
- package/dist/{index-CC2DoRnD.js → index-Cf2gp9fi.js} +3 -3
- package/dist/{index-ClAx-N3V.js → index-Ciy-wUsx.js} +19 -19
- package/dist/{index-Dqx-3m7x.js → index-ClBVw2TK.js} +3 -3
- package/dist/{index-iO7mADz6.cjs → index-Clae5SKB.cjs} +1 -1
- package/dist/{index-BHHFv1hx.cjs → index-CuPeKtNC.cjs} +1 -1
- package/dist/{index-C1dRscDJ.js → index-CyD2ZGI0.js} +2 -2
- package/dist/{index-DkMnnDQf.js → index-D25spbOo.js} +1 -1
- package/dist/{index--Ddu-f4x.js → index-D2crrlxW.js} +6 -6
- package/dist/{index-xDAkaP7q.js → index-D3oAYPfe.js} +13 -13
- package/dist/{index-ClPdK99Q.cjs → index-D6-Yrm0v.cjs} +1 -1
- package/dist/{index-D8TV-F73.cjs → index-DBrsZqeh.cjs} +1 -1
- package/dist/{index-BQjqI876.cjs → index-DEHdaKzw.cjs} +1 -1
- package/dist/{index-D3phz67p.js → index-DIR0HLgr.js} +6 -6
- package/dist/{index-gU6jleLK.cjs → index-DJnMQzMz.cjs} +1 -1
- package/dist/{index-Ceq2PcSk.js → index-DL9VQs02.js} +2 -2
- package/dist/{index-99yVIktb.cjs → index-DMv7whzL.cjs} +1 -1
- package/dist/{index-CMw9yQKL.js → index-DNV_O6Dc.js} +1 -1
- package/dist/{index-DczCIrHK.cjs → index-DSJJfH49.cjs} +1 -1
- package/dist/{index-D7nlPiUG.cjs → index-DeiDI-1m.cjs} +1 -1
- package/dist/{index-Df25kWGR.js → index-Di2VsnFa.js} +2 -2
- package/dist/{index-C_PRhgr-.js → index-DqIM3shB.js} +1 -1
- package/dist/{index-D1-J46nr.cjs → index-Dt6f0dss.cjs} +1 -1
- package/dist/{index-DFlc6bWY.js → index-DyBLFpRg.js} +1 -1
- package/dist/{index-CWvPphGt.cjs → index-EMsSHq7U.cjs} +1 -1
- package/dist/{index-BrqldBPX.cjs → index-FPHxJvUf.cjs} +1 -1
- package/dist/{index-ar6gHlTf.cjs → index-Kt492P5R.cjs} +1 -1
- package/dist/{index-BNkVoRD1.cjs → index-U9njmngc.cjs} +1 -1
- package/dist/{index-Cf_UV6gw.js → index-XSrc1sWV.js} +4 -4
- package/dist/{index-BakymLqz.cjs → index-YmuGsjrw.cjs} +1 -1
- package/dist/{index-CsbhbPY4.cjs → index-hLwB_v-A.cjs} +1 -1
- package/dist/{index-D0y9l598.js → index-krueaJgV.js} +9 -9
- package/dist/{index-BN5E9qKx.js → index-oAsacBj3.js} +2 -2
- package/dist/{index-BKBuEVmV.js → index-r6mcGvmD.js} +1 -1
- package/dist/{index-wkA0gNsh.js → index-tH9fLWoV.js} +2 -2
- package/dist/{index-C0lB0uo5.js → index-vcuXxLeo.js} +4 -4
- package/dist/{index-iLcMp4ja.js → index-wZ9pUfoa.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-WNMmWFZ4.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D13dnI_4.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-zCJwFQy1.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js} +4 -4
- package/dist/{main-BWF0CJLe.js → main-CwH9qJVm.js} +4 -4
- package/dist/{main-Dme1aCrm.cjs → main-DdEjcQ4o.cjs} +1 -1
- package/dist/{menu-BXiMOqYY.js → menu-CN_Tf3mn.js} +256 -259
- package/dist/{menu-Q9XyUX92.cjs → menu-N76i05Ex.cjs} +5 -5
- package/dist/{menuIndex-D2My1A7v.js → menuIndex-CD5tqM1b.js} +1 -1
- package/dist/{menuIndex-DiDPQosR.cjs → menuIndex-r6NllfjR.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-8Geoh8O6.js → threeModel-BD7DSPW-.js} +4 -4
- package/dist/{threeModel-C1u27I4q.cjs → threeModel-Uk6zD89R.cjs} +1 -1
- package/dist/{threePreview-CMZQ5EQo.cjs → threePreview-BHGQBuXr.cjs} +1 -1
- package/dist/{threePreview-CMxBmSvX.js → threePreview-CZqaZ45g.js} +4 -4
- package/dist/{threeSceneView-DpVfr3S4.cjs → threeSceneView-DN_qbrRS.cjs} +1 -1
- package/dist/{threeSceneView-CtcTcPFi.js → threeSceneView-wkRekazs.js} +14 -14
- package/dist/{threeSceneViewForCPMPIP-jpjoC_az.cjs → threeSceneViewForCPMPIP-BztGaGm9.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-iVE-eafh.js → threeSceneViewForCPMPIP-mwU1RKVh.js} +8 -8
- package/dist/{threeTrackPathView-D-rbUP_B.cjs → threeTrackPathView-BQzCi_23.cjs} +1 -1
- package/dist/{threeTrackPathView-CPQFp1Wu.js → threeTrackPathView-D6IuvNTn.js} +4 -4
- package/dist/{threeViewerHost-BfxYhgC5.cjs → threeViewerHost-BEzl0gjk.cjs} +1 -1
- package/dist/{threeViewerHost-CDrsHERk.js → threeViewerHost-DsDxhyJb.js} +3 -3
- package/dist/{urdfTree-CuhsHBP7.js → urdfTree-6bW1rIxd.js} +1 -1
- package/dist/{urdfTree-lXOpBrP6.cjs → urdfTree-BoRXNADP.cjs} +1 -1
- package/dist/{workpieceTreePanel-Bmd1SBtW.js → workpieceTreePanel-BhCB5YyR.js} +4 -4
- package/dist/{workpieceTreePanel-sXSQ30Jz.cjs → workpieceTreePanel-BunFs5sL.cjs} +1 -1
- package/package.json +1 -1
- package/dist/clone-xTg1sTk2.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-BC2w2vGr.cjs"),N=require("./index-D1-J46nr.cjs");require("./dayjs.min-D5HHSGr1.cjs");const L=require("./menu-Q9XyUX92.cjs"),oe=require("./index-CUw6nGTo.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-WNMmWFZ4.cjs");require("./index-CDxB0zrx.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-D0lzijAI.cjs");require("./index-DrVyMHmK.cjs");require("./index-iO7mADz6.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-xTg1sTk2.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"},qt=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"}]}),q=e.ref(),I=e.ref(""),n=e.ref(p());e.watch(I,o=>{q.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=()=>{I.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=q.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=q.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)},qe=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},Ie=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:Ie},{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:I.value,"onUpdate:modelValue":t[5]||(t[5]=l=>I.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:q,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:qe},null,512)],64)}}}),It=z._export_sfc(qt,[["__scopeId","data-v-5da1e93d"]]);exports.default=It;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-BC2w2vGr.cjs"),N=require("./index-Dt6f0dss.cjs");require("./dayjs.min-CJNj6LcW.cjs");const L=require("./menu-N76i05Ex.cjs"),oe=require("./index-CUw6nGTo.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D13dnI_4.cjs");require("./index-5EqtwNP3.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-CFZ-f-2F.cjs");require("./index-B3t77A1L.cjs");require("./index-Clae5SKB.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-DR4pDnuw.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"},qt=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"}]}),q=e.ref(),I=e.ref(""),n=e.ref(p());e.watch(I,o=>{q.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=()=>{I.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=q.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=q.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)},qe=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},Ie=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:Ie},{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:I.value,"onUpdate:modelValue":t[5]||(t[5]=l=>I.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:q,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:qe},null,512)],64)}}}),It=z._export_sfc(qt,[["__scopeId","data-v-5da1e93d"]]);exports.default=It;
|
|
@@ -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 { Z as C } from "./index-
|
|
2
|
+
import { Z as C } from "./index-D3oAYPfe.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,8 +1,8 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
|
-
import { c as J, s as be, u as he, a as Ce, f as Ie, p as U } from "./menu-
|
|
3
|
-
import { h as ke } from "./index-
|
|
2
|
+
import { c as J, s as be, u as he, a as Ce, f as Ie, p as U } from "./menu-CN_Tf3mn.js";
|
|
3
|
+
import { h as ke } from "./index-r6mcGvmD.js";
|
|
4
4
|
import { g as $, c as ae, u as oe, e as Te, d as Me } from "./index-BsDMamej.js";
|
|
5
|
-
import { e as Se } from "./menuIndex-
|
|
5
|
+
import { e as Se } from "./menuIndex-CD5tqM1b.js";
|
|
6
6
|
import { E as S } from "./request-CoGtW0Ux.js";
|
|
7
7
|
const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
|
|
8
8
|
var e, t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),N=require("./index-BHHFv1hx.cjs"),b=require("./menu-Q9XyUX92.cjs"),X=require("./index-DczCIrHK.cjs"),pe=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),we=require("./index-CUw6nGTo.cjs"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={COMPANY:{label:"公司",value:"company"},DEPARTMENT:{label:"部门",value:"department"},ORGANIZATION:{label:"组织",value:"organization"}},be=Object.values(S),De=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],u={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},Ee={EDITABLE:{value:"editable"}},xe=()=>{const{platId:m,userId:P,isSuperAdmin:s}=b.useUserInfo(),D=t=>{const a=t.toUpperCase(),o=u==null?void 0:u[a];return(o==null?void 0:o.label)||t},q=t=>{const a=t.toUpperCase(),o=u==null?void 0:u[a];return(o==null?void 0:o.tag)||"info"},V=e.ref({}),A=e.computed(()=>{var a;return s.value?!0:((a=V.value)==null?void 0:a.status)===Ee.EDITABLE.value}),v=async()=>{var d,g;const a={pageName:"系统管理/部门管理",platId:m.value,userId:P.value},o=await b.getPageDataApi(a);return(g=(d=o==null?void 0:o.data)==null?void 0:d.result)==null?void 0:g[0]},z=async()=>{if(!s.value)return V.value=await v(),V},E=()=>({name:""}),C=e.ref(E()),w=()=>{C.value=E()},U=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),c=e.ref(U()),O=t=>{c.value.pageNum=t},x=t=>{c.value.pageSize=t},B=t=>({platId:m.value,department_id:t,pageNum:c.value.pageNum,pageSize:c.value.pageSize,filter:{...C.value}}),G=async t=>{var o;const a=await N.getByPage(t);return(o=a==null?void 0:a.data)==null?void 0:o.result},M=async t=>{const a=B(t),o=await G(a),{total:d}=o||{};return c.value.total=d,o||{}},h=e.ref([]),R=async t=>{var o;const a=await N.getDepartmentTree(t);return((o=a==null?void 0:a.data)==null?void 0:o.result)||[]},F=async()=>{const t={platId:m.value},a=await R(t);h.value=a},y=t=>{const a=X.formatterTimeStr(Date.now()),o=b.cloneDeep(t);return o.update_time=a,o},$=t=>{const a=X.formatterTimeStr(Date.now());let o={name:"",type:S.COMPANY.value,parent_id:"",status:u.ENABLE.value,create_time:a,update_time:a};if(t){const d=y(t);o={...o,...d}}return o},I=t=>{const a=[t];return{platId:m.value,changeDepartmentData:a}},T=async t=>{delete t.department_id;const a=I(t);await N.createDepartment(a)},Q=async t=>{await T(t)},p=async t=>{const a=I(t);await N.updateDepartment(a)},j=async t=>{await p(t)},Y=async t=>{const{department_id:a}=t,o={platId:m.value,department_id:[a]};await N.deleteDepartment(o)},H=async t=>{await X.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-department-message-modal",confirmButtonClass:"delete-department-confirm"}),await Y(t)},f=async t=>{var o;const a=await N.getParentByType(t);return((o=a==null?void 0:a.data)==null?void 0:o.result)||{}};return{queryInfo:C,resetQuery:w,pageInfo:c,setPageNum:O,setPageSize:x,convertPageInfoToRequestData:B,initGetByPage:M,departmentTree:h,initDepartmentTree:F,hasDepartmentEditAuth:A,initDepartmentConfig:z,initDepartmentItem:$,initCreate:Q,initUpdate:j,initDelete:H,initGetParentByType:async t=>{const a={platId:m.value,type:t},o=await f(a);return(o==null?void 0:o.departmentData)||[]},getTypeLabel:t=>{var g;const a=t==null?void 0:t.type,o=a==null?void 0:a.toUpperCase();return((g=S[o])==null?void 0:g.label)||""},isCompany:t=>t===S.COMPANY.value,getStatusLabelByValue:D,getStatusTagByValue:q}},Be={class:"department-management"},Ie={class:"body"},Te={class:"body-left"},ke={class:"body-right"},Le={class:"common-wrapper"},Se={class:"query-wrapper"},Pe={class:"operate-wrapper"},qe={class:"table-wrapper"},Ae={class:"operate-list"},ze=["onClick"],Ue={class:"pagination-wrapper"},Oe={class:"department-management-wrapper"},Ge={class:"department-management-body"},Me={class:"department-form-wrapper"},Re={class:"edit-footer"},Fe={class:"footer-right"},$e=e.defineComponent({__name:"index",setup(m){const P={value:"department_id",label:"name",children:"children"},s=b.useMenuState(b.pinia),{queryInfo:D,resetQuery:q,departmentTree:V,initDepartmentTree:A,pageInfo:v,setPageNum:z,setPageSize:E,initGetByPage:C,hasDepartmentEditAuth:w,initDepartmentConfig:U,initDepartmentItem:c,initCreate:O,initUpdate:x,initDelete:B,initGetParentByType:G,getTypeLabel:M,isCompany:h,getStatusLabelByValue:R,getStatusTagByValue:F}=xe(),y=e.ref(),$=e.computed(()=>{var l;return(l=y.value)==null?void 0:l.department_id}),I=l=>{y.value=l,s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},T=e.ref([]),Q=async()=>{var i;const l=await C((i=y.value)==null?void 0:i.department_id),{departmentData:n=[]}=l;return n},p=async()=>{T.value=await Q()},j=l=>{z(l),s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},Y=l=>{E(l),s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},H=async()=>{y.value=void 0,q(),s.setImportLoading(!0),await p().finally(()=>{s.setImportLoading(!1)})},f=async()=>{await U(),await A(),await p()};e.onMounted(async()=>{s.setImportLoading(!0),await f().finally(()=>{s.setImportLoading(!1)})});const ee=async(l,n)=>{if(!w.value)return;const{value:i}=l,_=n.row;if(i==="edit"){s.setImportLoading(!0),await o(_.type).finally(()=>{s.setImportLoading(!1)}),ne(_);return}if(i==="delete"){s.setImportLoading(!0),await ge(_).finally(()=>{s.setImportLoading(!1)});return}},Z=e.ref(),te=e.reactive({name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],type:[{required:!0,message:"请选择部门分类",trigger:"change"}],parent_id:[{validator:(l,n,i)=>{t.value.type&&!h(t.value.type)&&!n?i(new Error("请选择上级部门")):i()},trigger:"change"}]}),t=e.ref(c()),a=e.ref([]),o=async l=>{t.value.parent_id="";let n=await G(l);t.value.department_id&&(n=n.filter(i=>i.department_id!==t.value.department_id)),a.value=n},d=e.ref(!1),g=()=>{d.value=!0},ae=()=>{d.value=!1},ne=async l=>{w.value&&(t.value=c(l),g())},oe=()=>{t.value=c(),ae()},me=async()=>{await O(t.value),await f()},fe=async()=>{await x(t.value),await f()},ge=async l=>{await B(l),await f()},ve=async()=>{var n,i;await((i=(n=Z.value)==null?void 0:n.validate)==null?void 0:i.call(n));const{department_id:l}=t.value;s.setImportLoading(!0),l?await fe().finally(()=>{s.setImportLoading(!1)}):await me().finally(()=>{s.setImportLoading(!1)}),oe()},ye=async l=>{if(!w.value)return;const{status:n}=l;u.ENABLE.value===n?l.status=u.DISABLED.value:l.status=u.ENABLE.value,await x(l),await f()};return(l,n)=>{var ie,de,ce,ue;const i=e.resolveComponent("el-tree"),_=e.resolveComponent("el-input"),J=e.resolveComponent("el-button"),k=e.resolveComponent("el-table-column"),_e=e.resolveComponent("el-tag"),Ne=e.resolveComponent("el-table"),Ve=e.resolveComponent("el-pagination"),K=e.resolveComponent("el-form-item"),W=e.resolveComponent("el-col"),le=e.resolveComponent("el-option"),re=e.resolveComponent("el-select"),se=e.resolveComponent("el-row"),Ce=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Be,[n[11]||(n[11]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ie,[e.createElementVNode("div",Te,[e.createVNode(i,{ref:"treeRef",class:"department-tree",data:e.unref(V),props:P,"node-key":"department_id","default-expand-all":"","expand-on-click-node":!1,"highlight-current":"","current-node-key":$.value,onNodeClick:I},null,8,["data","current-node-key"])]),e.createElementVNode("div",ke,[e.createElementVNode("div",Le,[e.createElementVNode("div",Se,[e.createVNode(_,{modelValue:e.unref(D).name,"onUpdate:modelValue":n[0]||(n[0]=r=>e.unref(D).name=r),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(J,{type:"primary",onClick:p},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("查询")])),_:1,__:[5]}),e.createVNode(J,{type:"primary",plain:"",onClick:H},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("重置")])),_:1,__:[6]})]),e.createElementVNode("div",Pe,[e.createVNode(J,{type:"primary",onClick:n[1]||(n[1]=r=>ne())},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("新增部门")])),_:1,__:[7]})])]),e.createElementVNode("div",qe,[e.createVNode(Ne,{class:"department-table",data:T.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"名称",align:"center"}),e.createVNode(k,{prop:"type",label:"分类",align:"center"},{default:e.withCtx(r=>[e.createTextVNode(e.toDisplayString(e.unref(M)(r.row)),1)]),_:1}),e.createVNode(k,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(r=>[e.createVNode(_e,{class:"status-tag",type:e.unref(F)(r.row.status),title:"点击切换",onClick:L=>ye(r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)(r.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(k,{label:"操作",align:"center"},{default:e.withCtx(r=>[e.createElementVNode("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(De),L=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:L.value,onClick:e.withModifiers(je=>ee(L,r),["stop"])},e.toDisplayString(L.label),9,ze))),128))])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Ue,[n[8]||(n[8]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ve,{onSizeChange:Y,onCurrentChange:j,"current-page":(ie=e.unref(v))==null?void 0:ie.pageNum,"page-sizes":(de=e.unref(v))==null?void 0:de.pageSizes,"page-size":((ce=e.unref(v))==null?void 0:ce.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((ue=e.unref(v))==null?void 0:ue.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])])]),n[12]||(n[12]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(we.ssDialog,{class:"department-edit-dialog",visible:d.value,title:"部门信息",onBeforeDestroy:ae,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"department-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Oe,[n[9]||(n[9]=e.createElementVNode("div",{class:"department-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createElementVNode("div",Me,[e.createVNode(Ce,{class:"department-edit-form",ref_key:"departmentFormRef",ref:Z,model:t.value,rules:te},{default:e.withCtx(()=>[e.createVNode(se,{gutter:20},{default:e.withCtx(()=>[e.createVNode(W,{span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"name",label:"部门名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.name,"onUpdate:modelValue":n[2]||(n[2]=r=>t.value.name=r),"aria-label":"部门名称",placeholder:"部门名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(W,{span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"type",label:"部门分类","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:t.value.type,"onUpdate:modelValue":n[3]||(n[3]=r=>t.value.type=r),"aria-label":"部门分类",placeholder:"",clearable:"",filterable:"",onChange:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(be),r=>(e.openBlock(),e.createBlock(le,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(se,{gutter:20},{default:e.withCtx(()=>[t.value.type&&!e.unref(h)(t.value.type)?(e.openBlock(),e.createBlock(W,{key:0,span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"parent_id",label:"上级部门","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:t.value.parent_id,"onUpdate:modelValue":n[4]||(n[4]=r=>t.value.parent_id=r),"aria-label":"上级部门",placeholder:"",clearable:"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,r=>(e.openBlock(),e.createBlock(le,{key:r.department_id,label:r.name,value:r.department_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Re,[n[10]||(n[10]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Fe,[e.createVNode(pe._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:oe,modelValue:"取消",buttonType:"info"}),e.createVNode(pe._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:ve,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Qe=he._export_sfc($e,[["__scopeId","data-v-80962709"]]);exports.default=Qe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),N=require("./index-CuPeKtNC.cjs"),b=require("./menu-N76i05Ex.cjs"),X=require("./index-DSJJfH49.cjs"),pe=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),we=require("./index-CUw6nGTo.cjs"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={COMPANY:{label:"公司",value:"company"},DEPARTMENT:{label:"部门",value:"department"},ORGANIZATION:{label:"组织",value:"organization"}},be=Object.values(S),De=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],u={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},Ee={EDITABLE:{value:"editable"}},xe=()=>{const{platId:m,userId:P,isSuperAdmin:s}=b.useUserInfo(),D=t=>{const a=t.toUpperCase(),o=u==null?void 0:u[a];return(o==null?void 0:o.label)||t},q=t=>{const a=t.toUpperCase(),o=u==null?void 0:u[a];return(o==null?void 0:o.tag)||"info"},V=e.ref({}),A=e.computed(()=>{var a;return s.value?!0:((a=V.value)==null?void 0:a.status)===Ee.EDITABLE.value}),v=async()=>{var d,g;const a={pageName:"系统管理/部门管理",platId:m.value,userId:P.value},o=await b.getPageDataApi(a);return(g=(d=o==null?void 0:o.data)==null?void 0:d.result)==null?void 0:g[0]},z=async()=>{if(!s.value)return V.value=await v(),V},E=()=>({name:""}),C=e.ref(E()),w=()=>{C.value=E()},U=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),c=e.ref(U()),O=t=>{c.value.pageNum=t},x=t=>{c.value.pageSize=t},B=t=>({platId:m.value,department_id:t,pageNum:c.value.pageNum,pageSize:c.value.pageSize,filter:{...C.value}}),G=async t=>{var o;const a=await N.getByPage(t);return(o=a==null?void 0:a.data)==null?void 0:o.result},M=async t=>{const a=B(t),o=await G(a),{total:d}=o||{};return c.value.total=d,o||{}},h=e.ref([]),R=async t=>{var o;const a=await N.getDepartmentTree(t);return((o=a==null?void 0:a.data)==null?void 0:o.result)||[]},F=async()=>{const t={platId:m.value},a=await R(t);h.value=a},y=t=>{const a=X.formatterTimeStr(Date.now()),o=b.cloneDeep(t);return o.update_time=a,o},$=t=>{const a=X.formatterTimeStr(Date.now());let o={name:"",type:S.COMPANY.value,parent_id:"",status:u.ENABLE.value,create_time:a,update_time:a};if(t){const d=y(t);o={...o,...d}}return o},I=t=>{const a=[t];return{platId:m.value,changeDepartmentData:a}},T=async t=>{delete t.department_id;const a=I(t);await N.createDepartment(a)},Q=async t=>{await T(t)},p=async t=>{const a=I(t);await N.updateDepartment(a)},j=async t=>{await p(t)},Y=async t=>{const{department_id:a}=t,o={platId:m.value,department_id:[a]};await N.deleteDepartment(o)},H=async t=>{await X.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-department-message-modal",confirmButtonClass:"delete-department-confirm"}),await Y(t)},f=async t=>{var o;const a=await N.getParentByType(t);return((o=a==null?void 0:a.data)==null?void 0:o.result)||{}};return{queryInfo:C,resetQuery:w,pageInfo:c,setPageNum:O,setPageSize:x,convertPageInfoToRequestData:B,initGetByPage:M,departmentTree:h,initDepartmentTree:F,hasDepartmentEditAuth:A,initDepartmentConfig:z,initDepartmentItem:$,initCreate:Q,initUpdate:j,initDelete:H,initGetParentByType:async t=>{const a={platId:m.value,type:t},o=await f(a);return(o==null?void 0:o.departmentData)||[]},getTypeLabel:t=>{var g;const a=t==null?void 0:t.type,o=a==null?void 0:a.toUpperCase();return((g=S[o])==null?void 0:g.label)||""},isCompany:t=>t===S.COMPANY.value,getStatusLabelByValue:D,getStatusTagByValue:q}},Be={class:"department-management"},Ie={class:"body"},Te={class:"body-left"},ke={class:"body-right"},Le={class:"common-wrapper"},Se={class:"query-wrapper"},Pe={class:"operate-wrapper"},qe={class:"table-wrapper"},Ae={class:"operate-list"},ze=["onClick"],Ue={class:"pagination-wrapper"},Oe={class:"department-management-wrapper"},Ge={class:"department-management-body"},Me={class:"department-form-wrapper"},Re={class:"edit-footer"},Fe={class:"footer-right"},$e=e.defineComponent({__name:"index",setup(m){const P={value:"department_id",label:"name",children:"children"},s=b.useMenuState(b.pinia),{queryInfo:D,resetQuery:q,departmentTree:V,initDepartmentTree:A,pageInfo:v,setPageNum:z,setPageSize:E,initGetByPage:C,hasDepartmentEditAuth:w,initDepartmentConfig:U,initDepartmentItem:c,initCreate:O,initUpdate:x,initDelete:B,initGetParentByType:G,getTypeLabel:M,isCompany:h,getStatusLabelByValue:R,getStatusTagByValue:F}=xe(),y=e.ref(),$=e.computed(()=>{var l;return(l=y.value)==null?void 0:l.department_id}),I=l=>{y.value=l,s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},T=e.ref([]),Q=async()=>{var i;const l=await C((i=y.value)==null?void 0:i.department_id),{departmentData:n=[]}=l;return n},p=async()=>{T.value=await Q()},j=l=>{z(l),s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},Y=l=>{E(l),s.setImportLoading(!0),p().finally(()=>{s.setImportLoading(!1)})},H=async()=>{y.value=void 0,q(),s.setImportLoading(!0),await p().finally(()=>{s.setImportLoading(!1)})},f=async()=>{await U(),await A(),await p()};e.onMounted(async()=>{s.setImportLoading(!0),await f().finally(()=>{s.setImportLoading(!1)})});const ee=async(l,n)=>{if(!w.value)return;const{value:i}=l,_=n.row;if(i==="edit"){s.setImportLoading(!0),await o(_.type).finally(()=>{s.setImportLoading(!1)}),ne(_);return}if(i==="delete"){s.setImportLoading(!0),await ge(_).finally(()=>{s.setImportLoading(!1)});return}},Z=e.ref(),te=e.reactive({name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],type:[{required:!0,message:"请选择部门分类",trigger:"change"}],parent_id:[{validator:(l,n,i)=>{t.value.type&&!h(t.value.type)&&!n?i(new Error("请选择上级部门")):i()},trigger:"change"}]}),t=e.ref(c()),a=e.ref([]),o=async l=>{t.value.parent_id="";let n=await G(l);t.value.department_id&&(n=n.filter(i=>i.department_id!==t.value.department_id)),a.value=n},d=e.ref(!1),g=()=>{d.value=!0},ae=()=>{d.value=!1},ne=async l=>{w.value&&(t.value=c(l),g())},oe=()=>{t.value=c(),ae()},me=async()=>{await O(t.value),await f()},fe=async()=>{await x(t.value),await f()},ge=async l=>{await B(l),await f()},ve=async()=>{var n,i;await((i=(n=Z.value)==null?void 0:n.validate)==null?void 0:i.call(n));const{department_id:l}=t.value;s.setImportLoading(!0),l?await fe().finally(()=>{s.setImportLoading(!1)}):await me().finally(()=>{s.setImportLoading(!1)}),oe()},ye=async l=>{if(!w.value)return;const{status:n}=l;u.ENABLE.value===n?l.status=u.DISABLED.value:l.status=u.ENABLE.value,await x(l),await f()};return(l,n)=>{var ie,de,ce,ue;const i=e.resolveComponent("el-tree"),_=e.resolveComponent("el-input"),J=e.resolveComponent("el-button"),k=e.resolveComponent("el-table-column"),_e=e.resolveComponent("el-tag"),Ne=e.resolveComponent("el-table"),Ve=e.resolveComponent("el-pagination"),K=e.resolveComponent("el-form-item"),W=e.resolveComponent("el-col"),le=e.resolveComponent("el-option"),re=e.resolveComponent("el-select"),se=e.resolveComponent("el-row"),Ce=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Be,[n[11]||(n[11]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ie,[e.createElementVNode("div",Te,[e.createVNode(i,{ref:"treeRef",class:"department-tree",data:e.unref(V),props:P,"node-key":"department_id","default-expand-all":"","expand-on-click-node":!1,"highlight-current":"","current-node-key":$.value,onNodeClick:I},null,8,["data","current-node-key"])]),e.createElementVNode("div",ke,[e.createElementVNode("div",Le,[e.createElementVNode("div",Se,[e.createVNode(_,{modelValue:e.unref(D).name,"onUpdate:modelValue":n[0]||(n[0]=r=>e.unref(D).name=r),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(J,{type:"primary",onClick:p},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("查询")])),_:1,__:[5]}),e.createVNode(J,{type:"primary",plain:"",onClick:H},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("重置")])),_:1,__:[6]})]),e.createElementVNode("div",Pe,[e.createVNode(J,{type:"primary",onClick:n[1]||(n[1]=r=>ne())},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("新增部门")])),_:1,__:[7]})])]),e.createElementVNode("div",qe,[e.createVNode(Ne,{class:"department-table",data:T.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(k,{prop:"name",label:"名称",align:"center"}),e.createVNode(k,{prop:"type",label:"分类",align:"center"},{default:e.withCtx(r=>[e.createTextVNode(e.toDisplayString(e.unref(M)(r.row)),1)]),_:1}),e.createVNode(k,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(r=>[e.createVNode(_e,{class:"status-tag",type:e.unref(F)(r.row.status),title:"点击切换",onClick:L=>ye(r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)(r.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(k,{label:"操作",align:"center"},{default:e.withCtx(r=>[e.createElementVNode("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(De),L=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:L.value,onClick:e.withModifiers(je=>ee(L,r),["stop"])},e.toDisplayString(L.label),9,ze))),128))])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Ue,[n[8]||(n[8]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ve,{onSizeChange:Y,onCurrentChange:j,"current-page":(ie=e.unref(v))==null?void 0:ie.pageNum,"page-sizes":(de=e.unref(v))==null?void 0:de.pageSizes,"page-size":((ce=e.unref(v))==null?void 0:ce.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((ue=e.unref(v))==null?void 0:ue.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])])]),n[12]||(n[12]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(we.ssDialog,{class:"department-edit-dialog",visible:d.value,title:"部门信息",onBeforeDestroy:ae,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"department-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Oe,[n[9]||(n[9]=e.createElementVNode("div",{class:"department-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createElementVNode("div",Me,[e.createVNode(Ce,{class:"department-edit-form",ref_key:"departmentFormRef",ref:Z,model:t.value,rules:te},{default:e.withCtx(()=>[e.createVNode(se,{gutter:20},{default:e.withCtx(()=>[e.createVNode(W,{span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"name",label:"部门名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.name,"onUpdate:modelValue":n[2]||(n[2]=r=>t.value.name=r),"aria-label":"部门名称",placeholder:"部门名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(W,{span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"type",label:"部门分类","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:t.value.type,"onUpdate:modelValue":n[3]||(n[3]=r=>t.value.type=r),"aria-label":"部门分类",placeholder:"",clearable:"",filterable:"",onChange:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(be),r=>(e.openBlock(),e.createBlock(le,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(se,{gutter:20},{default:e.withCtx(()=>[t.value.type&&!e.unref(h)(t.value.type)?(e.openBlock(),e.createBlock(W,{key:0,span:12},{default:e.withCtx(()=>[e.createVNode(K,{prop:"parent_id",label:"上级部门","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:t.value.parent_id,"onUpdate:modelValue":n[4]||(n[4]=r=>t.value.parent_id=r),"aria-label":"上级部门",placeholder:"",clearable:"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,r=>(e.openBlock(),e.createBlock(le,{key:r.department_id,label:r.name,value:r.department_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Re,[n[10]||(n[10]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Fe,[e.createVNode(pe._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:oe,modelValue:"取消",buttonType:"info"}),e.createVNode(pe._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:ve,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Qe=he._export_sfc($e,[["__scopeId","data-v-80962709"]]);exports.default=Qe;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineAsyncComponent as At, computed as We, onMounted as yt, resolveComponent as H, createBlock as Ve, openBlock as R, withCtx as N, resolveDynamicComponent as vt, defineComponent as Pt, defineProps as Ot, ref as z, watch as Rt, reactive as $t, createElementBlock as q, Fragment as Ne, createVNode as x, createCommentVNode as xe, normalizeStyle as zt, toDisplayString as rt, createElementVNode as Je, renderList as pt, createTextVNode as ct } from "vue";
|
|
2
|
-
import { u as qt, a as xt, p as nt, b as Jt, s as Qe, c as ue } from "./menu-
|
|
2
|
+
import { u as qt, a as xt, p as nt, b as Jt, s as Qe, c as ue } from "./menu-CN_Tf3mn.js";
|
|
3
3
|
import { S as Wt } from "./index-BHtNKL1L.js";
|
|
4
|
-
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
4
|
+
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js";
|
|
5
5
|
import { I as Gt } from "./request-CoGtW0Ux.js";
|
|
6
6
|
import { s as Nt } from "./index-CnjGqJZS.js";
|
|
7
|
-
import { c as Qt } from "./index
|
|
7
|
+
import { c as Qt } from "./index-D2crrlxW.js";
|
|
8
8
|
import { useRouter as Xt } from "vue-router";
|
|
9
9
|
import { a as Yt, e as Zt, f as Vt, g as Ht, h as ut } from "./index-C2UiLe43.js";
|
|
10
10
|
import { g as Pe, u as Xe, a as ft, c as mt, d as ht } from "./index-BsDMamej.js";
|
|
11
|
-
import { g as el } from "./index-
|
|
12
|
-
import { f as tl } from "./menuIndex-
|
|
13
|
-
import { c as Ye, d as dt, n as ll } from "./index-
|
|
14
|
-
import { v as Ze } from "./index-
|
|
15
|
-
import { u as sl } from "./index-
|
|
11
|
+
import { g as el } from "./index-D3oAYPfe.js";
|
|
12
|
+
import { f as tl } from "./menuIndex-CD5tqM1b.js";
|
|
13
|
+
import { c as Ye, d as dt, n as ll } from "./index-CyD2ZGI0.js";
|
|
14
|
+
import { v as Ze } from "./index-2KYbe_7L.js";
|
|
15
|
+
import { u as sl } from "./index-Cf2gp9fi.js";
|
|
16
16
|
import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const He = At(() => import("./index
|
|
17
|
+
const He = At(() => import("./index-D2crrlxW.js").then((r) => r.o));
|
|
18
18
|
He.install = (r) => {
|
|
19
19
|
r.component("ssMenu", He);
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { watch as be, ref as w, computed as we } from "vue";
|
|
2
|
-
import { i as E, f as B, w as Le } from "./index-
|
|
3
|
-
import { s as Te, b as V, p as C, u as Re, n as De, c as A, g as Ee, V as Be, W as Ae, X as Pe, Y as Ue, Z as xe, _ as Se } from "./menu-
|
|
4
|
-
import { f as N, E as ke } from "./index-
|
|
2
|
+
import { i as E, f as B, w as Le } from "./index-CyD2ZGI0.js";
|
|
3
|
+
import { s as Te, b as V, p as C, u as Re, n as De, c as A, g as Ee, V as Be, W as Ae, X as Pe, Y as Ue, Z as xe, _ as Se } from "./menu-CN_Tf3mn.js";
|
|
4
|
+
import { f as N, E as ke } from "./index-2KYbe_7L.js";
|
|
5
5
|
import { s as z } from "./request-CoGtW0Ux.js";
|
|
6
6
|
const qe = V(C), { systemUrl: f } = Te(qe);
|
|
7
7
|
let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { computed as Cl, defineComponent as Dl, defineProps as Qs, ref as L, watch as yl, onMounted as Xl, resolveComponent as fe, createBlock as Ye, openBlock as U, withCtx as d, createElementVNode as q, toDisplayString as fl, createElementBlock as me, Fragment as ml, renderList as kl, createCommentVNode as Ge, normalizeStyle as Ul, createVNode as c, unref as y, resolveDynamicComponent as va, provide as os, shallowRef as Xt, resolveDirective as rs, withDirectives as zl, vShow as Ca, createTextVNode as vl, renderSlot as Gl, normalizeClass as Hl, createSlots as ws, mergeProps as gt, withModifiers as Ol, defineAsyncComponent as st, reactive as Ql, nextTick as oa, onUnmounted as Ls } from "vue";
|
|
2
|
-
import { m as Os, a as Ks, b as Ns, c as zt } from "./array-
|
|
3
|
-
import { _ as us, s as Vs, a as Zt } from "./index-
|
|
4
|
-
import { u as Nl, p as bl, s as hl, c as gl, a as ca, b as la, f as La, g as Oa, h as ms, i as Ds, j as Ys, k as $t, m as vt, e as en, n as yt, o as bt, q as ln } from "./menu-
|
|
2
|
+
import { m as Os, a as Ks, b as Ns, c as zt } from "./array-Ydde3r7w.js";
|
|
3
|
+
import { _ as us, s as Vs, a as Zt } from "./index-CT1fhrt6.js";
|
|
4
|
+
import { u as Nl, p as bl, s as hl, c as gl, a as ca, b as la, f as La, g as Oa, h as ms, i as Ds, j as Ys, k as $t, m as vt, e as en, n as yt, o as bt, q as ln } from "./menu-CN_Tf3mn.js";
|
|
5
5
|
import { useRouter as Ka } from "vue-router";
|
|
6
6
|
import { a as ds, d as Ws, e as ps, f as fs, g as hs, h as gs, t as an, c as sn, b as tn } from "./index-C2UiLe43.js";
|
|
7
7
|
import { u as is, b as At, g as ea, a as Cs, c as nn, d as tt } from "./index-BsDMamej.js";
|
|
8
|
-
import { g as Ua, s as on, a as nt, _ as Bs, b as cn, c as mt, X as rn, Q as un } from "./index
|
|
8
|
+
import { g as Ua, s as on, a as nt, _ as Bs, b as cn, c as mt, X as rn, Q as un } from "./index-D2crrlxW.js";
|
|
9
9
|
import { E as Rl, a as dn, b as ya, I as pn, s as ra, d as Ct, c as wt, e as kt, f as fn, g as hn, h as gn, p as vn, i as yn } from "./request-CoGtW0Ux.js";
|
|
10
|
-
import { g as Mt, b as bn, u as Hs, c as ia, d as Qa, o as It, l as An, n as mn, t as Cn, e as wn } from "./index-
|
|
11
|
-
import { d as kn, g as cs, a as Mn, b as El, c as In, s as As } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
10
|
+
import { g as Mt, b as bn, u as Hs, c as ia, d as Qa, o as It, l as An, n as mn, t as Cn, e as wn } from "./index-CyD2ZGI0.js";
|
|
11
|
+
import { d as kn, g as cs, a as Mn, b as El, c as In, s as As } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js";
|
|
12
|
+
import "./index-r6mcGvmD.js";
|
|
13
|
+
import "./index-CQGipCwR.js";
|
|
14
14
|
import "./index-DxhNwr8X.js";
|
|
15
|
-
import { c as qs, f as Jl, b as St, a as Sn, g as _n, d as ot } from "./menuIndex-
|
|
15
|
+
import { c as qs, f as Jl, b as St, a as Sn, g as _n, d as ot } from "./menuIndex-CD5tqM1b.js";
|
|
16
16
|
import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
import { C as Tn } from "./index-
|
|
17
|
+
import { C as Tn } from "./index-DqIM3shB.js";
|
|
18
18
|
import { S as Pl } from "./index-BHtNKL1L.js";
|
|
19
|
-
import En from "./threeModel-
|
|
20
|
-
import { a as _t, b as ma, u as Tt, s as ha, c as it, d as ct, r as Bl, o as ba, e as Aa, f as Et, h as Ps, i as Dt, j as Fs, k as Dn, t as Bn, l as Sa, m as ks, n as ys, p as _a, q as ss, v as Ta, w as Pn, x as Ea, y as Da, z as Rn, A as Ba, B as Pa, C as ts, D as rt, E as ut, F as dt, G as bs, H as Ms, I as aa, J as xn, K as jn, L as Is, M as Un, N as Qn, O as Ln, P as On, g as Bt, Q as pt, R as Kn, S as Nn, T as Pt, U as Vn, V as Yn, W as Wn, X as Hn } from "./index-
|
|
19
|
+
import En from "./threeModel-BD7DSPW-.js";
|
|
20
|
+
import { a as _t, b as ma, u as Tt, s as ha, c as it, d as ct, r as Bl, o as ba, e as Aa, f as Et, h as Ps, i as Dt, j as Fs, k as Dn, t as Bn, l as Sa, m as ks, n as ys, p as _a, q as ss, v as Ta, w as Pn, x as Ea, y as Da, z as Rn, A as Ba, B as Pa, C as ts, D as rt, E as ut, F as dt, G as bs, H as Ms, I as aa, J as xn, K as jn, L as Is, M as Un, N as Qn, O as Ln, P as On, g as Bt, Q as pt, R as Kn, S as Nn, T as Pt, U as Vn, V as Yn, W as Wn, X as Hn } from "./index-D3oAYPfe.js";
|
|
21
21
|
import { _ as ga } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
22
22
|
import { s as ua } from "./index-CnjGqJZS.js";
|
|
23
|
-
import { T as Rs, u as qn, a as Fn } from "./threeViewerHost-
|
|
24
|
-
import { s as xs } from "./index-
|
|
23
|
+
import { T as Rs, u as qn, a as Fn } from "./threeViewerHost-DsDxhyJb.js";
|
|
24
|
+
import { s as xs } from "./index-XSrc1sWV.js";
|
|
25
25
|
import { u as Jn } from "./index-BIV-s4QY.js";
|
|
26
|
-
import { u as Gn } from "./index-
|
|
27
|
-
import { u as Js, E as Ma, v as Ra, m as Xn, o as ft, d as zn, g as Zn, a as $n } from "./index-
|
|
28
|
-
import { u as eo } from "./index-
|
|
29
|
-
import { u as Rt } from "./index-
|
|
26
|
+
import { u as Gn } from "./index-DNV_O6Dc.js";
|
|
27
|
+
import { u as Js, E as Ma, v as Ra, m as Xn, o as ft, d as zn, g as Zn, a as $n } from "./index-2KYbe_7L.js";
|
|
28
|
+
import { u as eo } from "./index-D25spbOo.js";
|
|
29
|
+
import { u as Rt } from "./index-Cf2gp9fi.js";
|
|
30
30
|
import { T as ht } from "./svgIcon-4u4PW7Is.js";
|
|
31
|
-
import { f as lo, a as ao } from "./animationData-
|
|
31
|
+
import { f as lo, a as ao } from "./animationData-DEAc-sVN.js";
|
|
32
32
|
import { E as xa } from "./index-C81Qb0f2.js";
|
|
33
33
|
Nl();
|
|
34
34
|
const so = Nl(), xt = async (s, w) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as v, computed as Ce, defineComponent as Ve, onMounted as Ae, reactive as ze, resolveComponent as u, createElementBlock as P, openBlock as _, createElementVNode as s, createVNode as o, unref as c, withCtx as i, createTextVNode as N, toDisplayString as le, Fragment as oe, renderList as se, withModifiers as xe, createBlock as re, createCommentVNode as qe } from "vue";
|
|
2
|
-
import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-
|
|
3
|
-
import { n as Qe, c as $e, g as Ye, u as je, p as Ze } from "./menu-
|
|
4
|
-
import { E as He, f as we } from "./index-
|
|
2
|
+
import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-BkS6ltPu.js";
|
|
3
|
+
import { n as Qe, c as $e, g as Ye, u as je, p as Ze } from "./menu-CN_Tf3mn.js";
|
|
4
|
+
import { E as He, f as we } from "./index-2KYbe_7L.js";
|
|
5
5
|
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
6
6
|
import { s as Je } from "./index-CnjGqJZS.js";
|
|
7
7
|
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("vue"),lt=require("./request-BC2w2vGr.cjs"),w=require("./menu-
|
|
1
|
+
"use strict";const S=require("vue"),lt=require("./request-BC2w2vGr.cjs"),w=require("./menu-N76i05Ex.cjs"),xt=w.defineStore("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(r){this.routerPageStructures=r}}}),Nt=w.useMenuState(w.pinia),{activeMenuPath:Be}=w.storeToRefs(Nt),Pt=w.useLoginState(w.pinia),{structureData:Mt,loginUserInfo:Oe}=w.storeToRefs(Pt),Ct=xt(w.pinia),{routerPageStructures:qt}=w.storeToRefs(Ct);w.useModelComp(w.pinia);S.ref([{label:"角色名称",value:"",name:"roleName"}]);S.ref([{label:"查询"},{label:"重置"}]);S.reactive({isFilter:!1,filterForm:{}});S.ref(!1);const Ht=S.ref([]),Ft=S.ref([]),_t=S.ref("");S.computed(()=>{var t,e,i,n,s;const r=(t=qt.value)==null?void 0:t.find(h=>{var o;return((o=h==null?void 0:h.comp)==null?void 0:o.toUpperCase())==="TABLE"});if(r){_t.value=r.name,Ft.value=(n=(i=(e=r==null?void 0:r.compData)==null?void 0:e.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:i.contents)==null?void 0:n.filter(o=>(o==null?void 0:o.label)!=="操作");const h=(s=r==null?void 0:r.compData)==null?void 0:s.map(o=>{var a;if((o==null?void 0:o.key)==="rowButton"){let f=[];return De.value?f=[...o==null?void 0:o.contents,{label:"授权"}]:f=o==null?void 0:o.contents,{...o,contents:f}}return(o==null?void 0:o.key)==="header"?{...o,contents:(a=o==null?void 0:o.contents)==null?void 0:a.map(f=>{var l,c;return{...f,isTableColHidden:(l=f==null?void 0:f.prop)==null?void 0:l.includes("授权"),isFormColHidden:(c=f==null?void 0:f.prop)==null?void 0:c.includes("授权")}})}:o});return zt(h),h}return[]});S.ref({});const kt=S.ref(),Rt=r=>r==null?void 0:r.map(t=>{var i;const e={...t,checkedButtons:[]};return e.children&&((i=e.children)==null?void 0:i.length)>0&&(e.children=Rt(e.children)),e}),Ut=r=>{for(const t in r)if(Array.isArray(r[t]))return t;return""},Lt=r=>Object.prototype.toString.call(r)==="[object Object]"&&r!==null,Kt=(r,t)=>{const e={},i=Array.isArray(r)?r==null?void 0:r.filter(n=>{var s;return!(Lt(n)&&((s=Object.keys(n))!=null&&s.includes("id")))}):null;return i&&(i==null||i.forEach((n,s)=>{var h;e[(h=t[s])==null?void 0:h.prop]=n})),e},jt=S.ref(""),zt=r=>{var s;const t=r==null?void 0:r.find(h=>(h==null?void 0:h.key)==="tableContents"),e=r==null?void 0:r.find(h=>(h==null?void 0:h.key)==="header");if(!t||!e)return"";const i=(s=t==null?void 0:t.contents)==null?void 0:s[0],n=Kt(i,e==null?void 0:e.contents);jt.value=Ut(n)};S.ref();const $t=S.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0});S.ref(0);const ct=S.ref([]);S.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]);const pt=S.ref([]);S.watch(()=>pt.value.length,()=>{var r;(r=kt.value)==null||r.setCheckedKeys([...pt.value])});S.watch(()=>$t.show,r=>{r||(ct.value=Rt(ct.value))});S.computed(()=>{var e;const r=(e=w.cloneDeep(Mt.value))==null?void 0:e.filter(i=>{var n,s;return((s=(n=i==null?void 0:i.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...r==null?void 0:r.map(i=>{var h,o,a,f,l,c,g,v;const n=/button/i;let s=(a=(o=(h=i==null?void 0:i.value)==null?void 0:h.pageData)==null?void 0:o.compData)==null?void 0:a.filter(T=>n.test(T==null?void 0:T.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(T=>T.contents.map(E=>E.label)))),{path:(l=(f=i==null?void 0:i.key)==null?void 0:f.pageKey)!=null&&l.startsWith("/")?(g=(c=i==null?void 0:i.key)==null?void 0:c.pageKey)==null?void 0:g.substring(1):(v=i==null?void 0:i.key)==null?void 0:v.pageKey,buttons:s}}),...Zt.value]});const Zt=S.ref([]);Ht.value;var Gt="0123456789abcdefghijklmnopqrstuvwxyz";function V(r){return Gt.charAt(r)}function Jt(r,t){return r&t}function G(r,t){return r|t}function gt(r,t){return r^t}function dt(r,t){return r&~t}function Yt(r){if(r==0)return-1;var t=0;return(r&65535)==0&&(r>>=16,t+=16),(r&255)==0&&(r>>=8,t+=8),(r&15)==0&&(r>>=4,t+=4),(r&3)==0&&(r>>=2,t+=2),(r&1)==0&&++t,t}function Wt(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",At="=";function et(r){var t,e,i="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),i+=k.charAt(e>>6)+k.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),i+=k.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),i+=k.charAt(e>>2)+k.charAt((e&3)<<4));(i.length&3)>0;)i+=At;return i}function vt(r){var t="",e,i=0,n=0;for(e=0;e<r.length&&r.charAt(e)!=At;++e){var s=k.indexOf(r.charAt(e));s<0||(i==0?(t+=V(s>>2),n=s&3,i=1):i==1?(t+=V(n<<2|s>>4),n=s&15,i=2):i==2?(t+=V(n),t+=V(s>>2),n=s&3,i=3):(t+=V(n<<2|s>>4),t+=V(s&15),i=0))}return i==1&&(t+=V(n<<2)),t}var F,Xt={decode:function(r){var t;if(F===void 0){var e="0123456789ABCDEF",i=` \f
|
|
2
2
|
\r \u2028\u2029`;for(F={},t=0;t<16;++t)F[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)F[e.charAt(t)]=t;for(t=0;t<i.length;++t)F[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=F[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=2?(n[n.length]=s,s=0,h=0):s<<=4}}if(h)throw new Error("Hex encoding incomplete: 4 bits missing");return n}},C,ht={decode:function(r){var t;if(C===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f
|
|
3
3
|
\r \u2028\u2029`;for(C=Object.create(null),t=0;t<64;++t)C[e.charAt(t)]=t;for(C["-"]=62,C._=63,t=0;t<i.length;++t)C[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=C[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=4?(n[n.length]=s>>16,n[n.length]=s>>8&255,n[n.length]=s&255,s=0,h=0):s<<=6}}switch(h){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16,n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=ht.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return ht.decode(r)}},_=1e13,z=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var i=this.buf,n=i.length,s,h;for(s=0;s<n;++s)h=i[s]*t+e,h<_?e=0:(e=0|h/_,h-=e*_),i[s]=h;e>0&&(i[s]=e)},r.prototype.sub=function(t){var e=this.buf,i=e.length,n,s;for(n=0;n<i;++n)s=e[n]-t,s<0?(s+=_,t=1):t=0,e[n]=s;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),n=e.length-2;n>=0;--n)i+=(_+e[n]).toString().substring(1);return i},r.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*_+t[i];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),Bt="…",Qt=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,te=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function U(r,t){return r.length>t&&(r=r.substring(0,t)+Bt),r}var nt=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,i){for(var n="",s=t;s<e;++s)if(n+=this.hexByte(this.get(s)),i!==!0)switch(s&15){case 7:n+=" ";break;case 15:n+=`
|
|
4
4
|
`;break;default:n+=" "}return n},r.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var n=this.get(i);if(n<32||n>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var i="",n=t;n<e;++n)i+=String.fromCharCode(this.get(n));return i},r.prototype.parseStringUTF=function(t,e){for(var i="",n=t;n<e;){var s=this.get(n++);s<128?i+=String.fromCharCode(s):s>191&&s<224?i+=String.fromCharCode((s&31)<<6|this.get(n++)&63):i+=String.fromCharCode((s&15)<<12|(this.get(n++)&63)<<6|this.get(n++)&63)}return i},r.prototype.parseStringBMP=function(t,e){for(var i="",n,s,h=t;h<e;)n=this.get(h++),s=this.get(h++),i+=String.fromCharCode(n<<8|s);return i},r.prototype.parseTime=function(t,e,i){var n=this.parseStringISO(t,e),s=(i?Qt:te).exec(n);return s?(i&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),n=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(n+=":"+s[5],s[6]&&(n+=":"+s[6],s[7]&&(n+="."+s[7]))),s[8]&&(n+=" UTC",s[8]!="Z"&&(n+=s[8],s[9]&&(n+=":"+s[9]))),n):"Unrecognized time: "+n},r.prototype.parseInteger=function(t,e){for(var i=this.get(t),n=i>127,s=n?255:0,h,o="";i==s&&++t<e;)i=this.get(t);if(h=e-t,h===0)return n?-1:0;if(h>4){for(o=i,h<<=3;((+o^s)&128)==0;)o=+o<<1,--h;o="("+h+` bit)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("vue"),n=require("./menu-
|
|
1
|
+
"use strict";const p=require("vue"),n=require("./menu-N76i05Ex.cjs"),a=require("./request-BC2w2vGr.cjs"),u=n.useLoginState(n.pinia),{systemUrl:r}=n.storeToRefs(u);let t=r.value===""||!r.value?"http://222.92.178.198:63002":r.value;p.watch(()=>r.value,()=>{t=r.value===""||!r.value?"http://222.92.178.198:63002":r.value},{deep:!0,immediate:!0});function o(e){return a.service({url:`${t}/platform/getdata_department_tree`,method:"post",data:e})}function m(e){return a.service({url:`${t}/platform/getdata_department`,method:"post",data:e})}function i(e){return a.service({url:`${t}/platform/createdata_department`,method:"post",data:e})}function s(e){return a.service({url:`${t}/platform/updatedata_department`,method:"post",data:e})}function l(e){return a.service({url:`${t}/platform/deletedata_department`,method:"post",data:e})}function d(e){return a.service({url:`${t}/platform/getdata_department`,method:"post",data:e})}function c(e){return a.service({url:`${t}/platform/getdata_department_type`,method:"post",data:e})}async function g(e){return await c({platId:e})}async function f(e){return await g(e)}exports.createDepartment=i;exports.deleteDepartment=l;exports.getByPage=m;exports.getDepartmentOptions=f;exports.getDepartmentTree=o;exports.getParentByType=d;exports.updateDepartment=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as it, a as Dc, b as Q0, d as Th } from "./index-BsDMamej.js";
|
|
2
|
-
import { c as ae, L as Zl, s as sa, p as ua, b as es, u as rs, f as Pf, a as Xs } from "./menu-
|
|
2
|
+
import { c as ae, L as Zl, s as sa, p as ua, b as es, u as rs, f as Pf, a as Xs } from "./menu-CN_Tf3mn.js";
|
|
3
3
|
import { E as hs } from "./request-CoGtW0Ux.js";
|
|
4
4
|
import { ref as Sh, computed as Ah } from "vue";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-r6mcGvmD.js";
|
|
6
6
|
const jw = [
|
|
7
7
|
{
|
|
8
8
|
key: "FormName",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as A, computed as c, onMounted as _ } from "vue";
|
|
2
2
|
import { useRouter as g } from "vue-router";
|
|
3
|
-
import { u as C, p as h, n as R, c as b, g as S, j as E } from "./menu-
|
|
3
|
+
import { u as C, p as h, n as R, c as b, g as S, j as E } from "./menu-CN_Tf3mn.js";
|
|
4
4
|
const l = {
|
|
5
5
|
ALLOW: {
|
|
6
6
|
value: "允许"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as L, resolveComponent as Q, createBlock as q, openBlock as y, defineComponent as t0, computed as i2, watch as W2, createElementBlock as A, createVNode as t2, withCtx as H, createElementVNode as n2, Fragment as O2, renderList as V2, withModifiers as we, normalizeClass as Ze, toDisplayString as I2, createSlots as _e, renderSlot as S2, nextTick as O0, onMounted as de, createTextVNode as H0, isRef as ur, isReactive as fr, toRaw as pr, createCommentVNode as c2, onBeforeUnmount as L4, normalizeStyle as B0, withDirectives as Kt, resolveDynamicComponent as p3, vShow as t3, normalizeProps as gr, guardReactiveProps as mr, unref as L0, mergeProps as x1, reactive as U3, inject as l6, watchEffect as Le, onUnmounted as Pt, resolveDirective as vr, h as Vi, toRefs as wr } from "vue";
|
|
2
|
-
import { aa as xr, ab as br, U as Ws, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Ai, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Ei, ak as Bi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
2
|
+
import { aa as xr, ab as br, U as Ws, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Ai, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Ei, ak as Bi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js";
|
|
3
3
|
import { _ as A2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { S as yt } from "./index-BHtNKL1L.js";
|
|
5
5
|
import { m as Us, n as Fs, E as ze, i as H6, K as Tr, s as zr, N as Pr, z as Vr, A as Ar, J as Er, b as Br } from "./request-CoGtW0Ux.js";
|
|
6
|
-
import { d as ge } from "./dayjs.min-
|
|
6
|
+
import { d as ge } from "./dayjs.min-DTIKCUrF.js";
|
|
7
7
|
import { _ as xe } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
8
|
-
import { h as Li, K as qs } from "./index-
|
|
9
|
-
import { R as Lr, T as Hi, a as H4, p as gt, s as St, u as I4, c as I0, h as Ys, N as g3, f as Hr } from "./menu-
|
|
8
|
+
import { h as Li, K as qs } from "./index-CyD2ZGI0.js";
|
|
9
|
+
import { R as Lr, T as Hi, a as H4, p as gt, s as St, u as I4, c as I0, h as Ys, N as g3, f as Hr } from "./menu-CN_Tf3mn.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import { u as I6 } from "./index-BIV-s4QY.js";
|
|
12
12
|
import { s as G4 } from "./index-CnjGqJZS.js";
|
|
13
|
-
import { T as Ii, a as Ir } from "./threeViewerHost-
|
|
13
|
+
import { T as Ii, a as Ir } from "./threeViewerHost-DsDxhyJb.js";
|
|
14
14
|
import { E as Gr } from "./index-C81Qb0f2.js";
|
|
15
|
-
import { A as Nr } from "./index-
|
|
15
|
+
import { A as Nr } from "./index-DqIM3shB.js";
|
|
16
16
|
var Rr = "[object Date]";
|
|
17
17
|
function $r(n) {
|
|
18
18
|
return Us(n) && Fs(n) == Rr;
|
|
@@ -3,28 +3,28 @@ var sp = (a, r, l) => r in a ? np(a, r, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var hi = (a, r, l) => sp(a, typeof r != "symbol" ? r + "" : r, l);
|
|
4
4
|
import { ref as le, watch as yl, nextTick as Br, resolveComponent as _l, createBlock as hl, openBlock as ne, withCtx as Ne, createElementVNode as de, renderSlot as Yi, computed as ql, createElementBlock as qe, createCommentVNode as zl, normalizeClass as gi, toDisplayString as nl, defineComponent as Kr, onMounted as Ui, onUnmounted as qt, withModifiers as Er, createVNode as Ie, createTextVNode as kl, Fragment as Ml, renderList as Yl, onBeforeUnmount as Rs, normalizeStyle as qr, unref as Nl, createSlots as Wt, mergeProps as Kt, resolveDynamicComponent as Oi, shallowRef as Ac, reactive as si, getCurrentInstance as Tc, inject as Tt, provide as Cs, toRef as op, onBeforeMount as Ec, watchEffect as tp, getCurrentScope as up, onScopeDispose as cp, toRefs as Au, withDirectives as dp, vShow as pp } from "vue";
|
|
5
5
|
import { m as fp, n as hp, E as Sl, k as Gt, h as Tu, c as Eu, b as bi, B as Dc, C as vp, D as yp, F as pt, A as Du } from "./request-CoGtW0Ux.js";
|
|
6
|
-
import { c as so, d as oo, g as gp } from "./dayjs.min-
|
|
7
|
-
import { h as Gi, c as Ee, f as On, p as Zl, s as sr, g as Dn, b as Yn, k as Cc, u as mn, a as In, N as wo, L as Yt, m as Lo, O as on, e as vi, j as So, i as bo, P as mp, Q as bp } from "./menu-
|
|
8
|
-
import { S as kp, b as Fr, _ as Cu, f as _p, h as zc, i as fs, j as No, a as pr, k as xp, d as Jt, e as wp, c as Sp, l as to, m as Ap } from "./index
|
|
6
|
+
import { c as so, d as oo, g as gp } from "./dayjs.min-DTIKCUrF.js";
|
|
7
|
+
import { h as Gi, c as Ee, f as On, p as Zl, s as sr, g as Dn, b as Yn, k as Cc, u as mn, a as In, N as wo, L as Yt, m as Lo, O as on, e as vi, j as So, i as bo, P as mp, Q as bp } from "./menu-CN_Tf3mn.js";
|
|
8
|
+
import { S as kp, b as Fr, _ as Cu, f as _p, h as zc, i as fs, j as No, a as pr, k as xp, d as Jt, e as wp, c as Sp, l as to, m as Ap } from "./index-D2crrlxW.js";
|
|
9
9
|
import { _ as dr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Tp, b as Hl, N as Ep, O as Dp, Q as Cp, R as zp, U as zu, Y as Op, Z as Ip, C as Mp, f as ft, x as Oc, _ as Ts, $ as Bp, a0 as Ic, a1 as Mc, v as ht, a2 as $p, w as Lp, j as jn, B as Np, V as vt, a3 as Ou, m as ss, n as As, a4 as Rp, z as Pp, a5 as jp, a6 as Fp, a7 as Hp, s as Tn, a8 as Bc, d as $c } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
10
|
+
import { u as Tp, b as Hl, N as Ep, O as Dp, Q as Cp, R as zp, U as zu, Y as Op, Z as Ip, C as Mp, f as ft, x as Oc, _ as Ts, $ as Bp, a0 as Ic, a1 as Mc, v as ht, a2 as $p, w as Lp, j as jn, B as Np, V as vt, a3 as Ou, m as ss, n as As, a4 as Rp, z as Pp, a5 as jp, a6 as Fp, a7 as Hp, s as Tn, a8 as Bc, d as $c } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js";
|
|
11
11
|
import { s as jr } from "./index-CnjGqJZS.js";
|
|
12
|
-
import { a as Lc, T as Nc } from "./threeViewerHost-
|
|
13
|
-
import { g as $r, h as Ro, s as Et, t as Ao, d as vs, x as Ps, r as Up, f as zs, y as qp, c as Xr, b as ys, u as Xt, z as wi, A as Po, B as Wp, C as Kp, D as Gp, E as Yp, l as Jp, F as Xp, w as Zp, G as Qp, H as Vp, I as ef, J as Rc, K as yi, L as cs, M as tn, N as Un, O as yt, P as af, o as lf, Q as gt, R as rf, S as nf } from "./index-
|
|
12
|
+
import { a as Lc, T as Nc } from "./threeViewerHost-DsDxhyJb.js";
|
|
13
|
+
import { g as $r, h as Ro, s as Et, t as Ao, d as vs, x as Ps, r as Up, f as zs, y as qp, c as Xr, b as ys, u as Xt, z as wi, A as Po, B as Wp, C as Kp, D as Gp, E as Yp, l as Jp, F as Xp, w as Zp, G as Qp, H as Vp, I as ef, J as Rc, K as yi, L as cs, M as tn, N as Un, O as yt, P as af, o as lf, Q as gt, R as rf, S as nf } from "./index-CyD2ZGI0.js";
|
|
14
14
|
import { a as sf } from "./index-BIV-s4QY.js";
|
|
15
15
|
import { g as En, u as To, c as Pc, d as js, b as Zt, a as Eo } from "./index-BsDMamej.js";
|
|
16
|
-
import { a as of, s as tf } from "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import { u as jc } from "./index-
|
|
16
|
+
import { a as of, s as tf } from "./index-XSrc1sWV.js";
|
|
17
|
+
import "./index-r6mcGvmD.js";
|
|
18
|
+
import { u as jc } from "./index-Cf2gp9fi.js";
|
|
19
19
|
import { E as Os } from "./index-C81Qb0f2.js";
|
|
20
|
-
import { E as Ri } from "./index-
|
|
20
|
+
import { E as Ri } from "./index-2KYbe_7L.js";
|
|
21
21
|
/* empty css */
|
|
22
22
|
import { i as Do } from "./isString-BA9CJNsy.js";
|
|
23
23
|
import { _ as Iu } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
24
24
|
import Fc from "./index-rlStojTL.js";
|
|
25
|
-
import { s as uf } from "./index-
|
|
26
|
-
import { S as mt, O as bt, M as kt } from "./MTLLoader-
|
|
27
|
-
import { U as cf } from "./URDFLoader-
|
|
25
|
+
import { s as uf } from "./index-BuTyP2j6.js";
|
|
26
|
+
import { S as mt, O as bt, M as kt } from "./MTLLoader-CIEnVGmG.js";
|
|
27
|
+
import { U as cf } from "./URDFLoader-SQ3u-Q_8.js";
|
|
28
28
|
var df = "[object Boolean]";
|
|
29
29
|
function Hc(a) {
|
|
30
30
|
return a === !0 || a === !1 || fp(a) && hp(a) == df;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),A=require("vue-router"),a=require("./menu-
|
|
1
|
+
"use strict";const n=require("vue"),A=require("vue-router"),a=require("./menu-N76i05Ex.cjs"),l={ALLOW:{value:"允许"},DENY:{value:"不允许"}},_="系统管理/用户管理",R="用户列表",b={title:"个人中心",path:"/个人中心",level:1,show:!0,icon:"个人中心",carryData:!0,isPenultimate:!0,isRouter:!0,children:[],childMenus:[]},g={BASE:{label:"基础信息",value:"base"},RESET_PASSWORD_BY_FACE_RECOGNITION:{label:"修改密码",value:"reset-password-by-face-recognition"}},h=()=>{const i=A.useRouter(),o=a.useMenuState(a.pinia),{platId:c,isSuperAdmin:d}=a.useUserInfo(),p=e=>{const{id:t}=e;return{id:t,password:"",allow_reset_password:l.DENY.value}},u=n.ref([]),w=n.computed(()=>{var t,s;const e=(s=(t=u.value)==null?void 0:t.find)==null?void 0:s.call(t,r=>r.property_name===R);return e==null?void 0:e.object_id}),y=async()=>{var s;const e={pageName:_,platId:c.value},t=await a.getPageDataApi(e);return((s=t==null?void 0:t.data)==null?void 0:s.result)||[]},f=async()=>{const e=await y();u.value=e||[]};n.onMounted(async()=>{await f()});const v=n.computed(()=>`content_${w.value}`),I=async e=>({platId:c.value,changeContents:[{tableContents:[e],tableName:v.value}]}),m=e=>{const{allow_reset_password:t}=e;return t===l.ALLOW.value},P=async e=>{const{id:t,password:s,allow_reset_password:r}=e;return I({id:t,password:s,allow_reset_password:r})},C=async e=>{const t=await P(e);return await a.pageBatchUpdateApi(t)};return{isSuperAdmin:d,toPersonalCenter:()=>{const e=a.cloneDeep(b);o.setAsideMenus([e]),o.setActiveMenuPath(e==null?void 0:e.path),o.setActiveAsideMenu(e),i.push(e.path)},isAllowReplacePassword:m,initReplacePassword:async e=>await C(e),initEditForm:p}};exports.tabConstants=g;exports.usePersonalCenter=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-BU3Yohec.cjs"),r=require("./menu-N76i05Ex.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,u,p,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(p=(u=r.cloneDeep(t))==null?void 0:u[0])!=null&&p.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var h;const y=(h=r.cloneDeep(t))==null?void 0:h.map(c=>{var x;return(x=c==null?void 0:c.y)==null?void 0:x[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|