ss-component-new 1.1.261 → 1.1.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-CGcjUVKX.cjs → array-BCYeTWHp.cjs} +1 -1
- package/dist/{array-BKq3BIQz.js → array-BiSkXjDh.js} +2 -2
- package/dist/{cloneDeep-B7uQBoFQ.cjs → cloneDeep-BShYbOkw.cjs} +1 -1
- package/dist/{cloneDeep-C2Kxf4cz.js → cloneDeep-CxhinJk5.js} +1 -1
- package/dist/{index-DSHdwrIv.js → index--CBmQToI.js} +4 -4
- package/dist/index-21rauG0g.cjs +1 -0
- package/dist/index-3fLiW589.cjs +1 -0
- package/dist/{index-B-UH_ubV.js → index-5G9gxVsG.js} +8 -8
- package/dist/{index-JlAZlJSa.js → index-6mqoLKfR.js} +6 -6
- package/dist/{index-BXTWkSfY.js → index-B0SEIfhd.js} +3 -3
- package/dist/{index-P8qnw1yi.js → index-B2bPpqmz.js} +5 -5
- package/dist/{index-CV8NL82B.js → index-B5fyktOS.js} +1 -1
- package/dist/index-B5vG0PaI.cjs +1 -0
- package/dist/{index-BEMqiaE4.cjs → index-B8d1EBwW.cjs} +1 -1
- package/dist/{index-B2U6bRXC.js → index-B96mvnY6.js} +1 -1
- package/dist/{index-i7I_BwC_.js → index-BEPkDcRB.js} +4 -4
- package/dist/{index-BSvAtDik.js → index-BEQcfNC8.js} +3264 -3260
- package/dist/{index-CUS5J9_e.js → index-BG7p7J6-.js} +3 -3
- package/dist/{index-XGNOqMia.cjs → index-BJEmWdGc.cjs} +1 -1
- package/dist/{index-BKkSFReI.cjs → index-BJWxGK8l.cjs} +1 -1
- package/dist/{index-C99sTbLR.cjs → index-BPGk6VZT.cjs} +1 -1
- package/dist/{index-BNRMWt2X.cjs → index-BRYyDz7j.cjs} +1 -1
- package/dist/{index-kzgPDfJF.cjs → index-BReBoqZM.cjs} +1 -1
- package/dist/{index-BqjnsqxM.cjs → index-BRgT-cwL.cjs} +1 -1
- package/dist/{index-CdbyfD9T.cjs → index-BTWHfvj_.cjs} +1 -1
- package/dist/{index-k1B4X854.js → index-BW_gJg6Y.js} +4 -4
- package/dist/index-BeYDJriQ.js +458 -0
- package/dist/{index-1FDUIkCX.cjs → index-BiIAlHzV.cjs} +1 -1
- package/dist/{index-CU_Jx-5J.cjs → index-Bl-nqQUb.cjs} +1 -1
- package/dist/{index-BPDeDTcT.js → index-BqqWyJ_i.js} +8 -8
- package/dist/{index-Dqq6ANsR.js → index-BxD91iWh.js} +1 -1
- package/dist/index-C3-tA5Oy.js +3520 -0
- package/dist/{index-CcWrPjiF.js → index-C8FwXAiK.js} +1 -1
- package/dist/{index-BTE2McnW.cjs → index-C9gBSiUj.cjs} +1 -1
- package/dist/{index-SuPnthkA.cjs → index-CNnhenkX.cjs} +1 -1
- package/dist/{index-CbAVZYKT.cjs → index-CPNiI7xc.cjs} +1 -1
- package/dist/{index-B5JYLkwE.js → index-CWpNIgx-.js} +5 -5
- package/dist/index-CYjQVlPG.cjs +1 -0
- package/dist/{index-CPLQkq0l.cjs → index-Cd2qjywt.cjs} +1 -1
- package/dist/index-ClyxHDAy.cjs +1 -0
- package/dist/{index-BpRK84YO.js → index-Cmf6TSRr.js} +9 -9
- package/dist/{index-BPc4Eac7.cjs → index-CvoVhrqh.cjs} +1 -1
- package/dist/{index-C4WiBNX7.cjs → index-CzuGT7Su.cjs} +1 -1
- package/dist/index-D0isXbYa.js +290 -0
- package/dist/{index-CtNApXqx.js → index-D9sisgye.js} +1 -1
- package/dist/{index-CRA36cu_.js → index-DJRZAkF4.js} +4 -4
- package/dist/{index-DBUg3cD4.js → index-DSPU33cy.js} +5 -5
- package/dist/{index-BuzU8y87.js → index-DdfwFwkR.js} +3 -3
- package/dist/{index-ChrvsNKe.cjs → index-DecqROTY.cjs} +1 -1
- package/dist/{index-BEUHy5vT.js → index-DhT3lFvD.js} +5 -5
- package/dist/{index-DJt9epxc.js → index-Duw1U19n.js} +3 -3
- package/dist/{index-DiqIaffC.js → index-DvydSDWz.js} +10 -10
- package/dist/{index-BSHYuItV.cjs → index-GDAKW2b9.cjs} +1 -1
- package/dist/{index-LztiiC8W.js → index-WOjw27kj.js} +38 -38
- package/dist/{index-DrgtDDgh.js → index-YBOakoO-.js} +1 -1
- package/dist/{index-BDeQhlHq.cjs → index-cPpFPrRC.cjs} +1 -1
- package/dist/{index-BePWixJ7.cjs → index-h9avu7we.cjs} +1 -1
- package/dist/{index-ChDUVY4O.cjs → index-jxXiBXta.cjs} +1 -1
- package/dist/{index-DqW6UiIO.cjs → index-kq_YOCp0.cjs} +32 -32
- package/dist/{index-D5iqPx4_.cjs → index-sYRfzwGi.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs → index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-GU5YecI_.js → index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DC0qx2mv.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B9TnTaRE.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js} +12 -12
- package/dist/{login-MRZ_aZ2l.cjs → login-B_Ta8W8C.cjs} +1 -1
- package/dist/{login-f0ZOWhgZ.js → login-D_UosrWe.js} +2 -2
- package/dist/{main-CD7tAcIb.js → main-CHSqRi2c.js} +7 -7
- package/dist/{main-CpGTA5Qv.cjs → main-DRtNsfjw.cjs} +1 -1
- package/dist/{menu-uQv0bEzE.js → menu-BjwI4sfO.js} +7 -2
- package/dist/{menu-PjSpUL7w.cjs → menu-CH06rBlw.cjs} +7 -7
- package/dist/{modelComp-BavIqTd8.js → modelComp-CiiFZm1t.js} +1 -1
- package/dist/{modelComp-qapurFEA.cjs → modelComp-LhGhARtD.cjs} +1 -1
- 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 +1 -1
- package/dist/index-BxNkT68g.js +0 -271
- package/dist/index-CW3K0wJl.cjs +0 -1
- package/dist/index-CaEGsvtY.cjs +0 -1
- package/dist/index-Clc0UQZs.cjs +0 -1
- package/dist/index-CrY9cebv.cjs +0 -1
- package/dist/index-DJXxlOVw.cjs +0 -1
- package/dist/index-DMxFp_J8.js +0 -301
- package/dist/index-Dz-F31F9.js +0 -3475
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("vue"),t=require("./menu-CH06rBlw.cjs"),k=require("./index-jxXiBXta.cjs"),i=require("./crypto-CRbcEKIz.cjs"),D=require("./login-B_Ta8W8C.cjs"),K=require("./modelComp-LhGhARtD.cjs"),M=require("./index-B8d1EBwW.cjs"),q=require("./cloneDeep-BShYbOkw.cjs"),T=D.useLoginState(),{superAdminInfo:x,cryptoInfo:n}=t.storeToRefs(T),B=t.useMenuState(),{activeMenuPath:b}=t.storeToRefs(B),f="123456",H=K.useModelComp(),{itemData:E}=t.storeToRefs(H),v=c.ref(0),P=c.ref([{label:"用户名称",value:"",name:"userName"}]),p=c.computed(()=>{const a=sessionStorage.getItem("isSuperAdmin");return a?JSON.parse(a):!1}),F=a=>{console.log("handleQueryChange",a)},y=c.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"重置密码",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"header",contents:[{label:"账号",prop:"account"},{label:"工号",prop:"userNumber"},{label:"用户名称",prop:"userName"},{label:"角色",prop:"userRoles",formType:"multiSelect",options:[]},{label:"所属机构",prop:"userDept",formType:"select",options:[]},{label:"密码",prop:"password",formType:"password",isTableColHidden:!0,isFormColHidden:!1},{label:"性别",prop:"gender",formType:"radio",options:[{label:"男",value:"男"},{label:"女",value:"女"}]},{label:"出生日期",prop:"birthDay",formType:"date"},{label:"联系电话",prop:"phone"},{label:"职位",prop:"post"},{label:"入职日期",prop:"entryDay",formType:"date"},{label:"签名",prop:"signature",isTableColHidden:!0,isFormColHidden:!0},{label:"头像",prop:"avatar",isTableColHidden:!0,isFormColHidden:!0},{label:"级别",prop:"layer",isTableColHidden:!0,isFormColHidden:!0},{label:"状态",prop:"status",formType:"radio",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),I=a=>{g(a.singleContent,a.buttonName,v.value)},d=c.ref(),N=a=>{console.log("onDoubleClick",a)},w=(a,s)=>{a==="重置密码"?M.ElMessageBox.confirm(`该操作将会重置【${s==null?void 0:s.account}】的密码,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{d.value={...s,password:f},g(d.value,a,v.value)}).catch(()=>{t.ElMessage.info("取消重置")}):a==="编辑"&&console.log(2345,d.value,s,p.value)},S=()=>{m(b.value).then(a=>{var r;const s=Array.isArray(a)&&(a==null?void 0:a.filter(e=>(e==null?void 0:e.account)!==x.value.account));y.value=(r=y.value)==null?void 0:r.map(e=>e.key==="tableContents"?{...e,contents:s==null?void 0:s.map(o=>{var l;return{...o,password:i.decryptData(o==null?void 0:o.password,(l=n==null?void 0:n.value)==null?void 0:l.privateKey)}})}:e)})},u=async(a,s,r)=>{var e,o;try{const l=await a(s);return((e=l==null?void 0:l.data)==null?void 0:e.code)===200?(r!=="查询"&&await T.setLogRecordAsync({type:r,data:s},b.value),l.data.result||((o=l==null?void 0:l.data)==null?void 0:o.code)===200):null}catch(l){t.ElMessage.error(l)}},g=(a,s,r)=>{var o,l;const e=q.cloneDeep(a);e!=null&&e.id&&delete e.id,i.isEncryptAvailable()&&e&&(!e.password&&p.value?e.password=i.encryptData(f,(o=n==null?void 0:n.value)==null?void 0:o.publicKey):e.password&&p.value&&(e.password=i.encryptData(e==null?void 0:e.password,(l=n==null?void 0:n.value)==null?void 0:l.publicKey))),s==="新增"?u(t.createInsofDataApi,{key:{type:"data",layer:e==null?void 0:e.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:r},value:{tableData:e}},s).then(h=>{var C;d.value={...a,newId:h,password:p.value?i.decryptData((a==null?void 0:a.password)??f,(C=n==null?void 0:n.value)==null?void 0:C.privateKey):a==null?void 0:a.password},s&&h&&t.ElMessage.success(s+"成功")}):s==="编辑"||s==="重置密码"?u(t.updateInsofDataApi,{id:a.id,key:{type:"data",layer:e==null?void 0:e.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:r},value:{tableData:e}},s).then(()=>{s==="重置密码"&&S(),s&&t.ElMessage.success(s+"成功"),k.authorizeDialog.show=!1}):s==="删除"&&u(t.deleteInsofDataApi,{id:a.id},s).then(()=>{s&&t.ElMessage.success(s+"成功")})},m=async a=>{const s=await u(t.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),r=s==null?void 0:s.map(e=>{var o,l;return{id:e.id,layer:(o=e.key)==null?void 0:o.layer,tableData:(l=e==null?void 0:e.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(e=>{var o;if(!Array.isArray(e==null?void 0:e.tableData))return{...e.tableData,layer:(o=e.key)==null?void 0:o.layer,id:e.id}})},A={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:y.value,name:""}]}]};c.watch(()=>E.value,a=>{var s;a&&(a==null?void 0:a.length)>0&&(y.value=(s=a==null?void 0:a[0])==null?void 0:s.compData)});const U=Object.freeze(Object.defineProperty({__proto__:null,changedRow:d,clickRowButton:w,getPageDataAsync:m,handleItemDataChange:I,handleQueryChange:F,handleSubmitAsync:u,loginUserIsSuper:p,onDoubleClick:N,pageData:y,queryFormData:P,refreshUserTableData:S,structureId:v,submitTableAsyncByVerify:g,tempUserPageData:A},Symbol.toStringTag,{value:"Module"}));exports.State=U;exports.getPageDataAsync=m;exports.handleSubmitAsync=u;exports.submitTableAsyncByVerify=g;exports.tempUserPageData=A;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { resolveComponent as n, createElementBlock as r, openBlock as m, createVNode as i } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-C3-tA5Oy.js";
|
|
3
|
+
import "./index-YBOakoO-.js";
|
|
4
|
+
import "./array-BiSkXjDh.js";
|
|
5
5
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-
|
|
7
|
-
import "./menu-
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./login-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js";
|
|
7
|
+
import "./menu-BjwI4sfO.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js";
|
|
9
|
+
import "./index-BEQcfNC8.js";
|
|
10
|
+
import "./login-D_UosrWe.js";
|
|
11
11
|
import "./index-BHtNKL1L.js";
|
|
12
|
-
import "./index-
|
|
12
|
+
import "./index-D0isXbYa.js";
|
|
13
13
|
const d = {
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index-3fLiW589.cjs"),y=require("./index-sYRfzwGi.cjs"),V=require("./modelComp-LhGhARtD.cjs"),g=require("./menu-CH06rBlw.cjs");require("./array-BCYeTWHp.cjs");const E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=require("./cloneDeep-BShYbOkw.cjs"),O=require("./index-C31XRLFj.cjs"),R=require("./index-BReBoqZM.cjs"),b=require("./index-B8d1EBwW.cjs"),L={class:"type-select"},U=["onClick"],z={class:"list-icon"},H={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i}=g.storeToRefs(m),C=_=>{const p=v.cloneDeep(i.value);p.push({comp:_.comp,name:_.name,compData:[]}),m.setItemData(p)};return(_,p)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B.slotContent),(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:u},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",z,[e.createVNode(s,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,U)]))),128))])}}},j=E._export_sfc(H,[["__scopeId","data-v-1f87163f"]]),A={class:"fill-content"},G={class:"operate-content"},J={class:"collapse-title-content"},K={class:"collapse-title-item"},P={key:1},Q=["onClick"],W={class:"icon-content"},X={key:0,class:"edit-content"},Y=["onClick"],Z={class:"comp-child"},ee={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i,originalData:C}=g.storeToRefs(m),_=e.ref([]);e.ref([]);const p=e.ref([]),s=e.ref([]),f=a=>{var n;let c=(n=v.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!0),t));s.value=c},u=a=>{var n;let c=(n=v.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!1),t));s.value=c,_.value=v.cloneDeep(i.value)},k=(a,c)=>{var h;let n=(h=v.cloneDeep(s.value))==null?void 0:h.map((l,d)=>(a===d&&(l.content=!1),l));s.value=n;const t=v.cloneDeep(i.value),o=t==null?void 0:t.filter((l,d)=>(d===a&&(l.name=c),l));m.setOriginalData(o),m.setItemData(o)};e.watch(()=>i.value,()=>{var a,c,n;!i.value||((a=i.value)==null?void 0:a.length)===0?_.value=[]:_.value=(c=v.cloneDeep(i.value))==null?void 0:c.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),p.value=_.value,s.value=(n=v.cloneDeep(p.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const M=a=>B.getComponent(a),T=(a,c,n)=>{var o,h;if(!a)return;let t=v.cloneDeep(i.value);t=(o=t==null?void 0:t.map((l,d)=>(d===n&&(l.compData=a),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),s.value=(h=v.cloneDeep(t))==null?void 0:h.map((l,d)=>({id:d,content:!1})),m.setOriginalData(t),m.setItemData(t)},F=a=>{b.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const c=v.cloneDeep(i.value),n=c==null?void 0:c.filter((t,o)=>o!==a);m.setOriginalData(n),m.setItemData(n),g.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(a,c)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",A,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",G,[e.createVNode(O.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,d,D,w,x,$,I,q,S;return[e.createElementVNode("div",J,[e.createElementVNode("div",K,[(l=(h=s.value)==null?void 0:h.find(r=>r.id===o))!=null&&l.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(d=s.value)==null?void 0:d.find(r=>r.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(R._sfc_main,{modelValue:t.name,"onUpdate:modelValue":r=>t.name=r,onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(x=(w=s.value)==null?void 0:w.find(r=>r.id===o))!=null&&x.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(r=>f(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Q))]),e.createElementVNode("div",W,[(I=($=s.value)==null?void 0:$.find(r=>r.id===o))!=null&&I.content?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(n,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(r=>u(o),["stop"])},null,8,["onClick"]),e.createVNode(n,{name:"Save",onClick:e.withModifiers(r=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(S=(q=s.value)==null?void 0:q.find(r=>r.id===o))!=null&&S.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(r=>F(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Y))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",Z,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=p.value)==null?void 0:h.find((d,D)=>D===o))==null?void 0:l.compData,onChange:d=>T(d,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},te=E._export_sfc(ee,[["__scopeId","data-v-27bd1564"]]),oe={key:0,class:"show-content"},ne={style:{display:"flex"}},le={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i}=g.storeToRefs(m),C=e.ref([]);e.watch(()=>i.value,()=>{var p;!i.value||((p=i.value)==null?void 0:p.length)===0?C.value=[]:C.value=v.cloneDeep(i.value)},{deep:!0,immediate:!0});const _=p=>B.getComponent(p);return(p,s)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",ne,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ce=E._export_sfc(le,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=te;exports.modelSelect=j;exports.modelShow=ce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const n=require("vue"),c=require("./menu-CH06rBlw.cjs"),u=require("./index-ClyxHDAy.cjs"),g=require("./modelComp-LhGhARtD.cjs"),D=g.useModelComp(),{itemData:m}=c.storeToRefs(D),p=n.ref(0),f=n.ref([{label:"机构名称",value:"",name:"deptName"}]),i=e=>{console.log("handleQueryChange",e)},r=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),C=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},k=(e,a)=>{console.log("onButtonClick",e,a)},A=async e=>{const a=await u.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var o;return{id:t.id,tableData:(o=t==null?void 0:t.value)==null?void 0:o.tableData}});return l==null?void 0:l.map(t=>{var o;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(o=t==null?void 0:t.tableData)==null||o.forEach((y,d)=>{s[`a${d}`]=y}),s}else return{...t.tableData,id:t.id}})},b={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:r.value,name:""}]}]};n.watch(()=>m.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(r.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:A,handleItemDataChange:C,handleQueryChange:i,onButtonClick:k,onDoubleClick:h,pageData:r,queryFormData:f,structureId:p,tempPostPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=S;exports.tempPostPageData=b;
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { u as z } from "./modelComp-CiiFZm1t.js";
|
|
2
|
+
import { p as N } from "./index-YBOakoO-.js";
|
|
3
|
+
import { c as G, b as H, d as Q, E as K, s as b, u as V, g as W } from "./menu-BjwI4sfO.js";
|
|
4
|
+
import { g as X } from "./index-C3-tA5Oy.js";
|
|
5
|
+
import { g as E, a as Y, f as Z, h as _, i as $, j as c } from "./index-BEQcfNC8.js";
|
|
6
|
+
import { ref as L, watch as M } from "vue";
|
|
7
|
+
import { v as m } from "./index-DdfwFwkR.js";
|
|
8
|
+
import { g as U } from "./index-DvydSDWz.js";
|
|
9
|
+
import { d as F } from "./crypto-BRyGpjGR.js";
|
|
10
|
+
import { u as ee } from "./login-D_UosrWe.js";
|
|
11
|
+
import { c as A } from "./cloneDeep-CxhinJk5.js";
|
|
12
|
+
const ae = ee(), { loginUserInfo: j, cryptoInfo: w } = b(ae), S = z(N), { itemData: se, curStructureCompIds: B, isSubmitCurStructure: re, isRefreshCurStructure: le } = b(S), q = V(N), { activeMenuPath: h, buttonTriggerType: te, cacheStructures: ue } = b(q), C = Y(N), { selectTitle: I } = b(C), ke = () => {
|
|
13
|
+
S.setIsEdit("edit"), S.setSubmitCurStructure(h.value !== "/平台管理/菜单管理");
|
|
14
|
+
}, Ie = () => {
|
|
15
|
+
S.setIsEdit("view"), S.setRefreshCurStructure(!0);
|
|
16
|
+
}, we = async (e) => {
|
|
17
|
+
var l;
|
|
18
|
+
if ((e == null ? void 0 : e.key) === "main" || I.value.length === 1)
|
|
19
|
+
d.value = await E(h.value, sessionStorage.getItem("systemKey")), C.setSelectIndex(""), C.setSelectMenu(""), C.setSelectTitle([]);
|
|
20
|
+
else {
|
|
21
|
+
const n = [], g = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
|
|
22
|
+
d.value = await E(h.value, sessionStorage.getItem("systemKey"), g);
|
|
23
|
+
let y = -1;
|
|
24
|
+
(l = I.value) == null || l.forEach((u, t) => {
|
|
25
|
+
(u == null ? void 0 : u.key) === (e == null ? void 0 : e.key) && (y = t), (y === -1 || y >= t) && n.push(u);
|
|
26
|
+
}), C.setSelectTitle(n), g !== "" ? C.setSelectMenu(e == null ? void 0 : e.key) : (C.setSelectIndex(""), C.setSelectMenu(""));
|
|
27
|
+
}
|
|
28
|
+
S.setItemData(d.value), S.setOriginalData(d.value);
|
|
29
|
+
}, p = async (e, l, n, g = "contentConfig") => {
|
|
30
|
+
var y, u, t;
|
|
31
|
+
try {
|
|
32
|
+
let i, o;
|
|
33
|
+
l === "create" ? (i = {
|
|
34
|
+
key: {
|
|
35
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
36
|
+
pageKey: n,
|
|
37
|
+
type: "structure",
|
|
38
|
+
structureBelong: g,
|
|
39
|
+
parentTable: "",
|
|
40
|
+
version: 1
|
|
41
|
+
},
|
|
42
|
+
value: {
|
|
43
|
+
pageData: {
|
|
44
|
+
...e,
|
|
45
|
+
compData: (y = e == null ? void 0 : e.compData) == null ? void 0 : y.filter((a) => (a == null ? void 0 : a.key) !== "tableContents")
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, o = G) : l === "update" ? (i = {
|
|
49
|
+
id: e == null ? void 0 : e.id,
|
|
50
|
+
key: {
|
|
51
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
52
|
+
pageKey: n,
|
|
53
|
+
type: "structure",
|
|
54
|
+
structureBelong: g,
|
|
55
|
+
parentTable: "",
|
|
56
|
+
version: 1
|
|
57
|
+
},
|
|
58
|
+
value: {
|
|
59
|
+
pageData: {
|
|
60
|
+
...e,
|
|
61
|
+
compData: (u = e == null ? void 0 : e.compData) == null ? void 0 : u.filter((a) => (a == null ? void 0 : a.key) !== "tableContents")
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, o = H) : l === "delete" && (i = {
|
|
65
|
+
id: e,
|
|
66
|
+
key: {
|
|
67
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
68
|
+
pageKey: n,
|
|
69
|
+
type: "structure",
|
|
70
|
+
structureBelong: g,
|
|
71
|
+
parentTable: "",
|
|
72
|
+
version: 1
|
|
73
|
+
}
|
|
74
|
+
}, o = Q);
|
|
75
|
+
const f = await o(i);
|
|
76
|
+
if (((t = f == null ? void 0 : f.data) == null ? void 0 : t.code) === 200)
|
|
77
|
+
return f.data.result;
|
|
78
|
+
throw K.error("保存响应失败"), new Error("保存响应失败");
|
|
79
|
+
} catch {
|
|
80
|
+
K.error("保存响应失败");
|
|
81
|
+
}
|
|
82
|
+
}, P = L([]), xe = async (e) => {
|
|
83
|
+
var f;
|
|
84
|
+
const l = JSON.parse(A(JSON.stringify(se.value)));
|
|
85
|
+
if (!re.value)
|
|
86
|
+
return P.value.push({
|
|
87
|
+
key: te.value,
|
|
88
|
+
data: l
|
|
89
|
+
}), K.success("已暂存");
|
|
90
|
+
const n = l == null ? void 0 : l.map((a) => a.id), g = n.filter((a) => {
|
|
91
|
+
var r;
|
|
92
|
+
return !((r = B.value) != null && r.includes(a));
|
|
93
|
+
}), y = (f = B.value) == null ? void 0 : f.filter((a) => !n.includes(a)), u = [...g, ...y], t = l == null ? void 0 : l.filter((a) => !a.id), i = l == null ? void 0 : l.filter((a) => a.id);
|
|
94
|
+
let o = [];
|
|
95
|
+
u && (u == null ? void 0 : u.length) > 0 && (u == null || u.forEach((a) => {
|
|
96
|
+
a && o.push(p(a, "delete", e));
|
|
97
|
+
})), t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((a) => {
|
|
98
|
+
a && o.push(p(a, "create", e));
|
|
99
|
+
})), i && (i == null ? void 0 : i.length) > 0 && (i == null || i.forEach((a) => {
|
|
100
|
+
n != null && n.includes(a.id) && (console.log("clickSavePage5", "包含"), a && o.push(p(a, "update", e)));
|
|
101
|
+
})), Promise.all(o).then(() => {
|
|
102
|
+
K.success("保存成功"), S.setRefreshCurStructure(!0);
|
|
103
|
+
}).catch((a) => {
|
|
104
|
+
K.success(a);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
M(() => {
|
|
108
|
+
var e;
|
|
109
|
+
return (e = P.value) == null ? void 0 : e.length;
|
|
110
|
+
}, (e) => {
|
|
111
|
+
e && q.setCacheStructures(P.value);
|
|
112
|
+
}, { immediate: !0 });
|
|
113
|
+
M(() => {
|
|
114
|
+
var e;
|
|
115
|
+
return (e = ue.value) == null ? void 0 : e.length;
|
|
116
|
+
}, (e) => {
|
|
117
|
+
e === 0 && P.value.splice(0);
|
|
118
|
+
}, { immediate: !0 });
|
|
119
|
+
const Te = (e) => X(e), d = L([]), Ke = async (e, l = "data") => {
|
|
120
|
+
var g, y, u, t, i, o;
|
|
121
|
+
if ((e == null ? void 0 : e.type) === "delete")
|
|
122
|
+
await _((g = e == null ? void 0 : e.singleContent) == null ? void 0 : g.id);
|
|
123
|
+
else if ((e == null ? void 0 : e.buttonName) === "新增") {
|
|
124
|
+
let f = {};
|
|
125
|
+
for (let a in e == null ? void 0 : e.singleContent)
|
|
126
|
+
a !== "id" && a !== "index" && (f[a] = e == null ? void 0 : e.singleContent[a]);
|
|
127
|
+
await $(
|
|
128
|
+
l,
|
|
129
|
+
h.value,
|
|
130
|
+
e == null ? void 0 : e.index,
|
|
131
|
+
sessionStorage.getItem("systemKey"),
|
|
132
|
+
Object.values(f),
|
|
133
|
+
e == null ? void 0 : e.column
|
|
134
|
+
);
|
|
135
|
+
} else if ((e == null ? void 0 : e.buttonName) === "编辑") {
|
|
136
|
+
let f = {}, a = (y = e == null ? void 0 : e.singleContent) == null ? void 0 : y.id;
|
|
137
|
+
for (let r in e == null ? void 0 : e.singleContent)
|
|
138
|
+
r !== "id" && r !== "index" && (f[r] = e == null ? void 0 : e.singleContent[r]);
|
|
139
|
+
await c(
|
|
140
|
+
l,
|
|
141
|
+
h.value,
|
|
142
|
+
e == null ? void 0 : e.index,
|
|
143
|
+
a,
|
|
144
|
+
sessionStorage.getItem("systemKey"),
|
|
145
|
+
Object.values(f),
|
|
146
|
+
e == null ? void 0 : e.column
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
let n = (t = (u = I.value) == null ? void 0 : u[I.value.length - 1]) != null && t.key ? parseInt((o = (i = I.value) == null ? void 0 : i[I.value.length - 1]) == null ? void 0 : o.key) : "";
|
|
150
|
+
d.value = await E(h.value, sessionStorage.getItem("systemKey"), n), S.setItemData(d.value), S.setOriginalData(d.value);
|
|
151
|
+
}, ie = async (e) => {
|
|
152
|
+
var n, g, y, u, t;
|
|
153
|
+
const l = await W({
|
|
154
|
+
id: e
|
|
155
|
+
});
|
|
156
|
+
return (t = (u = (y = (g = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : g[0]) == null ? void 0 : y.value) == null ? void 0 : u.pageData) == null ? void 0 : t.name;
|
|
157
|
+
}, Ee = async (e) => {
|
|
158
|
+
var g, y;
|
|
159
|
+
const l = await ie(e == null ? void 0 : e.index);
|
|
160
|
+
await Z(e == null ? void 0 : e.index, {
|
|
161
|
+
comp: "Form",
|
|
162
|
+
compData: (g = A(e == null ? void 0 : e.contents)) == null ? void 0 : g.filter((u) => u.contents),
|
|
163
|
+
name: l
|
|
164
|
+
});
|
|
165
|
+
const n = (y = A(d.value)) == null ? void 0 : y.map((u) => ((u == null ? void 0 : u.id) === (e == null ? void 0 : e.index) && (u.compData = e == null ? void 0 : e.contents), u));
|
|
166
|
+
S.setItemData(n), S.setOriginalData(n);
|
|
167
|
+
}, Pe = (e) => {
|
|
168
|
+
d.value = e, S.setItemData(d.value), S.setOriginalData(d.value);
|
|
169
|
+
}, J = (e) => {
|
|
170
|
+
var l, n, g;
|
|
171
|
+
return ((n = (l = j.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? !0 : ((g = j.value) == null ? void 0 : g.account) === (e == null ? void 0 : e.account);
|
|
172
|
+
}, R = async (e, l, n) => {
|
|
173
|
+
const g = U("/系统管理/角色管理"), y = U("/系统管理/部门管理");
|
|
174
|
+
return await Promise.all([g, y]).then((t) => {
|
|
175
|
+
var f, a;
|
|
176
|
+
const i = (f = t == null ? void 0 : t[0]) == null ? void 0 : f.map((r) => ({
|
|
177
|
+
label: r == null ? void 0 : r.roleName,
|
|
178
|
+
value: r == null ? void 0 : r.roleName
|
|
179
|
+
})), o = (a = t == null ? void 0 : t[1]) == null ? void 0 : a.map((r) => ({
|
|
180
|
+
label: r == null ? void 0 : r.deptName,
|
|
181
|
+
value: r == null ? void 0 : r.deptName
|
|
182
|
+
}));
|
|
183
|
+
return n ? e == null ? void 0 : e.map((r) => {
|
|
184
|
+
var k;
|
|
185
|
+
return {
|
|
186
|
+
...r,
|
|
187
|
+
compData: (k = r == null ? void 0 : r.compData) == null ? void 0 : k.map((s) => {
|
|
188
|
+
var x, T;
|
|
189
|
+
return (s == null ? void 0 : s.key) === "header" ? {
|
|
190
|
+
...s,
|
|
191
|
+
contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.map((D) => D.prop === "userDept" ? {
|
|
192
|
+
...D,
|
|
193
|
+
options: o
|
|
194
|
+
} : D.prop === "userRoles" ? {
|
|
195
|
+
...D,
|
|
196
|
+
options: i
|
|
197
|
+
} : D)
|
|
198
|
+
} : (s == null ? void 0 : s.key) === "tableContents" ? {
|
|
199
|
+
...s,
|
|
200
|
+
contents: (T = s == null ? void 0 : s.contents) == null ? void 0 : T.map((D) => {
|
|
201
|
+
var v;
|
|
202
|
+
return {
|
|
203
|
+
...D,
|
|
204
|
+
password: J(D) ? F(D == null ? void 0 : D.password, (v = w == null ? void 0 : w.value) == null ? void 0 : v.privateKey) : D == null ? void 0 : D.password
|
|
205
|
+
};
|
|
206
|
+
})
|
|
207
|
+
} : s;
|
|
208
|
+
})
|
|
209
|
+
};
|
|
210
|
+
}) : e == null ? void 0 : e.map((r) => {
|
|
211
|
+
var k;
|
|
212
|
+
return {
|
|
213
|
+
...r,
|
|
214
|
+
compData: (k = r == null ? void 0 : r.compData) == null ? void 0 : k.map((s) => {
|
|
215
|
+
var x, T, D;
|
|
216
|
+
return (s == null ? void 0 : s.key) === "rowButton" || (s == null ? void 0 : s.key) === "extraButton" ? {
|
|
217
|
+
...s,
|
|
218
|
+
contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.filter((v) => l == null ? void 0 : l.includes(v == null ? void 0 : v.label))
|
|
219
|
+
} : (s == null ? void 0 : s.key) === "header" ? {
|
|
220
|
+
...s,
|
|
221
|
+
contents: (T = s == null ? void 0 : s.contents) == null ? void 0 : T.map((v) => v.prop === "userDept" ? {
|
|
222
|
+
...v,
|
|
223
|
+
options: o
|
|
224
|
+
} : v.prop === "userRoles" ? {
|
|
225
|
+
...v,
|
|
226
|
+
options: i
|
|
227
|
+
} : v)
|
|
228
|
+
} : (s == null ? void 0 : s.key) === "tableContents" ? {
|
|
229
|
+
...s,
|
|
230
|
+
contents: (D = s == null ? void 0 : s.contents) == null ? void 0 : D.map((v) => {
|
|
231
|
+
var O;
|
|
232
|
+
return {
|
|
233
|
+
...v,
|
|
234
|
+
password: J(v) ? F(v == null ? void 0 : v.password, (O = w == null ? void 0 : w.value) == null ? void 0 : O.privateKey) : v == null ? void 0 : v.password
|
|
235
|
+
};
|
|
236
|
+
})
|
|
237
|
+
} : s;
|
|
238
|
+
})
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
M(
|
|
244
|
+
() => [h.value, le.value],
|
|
245
|
+
async (e) => {
|
|
246
|
+
var g;
|
|
247
|
+
const l = e == null ? void 0 : e[0], n = e == null ? void 0 : e[1];
|
|
248
|
+
if (d.value = [], l || n) {
|
|
249
|
+
m(), sessionStorage.setItem("pageKey", h.value);
|
|
250
|
+
const y = await E(l, sessionStorage.getItem("systemKey"), "", h.value);
|
|
251
|
+
S.setExtraContents([]);
|
|
252
|
+
const u = sessionStorage.getItem("authority"), t = JSON.parse(u || "");
|
|
253
|
+
if (Array.isArray(t)) {
|
|
254
|
+
const i = Array.isArray(t) && (t == null ? void 0 : t.filter((f) => f == null ? void 0 : f.includes(l))), o = i == null ? void 0 : i.map((f) => {
|
|
255
|
+
var a;
|
|
256
|
+
return ((a = f == null ? void 0 : f.split("/")) == null ? void 0 : a.pop()) || "";
|
|
257
|
+
});
|
|
258
|
+
d.value = l === "/系统管理/用户管理" ? await R(y, o, !1) : y == null ? void 0 : y.map((f) => {
|
|
259
|
+
var a;
|
|
260
|
+
return {
|
|
261
|
+
...f,
|
|
262
|
+
compData: (a = f == null ? void 0 : f.compData) == null ? void 0 : a.map((r) => {
|
|
263
|
+
var k;
|
|
264
|
+
return (r == null ? void 0 : r.key) === "rowButton" || (r == null ? void 0 : r.key) === "extraButton" ? {
|
|
265
|
+
...r,
|
|
266
|
+
contents: (k = r == null ? void 0 : r.contents) == null ? void 0 : k.filter((s) => o == null ? void 0 : o.includes(s == null ? void 0 : s.label))
|
|
267
|
+
} : r;
|
|
268
|
+
})
|
|
269
|
+
};
|
|
270
|
+
});
|
|
271
|
+
} else typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? d.value = l === "/系统管理/用户管理" ? await R(y, null, !0) : y : d.value = [];
|
|
272
|
+
C.setSelectTitle([]), C.setSelectIndex(""), C.setSelectMenu(""), S.setItemData(d.value), S.setOriginalData(d.value), S.setCurStructureCompIds((g = d.value) == null ? void 0 : g.map((i) => i == null ? void 0 : i.id)), S.setRefreshCurStructure(!1), I.value = h.value.split("/").filter((i) => i !== "").map((i) => ({ value: i.trim() }));
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
immediate: !0
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
export {
|
|
280
|
+
we as a,
|
|
281
|
+
ke as b,
|
|
282
|
+
xe as c,
|
|
283
|
+
Pe as d,
|
|
284
|
+
Ee as e,
|
|
285
|
+
Ke as f,
|
|
286
|
+
Te as g,
|
|
287
|
+
p as h,
|
|
288
|
+
Ie as o,
|
|
289
|
+
d as s
|
|
290
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, onMounted as V, resolveComponent as l, createElementBlock as m, openBlock as o, Fragment as _, renderList as M, createBlock as r, createCommentVNode as I, withCtx as s, createVNode as b, createSlots as g, renderSlot as u, mergeProps as O, computed as S } from "vue";
|
|
2
|
-
import { u as q, s as E } from "./menu-
|
|
2
|
+
import { u as q, s as E } from "./menu-BjwI4sfO.js";
|
|
3
3
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const R = /* @__PURE__ */ w({
|
|
5
5
|
__name: "menuItem",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as t, reactive as o, onMounted as r, createElementBlock as n, openBlock as s, createVNode as a } from "vue";
|
|
2
|
-
import { a as c } from "./index-
|
|
3
|
-
import { s as m } from "./index-
|
|
4
|
-
import { S as i } from "./index-
|
|
5
|
-
import { g as l } from "./index
|
|
2
|
+
import { a as c } from "./index-CWpNIgx-.js";
|
|
3
|
+
import { s as m } from "./index-BEQcfNC8.js";
|
|
4
|
+
import { S as i } from "./index-BG7p7J6-.js";
|
|
5
|
+
import { g as l } from "./index--CBmQToI.js";
|
|
6
6
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const p = { class: "role-wrapper" }, _ = /* @__PURE__ */ t({
|
|
8
8
|
__name: "index",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, reactive as v, onMounted as V, watch as S, nextTick as M, resolveComponent as c, createElementBlock as _, openBlock as h, Fragment as f, createElementVNode as i, createVNode as l, withCtx as n, toDisplayString as p, renderList as z, createBlock as T, createTextVNode as g } from "vue";
|
|
2
|
-
import { a as A } from "./index-
|
|
3
|
-
import { s as N } from "./index-
|
|
4
|
-
import { S as k } from "./index
|
|
5
|
-
import { u as R, s as E } from "./menu-
|
|
6
|
-
import { c as F } from "./cloneDeep-
|
|
2
|
+
import { a as A } from "./index-CWpNIgx-.js";
|
|
3
|
+
import { s as N } from "./index-BEQcfNC8.js";
|
|
4
|
+
import { S as k } from "./index--CBmQToI.js";
|
|
5
|
+
import { u as R, s as E } from "./menu-BjwI4sfO.js";
|
|
6
|
+
import { c as F } from "./cloneDeep-CxhinJk5.js";
|
|
7
7
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const U = { class: "role-wrapper" }, O = { class: "role-dialog-header" }, q = { class: "node-text" }, L = { class: "dialog-footer" }, P = /* @__PURE__ */ B({
|
|
9
9
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as S, u as P, E as v } from "./menu-
|
|
2
|
-
import { p as K } from "./index-
|
|
3
|
-
import { u as k } from "./login-
|
|
1
|
+
import { g as S, u as P, E as v } from "./menu-BjwI4sfO.js";
|
|
2
|
+
import { p as K } from "./index-YBOakoO-.js";
|
|
3
|
+
import { u as k } from "./login-D_UosrWe.js";
|
|
4
4
|
import { ref as h } from "vue";
|
|
5
5
|
const A = P(K), E = k(K), x = h(!1), D = h(!1), q = async () => {
|
|
6
6
|
const I = S({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-CH06rBlw.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;
|
|
@@ -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 { e as Y, b as ee, c as te } from "./index-
|
|
3
|
-
import { u as P } from "./login-
|
|
4
|
-
import { s as E, g as V, u as ae, b as se, E as B } from "./menu-
|
|
2
|
+
import { e as Y, b as ee, c as te } from "./index-5G9gxVsG.js";
|
|
3
|
+
import { u as P } from "./login-D_UosrWe.js";
|
|
4
|
+
import { s as E, g as V, u as ae, b as se, E as B } from "./menu-BjwI4sfO.js";
|
|
5
5
|
import { e as re, d as oe } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { a as ne, s as le } from "./index-
|
|
7
|
-
import { a as ie, i as ue } from "./index-
|
|
6
|
+
import { a as ne, s as le } from "./index-BEPkDcRB.js";
|
|
7
|
+
import { a as ie, i as ue } from "./index-CWpNIgx-.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), A = c(0);
|
|
10
10
|
var K, R, N, x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as l, watch as b } from "vue";
|
|
2
|
-
import { g as y, s as m } from "./menu-
|
|
3
|
-
import { s as d, h as g } from "./index-
|
|
4
|
-
import { u as D } from "./modelComp-
|
|
2
|
+
import { g as y, s as m } from "./menu-BjwI4sfO.js";
|
|
3
|
+
import { s as d, h as g } from "./index-DvydSDWz.js";
|
|
4
|
+
import { u as D } from "./modelComp-CiiFZm1t.js";
|
|
5
5
|
const f = D(), { itemData: h } = m(f), c = l(0), k = l([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as b, computed as K, watch as D } from "vue";
|
|
2
|
-
import { E as n, s as
|
|
3
|
-
import { a as F } from "./index
|
|
2
|
+
import { E as n, s as f, c as H, b as x, d as B, g as M, u as E } from "./menu-BjwI4sfO.js";
|
|
3
|
+
import { a as F } from "./index--CBmQToI.js";
|
|
4
4
|
import { d as S, i as I, e as C } from "./crypto-BRyGpjGR.js";
|
|
5
|
-
import { u as N } from "./login-
|
|
6
|
-
import { u as P } from "./modelComp-
|
|
7
|
-
import { E as w } from "./index-
|
|
8
|
-
import { c as _ } from "./cloneDeep-
|
|
9
|
-
const T = N(), { superAdminInfo: O, cryptoInfo: r } =
|
|
5
|
+
import { u as N } from "./login-D_UosrWe.js";
|
|
6
|
+
import { u as P } from "./modelComp-CiiFZm1t.js";
|
|
7
|
+
import { E as w } from "./index-B0SEIfhd.js";
|
|
8
|
+
import { c as _ } from "./cloneDeep-CxhinJk5.js";
|
|
9
|
+
const T = N(), { superAdminInfo: O, cryptoInfo: r } = f(T), U = E(), { activeMenuPath: d } = f(U), y = "123456", j = P(), { itemData: z } = f(j), g = b(0), L = b([
|
|
10
10
|
{
|
|
11
11
|
label: "用户名称",
|
|
12
12
|
value: "",
|
|
@@ -156,7 +156,7 @@ const T = N(), { superAdminInfo: O, cryptoInfo: r } = g(T), U = E(), { activeMen
|
|
|
156
156
|
contents: []
|
|
157
157
|
}
|
|
158
158
|
]), q = (a) => {
|
|
159
|
-
|
|
159
|
+
m(a.singleContent, a.buttonName, g.value);
|
|
160
160
|
}, c = b(), G = (a) => {
|
|
161
161
|
console.log("onDoubleClick", a);
|
|
162
162
|
}, J = (a, s) => {
|
|
@@ -172,7 +172,7 @@ const T = N(), { superAdminInfo: O, cryptoInfo: r } = g(T), U = E(), { activeMen
|
|
|
172
172
|
c.value = {
|
|
173
173
|
...s,
|
|
174
174
|
password: y
|
|
175
|
-
}, m(c.value, a,
|
|
175
|
+
}, m(c.value, a, g.value);
|
|
176
176
|
}).catch(() => {
|
|
177
177
|
n.info("取消重置");
|
|
178
178
|
}) : a === "编辑" && console.log(2345, c.value, s, u.value);
|
|
@@ -301,7 +301,7 @@ const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
301
301
|
pageData: i,
|
|
302
302
|
queryFormData: L,
|
|
303
303
|
refreshUserTableData: A,
|
|
304
|
-
structureId:
|
|
304
|
+
structureId: g,
|
|
305
305
|
submitTableAsyncByVerify: m,
|
|
306
306
|
tempUserPageData: V
|
|
307
307
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BReBoqZM.cjs"),a=require("./index-kq_YOCp0.cjs"),r=require("./index-BRYyDz7j.cjs"),o=require("./index-jxXiBXta.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-ff9d10a0"]]);exports.default=u;
|