ss-component-new 1.1.271 → 1.1.272
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-CAAZj70g.cjs → array-CLTWBAVq.cjs} +1 -1
- package/dist/{array-BfnpXiM-.js → array-DHMn8Sqh.js} +2 -2
- package/dist/{cloneDeep-SOoqD36w.js → cloneDeep-BLw3bkUW.js} +1 -1
- package/dist/{cloneDeep-CHtsEohg.cjs → cloneDeep-BpPx58Vo.cjs} +1 -1
- package/dist/icons/svg/Left.svg +1 -0
- package/dist/icons/svg/Right.svg +1 -0
- package/dist/{index-BiSiEi_V.js → index--5V-NDNH.js} +756 -729
- package/dist/{index-D1gy0J05.js → index--V9Pc4sz.js} +3 -3
- package/dist/{index-Uhv08fCW.cjs → index-4LjUTtFX.cjs} +1 -1
- package/dist/{index-Cn49cw0q.js → index-5FulNaqr.js} +3 -3
- package/dist/index-9V7_3PmP.js +782 -0
- package/dist/{index-LVzE8vfl.cjs → index-9cYqnVXd.cjs} +1 -1
- package/dist/{index--1AcPtxr.cjs → index-9loJpkpw.cjs} +1 -1
- package/dist/{index-DPLoeqeZ.cjs → index-A-lUDvj2.cjs} +1 -1
- package/dist/{index-BrpCYKbJ.js → index-AgbveyO3.js} +3 -3
- package/dist/{index-DZiAN8C7.cjs → index-B2pDOeMQ.cjs} +1 -1
- package/dist/index-B75Nvl2F.cjs +1 -0
- package/dist/{index-BU_jy_oC.js → index-B8EQvXDE.js} +4 -4
- package/dist/{index--Lkq8v3T.js → index-BFfPgA2b.js} +8 -8
- package/dist/{index-Dp_b_DSL.cjs → index-BM2mpdwS.cjs} +1 -1
- package/dist/{index-KLWVgTQ4.cjs → index-BMyAU0O-.cjs} +1 -1
- package/dist/index-BOM94_u6.cjs +1 -0
- package/dist/{index-BtJs7zPy.cjs → index-BQY541on.cjs} +1 -1
- package/dist/{index-H5uD67Jw.js → index-BSgy8kJ1.js} +8 -8
- package/dist/{index-Bv6C9j_1.js → index-BXQG6yk7.js} +507 -501
- package/dist/{index-uETWWPW0.cjs → index-Ba60n0WF.cjs} +1 -1
- package/dist/index-Bbn8Helj.js +67 -0
- package/dist/{index-DEBg_dvX.cjs → index-BdC1865x.cjs} +1 -1
- package/dist/{index-DD_rYKjc.js → index-BfqgsCSF.js} +8 -8
- package/dist/{index-DK3M5DNe.cjs → index-BjfbQifn.cjs} +1 -1
- package/dist/{index-CCG2WirR.js → index-BlrJf77m.js} +1 -1
- package/dist/{index-Bs_7jqc_.js → index-BnXcu5-l.js} +4 -4
- package/dist/{index-D5DKfZge.cjs → index-BqK5W_B3.cjs} +1 -1
- package/dist/{index-DVW3KqV7.cjs → index-CQQY7_4w.cjs} +1 -1
- package/dist/{index-CV7IzaaJ.js → index-CSEnPwz6.js} +1 -1
- package/dist/{index-BZL2gPxk.js → index-CSV9bCd0.js} +4 -4
- package/dist/{index-D8QUeWKa.js → index-CShNG69V.js} +1 -1
- package/dist/{index-CKr4swuH.js → index-CU-XcNtZ.js} +92 -90
- package/dist/{index-CMWo86wg.js → index-CdMR5Sit.js} +2049 -2012
- package/dist/{index-CWaLFgqI.cjs → index-CftczFRk.cjs} +1 -1
- package/dist/{index-DfsnGXGA.cjs → index-Cg289W8m.cjs} +1 -1
- package/dist/{index-5LDLWHIy.js → index-CiFZUN9C.js} +6 -6
- package/dist/{index-Cfpx04I5.js → index-CiIU9_7v.js} +5 -5
- package/dist/{index-Cfo509W-.js → index-CkYBbRdJ.js} +10 -10
- package/dist/index-CkcgsFF1.cjs +7 -0
- package/dist/{index-B_IOZlFF.cjs → index-CpY7HJ5x.cjs} +28 -28
- package/dist/{index-BLUdgcs7.js → index-CvzNHpm5.js} +4 -4
- package/dist/{index-Ctv9BG9O.js → index-D0mA3uen.js} +5 -5
- package/dist/{index-2QYqjej5.js → index-D4TPdBL4.js} +4 -4
- package/dist/{index-DRb5FND5.cjs → index-DCbIASJ9.cjs} +1 -1
- package/dist/{index-B9MjTDBR.cjs → index-DF-eXbS0.cjs} +3 -3
- package/dist/index-DFfbfLht.cjs +1 -0
- package/dist/{index-DGr6my-U.cjs → index-DKAJNeoG.cjs} +1 -1
- package/dist/{index-B6UxWPf2.cjs → index-DRkQ_0z3.cjs} +3 -3
- package/dist/{index-Dwsro7ML.cjs → index-D_-kRqoY.cjs} +1 -1
- package/dist/{index-B1Chq5ou.cjs → index-De0Kv6HX.cjs} +1 -1
- package/dist/{index-CTszrMtm.js → index-DeUp-mEz.js} +1 -1
- package/dist/{index-UhoWjM51.js → index-DhhMMIXh.js} +5 -5
- package/dist/{index-y8UDVF_A.cjs → index-_6_-rY9-.cjs} +1 -1
- package/dist/{index-B6JYEmYH.js → index-aNfHlWCH.js} +1 -1
- package/dist/{index-cDR84dKn.cjs → index-yMmrDYsl.cjs} +1 -1
- package/dist/{index-CY2ru0Sv.js → index-zSFVO3U1.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-rzTbe237.cjs → index.vue_vue_type_script_setup_true_lang-DFwhmpY_.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-5qTUg_kH.js → index.vue_vue_type_script_setup_true_lang-q_ObDPkg.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CJo8jVD1.js → index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CE06JH93.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CQLr1-WM.cjs → index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-DotPayBY.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DMHkUnds.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DWRnDX7j.js +769 -0
- package/dist/{login-l_owbUQv.cjs → login-CTwNqmhY.cjs} +1 -1
- package/dist/{login-DHpGcqep.js → login-Dch9zraG.js} +2 -2
- package/dist/{main-B9XdzVwC.js → main-C0nKVZt8.js} +7 -7
- package/dist/{main-D7g6IJOQ.cjs → main-DcblgVEE.cjs} +1 -1
- package/dist/menu-CYXJRA36.cjs +16 -0
- package/dist/{menu-Ba_aVwCo.js → menu-WUm8Oh5N.js} +353 -344
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +2 -2
- package/public/icons/svg/Left.svg +1 -0
- package/public/icons/svg/Right.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BlraVBSm.js +0 -61
- package/dist/index-CT3w9uTX.cjs +0 -1
- package/dist/index-Ce42bIEI.cjs +0 -1
- package/dist/index-D4VrAzy3.cjs +0 -1
- package/dist/index-DVFD8nf7.js +0 -720
- package/dist/index-DpP0IpCV.cjs +0 -7
- package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DXhNv58U.js +0 -670
- package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-fRjw_tf5.cjs +0 -1
- package/dist/menu-DHduXY8b.cjs +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),r=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),r=require("./menu-CYXJRA36.cjs"),F=require("./login-CTwNqmhY.cjs"),q=require("./index-CpY7HJ5x.cjs"),D=require("./cloneDeep-BpPx58Vo.cjs"),z=r.useMenuState(),{activeMenuPath:b}=r.storeToRefs(z),w=F.useLoginState(),{structureData:O}=r.storeToRefs(w),_=q.useModelComp(),{itemData:j}=r.storeToRefs(_),H=c.ref([{label:"角色名称",value:"",name:"roleName"}]),L=c.ref([{label:"查询"},{label:"重置"}]),S=c.reactive({isFilter:!1,filterForm:{}}),Q=c.ref(!1),U=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.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=>{m(a.singleContent,a.buttonName)},B=c.ref({}),k=c.ref(),g=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 w.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)}},I=(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&&I(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(B.value=D.cloneDeep(e),a){case"授权":u.title=`【${e.roleName}】授权`,u.show=!0,await c.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(p.value,e.roleAuthority);break}},J=()=>{u.show=!1},d=c.ref(),W=async a=>{const e=await g(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}})},m=(a,e)=>{const l=D.cloneDeep(a);l!=null&&l.id&&delete l.id,e==="新增"?g(r.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{d.value={...a,newId:t},e&&t&&r.ElMessage.success(e+"成功")}):e==="编辑"?(console.log("编辑角色",l),g(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==="删除"&&g(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=()=>{d.value={...B.value,roleAuthority:K(p.value)},c.nextTick(()=>{console.log("clickSubmitAuthority",d.value,f.value),m(d.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),M=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 P=c.computed(()=>{var l;const a=(l=D.cloneDeep(O.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,A,C;const n=/button/i;let s=(A=(y=(o=t==null?void 0:t.value)==null?void 0:o.pageData)==null?void 0:y.compData)==null?void 0:A.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(R=>R.label)))),{path:(C=t==null?void 0:t.key)==null?void 0:C.pageKey,buttons:s}}),...x.value]}),x=c.ref([]),E=(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.children&&l.children.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:E(l.children,P.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:[]}})},N={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:E,authorizeDialog:u,buttonValue:L,changedRow:d,clickRow:B,clickRowButton:G,clickSubmitAuthority:X,closeAuthorizeDialog:J,customNodeClass:Y,getActivePageStructureId:M,getPageDataAsync:W,handleItemDataChange:$,handleNodeBtnChange:te,handleNodeCheckChange:ee,handleQueryChange:U,handleSubmitAsync:g,isPageDataExist:Q,menuData:p,menusButtons:Z,pageData:f,pageDataFiltered:V,queryFormData:H,structureButtons:P,structureId:v,submitTableAsyncByVerify:m,tempRolePageData:N,tempSysMenus:x,treeRef:k},Symbol.toStringTag,{value:"Module"}));exports.State=ae;exports.authorizeDialog=u;exports.getActivePageStructureId=M;exports.tempRolePageData=N;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { onMounted as u, resolveComponent as a, createElementBlock as l, openBlock as r, createVNode as f } from "vue";
|
|
2
|
+
import "./index-CkYBbRdJ.js";
|
|
3
|
+
import "./index-CShNG69V.js";
|
|
4
|
+
import "./array-DHMn8Sqh.js";
|
|
5
|
+
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CE06JH93.js";
|
|
7
|
+
import "./menu-WUm8Oh5N.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DWRnDX7j.js";
|
|
9
|
+
import "./index-CdMR5Sit.js";
|
|
10
|
+
import "./login-Dch9zraG.js";
|
|
11
|
+
import "./index-BHtNKL1L.js";
|
|
12
|
+
import "./index-BFfPgA2b.js";
|
|
13
|
+
const v = {
|
|
14
|
+
__name: "index",
|
|
15
|
+
props: {
|
|
16
|
+
windowConfig: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => {
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
mode: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "view"
|
|
24
|
+
},
|
|
25
|
+
content: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
jsonContents: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
showButton: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
nodeDev: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ""
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(o) {
|
|
43
|
+
const t = o, i = () => {
|
|
44
|
+
var c;
|
|
45
|
+
const n = t != null && t.windowConfig ? (c = t == null ? void 0 : t.windowConfig) == null ? void 0 : c.width : window.innerWidth, d = 1920, e = 16, w = n / d, m = e * w;
|
|
46
|
+
document.documentElement.style.fontSize = `${m}px`, console.log("监听窗口变化响应式字体", t == null ? void 0 : t.windowConfig, n);
|
|
47
|
+
};
|
|
48
|
+
return u(() => {
|
|
49
|
+
i(), window.addEventListener("resize", i);
|
|
50
|
+
}), (n, d) => {
|
|
51
|
+
const e = a("router-view");
|
|
52
|
+
return r(), l("div", null, [
|
|
53
|
+
f(e, {
|
|
54
|
+
mode: t == null ? void 0 : t.mode,
|
|
55
|
+
content: t == null ? void 0 : t.content,
|
|
56
|
+
jsonContents: t == null ? void 0 : t.jsonContents,
|
|
57
|
+
showButton: t == null ? void 0 : t.showButton,
|
|
58
|
+
nodeDev: t == null ? void 0 : t.nodeDev,
|
|
59
|
+
windowConfig: o.windowConfig
|
|
60
|
+
}, null, 8, ["mode", "content", "jsonContents", "showButton", "nodeDev", "windowConfig"])
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, F = /* @__PURE__ */ s(v, [["__scopeId", "data-v-833e2951"]]);
|
|
65
|
+
export {
|
|
66
|
+
F as default
|
|
67
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),_=require("./index-BqK5W_B3.cjs"),u=require("./menu-CYXJRA36.cjs"),C=require("./index-CpY7HJ5x.cjs"),f=require("./cloneDeep-BpPx58Vo.cjs"),v=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=a=>{const s={};for(let l in a)l!=="id"&&(s[l]=a[l]);const r=s==null?void 0:s.主菜单名称;u.createInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:r},value:{tableData:s}})},h=a=>{u.deleteInsofDataApi({id:a==null?void 0:a.id})},q=a=>{const s={};for(let l in a)l!=="id"&&(s[l]=a[l]);const r=s==null?void 0:s.主菜单名称;u.updateInsofDataApi({id:a==null?void 0:a.id,key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:r},value:{tableData:s}})},k={class:"menu-content"},x=o.defineComponent({__name:"index",setup(a){const s=u.useMenuState(_.pinia),{menus:r}=u.storeToRefs(s),l=o.ref([]),g=async()=>{var m,n,p,t;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((m=e==null?void 0:e.data)==null?void 0:m.type)==="success"){let d=(p=(n=e==null?void 0:e.data)==null?void 0:n.result)==null?void 0:p.map(i=>i);return d=(t=f.cloneDeep(d))==null?void 0:t.map(i=>{var b;const y=Object.values((b=i==null?void 0:i.value)==null?void 0:b.tableData);return y.unshift({id:i==null?void 0:i.id}),y}),d}else return[]};o.onMounted(async()=>{var p;const e=await g(),n=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(p=f.cloneDeep(r.value))==null?void 0:p.map(t=>({label:t==null?void 0:t.title,value:t==null?void 0:t.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];n.push({key:"tableContents",contents:e}),l.value=n});const c=e=>{(e==null?void 0:e.buttonName)==="新增"?D(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?h(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&q(e==null?void 0:e.singleContent)};return(e,m)=>(o.openBlock(),o.createElementBlock("div",k,[o.createVNode(C.ssTable,{itemData:l.value,class:"table-content",onChange:c},null,8,["itemData"])]))}}),S=v._export_sfc(x,[["__scopeId","data-v-43191ad8"]]);exports.default=S;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as I, ref as i, reactive as K, nextTick as M, defineComponent as $, onMounted as q, resolveComponent as B, createElementBlock as G, openBlock as J, createElementVNode as k, createVNode as f, withCtx as m, createTextVNode as P } from "vue";
|
|
2
|
-
import { s as x, u as E, E as b, g as L, c as R, b as Q, e as X } from "./menu-
|
|
3
|
-
import { u as Y, b as Z, s as ee } from "./index-
|
|
4
|
-
import { p as D } from "./index-
|
|
5
|
-
import "./index
|
|
6
|
-
import { h as te } from "./index-
|
|
2
|
+
import { s as x, u as E, E as b, g as L, c as R, b as Q, e as X } from "./menu-WUm8Oh5N.js";
|
|
3
|
+
import { u as Y, b as Z, s as ee } from "./index-CdMR5Sit.js";
|
|
4
|
+
import { p as D } from "./index-CShNG69V.js";
|
|
5
|
+
import "./index-BFfPgA2b.js";
|
|
6
|
+
import { h as te } from "./index-zSFVO3U1.js";
|
|
7
7
|
import "./crypto-BRyGpjGR.js";
|
|
8
|
-
import { f as ae } from "./login-
|
|
9
|
-
import { c as S } from "./cloneDeep-
|
|
10
|
-
import { s as oe, a as le } from "./index-
|
|
8
|
+
import { f as ae } from "./login-Dch9zraG.js";
|
|
9
|
+
import { c as S } from "./cloneDeep-BLw3bkUW.js";
|
|
10
|
+
import { s as oe, a as le } from "./index-BXQG6yk7.js";
|
|
11
11
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const A = Y(D), O = Z(D), g = E(D), { menus: H, configMenu: h, activeMenuPath: T, cacheStructures: se } = x(g), re = I(() => {
|
|
13
13
|
var t, e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./menu-
|
|
1
|
+
"use strict";const o=require("./menu-CYXJRA36.cjs");function a(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/uploadAvatar",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function i(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/downloadFile",method:"post",data:t,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}exports.downloadAvatarApi=i;exports.uploadAvatarApi=a;
|
|
@@ -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 "./cloneDeep-
|
|
3
|
+
import { c as Ki } from "./cloneDeep-BLw3bkUW.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as c, computed as K, reactive as T, nextTick as N, watch as v } from "vue";
|
|
2
|
-
import { g as x, s as B, E as f, c as z, b as H, d as L, u as Q } from "./menu-
|
|
3
|
-
import { u as U } from "./login-
|
|
4
|
-
import { u as V } from "./index-
|
|
5
|
-
import { c as D } from "./cloneDeep-
|
|
2
|
+
import { g as x, s as B, E as f, c as z, b as H, d as L, u as Q } from "./menu-WUm8Oh5N.js";
|
|
3
|
+
import { u as U } from "./login-Dch9zraG.js";
|
|
4
|
+
import { u as V } from "./index-CdMR5Sit.js";
|
|
5
|
+
import { c as D } from "./cloneDeep-BLw3bkUW.js";
|
|
6
6
|
const $ = Q(), { activeMenuPath: b } = B($), P = U(), { structureData: q } = B(P), G = V(), { itemData: J } = B(G), W = c([
|
|
7
7
|
{
|
|
8
8
|
label: "角色名称",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const w=require("./menu-
|
|
1
|
+
"use strict";const w=require("./menu-CYXJRA36.cjs"),O=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,E=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){h(r);return}return t}function h(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function z(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const e=r.trim();if(e.length<=9)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!E.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(O.test(r)||$.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,P)}return JSON.parse(r)}catch(n){if(t.strict)throw n;return r}}function F(r,t){if(r==null)return;let e=r;for(let n=0;n<t.length;n++){if(e==null||e[t[n]]==null)return;e=e[t[n]]}return e}function d(r,t,e){if(e.length===0)return t;const n=e[0];return e.length>1&&(t=d(typeof r!="object"||r===null||!Object.prototype.hasOwnProperty.call(r,n)?Number.isInteger(Number(e[1]))?[]:{}:r[n],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(n))&&Array.isArray(r)?r.slice()[n]:Object.assign({},r,{[n]:t})}function N(r,t){if(r==null||t.length===0)return r;if(t.length===1){if(r==null)return r;if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.slice.call(r,0).splice(t[0],1);const e={};for(const n in r)e[n]=r[n];return delete e[t[0]],e}if(r[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.concat.call([],r);const e={};for(const n in r)e[n]=r[n];return e}return d(r,N(r[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function I(r,t){return t.map(e=>e.split(".")).map(e=>[e,F(r,e)]).filter(e=>e[1]!==void 0).reduce((e,n)=>d(e,n[1],n[0]),{})}function S(r,t){return t.map(e=>e.split(".")).reduce((e,n)=>N(e,n),r)}function g(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f,beforeHydrate:c,afterHydrate:i},o,l=!0){try{l&&(c==null||c(o));const a=t.getItem(n);if(a){const p=e.deserialize(a),y=u?I(p,u):p,A=f?S(y,f):y;r.$patch(A)}l&&(i==null||i(o))}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function m(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f}){try{const c=u?I(r,u):r,i=f?S(c,f):c,o=e.serialize(i);t.setItem(n,o)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function k(r,t,e){const{pinia:n,store:s,options:{persist:u=e}}=r;if(!u)return;if(!(s.$id in n.state.value)){const i=n._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const c=(Array.isArray(u)?u:u===!0?[{}]:[u]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{c.forEach(o=>{g(s,o,r,i)})},s.$persist=()=>{c.forEach(i=>{m(s.$state,i)})},c.forEach(i=>{g(s,i,r),s.$subscribe((o,l)=>m(l,i),{detached:!0})})}function J(r={}){return function(t){k(t,e=>({key:(r.key?r.key:n=>n)(e.key??t.store.$id),debug:e.debug??r.debug??!1,serializer:e.serializer??r.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>z(n)},storage:e.storage??r.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),r.auto??!1)}}var T=J();const _=w.createPinia();_.use(T);exports.pinia=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const l=require("vue"),c=require("./menu-CYXJRA36.cjs"),u=require("./index-yMmrDYsl.cjs"),D=require("./index-CpY7HJ5x.cjs"),g=D.useModelComp(),{itemData:i}=c.storeToRefs(g),p=l.ref(0),f=l.ref([{label:"机构名称",value:"",name:"deptName"}]),m=e=>{console.log("handleQueryChange",e)},s=l.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),h=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},C=e=>{console.log("onDoubleClick",e)},k=(e,t)=>{console.log("onButtonClick",e,t)},S=async e=>{const t=await u.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var o;return{id:a.id,tableData:(o=a==null?void 0:a.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(a=>{var o;if(Array.isArray(a==null?void 0:a.tableData)){let r={id:a.id};return(o=a==null?void 0:a.tableData)==null||o.forEach((y,d)=>{r[`a${d}`]=y}),r}else return{...a.tableData,id:a.id}})},b={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};l.watch(()=>i.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(s.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const T=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:S,handleItemDataChange:h,handleQueryChange:m,onButtonClick:k,onDoubleClick:C,pageData:s,queryFormData:f,structureId:p,tempDeptPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=T;exports.tempDeptPageData=b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-
|
|
1
|
+
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CE06JH93.js";
|
|
2
2
|
import { resolveComponent as l, createElementBlock as s, openBlock as o, Fragment as i, createVNode as a, withCtx as u, createElementVNode as r, toDisplayString as h, renderList as g, createBlock as f, resolveDynamicComponent as k } from "vue";
|
|
3
3
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const D = { class: "menu-operate-icon" }, v = { class: "module-dialog-content" };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as y, watch as P, createElementBlock as E, openBlock as b, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as B, resolveComponent as k, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L } from "./index-
|
|
4
|
-
import { E as N } from "./menu-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-q_ObDPkg.js";
|
|
3
|
+
import { d as H, u as L } from "./index-DeUp-mEz.js";
|
|
4
|
+
import { E as N } from "./menu-WUm8Oh5N.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as M } from "./index-
|
|
6
|
+
import { S as M } from "./index-BXQG6yk7.js";
|
|
7
7
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
8
8
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
9
9
|
__name: "index",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as A } from "./menu-
|
|
1
|
+
import { j as A } from "./menu-WUm8Oh5N.js";
|
|
2
2
|
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
3
|
function E(r, t) {
|
|
4
4
|
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|