ss-component-new 1.1.359 → 1.1.360
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-BRrwaO64.cjs → array-LHgBaGg_.cjs} +1 -1
- package/dist/{array-DYrXJs6n.js → array-ZZeh1t1h.js} +2 -2
- package/dist/{cloneDeep-CLVstbxF.cjs → cloneDeep-D77rQx41.cjs} +1 -1
- package/dist/{cloneDeep-tSqgP7BF.js → cloneDeep-xWafgmVp.js} +1 -1
- package/dist/icons/svg/App.svg +1 -0
- package/dist/{index-B_maxN3w.js → index-4fzQ_d8D.js} +1 -1
- package/dist/{index-BWltw-iM.cjs → index-6cWzzfDI.cjs} +1 -1
- package/dist/{index-Scz4Mmm-.js → index-8A963mBh.js} +1220 -1216
- package/dist/{index-DNypWYZE.js → index-B2z4g0c-.js} +3 -3
- package/dist/{index-2BBHy4Mn.cjs → index-BDv1HVDr.cjs} +1 -1
- package/dist/{index-DXFnwn1i.js → index-BJC1T2AD.js} +6 -6
- package/dist/{index-CG8GR3dU.js → index-BKDw9_Wq.js} +1 -1
- package/dist/{index-BoB5luPj.js → index-BTDs7Yfm.js} +8 -8
- package/dist/{index-Cx7PxJ0S.cjs → index-BZzBPKAl.cjs} +1 -1
- package/dist/{index-BZSsGc-C.cjs → index-B_4LqjOb.cjs} +1 -1
- package/dist/{index-Bz2HvVyA.js → index-B_oN1nXx.js} +3 -3
- package/dist/{index-DQoTifY6.cjs → index-BbdlWs3o.cjs} +1 -1
- package/dist/{index-DKksBYJL.js → index-BdjAwe-e.js} +4 -4
- package/dist/{index-s3A5E3Zf.js → index-Bi2IywMv.js} +4 -4
- package/dist/{index-v4QKXA07.cjs → index-BjUrV1Fb.cjs} +1 -1
- package/dist/{index-D5ZhpyoM.js → index-BnhX8Y7W.js} +45 -45
- package/dist/{index-zHf42UyF.js → index-BqhTuMnB.js} +7 -7
- package/dist/{index-B_7ssqBI.cjs → index-BsMkAmAJ.cjs} +1 -1
- package/dist/{index-Dz4M28qR.js → index-CC2_NFdU.js} +29 -29
- package/dist/{index-DHxTX-Pk.js → index-CE6VSZgb.js} +3 -3
- package/dist/{index-B-oFuaaV.cjs → index-CFM_0OMh.cjs} +1 -1
- package/dist/{index-BpftMPyV.cjs → index-CLp2pXV9.cjs} +1 -1
- package/dist/{index-C-v9G19g.cjs → index-CMhYbhDx.cjs} +1 -1
- package/dist/{index-9yc_8v1i.cjs → index-CNHxOgGE.cjs} +1 -1
- package/dist/{index-D15bjZMF.cjs → index-COYL8t5B.cjs} +1 -1
- package/dist/{index-Bpj6BCo7.cjs → index-CSSBb7Z9.cjs} +1 -1
- package/dist/{index-XTFSjGlm.cjs → index-CVtzsdYf.cjs} +1 -1
- package/dist/{index-dcyEUZDj.cjs → index-CYXXFtjv.cjs} +1 -1
- package/dist/index-CdVfaMwz.cjs +9 -0
- package/dist/{index-IxPpG2yE.cjs → index-CmJ-zN3V.cjs} +1 -1
- package/dist/{index-BCiCblVa.cjs → index-Cq_T89gc.cjs} +1 -1
- package/dist/index-CueAsGRu.js +2385 -0
- package/dist/{index-BOQS50NF.cjs → index-D4tSnGvW.cjs} +1 -1
- package/dist/{index-Dzcb_wbh.cjs → index-DGxD7hsO.cjs} +1 -1
- package/dist/{index-Cq_fZN9t.js → index-DM1-EAWE.js} +4 -4
- package/dist/{index-D6b_0I9Z.js → index-DM4vldHo.js} +6 -6
- package/dist/{index-orEyQY1i.js → index-DMpNtca6.js} +19 -19
- package/dist/{index-XnfQuibQ.cjs → index-DVTizXRo.cjs} +1 -1
- package/dist/index-DXE-MtNy.cjs +1 -0
- package/dist/{index-DWfSNwQt.cjs → index-Djy3YkbX.cjs} +1 -1
- package/dist/{index-CTEfvZFk.js → index-Dx7rBNYb.js} +1 -1
- package/dist/{index-B4ElMIxk.cjs → index-Hbt_Bz7k.cjs} +1 -1
- package/dist/{index-BBwQyRfJ.js → index-JX1X-ot2.js} +1 -1
- package/dist/{index-Uxi3tCLK.cjs → index-KRcwPuDy.cjs} +1 -1
- package/dist/{index-BxIH9V_u.js → index-PQgmxhQN.js} +4 -4
- package/dist/{index-BicDjPxi.js → index-Pc39bDKn.js} +8 -8
- package/dist/{index-Bc35r-nQ.cjs → index-ROl9KgW0.cjs} +1 -1
- package/dist/{index-fy-XcUHi.js → index-TPK137VC.js} +5 -5
- package/dist/{index-BLHqSKwJ.js → index-Y2OxVWr-.js} +72 -73
- package/dist/{index-BZ-uRU65.js → index-Yp3IhNxQ.js} +1 -1
- package/dist/{index-NvmRxkzn.js → index-abNLH1Oh.js} +3 -3
- package/dist/{index-Csxt_wD_.js → index-jKNX_OOX.js} +7 -7
- package/dist/{index-Bekh_lDp.js → index-l7EFQ_9H.js} +5 -5
- package/dist/{index-DhyD57ZG.cjs → index-qCWKGZAW.cjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-D2FUOhXu.js → index.vue_vue_type_script_setup_true_lang-BCZs8vl7.js} +16 -16
- package/dist/{index.vue_vue_type_script_setup_true_lang-5xIUhDw1.cjs → index.vue_vue_type_script_setup_true_lang-CLHQZzPT.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_97daf670_lang-5AfJF_5k.js → index.vue_vue_type_style_index_0_scoped_97daf670_lang-BRqLAoKS.js} +745 -743
- package/dist/index.vue_vue_type_style_index_0_scoped_97daf670_lang-DWDI9iJi.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D9JiH0_e.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DUcvEpSv.js +427 -0
- package/dist/{login-Bx4L7EXt.js → login-BUABpM2V.js} +2 -2
- package/dist/{login-A70IVRnm.cjs → login-DOsXdD3r.cjs} +1 -1
- package/dist/{main-K1dsZ3MJ.cjs → main-B4LoC5_c.cjs} +1 -1
- package/dist/{main-Cui2vqfq.js → main-Cw5lrr9S.js} +7 -7
- package/dist/{menu-C9nHEqU7.cjs → menu-BeJTeYpw.cjs} +1 -1
- package/dist/{menu-B7dIEpcS.js → menu-C--raH72.js} +91 -91
- 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/public/icons/svg/App.svg +1 -0
- package/dist/index-DhIzD8d3.cjs +0 -9
- package/dist/index-DogseLGG.js +0 -2294
- package/dist/index-jYEXIOau.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_97daf670_lang-hIwYBTKX.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-CppTVYb_.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D5js0ZdY.js +0 -374
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as n, watch as b } from "vue";
|
|
2
|
-
import { g as y, s as d } from "./menu-
|
|
3
|
-
import { s as g, h as m } from "./index-
|
|
4
|
-
import { u as D } from "./index-
|
|
2
|
+
import { g as y, s as d } from "./menu-C--raH72.js";
|
|
3
|
+
import { s as g, h as m } from "./index-DM4vldHo.js";
|
|
4
|
+
import { u as D } from "./index-DMpNtca6.js";
|
|
5
5
|
const f = D(), { itemData: i } = d(f), c = n(0), h = n([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const n=require("vue"),c=require("./menu-BeJTeYpw.cjs"),u=require("./index-CFM_0OMh.cjs"),g=require("./index-CVtzsdYf.cjs"),D=g.useModelComp(),{itemData:f}=c.storeToRefs(D),p=n.ref(0),m=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:[]}]),h=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},k=e=>{console.log("onDoubleClick",e)},C=(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(()=>f.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:h,handleQueryChange:i,onButtonClick:C,onDoubleClick:k,pageData:r,queryFormData:m,structureId:p,tempPostPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=S;exports.tempPostPageData=b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as n, reactive as r, onMounted as s, createElementBlock as c, openBlock as i, createVNode as t } from "vue";
|
|
2
|
-
import { b as m } from "./index-
|
|
3
|
-
import { K as l } from "./index-
|
|
4
|
-
import { S as u } from "./index-
|
|
5
|
-
import { u as d, s as p } from "./menu-
|
|
6
|
-
import { u as f } from "./login-
|
|
7
|
-
import { g } from "./index-
|
|
2
|
+
import { b as m } from "./index-8A963mBh.js";
|
|
3
|
+
import { K as l } from "./index-DMpNtca6.js";
|
|
4
|
+
import { S as u } from "./index-DM4vldHo.js";
|
|
5
|
+
import { u as d, s as p } from "./menu-C--raH72.js";
|
|
6
|
+
import { u as f } from "./login-BUABpM2V.js";
|
|
7
|
+
import { g } from "./index-PQgmxhQN.js";
|
|
8
8
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const _ = { class: "role-wrapper" }, C = /* @__PURE__ */ n({
|
|
10
10
|
__name: "index",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as h } from "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-
|
|
1
|
+
import { _ as h } from "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DUcvEpSv.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 k, renderList as g, createBlock as f, resolveDynamicComponent as _ } from "vue";
|
|
3
3
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const D = { class: "menu-operate-icon" }, v = { class: "module-dialog-content" };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { onMounted as m, resolveComponent as u, createElementBlock as l, openBlock as r, createVNode as f } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-jKNX_OOX.js";
|
|
3
|
+
import "./index-JX1X-ot2.js";
|
|
4
|
+
import "./array-ZZeh1t1h.js";
|
|
5
5
|
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./login-Bx4L7EXt.js";
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DUcvEpSv.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_97daf670_lang-BRqLAoKS.js";
|
|
8
|
+
import "./login-BUABpM2V.js";
|
|
9
|
+
import "./menu-C--raH72.js";
|
|
11
10
|
import "./index-BHtNKL1L.js";
|
|
11
|
+
import "./index-DMpNtca6.js";
|
|
12
12
|
const C = {
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-CLHQZzPT.cjs"),k=require("./index-ROl9KgW0.cjs"),x=require("./menu-BeJTeYpw.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CdVfaMwz.cjs"),B=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:y}){const u=i,c=y,h=e.computed(()=>"http://139.196.154.85:20013"),p=e.ref(""),d=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const w=async()=>{if(!(u!=null&&u.disabled))try{const o=await k.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,l;try{const r=await k.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},b=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:_.value,onClickAvatar:w,onSubmitImage:S,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),E=C._export_sfc(V,[["__scopeId","data-v-bcb7a17f"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:y}){const u=i,c=e.ref({}),h=e.ref([]),p=y,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},_=()=>{c.value.dialogShow=!1,p("beforeDestroy")},w=e.computed(()=>"http://139.196.154.85:20013"),S=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},b=async t=>{var n,l,r;try{const s=await k.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",w.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=S(t);n.append("file",l,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:c.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,id:"themeButton",disabled:a.disabled,onClick:q=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),T=C._export_sfc(U,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=E;exports.ssSignature=T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-D77rQx41.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as b, getCurrentInstance as qe, inject as ve, unref as u, ref as A, onMounted as ie, watch as W, toRef as Ke, onUnmounted as Vn, shallowRef as Ve, nextTick as V, defineComponent as Z, useAttrs as _n, useSlots as un, createElementBlock as F, openBlock as E, normalizeStyle as Ye, normalizeClass as w, createCommentVNode as k, Fragment as _e, createElementVNode as P, renderSlot as Y, createBlock as M, withCtx as L, resolveDynamicComponent as K, mergeProps as ut, withModifiers as ke, createVNode as oe, toDisplayString as J, onBeforeUnmount as xe, provide as cn, Text as Dn, reactive as dn, h as Un, watchEffect as Kn, isRef as Yn, onScopeDispose as Wn, markRaw as ct, toRefs as Gn, resolveComponent as Ce, Transition as qn, withDirectives as tt, withKeys as Re, createTextVNode as nt, vShow as ot, isVNode as fn, render as vn } from "vue";
|
|
2
|
-
import { S as Ft, i as pn,
|
|
2
|
+
import { S as Ft, i as pn, c as bt, t as hn, d as Pt, f as Xn, g as se, h as Ht, j as Xe, k as de, m as ye, n as We, o as gn, p as fe, q as jn, v as Jn, w as Zn, x as Qn, y as Te, z as Ie, A as Me, _ as Be, B as pe, V as eo, C as to, D as no, F as oo, G as ae, N as De, H as ao, I as Ge, J as mn, K as yt, L as ro, M as dt, O as so, P as $t, Q as io, R as zt, T as lo, U as uo, W as co, X as fo, Y as vo, Z as po, $ as Vt, a0 as _t, a1 as ho } from "./index-Y2OxVWr-.js";
|
|
3
3
|
import { m as go } from "./typescript-BpuhIBuJ.js";
|
|
4
|
-
import { d as Dt, i as bn, a as mo, b as bo, e as yn, f as yo } from "./cloneDeep-
|
|
5
|
-
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { d as Dt, i as bn, a as mo, b as bo, e as yn, f as yo } from "./cloneDeep-xWafgmVp.js";
|
|
5
|
+
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-BCZs8vl7.js";
|
|
6
6
|
function Eo(e) {
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D9JiH0_e.cjs"),e=require("vue"),r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d={class:"menu-operate-icon"},u={class:"module-dialog-content"};function c(t,k,_,C,f,v){const l=e.resolveComponent("svg-icon"),s=e.resolveComponent("ssMenu"),i=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(s,{mode:t.mode,menuList:t.renderMenuList,onClickMenu:t.clickMenu,onOpenMenu:t.openMenu,onCloseMenu:t.closeMenu},{title:e.withCtx(({menu:n})=>[e.createVNode(l,{name:n.icon??"Edit",class:"menu-icon"},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n.title??""),1),e.createElementVNode("span",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.config,o=>(e.openBlock(),e.createBlock(l,{key:o.id,name:o==null?void 0:o.menuIcon,onClick:M=>t.clickMenuIcon(o)},null,8,["name","onClick"]))),128))])]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"]),e.createVNode(i,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dialogRenderComps,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.getComponents((n==null?void 0:n.comp)??"Input")),{itemData:n==null?void 0:n.compData,key:n==null?void 0:n.id,content:(n==null?void 0:n.contents)??[],config:n==null?void 0:n.config,onContentChange:t.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const g=r._export_sfc(a._sfc_main,[["render",c],["__scopeId","data-v-d9b749a8"]]);exports.default=g;
|
|
@@ -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 { b as c } from "./index-
|
|
3
|
-
import { K as m } from "./index-
|
|
4
|
-
import { S as i } from "./index-
|
|
5
|
-
import { g as l } from "./index-
|
|
2
|
+
import { b as c } from "./index-8A963mBh.js";
|
|
3
|
+
import { K as m } from "./index-DMpNtca6.js";
|
|
4
|
+
import { S as i } from "./index-B2z4g0c-.js";
|
|
5
|
+
import { g as l } from "./index-PQgmxhQN.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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, onMounted as _, createElementBlock as v, openBlock as D, createVNode as h } from "vue";
|
|
2
|
-
import { p as c } from "./index-
|
|
3
|
-
import { c as k, e as K, d as I, u as x, s as M, g as S } from "./menu-
|
|
4
|
-
import { K as T } from "./index-
|
|
5
|
-
import { c as y } from "./cloneDeep-
|
|
2
|
+
import { p as c } from "./index-JX1X-ot2.js";
|
|
3
|
+
import { c as k, e as K, d as I, u as x, s as M, g as S } from "./menu-C--raH72.js";
|
|
4
|
+
import { K as T } from "./index-DMpNtca6.js";
|
|
5
|
+
import { c as y } from "./cloneDeep-xWafgmVp.js";
|
|
6
6
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const q = (a) => {
|
|
8
8
|
const s = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-CdVfaMwz.cjs"),c=require("./index-CVtzsdYf.cjs"),s=require("./index-CFM_0OMh.cjs"),n=require("./menu-BeJTeYpw.cjs"),i=require("./login-DOsXdD3r.cjs"),u=require("./index-CNHxOgGE.cjs"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d={class:"role-wrapper"},g=t.defineComponent({__name:"index",setup(h){const o=n.useMenuState(),{activeMenuPath:p}=n.storeToRefs(o),a=i.useLoginState(),e=t.reactive({...s.State});return t.onMounted(async()=>{a.getModelSecretAsync(),e.structureId=await u.getActivePageStructureId()}),(C,m)=>(t.openBlock(),t.createElementBlock("div",d,[t.createVNode(r.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),t.createVNode(c.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),_=l._export_sfc(g,[["__scopeId","data-v-1ff46e50"]]);exports.default=_;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as $, computed as F, ref as
|
|
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-
|
|
1
|
+
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, 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-BCZs8vl7.js";
|
|
3
|
+
import { d as H, u as L } from "./index-Yp3IhNxQ.js";
|
|
4
|
+
import { E as N } from "./menu-C--raH72.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-8A963mBh.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",
|
|
@@ -23,7 +23,7 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["submitImage", "deleteImage"],
|
|
25
25
|
setup(i, { emit: I }) {
|
|
26
|
-
const u = i, s = I,
|
|
26
|
+
const u = i, s = I, y = F(() => "http://139.196.154.85:20013"), b = h(""), d = h(""), S = h();
|
|
27
27
|
P(() => {
|
|
28
28
|
var n;
|
|
29
29
|
return (n = u.userInfo) == null ? void 0 : n.avatarUrl;
|
|
@@ -34,7 +34,7 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
34
34
|
if (!(u != null && u.disabled))
|
|
35
35
|
try {
|
|
36
36
|
const n = await H({
|
|
37
|
-
url:
|
|
37
|
+
url: b.value
|
|
38
38
|
// url: props.avatarUrl
|
|
39
39
|
});
|
|
40
40
|
if (n.status !== 200)
|
|
@@ -45,12 +45,12 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
45
45
|
throw new Error(n);
|
|
46
46
|
}
|
|
47
47
|
}, C = async (n) => {
|
|
48
|
-
var f, g, e, t,
|
|
48
|
+
var f, g, e, t, r;
|
|
49
49
|
try {
|
|
50
|
-
const
|
|
51
|
-
((f =
|
|
52
|
-
} catch (
|
|
53
|
-
N.error(
|
|
50
|
+
const o = await L(n);
|
|
51
|
+
((f = o == null ? void 0 : o.data) == null ? void 0 : f.code) === 200 && (d.value = y.value + "/" + ((e = (g = o.data) == null ? void 0 : g.result) == null ? void 0 : e.url), b.value = (r = (t = o.data) == null ? void 0 : t.result) == null ? void 0 : r.url, s("submitImage", d.value));
|
|
52
|
+
} catch (o) {
|
|
53
|
+
N.error(o);
|
|
54
54
|
}
|
|
55
55
|
}, w = async () => {
|
|
56
56
|
try {
|
|
@@ -61,7 +61,7 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
61
61
|
};
|
|
62
62
|
return (n, f) => {
|
|
63
63
|
var g, e, t;
|
|
64
|
-
return
|
|
64
|
+
return p(), E("div", W, [
|
|
65
65
|
v(q, {
|
|
66
66
|
avatarUrl: d.value,
|
|
67
67
|
avatarBlob: S.value,
|
|
@@ -70,14 +70,14 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
70
70
|
onDeleteImage: w
|
|
71
71
|
}, {
|
|
72
72
|
avatarDefault: c(() => {
|
|
73
|
-
var
|
|
73
|
+
var r;
|
|
74
74
|
return [
|
|
75
|
-
T(
|
|
75
|
+
T(k(((r = i.userInfo) == null ? void 0 : r.account) ?? "未知"), 1)
|
|
76
76
|
];
|
|
77
77
|
}),
|
|
78
78
|
_: 1
|
|
79
79
|
}, 8, ["avatarUrl", "avatarBlob"]),
|
|
80
|
-
j("span", null,
|
|
80
|
+
j("span", null, k((g = i.userInfo) != null && g.userName ? (e = i.userInfo) == null ? void 0 : e.userName : (t = i.userInfo) == null ? void 0 : t.account), 1)
|
|
81
81
|
]);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -99,46 +99,46 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
99
99
|
},
|
|
100
100
|
emits: ["clickSignButton", "clickSubmitSign", "beforeDestroy"],
|
|
101
101
|
setup(i, { emit: I }) {
|
|
102
|
-
const u = i, s =
|
|
103
|
-
s.value.dialogShow = (e == null ? void 0 : e.label) === "电子签名",
|
|
102
|
+
const u = i, s = h({}), y = h([]), b = I, d = (e) => {
|
|
103
|
+
s.value.dialogShow = (e == null ? void 0 : e.label) === "电子签名", b("clickSignButton", e);
|
|
104
104
|
}, S = () => {
|
|
105
|
-
s.value.dialogShow = !1,
|
|
105
|
+
s.value.dialogShow = !1, b("beforeDestroy");
|
|
106
106
|
}, A = F(() => "http://139.196.154.85:20013"), C = (e) => {
|
|
107
107
|
var a;
|
|
108
|
-
const t = e.split(","),
|
|
109
|
-
let l =
|
|
108
|
+
const t = e.split(","), r = (a = t == null ? void 0 : t[0]) == null ? void 0 : a.match(/:(.*?);/)[1], o = atob(t[1]);
|
|
109
|
+
let l = o.length;
|
|
110
110
|
const m = new Uint8Array(l);
|
|
111
111
|
for (; l--; )
|
|
112
|
-
m[l] =
|
|
113
|
-
return new Blob([m], { type:
|
|
112
|
+
m[l] = o.charCodeAt(l);
|
|
113
|
+
return new Blob([m], { type: r });
|
|
114
114
|
}, w = async (e) => {
|
|
115
|
-
var t,
|
|
115
|
+
var t, r, o;
|
|
116
116
|
try {
|
|
117
117
|
const l = await L(e);
|
|
118
|
-
((t = l == null ? void 0 : l.data) == null ? void 0 : t.code) === 200 &&
|
|
118
|
+
((t = l == null ? void 0 : l.data) == null ? void 0 : t.code) === 200 && b("clickSubmitSign", A.value + "/" + ((o = (r = l.data) == null ? void 0 : r.result) == null ? void 0 : o.url));
|
|
119
119
|
} catch (l) {
|
|
120
120
|
N.error(l);
|
|
121
121
|
}
|
|
122
|
-
}, n =
|
|
122
|
+
}, n = h(""), f = (e) => {
|
|
123
123
|
n.value = e, s.value.dialogShow = !1;
|
|
124
|
-
const t = new FormData(),
|
|
125
|
-
t.append("file",
|
|
124
|
+
const t = new FormData(), r = C(e);
|
|
125
|
+
t.append("file", r, "image.png"), w(t);
|
|
126
126
|
}, g = (e) => {
|
|
127
127
|
const t = new FormData();
|
|
128
128
|
t.append("file", e == null ? void 0 : e.file), w(t);
|
|
129
129
|
};
|
|
130
130
|
return P(() => u == null ? void 0 : u.itemData, (e) => {
|
|
131
|
-
var
|
|
132
|
-
n.value = "", (
|
|
133
|
-
const t = (
|
|
131
|
+
var r, o, l, m;
|
|
132
|
+
n.value = "", (r = s.value) != null && r.dialogShow && (s.value.dialogShow = !1);
|
|
133
|
+
const t = (o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signConfig")) == null ? void 0 : o.contents;
|
|
134
134
|
t && Object.keys(t).forEach((a) => {
|
|
135
135
|
(t[a] === void 0 || t[a] === null || t[a] === "") && delete t[a];
|
|
136
|
-
}), s.value = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signConfig")) == null ? void 0 : l.contents,
|
|
136
|
+
}), s.value = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signConfig")) == null ? void 0 : l.contents, y.value = (m = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signTypeList")) == null ? void 0 : m.contents;
|
|
137
137
|
}, {
|
|
138
138
|
immediate: !0
|
|
139
139
|
}), (e, t) => {
|
|
140
|
-
const
|
|
141
|
-
return
|
|
140
|
+
const r = B("el-empty"), o = B("el-image"), l = B("el-button"), m = B("el-upload");
|
|
141
|
+
return p(), U(M, {
|
|
142
142
|
signPadInfo: s.value,
|
|
143
143
|
onBeforeDestroy: S,
|
|
144
144
|
onClickSubmitSign: f
|
|
@@ -150,12 +150,12 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
150
150
|
class: "signature-render",
|
|
151
151
|
style: R({ width: `${(a = s.value) == null ? void 0 : a.signPadWidth}%` })
|
|
152
152
|
}, [
|
|
153
|
-
v(
|
|
153
|
+
v(o, {
|
|
154
154
|
src: n.value ? n.value : (_ = i.userInfo) == null ? void 0 : _.signature,
|
|
155
155
|
fit: "contain"
|
|
156
156
|
}, {
|
|
157
157
|
error: c(() => [
|
|
158
|
-
v(
|
|
158
|
+
v(r, {
|
|
159
159
|
"image-size": 60,
|
|
160
160
|
description: " "
|
|
161
161
|
}, {
|
|
@@ -171,13 +171,13 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
171
171
|
];
|
|
172
172
|
}),
|
|
173
173
|
signatureTypes: c(() => [
|
|
174
|
-
(
|
|
174
|
+
(p(!0), E(V, null, z(y.value, (a) => {
|
|
175
175
|
var _;
|
|
176
|
-
return
|
|
176
|
+
return p(), E("div", {
|
|
177
177
|
key: a.label,
|
|
178
178
|
class: "signature-button"
|
|
179
179
|
}, [
|
|
180
|
-
(_ = a.label) != null && _.includes("上传") ? (
|
|
180
|
+
(_ = a.label) != null && _.includes("上传") ? (p(), U(m, {
|
|
181
181
|
key: 0,
|
|
182
182
|
ref_for: !0,
|
|
183
183
|
ref: "uploadRef",
|
|
@@ -187,10 +187,10 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
187
187
|
trigger: c(() => [
|
|
188
188
|
v(l, {
|
|
189
189
|
disabled: a.disabled,
|
|
190
|
-
|
|
190
|
+
id: "themeButton"
|
|
191
191
|
}, {
|
|
192
192
|
default: c(() => [
|
|
193
|
-
T(
|
|
193
|
+
T(k(a.label), 1)
|
|
194
194
|
]),
|
|
195
195
|
icon: c(() => [
|
|
196
196
|
v(x, {
|
|
@@ -201,14 +201,14 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
201
201
|
}, 1032, ["disabled"])
|
|
202
202
|
]),
|
|
203
203
|
_: 2
|
|
204
|
-
}, 1536)) : (
|
|
204
|
+
}, 1536)) : (p(), U(l, {
|
|
205
205
|
key: 1,
|
|
206
|
-
|
|
206
|
+
id: "themeButton",
|
|
207
207
|
disabled: a.disabled,
|
|
208
208
|
onClick: (J) => d(a)
|
|
209
209
|
}, {
|
|
210
210
|
default: c(() => [
|
|
211
|
-
T(
|
|
211
|
+
T(k(a.label), 1)
|
|
212
212
|
]),
|
|
213
213
|
icon: c(() => [
|
|
214
214
|
v(x, {
|
|
@@ -224,7 +224,7 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
224
224
|
}, 8, ["signPadInfo"]);
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
}), ne = /* @__PURE__ */ O(G, [["__scopeId", "data-v-
|
|
227
|
+
}), ne = /* @__PURE__ */ O(G, [["__scopeId", "data-v-b9bd887d"]]);
|
|
228
228
|
export {
|
|
229
229
|
te as a,
|
|
230
230
|
ne as s
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as I, ref as i, reactive as P, 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 K } from "vue";
|
|
2
|
-
import { s as x, u as E, E as b, g as L, c as R, d as Q, h as X } from "./menu-
|
|
3
|
-
import { u as Y,
|
|
4
|
-
import { p as D } from "./index-
|
|
5
|
-
import { h as te } from "./index-
|
|
6
|
-
import { f as ae } from "./login-
|
|
7
|
-
import { c as S } from "./cloneDeep-
|
|
8
|
-
import { s as oe, b as le } from "./index-
|
|
2
|
+
import { s as x, u as E, E as b, g as L, c as R, d as Q, h as X } from "./menu-C--raH72.js";
|
|
3
|
+
import { u as Y, o as Z, K as ee } from "./index-DMpNtca6.js";
|
|
4
|
+
import { p as D } from "./index-JX1X-ot2.js";
|
|
5
|
+
import { h as te } from "./index-DM4vldHo.js";
|
|
6
|
+
import { f as ae } from "./login-BUABpM2V.js";
|
|
7
|
+
import { c as S } from "./cloneDeep-xWafgmVp.js";
|
|
8
|
+
import { s as oe, b as le } from "./index-8A963mBh.js";
|
|
9
9
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const A = Y(D), O = Z(D), g = E(D), { menus: H, configMenu: h, activeMenuPath: T, cacheStructures: se } = x(g), re = I(() => {
|
|
11
11
|
var t, e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./menu-
|
|
1
|
+
"use strict";const s=require("./menu-BeJTeYpw.cjs"),x=require("./index-Cq_T89gc.cjs"),q=require("./login-DOsXdD3r.cjs"),I=require("vue"),w=s.useMenuState(x.pinia),v=q.useLoginState(x.pinia),D=I.ref(!1),E=I.ref(!1),P=async()=>{const K=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),M=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([K,M]).then(a=>{var r,u,n,o,i,l,c,g,y,d,S,f,m,p;const t=a==null?void 0:a[0],e=a==null?void 0:a[1];if(t.data.code===200){const h=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;w.setRawMenus(h??[]),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 s.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):s.ElMessage.error("获取模型结构响应失败")}),{menuExist:D.value,structureExist:E.value}};exports.verifyStructureDataToStore=P;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as B, reactive as v, onMounted as V, watch as S, nextTick as M, resolveComponent as c, createElementBlock as
|
|
2
|
-
import { b as A } from "./index-
|
|
3
|
-
import { K as N } from "./index-
|
|
4
|
-
import { S as
|
|
5
|
-
import { u as R, s as E } from "./menu-
|
|
6
|
-
import { c as F } from "./cloneDeep-
|
|
1
|
+
import { defineComponent as B, reactive as v, onMounted as V, watch as S, nextTick as M, resolveComponent as c, createElementBlock as f, openBlock as h, Fragment as k, createElementVNode as u, createVNode as l, withCtx as n, toDisplayString as p, renderList as z, createBlock as T, createTextVNode as g } from "vue";
|
|
2
|
+
import { b as A } from "./index-8A963mBh.js";
|
|
3
|
+
import { K as N } from "./index-DMpNtca6.js";
|
|
4
|
+
import { S as C } from "./index-PQgmxhQN.js";
|
|
5
|
+
import { u as R, s as E } from "./menu-C--raH72.js";
|
|
6
|
+
import { c as F } from "./cloneDeep-xWafgmVp.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" }, K = { class: "dialog-footer" }, L = /* @__PURE__ */ B({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(P) {
|
|
11
|
-
const
|
|
11
|
+
const m = R(), { menus: b } = E(m), e = v({ ...C }), { treeRef: y } = C;
|
|
12
12
|
V(async () => {
|
|
13
13
|
e.structureId = await e.getActivePageStructureId();
|
|
14
14
|
});
|
|
15
15
|
const x = (r) => {
|
|
16
|
-
const s = [r == null ? void 0 : r.find((
|
|
17
|
-
return s == null ? void 0 : s.map((
|
|
18
|
-
path:
|
|
19
|
-
buttons:
|
|
16
|
+
const s = [r == null ? void 0 : r.find((t) => (t == null ? void 0 : t.title) === "系统管理")].flatMap((t) => t == null ? void 0 : t.children);
|
|
17
|
+
return s == null ? void 0 : s.map((t) => ({
|
|
18
|
+
path: t == null ? void 0 : t.path,
|
|
19
|
+
buttons: (t == null ? void 0 : t.path) === "/系统管理/个人中心" ? ["基本信息", "上传头像", "签名", "修改密码"] : ["新增", "查看", "编辑", "删除"]
|
|
20
20
|
}));
|
|
21
21
|
};
|
|
22
22
|
return S(() => b.value, (r) => {
|
|
23
23
|
M(() => {
|
|
24
|
-
const
|
|
25
|
-
e.tempSysMenus = x(
|
|
24
|
+
const o = F(r);
|
|
25
|
+
e.tempSysMenus = x(o), e.menuData = e.addButtonsToTree(o, e.structureButtons);
|
|
26
26
|
});
|
|
27
27
|
}, {
|
|
28
28
|
immediate: !0,
|
|
29
29
|
deep: !0
|
|
30
|
-
}), (r,
|
|
31
|
-
const s = c("el-checkbox"),
|
|
32
|
-
return h(),
|
|
33
|
-
|
|
30
|
+
}), (r, o) => {
|
|
31
|
+
const s = c("el-checkbox"), t = c("el-checkbox-group"), D = c("el-tree"), _ = c("el-button"), w = c("el-dialog");
|
|
32
|
+
return h(), f(k, null, [
|
|
33
|
+
u("div", U, [
|
|
34
34
|
l(A, {
|
|
35
35
|
class: "role-header",
|
|
36
36
|
rowContents: e.queryFormData,
|
|
@@ -48,31 +48,31 @@ const U = { class: "role-wrapper" }, O = { class: "role-dialog-header" }, q = {
|
|
|
48
48
|
]),
|
|
49
49
|
l(w, {
|
|
50
50
|
modelValue: e.authorizeDialog.show,
|
|
51
|
-
"onUpdate:modelValue":
|
|
51
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.authorizeDialog.show = i),
|
|
52
52
|
width: e.authorizeDialog.width,
|
|
53
53
|
draggable: e.authorizeDialog.draggable,
|
|
54
54
|
"before-close": e.closeAuthorizeDialog,
|
|
55
55
|
class: "role-dialog"
|
|
56
56
|
}, {
|
|
57
57
|
header: n(() => [
|
|
58
|
-
|
|
58
|
+
u("div", O, p(e.authorizeDialog.title), 1)
|
|
59
59
|
]),
|
|
60
60
|
footer: n(() => [
|
|
61
|
-
|
|
62
|
-
l(
|
|
61
|
+
u("div", K, [
|
|
62
|
+
l(_, {
|
|
63
63
|
onClick: e.closeAuthorizeDialog
|
|
64
64
|
}, {
|
|
65
|
-
default: n(() =>
|
|
65
|
+
default: n(() => o[1] || (o[1] = [
|
|
66
66
|
g("取消")
|
|
67
67
|
])),
|
|
68
68
|
_: 1,
|
|
69
69
|
__: [1]
|
|
70
70
|
}, 8, ["onClick"]),
|
|
71
|
-
l(
|
|
71
|
+
l(_, {
|
|
72
72
|
type: "primary",
|
|
73
73
|
onClick: e.clickSubmitAuthority
|
|
74
74
|
}, {
|
|
75
|
-
default: n(() =>
|
|
75
|
+
default: n(() => o[2] || (o[2] = [
|
|
76
76
|
g(" 确认 ")
|
|
77
77
|
])),
|
|
78
78
|
_: 1,
|
|
@@ -96,16 +96,16 @@ const U = { class: "role-wrapper" }, O = { class: "role-dialog-header" }, q = {
|
|
|
96
96
|
onCheckChange: e.handleNodeCheckChange,
|
|
97
97
|
style: { height: "500px", "overflow-y": "auto" }
|
|
98
98
|
}, {
|
|
99
|
-
default: n(({ node:
|
|
100
|
-
|
|
101
|
-
l(
|
|
99
|
+
default: n(({ node: i, data: d }) => [
|
|
100
|
+
u("span", q, p(i.label), 1),
|
|
101
|
+
l(t, {
|
|
102
102
|
modelValue: d.checkedButtons,
|
|
103
103
|
"onUpdate:modelValue": (a) => d.checkedButtons = a,
|
|
104
104
|
onChange: (a) => e.handleNodeBtnChange(a, d),
|
|
105
105
|
class: "node-buttons"
|
|
106
106
|
}, {
|
|
107
107
|
default: n(() => [
|
|
108
|
-
(h(!0),
|
|
108
|
+
(h(!0), f(k, null, z(d.renderButtons, (a) => (h(), T(s, {
|
|
109
109
|
key: a.title,
|
|
110
110
|
label: a.title,
|
|
111
111
|
value: a.path
|
|
@@ -127,7 +127,7 @@ const U = { class: "role-wrapper" }, O = { class: "role-dialog-header" }, q = {
|
|
|
127
127
|
], 64);
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
}), Y = /* @__PURE__ */ I(L, [["__scopeId", "data-v-
|
|
130
|
+
}), Y = /* @__PURE__ */ I(L, [["__scopeId", "data-v-38723038"]]);
|
|
131
131
|
export {
|
|
132
132
|
Y as default
|
|
133
133
|
};
|
|
@@ -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-C--raH72.js";
|
|
2
|
+
import { p as K } from "./index-JX1X-ot2.js";
|
|
3
|
+
import { u as k } from "./login-BUABpM2V.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";const c=require("vue"),o=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),o=require("./menu-BeJTeYpw.cjs"),k=require("./index-CNHxOgGE.cjs"),i=require("./crypto-CRbcEKIz.cjs"),D=require("./login-DOsXdD3r.cjs"),K=require("./index-CVtzsdYf.cjs"),M=require("./index-D4tSnGvW.cjs"),q=require("./cloneDeep-D77rQx41.cjs"),C=D.useLoginState(),{superAdminInfo:x,cryptoInfo:n}=o.storeToRefs(C),B=o.useMenuState(),{activeMenuPath:y}=o.storeToRefs(B),f="123456",H=K.useModelComp(),{itemData:E}=o.storeToRefs(H),v=c.ref(0),P=c.ref([{label:"用户名称",value:"",name:"userName"}]),d=c.computed(()=>{const a=sessionStorage.getItem("isSuperAdmin");return a?JSON.parse(a):!1}),F=a=>{console.log("handleQueryChange",a)},p=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)},b=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(()=>{b.value={...s,password:f},g(b.value,a,v.value)}).catch(()=>{o.ElMessage.info("取消重置")})},S=()=>{m(y.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));p.value=(r=p.value)==null?void 0:r.map(e=>e.key==="tableContents"?{...e,contents:s==null?void 0:s.map(t=>{var l;return{...t,password:i.decryptData(t==null?void 0:t.password,(l=n==null?void 0:n.value)==null?void 0:l.privateKey)}})}:e)})},u=async(a,s,r)=>{var e,t;try{const l=await a(s);return((e=l==null?void 0:l.data)==null?void 0:e.code)===200?(r!=="查询"&&await C.setLogRecordAsync({type:r,data:s},y.value),l.data.result||((t=l==null?void 0:l.data)==null?void 0:t.code)===200):null}catch(l){o.ElMessage.error(l)}},g=(a,s,r)=>{var t,l;const e=q.cloneDeep(a);e!=null&&e.id&&delete e.id,i.isEncryptAvailable()&&e&&(!e.password&&d.value?e.password=i.encryptData(f,(t=n==null?void 0:n.value)==null?void 0:t.publicKey):e.password&&d.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(o.createInsofDataApi,{key:{type:"data",layer:e==null?void 0:e.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:y.value,tableId:r},value:{tableData:e}},s).then(h=>{var T;b.value={...a,newId:h,password:d.value?i.decryptData((a==null?void 0:a.password)??f,(T=n==null?void 0:n.value)==null?void 0:T.privateKey):a==null?void 0:a.password},s&&h&&o.ElMessage.success(s+"成功")}):s==="编辑"||s==="重置密码"?u(o.updateInsofDataApi,{id:a.id,key:{type:"data",layer:e==null?void 0:e.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:y.value,tableId:r},value:{tableData:e}},s).then(()=>{s==="重置密码"&&S(),s&&o.ElMessage.success(s+"成功"),k.authorizeDialog.show=!1}):s==="删除"&&u(o.deleteInsofDataApi,{id:a.id},s).then(()=>{s&&o.ElMessage.success(s+"成功")})},m=async a=>{const s=await u(o.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),r=s==null?void 0:s.map(e=>{var t,l;return{id:e.id,layer:(t=e.key)==null?void 0:t.layer,tableData:(l=e==null?void 0:e.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(e=>{var t;if(!Array.isArray(e==null?void 0:e.tableData))return{...e.tableData,layer:(t=e.key)==null?void 0:t.layer,id:e.id}})},A={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:p.value,name:""}]}]};c.watch(()=>E.value,a=>{var s;a&&(a==null?void 0:a.length)>0&&(p.value=(s=a==null?void 0:a[0])==null?void 0:s.compData)});const U=Object.freeze(Object.defineProperty({__proto__:null,changedRow:b,clickRowButton:w,getPageDataAsync:m,handleItemDataChange:I,handleQueryChange:F,handleSubmitAsync:u,loginUserIsSuper:d,onDoubleClick:N,pageData:p,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;
|