ss-component-new 1.1.394 → 1.1.396
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-ZnalKgf3.js → array-C16RsBGi.js} +2 -2
- package/dist/{array-CD8zejd1.cjs → array-CrflPQfH.cjs} +1 -1
- package/dist/{index-CUjuvh-J.cjs → index-0rS7KbmB.cjs} +1 -1
- package/dist/{index-aE1YtI0N.cjs → index-5QKtXqtt.cjs} +1 -1
- package/dist/{index-Cm87rcFB.js → index-B5SKuqtT.js} +1 -1
- package/dist/{index-C-pSM4xK.cjs → index-B87MOYL0.cjs} +1 -1
- package/dist/{index-DzOUi2OJ.cjs → index-BCBaGcSw.cjs} +1 -1
- package/dist/{index-CJTkxiTJ.js → index-BI8ECnch.js} +1 -1
- package/dist/{index--wbrFlsW.cjs → index-BLFmQUvu.cjs} +1 -1
- package/dist/{index-DwPJ1Vag.js → index-BPG0DRXa.js} +5 -5
- package/dist/{index-Dc-SkGvt.cjs → index-BPhF9zmt.cjs} +1 -1
- package/dist/{index-CU716RuE.js → index-BS9fOObP.js} +1 -1
- package/dist/{index-CTm4lltX.cjs → index-B_gX595b.cjs} +1 -1
- package/dist/{index-DeJ4Yg7X.cjs → index-Bft1aZ0a.cjs} +1 -1
- package/dist/{index-CjxnmQy6.js → index-BiLGjwKz.js} +9 -9
- package/dist/{index-gIKvX1D1.cjs → index-Bkw45mmW.cjs} +1 -1
- package/dist/{index-u6m6cgUN.js → index-BqgHyhdi.js} +1 -1
- package/dist/{index-C1EqcKer.js → index-BrwiY9L3.js} +4 -4
- package/dist/{index-DFyli2Xq.js → index-C822Fm25.js} +7 -7
- package/dist/{index-7TyqzNe8.js → index-C9Qome4l.js} +7 -7
- package/dist/{index-CQIhXQ3O.js → index-CA6wLV-m.js} +6 -6
- package/dist/{index--2CrBbq_.js → index-CASSs849.js} +3 -3
- package/dist/{index-CuWFvdV7.js → index-CAiiyLHX.js} +2 -2
- package/dist/{index-Zu3jbrQk.js → index-CF2GXE5j.js} +4 -4
- package/dist/{index-BfcUq7S0.cjs → index-CIQlsfDn.cjs} +1 -1
- package/dist/{index-DowqkTOa.js → index-CVkIx7Qb.js} +4 -4
- package/dist/{index-Bgvqjq_f.cjs → index-Ci_TlUaz.cjs} +1 -1
- package/dist/{index-B3UcWBkk.cjs → index-CmwiMKaN.cjs} +1 -1
- package/dist/{index-XRVVgjx5.cjs → index-D6aaas52.cjs} +1 -1
- package/dist/{index-CBbukvkD.cjs → index-DD1B6uNy.cjs} +1 -1
- package/dist/{index-D2myLgYV.js → index-DL2KazPi.js} +6 -6
- package/dist/{index-SnspfZh4.js → index-DOIRqr3P.js} +142 -141
- package/dist/{index-BRhBVzCk.js → index-DPMhC2WO.js} +3 -3
- package/dist/{index-jCsg0SZr.js → index-DPiUDaPy.js} +3 -3
- package/dist/{index-CuEJFLji.cjs → index-DdMKahpe.cjs} +1 -1
- package/dist/{index-B8H-UzO2.js → index-DeDlxE6V.js} +24 -25
- package/dist/{index-yCtYhLUV.cjs → index-DlBjdPGf.cjs} +1 -1
- package/dist/{index-DqYbmSGM.js → index-DvuQRvTq.js} +5 -5
- package/dist/{index-CJiV9x8j.js → index-Dyj2IJ-k.js} +4 -4
- package/dist/{index-CAGyA-30.js → index-F1ttuKSv.js} +4 -4
- package/dist/{index-BY82Yoqw.js → index-HXgo29eU.js} +4 -4
- package/dist/{index-DGN5RkyR.cjs → index-LAneWWe0.cjs} +1 -1
- package/dist/{index-BWK9oziR.js → index-NyFbsRls.js} +7 -7
- package/dist/{index-CEg-g0l8.cjs → index-P4OXUc2W.cjs} +1 -1
- package/dist/{index-fMznhU8d.cjs → index-P80WmN2w.cjs} +1 -1
- package/dist/{index-CNDIagvw.cjs → index-Vgnu3AJT.cjs} +1 -1
- package/dist/{index-DtsCXEQ_.cjs → index-Z_MwT_T3.cjs} +1 -1
- package/dist/{index-T1XIt7Q5.js → index-cld16RcD.js} +7 -7
- package/dist/{index-CXu5s3Iq.cjs → index-iWbccyfH.cjs} +1 -1
- package/dist/{index-CXwvy-Oq.cjs → index-kP4PZFnP.cjs} +1 -1
- package/dist/{index-CPDLwI7f.js → index-msEHZkYa.js} +5 -5
- package/dist/{index-F8EMBL9C.cjs → index-sX5lTda9.cjs} +1 -1
- package/dist/{index-B84fmd8R.cjs → index-sbQSWrBI.cjs} +1 -1
- package/dist/index-soDn3tCX.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C7kSvdUI.js → index.vue_vue_type_script_setup_true_lang-BbuiPO6s.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-DJ9rvQJ6.cjs → index.vue_vue_type_script_setup_true_lang-DSlW9AIf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bu7INyYH.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B-rUyq8Y.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CpPiLovA.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-obeZpKVs.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DOjbMvFW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_45defba9_lang-BoiEK80r.cjs +12 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-CLGezB1c.js → index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js} +1517 -1504
- package/dist/{login-GQGxI0h0.js → login-DXi57ZMh.js} +1 -1
- package/dist/{login-CgphGA9x.cjs → login-Dk-07p0w.cjs} +1 -1
- package/dist/{main-Bdv6Fcy8.js → main-BbFbvu6k.js} +6 -6
- package/dist/{main-DoHWbwDb.cjs → main-Bi8-ggGu.cjs} +1 -1
- package/dist/{menu-BW061cI0.cjs → menu-CIgIfqSs.cjs} +1 -1
- package/dist/{menu-BQPjhn42.js → menu-ozOGGi5Z.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +17 -17
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-BS-mDLn5.cjs → threeModel-Dl-CREqP.cjs} +1 -1
- package/dist/{threeModel-BSv-VAwD.js → threeModel-Dt4tQ3jF.js} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Ba5fmjEb.js → threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-CFuuYGuz.cjs → threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-B76NL8nJ.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_45defba9_lang-DNe_hImn.cjs +0 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as c, reactive as k, computed as M, defineComponent as J, onMounted as Z, resolveDirective as G, createElementBlock as U, openBlock as _, createElementVNode as y, withDirectives as Q, createVNode as S, unref as D, createBlock as X } from "vue";
|
|
2
|
-
import { f as Y, j as ee, k as te } from "./index-
|
|
3
|
-
import { u as P } from "./login-
|
|
4
|
-
import { s as E, g as V, u as ae, d as se, E as B } from "./menu-
|
|
2
|
+
import { f as Y, j as ee, k as te } from "./index-BiLGjwKz.js";
|
|
3
|
+
import { u as P } from "./login-DXi57ZMh.js";
|
|
4
|
+
import { s as E, g as V, u as ae, d as se, E as B } from "./menu-ozOGGi5Z.js";
|
|
5
5
|
import { e as re, d as ne } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { a as oe, s as le } from "./index-
|
|
7
|
-
import { b as ie, e as ue } from "./index-
|
|
6
|
+
import { a as oe, s as le } from "./index-CF2GXE5j.js";
|
|
7
|
+
import { b as ie, e as ue } from "./index-BrwiY9L3.js";
|
|
8
8
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const L = P(), { loginUserInfo: i, cryptoInfo: m } = E(L), pe = ae(), { activeMenuPath: h } = E(pe), I = c(0);
|
|
10
10
|
var R, N, x, K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),r=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),r=require("./menu-CIgIfqSs.cjs"),R=require("./login-Dk-07p0w.cjs"),F=require("./threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs"),q=r.useMenuState(),{activeMenuPath:b}=r.storeToRefs(q),I=R.useLoginState(),{structureData:z}=r.storeToRefs(I),O=F.useModelComp(),{itemData:j}=r.storeToRefs(O),H=c.ref([{label:"角色名称",value:"",name:"roleName"}]),L=c.ref([{label:"查询"},{label:"重置"}]),w=c.reactive({isFilter:!1,filterForm:{}}),Q=c.ref(!1),U=a=>{console.log("handleQueryChange",a),w.isFilter=!0,w.filterForm=a},f=c.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"header",contents:[{label:"角色名称",prop:"roleName"},{label:"角色状态",formType:"Radio",prop:"roleStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"角色排序",prop:"roleOrder",formType:"Number"},{label:"备注",prop:"remark",formType:"TextArea"},{label:"权限",prop:"roleAuthority",isTableColHidden:!0,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:[]}]),V=c.computed(()=>f.value),$=a=>{C(a.singleContent,a.buttonName)},A=c.ref({}),k=c.ref(),d=async(a,e,l)=>{var t,n;try{const s=await a(e);return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(l!=="查询"&&await I.setLogRecordAsync({type:l,data:e},b.value),s.data.result||((n=s==null?void 0:s.data)==null?void 0:n.code)===200):null}catch(s){r.ElMessage.error(s)}},M=(a,e)=>{e==null||e.forEach(l=>{a==null||a.forEach(t=>{var n;t.path==l.path&&(t.checkedButtons=l.checkedButtons),t.children&&((n=t.children)==null?void 0:n.length)>0&&M(t.children,e)})})},T=a=>a==null?void 0:a.map(e=>{var t;const l={...e,checkedButtons:[]};return l.children&&((t=l.children)==null?void 0:t.length)>0&&(l.children=T(l.children)),l}),G=async(a,e)=>{switch(A.value=m.cloneDeep(e),a){case"授权":u.title=`【${e.roleName}】授权`,u.show=!0,await c.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&M(p.value,e.roleAuthority);break}},J=()=>{u.show=!1},g=c.ref(),W=async a=>{const e=await d(r.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((o,y)=>{s[`a${y}`]=o}),s}else return{...t.tableData,id:t.id}})},C=(a,e)=>{const l=m.cloneDeep(a);l!=null&&l.id&&delete l.id,e==="新增"?d(r.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{g.value={...a,newId:t},e&&t&&r.ElMessage.success(e+"成功")}):e==="编辑"?(console.log("编辑角色",l),d(r.updateInsofDataApi,{id:a.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功"),u.show=!1})):e==="删除"&&d(r.deleteInsofDataApi,{id:a.id},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功")})},K=a=>{let e=[];return a==null||a.forEach(l=>{var t;if(l.checkedButtons&&((t=l.checkedButtons)==null?void 0:t.length)>0){const n={path:l.path,checkedButtons:l.checkedButtons};e=e.concat(n)}l.children&&(e=e.concat(K(l.children)))}),e},X=()=>{g.value={...A.value,roleAuthority:K(p.value)},c.nextTick(()=>{console.log("clickSubmitAuthority",g.value,f.value),C(g.value,"编辑")})},u=c.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),Y=({isPenultimate:a},e)=>{var l,t;return console.log("isPenultimate",a,e),((t=(l=e==null?void 0:e.data)==null?void 0:l.renderButtons)==null?void 0:t.length)>0?"is-penultimate":""},v=c.ref(0),x=async()=>{var l,t,n,s,o;let a;const e=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:b.value}});return((l=e==null?void 0:e.data)==null?void 0:l.code)===200&&(t=e==null?void 0:e.data)!=null&&t.result&&((n=e==null?void 0:e.data)==null?void 0:n.result.length)>0&&(a=(o=(s=e==null?void 0:e.data.result)==null?void 0:s[0])==null?void 0:o.id),a},p=c.ref([]),Z=c.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),ee=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},h=c.ref([]),te=(a,e)=>{var l,t,n;e.checkedButtons=a,((l=e.checkedButtons)==null?void 0:l.length)===((t=e.renderButtons)==null?void 0:t.length)?h.value.push(e.path):(a==null?void 0:a.length)===0&&(h.value=(n=h.value)==null?void 0:n.filter(s=>s!==e.path))};c.watch(()=>h.value.length,()=>{var e,l;const a=(e=k.value)==null?void 0:e.getCheckedKeys();console.log(112,h.value,a),(l=k.value)==null||l.setCheckedKeys([...h.value])});c.watch(()=>u.show,a=>{a||(p.value=T(p.value))});const D=c.computed(()=>{var l;const a=(l=m.cloneDeep(z.value))==null?void 0:l.filter(t=>{var n,s;return((s=(n=t==null?void 0:t.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...a==null?void 0:a.map(t=>{var o,y,_,S;const n=/button/i;let s=(_=(y=(o=t==null?void 0:t.value)==null?void 0:o.pageData)==null?void 0:y.compData)==null?void 0:_.filter(i=>n.test(i==null?void 0:i.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(i=>i.contents.map(N=>N.label)))),{path:(S=t==null?void 0:t.key)==null?void 0:S.pageKey,buttons:s}}),...P.value]}),P=c.ref([]),B=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(o=>(o==null?void 0:o.path)===(l==null?void 0:l.path));return l.childMenus&&l.childMenus.length>0?{...l,renderButtons:l.carryData?(n=t==null?void 0:t.buttons)==null?void 0:n.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[],children:B(l.childMenus,D.value),childMenus:B(l.childMenus,D.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[]}})},E={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:f.value,name:""}]}]};c.watch(()=>j.value,a=>{var e;a&&(a==null?void 0:a.length)>0&&(f.value=(e=a==null?void 0:a[0])==null?void 0:e.compData)});const ae=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:B,authorizeDialog:u,buttonValue:L,changedRow:g,clickRow:A,clickRowButton:G,clickSubmitAuthority:X,closeAuthorizeDialog:J,customNodeClass:Y,getActivePageStructureId:x,getPageDataAsync:W,handleItemDataChange:$,handleNodeBtnChange:te,handleNodeCheckChange:ee,handleQueryChange:U,handleSubmitAsync:d,isPageDataExist:Q,menuData:p,menusButtons:Z,pageData:f,pageDataFiltered:V,queryFormData:H,structureButtons:D,structureId:v,submitTableAsyncByVerify:C,tempRolePageData:E,tempSysMenus:P,treeRef:k},Symbol.toStringTag,{value:"Module"}));exports.State=ae;exports.authorizeDialog=u;exports.getActivePageStructureId=x;exports.tempRolePageData=E;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
2
|
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Ki } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { c as Ki } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./menu-
|
|
1
|
+
"use strict";const a=require("./menu-CIgIfqSs.cjs"),h=require("./login-Dk-07p0w.cjs"),x=require("vue"),q=a.useMenuState(a.pinia),v=h.useLoginState(a.pinia),D=x.ref(!1),E=x.ref(!1),w=async()=>{const I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),K=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([I,K]).then(s=>{var r,u,o,n,i,l,c,g,y,d,S,f,m,p;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const M=(c=(l=(i=(n=(o=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:o.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;q.setRawMenus(M??[]),D.value=((g=t==null?void 0:t.data)==null?void 0:g.result)&&((d=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(v.setStructureData(e.data.result),v.setIsStructureExist(!0),E.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((p=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:p.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:D.value,structureExist:E.value}};exports.verifyStructureDataToStore=w;
|