ss-component-new 1.1.430 → 1.1.431
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-CmTW1wXQ.js → array-CYHZDvJf.js} +1 -1
- package/dist/{array-BE8kxwbF.cjs → array-DoAPPPoU.cjs} +1 -1
- package/dist/{index-D5JRjtWD.cjs → index-0UsRG8Nl.cjs} +1 -1
- package/dist/{index-BWHERznY.js → index-4C972HsD.js} +4 -4
- package/dist/{index-B3sv--5l.js → index-B2WdBcN2.js} +9 -9
- package/dist/{index-BnlhM9YS.js → index-B9YbkQTN.js} +7 -7
- package/dist/{index-DQq3rsff.js → index-BGu6K09X.js} +5 -5
- package/dist/{index-Bb7GoIJp.cjs → index-BRWn9N9z.cjs} +1 -1
- package/dist/{index-DUPkZILz.cjs → index-BSlYS8L6.cjs} +1 -1
- package/dist/{index-N9Y_z5k_.cjs → index-BbH6qY5i.cjs} +1 -1
- package/dist/{index-DkiBGvqU.js → index-Bp2y9XSw.js} +1 -1
- package/dist/{index-CqaFuVhy.cjs → index-Bw61yR16.cjs} +1 -1
- package/dist/{index-uatggqnf.js → index-ByKePmLX.js} +5 -5
- package/dist/{index-CzfGrSpV.js → index-C1LJSord.js} +1 -1
- package/dist/{index-DxNyBY1w.cjs → index-CGf5Z3_H.cjs} +1 -1
- package/dist/{index-B_AUqKy_.cjs → index-CGgr5f-z.cjs} +1 -1
- package/dist/{index-D2aIlMCu.cjs → index-CKudLJJ1.cjs} +1 -1
- package/dist/{index-Di1ajNKI.js → index-CZyGWfHG.js} +4 -4
- package/dist/{index-D6iTzH06.cjs → index-CdgOQe0i.cjs} +1 -1
- package/dist/{index-BiuhwvlL.js → index-CesPDA_Y.js} +9 -9
- package/dist/{index-DygfoHkC.cjs → index-CjjVgYXa.cjs} +1 -1
- package/dist/{index-CsHPoVQL.cjs → index-Cn9Oohz3.cjs} +1 -1
- package/dist/{index-CMBrDaM5.js → index-Cnqn6WIO.js} +1 -1
- package/dist/{index-CONyMR2I.cjs → index-Con3aMMd.cjs} +1 -1
- package/dist/{index-BCFtIIf_.cjs → index-CrSg-82a.cjs} +1 -1
- package/dist/{index-eH2F0oMQ.js → index-Crmnjr2c.js} +3 -3
- package/dist/{index-DOm1fXtU.cjs → index-CsYxP0-F.cjs} +1 -1
- package/dist/{index-gXA0eS6O.cjs → index-CydkxCxM.cjs} +1 -1
- package/dist/{index-C-jjWrUl.cjs → index-D-nO19V3.cjs} +1 -1
- package/dist/{index-Clor83sA.cjs → index-D0mkoPSf.cjs} +1 -1
- package/dist/{index-DFilfUFX.js → index-D2P4LtZm.js} +3 -3
- package/dist/{index-D_j7_Hn_.cjs → index-DADAKv9O.cjs} +1 -1
- package/dist/{index-LoH8EwXA.js → index-DANnEh5L.js} +3 -3
- package/dist/{index-DDoTCY3C.js → index-DArGJfKY.js} +5 -5
- package/dist/{index-CYOSbBn4.js → index-DHH9k3Cd.js} +16 -16
- package/dist/{index-DxCiQhlC.js → index-DMEfwWgq.js} +2 -2
- package/dist/{index-Daqdy9e9.js → index-DkAnI-XG.js} +5 -5
- package/dist/{index-B8ONEgpW.cjs → index-DoNbKVmQ.cjs} +1 -1
- package/dist/{index-BZkQ29Tz.cjs → index-DpRiYeQY.cjs} +1 -1
- package/dist/{index-BwhVhBYj.js → index-Dqon02wb.js} +5 -5
- package/dist/{index-qEFkFDy8.js → index-DtDR26cB.js} +7 -7
- package/dist/{index-CjlMUufz.cjs → index-FqJpETte.cjs} +1 -1
- package/dist/{index-CrtuDvMe.js → index-LSoD1i3A.js} +1 -1
- package/dist/{index-EzZiR3ly.js → index-SdUkriaK.js} +4 -4
- package/dist/{index-Cqd4dRu7.js → index-SrhMzOCY.js} +4 -4
- package/dist/{index-pvjM6t0d.js → index-X2ZWiRcv.js} +6 -6
- package/dist/{index-DIxSv5u4.cjs → index-b6aBSRMl.cjs} +1 -1
- package/dist/{index-CNpklHzK.cjs → index-dlfEnHmI.cjs} +1 -1
- package/dist/{index-DXtXtduX.js → index-fvJb5bN3.js} +4 -4
- package/dist/{index-CSj1osh5.js → index-lH7K2Ae4.js} +6 -6
- package/dist/{index-PdwN7EaB.cjs → index-qYLxQkHk.cjs} +1 -1
- package/dist/{index-o5dof3CA.cjs → index-sIPyCyQi.cjs} +1 -1
- package/dist/{index-DeXnZk4X.js → index-wFIaJ63i.js} +6 -6
- package/dist/{index-D3ah-UXX.cjs → index-xm6KYCoF.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-YlUeUQJ4.js → index.vue_vue_type_script_setup_true_lang-BWUFgZh-.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-EaaJleWP.cjs → index.vue_vue_type_script_setup_true_lang-BZ7tchOp.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CClJxB6F.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bw_ydbnW.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2duMdZT.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B-rWYebv.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CcYfjXoA.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-uU-cctzF.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-TQjM60R4.js → index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-DnITgFWi.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Z8fBYrL9.cjs → index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-DozWSlZt.cjs} +1 -1
- package/dist/{login-BMAi9yYX.cjs → login-C7DmHc80.cjs} +1 -1
- package/dist/{login-B520hsEu.js → login-CJCoAoN1.js} +1 -1
- package/dist/{main-Dpbg9Pxc.js → main-D4Q91qkP.js} +6 -6
- package/dist/{main-yzKa6bxy.cjs → main-iJ0nSePL.cjs} +1 -1
- package/dist/{menu-qAL8FiSW.js → menu-BuloZZcj.js} +1 -1
- package/dist/{menu-BAEUpxbd.cjs → menu-n3qjG2rK.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BiEaleFf.cjs +1 -0
- package/dist/{threeModel-ClGUp5fG.js → threeModel-apAPzYrf.js} +566 -587
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3e87dec6_lang-DYhzYEGg.js → threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3e87dec6_lang-BOT5Tivd.cjs → threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-CaLVdXus.cjs} +1 -1
- package/package.json +1 -1
- package/dist/threeModel-CxKWxMlL.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, onMounted as _, createElementBlock as h, openBlock as v, createVNode as D } from "vue";
|
|
2
|
-
import { f as c, h as k, d as x, u as I, p as K, s as M, g as S } from "./menu-
|
|
3
|
-
import { x as T } from "./index-
|
|
4
|
-
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { f as c, h as k, d as x, u as I, p as K, s as M, g as S } from "./menu-BuloZZcj.js";
|
|
3
|
+
import { x as T } from "./index-ByKePmLX.js";
|
|
4
|
+
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
5
5
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const q = (a) => {
|
|
7
7
|
const s = {};
|
|
@@ -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-BZ7tchOp.cjs"),k=require("./index-FqJpETte.cjs"),x=require("./menu-n3qjG2rK.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CydkxCxM.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,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 "./threeModel.
|
|
2
|
+
import { g as y, s as d } from "./menu-BuloZZcj.js";
|
|
3
|
+
import { s as g, h as m } from "./index-lH7K2Ae4.js";
|
|
4
|
+
import { u as D } from "./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js";
|
|
5
5
|
const f = D(), { itemData: i } = d(f), c = n(0), h = n([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as t, reactive as a, onMounted as o, createElementBlock as r, openBlock as n, createVNode as m } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import "./menu-
|
|
5
|
-
import { x as s } from "./index-
|
|
6
|
-
import { S as c } from "./index-
|
|
7
|
-
import { g as i } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
4
|
+
import "./menu-BuloZZcj.js";
|
|
5
|
+
import { x as s } from "./index-ByKePmLX.js";
|
|
6
|
+
import { S as c } from "./index-DANnEh5L.js";
|
|
7
|
+
import { g as i } from "./index-4C972HsD.js";
|
|
8
8
|
const p = { class: "role-wrapper" }, v = /* @__PURE__ */ t({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(d) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { resolveComponent as g, createBlock as b, openBlock as s, withCtx as o, createVNode as e, createElementVNode as h, toDisplayString as ee, ref as d, onMounted as ht, watch as I, createElementBlock as A, Fragment as ye, renderList as $e, createCommentVNode as V, normalizeStyle as ft, defineComponent as Ge, computed as Be, resolveDirective as Xe, withDirectives as ke, unref as t, createTextVNode as L, renderSlot as _e, vShow as Fe, resolveDynamicComponent as qe } from "vue";
|
|
2
|
-
import { m as Pe, a as Me, b as xe } from "./index-
|
|
3
|
-
import He from "./index-
|
|
4
|
-
import { _ as _t, o as Je, c as We, a as Qe, b as Ye, d as Ze, s as Z, g as et, e as tt, f as at, h as ot, i as vt, j as gt } from "./index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-
|
|
2
|
+
import { m as Pe, a as Me, b as xe } from "./index-DtDR26cB.js";
|
|
3
|
+
import He from "./index-Bp2y9XSw.js";
|
|
4
|
+
import { _ as _t, o as Je, c as We, a as Qe, b as Ye, d as Ze, s as Z, g as et, e as tt, f as at, h as ot, i as vt, j as gt } from "./index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-DnITgFWi.js";
|
|
5
5
|
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { p as X, s as G, u as be, b as ge, g as yt } from "./menu-
|
|
7
|
-
import { u as nt } from "./login-
|
|
6
|
+
import { p as X, s as G, u as be, b as ge, g as yt } from "./menu-BuloZZcj.js";
|
|
7
|
+
import { u as nt } from "./login-CJCoAoN1.js";
|
|
8
8
|
import { S as fe } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { u as Te } from "./threeModel.
|
|
10
|
-
import { u as De, a as Ct, l as lt } from "./index-
|
|
11
|
-
import { s as st } from "./index-
|
|
12
|
-
import { s as it, _ as wt } from "./index-
|
|
13
|
-
import { _ as rt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { c as Re } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
15
|
-
import Bt from "./threeModel-
|
|
16
|
-
import { u as kt } from "./index-
|
|
17
|
-
import { d as Ke } from "./index-
|
|
18
|
-
import { a as Ft } from "./array-
|
|
19
|
-
import { c as Rt, b as bt } from "./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-
|
|
9
|
+
import { u as Te } from "./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js";
|
|
10
|
+
import { u as De, a as Ct, l as lt } from "./index-ByKePmLX.js";
|
|
11
|
+
import { s as st } from "./index-B2WdBcN2.js";
|
|
12
|
+
import { s as it, _ as wt } from "./index-DkAnI-XG.js";
|
|
13
|
+
import { _ as rt } from "./index.vue_vue_type_script_setup_true_lang-BWUFgZh-.js";
|
|
14
|
+
import { c as Re } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
15
|
+
import Bt from "./threeModel-apAPzYrf.js";
|
|
16
|
+
import { u as kt } from "./index-B9YbkQTN.js";
|
|
17
|
+
import { d as Ke } from "./index-Cnqn6WIO.js";
|
|
18
|
+
import { a as Ft } from "./array-CYHZDvJf.js";
|
|
19
|
+
import { c as Rt, b as bt } from "./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-uU-cctzF.js";
|
|
20
20
|
function Tt(B, J, a, k, S, U) {
|
|
21
21
|
const n = g("svg-icon"), M = g("ssMenu");
|
|
22
22
|
return s(), b(M, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as S, u as P, E as v, p as K } from "./menu-
|
|
2
|
-
import { u as k } from "./login-
|
|
1
|
+
import { g as S, u as P, E as v, p as K } from "./menu-BuloZZcj.js";
|
|
2
|
+
import { u as k } from "./login-CJCoAoN1.js";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
const A = P(K), E = k(K), x = h(!1), D = h(!1), j = async () => {
|
|
5
5
|
const I = S({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as H, resolveComponent as F, createBlock as W, openBlock as M, defineComponent as xt, onMounted as ai, withCtx as N, createVNode as Q, createElementVNode as X, createElementBlock as V, Fragment as ae, renderList as oe, watch as tt, normalizeStyle as Ee, createCommentVNode as J, unref as os, withDirectives as hl, createSlots as Ht, resolveDynamicComponent as Ji, toDisplayString as $e, vShow as cl, normalizeClass as v0, createTextVNode as _t, nextTick as vi, renderSlot as se, normalizeProps as xc, guardReactiveProps as yc, mergeProps as vn, computed as re, h as ul, reactive as w0, onBeforeUnmount as Sc, toRefs as kc, watchEffect as Zi, onUnmounted as ko } from "vue";
|
|
2
2
|
import { S as fl } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { c as ei, x as dl, y as pl, z as Cc, A as Oc, H as Mc } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { c as ei, x as dl, y as pl, z as Cc, A as Oc, H as Mc } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
4
4
|
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { E as b0, g as _c, u as Ac, s as Tc, a as Dc } from "./menu-
|
|
6
|
-
import { a5 as Pc, aa as Ec, k as Bc } from "./index-
|
|
7
|
-
import { d as Lc } from "./index-
|
|
8
|
-
import { _ as Rc } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { E as b0, g as _c, u as Ac, s as Tc, a as Dc } from "./menu-BuloZZcj.js";
|
|
6
|
+
import { a5 as Pc, aa as Ec, k as Bc } from "./index-B2WdBcN2.js";
|
|
7
|
+
import { d as Lc } from "./index-Cnqn6WIO.js";
|
|
8
|
+
import { _ as Rc } from "./index.vue_vue_type_script_setup_true_lang-BWUFgZh-.js";
|
|
9
9
|
var Vc = "[object Number]";
|
|
10
10
|
function gl(n) {
|
|
11
11
|
return typeof n == "number" || Pc(n) && Ec(n) == Vc;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-BZ7tchOp.cjs");exports.default=e._sfc_main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),l=require("./index-BRWn9N9z.cjs"),Nt=require("./menu-n3qjG2rK.cjs"),_=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs"),it=require("./index.vue_vue_type_script_setup_true_lang-BZ7tchOp.cjs");function It(e){return e}function xt(e,n,o){switch(o.length){case 0:return e.call(n);case 1:return e.call(n,o[0]);case 2:return e.call(n,o[0],o[1]);case 3:return e.call(n,o[0],o[1],o[2])}return e.apply(n,o)}var Mt=800,At=16,Vt=Date.now;function Rt(e){var n=0,o=0;return function(){var r=Vt(),a=At-(r-o);if(o=r,a>0){if(++n>=Mt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Lt(e){return function(){return e}}var zt=_.defineProperty?function(e,n){return _.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Lt(n),writable:!0})}:It,Ot=Rt(zt),$e=Math.max;function Pt(e,n,o){return n=$e(n===void 0?e.length-1:n,0),function(){for(var r=arguments,a=-1,s=$e(r.length-n,0),i=Array(s);++a<s;)i[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=o(i),xt(e,this,u)}}var Ue=l.Symbol?l.Symbol.isConcatSpreadable:void 0;function Ft(e){return l.isArray(e)||_.isArguments(e)||!!(Ue&&e&&e[Ue])}function _t(e,n,o,r,a){var s=-1,i=e.length;for(o||(o=Ft),a||(a=[]);++s<i;){var u=e[s];o(u)?_.arrayPush(a,u):a[a.length]=u}return a}function Ht(e){var n=e==null?0:e.length;return n?_t(e):[]}function Dt(e){return Ot(Pt(e,void 0,Ht),e+"")}function $t(e,n){return e!=null&&n in Object(e)}function Ut(e,n,o){n=l.castPath(n,e);for(var r=-1,a=n.length,s=!1;++r<a;){var i=l.toKey(n[r]);if(!(s=e!=null&&o(e,i)))break;e=e[i]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&_.isLength(a)&&_.isIndex(i,a)&&(l.isArray(e)||_.isArguments(e)))}function Kt(e,n){return e!=null&&Ut(e,n,$t)}function Wt(e,n,o,r){if(!l.isObject$1(e))return e;n=l.castPath(n,e);for(var a=-1,s=n.length,i=s-1,u=e;u!=null&&++a<s;){var p=l.toKey(n[a]),d=o;if(p==="__proto__"||p==="constructor"||p==="prototype")return e;if(a!=i){var g=u[p];d=void 0,d===void 0&&(d=l.isObject$1(g)?g:_.isIndex(n[a+1])?[]:{})}_.assignValue(u,p,d),u=u[p]}return e}function Yt(e,n,o){for(var r=-1,a=n.length,s={};++r<a;){var i=n[r],u=l.baseGet(e,i);o(u,i)&&Wt(s,l.castPath(i,e),u)}return s}function Gt(e,n){return Yt(e,n,function(o,r){return Kt(e,r)})}var jt=Dt(function(e,n){return e==null?{}:Gt(e,n)});const Ce="update:modelValue",Ke="change",We="input";let re;const qt=e=>{var n;if(!l.isClient)return 0;if(re!==void 0)return re;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const s=a.offsetWidth;return(n=o.parentNode)==null||n.removeChild(o),re=r-s,re},Xt=()=>l.isClient&&/firefox/i.test(window.navigator.userAgent);let M;const Jt={height:"0",visibility:"hidden",overflow:Xt()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Zt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Qt(e){const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),a=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:Zt.map(i=>[i,n.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:o}}function Ye(e,n=1,o){var r;M||(M=document.createElement("textarea"),document.body.appendChild(M));const{paddingSize:a,borderSize:s,boxSizing:i,contextStyle:u}=Qt(e);u.forEach(([m,S])=>M==null?void 0:M.style.setProperty(m,S)),Object.entries(Jt).forEach(([m,S])=>M==null?void 0:M.style.setProperty(m,S,"important")),M.value=e.value||e.placeholder||"";let p=M.scrollHeight;const d={};i==="border-box"?p=p+s:i==="content-box"&&(p=p-a),M.value="";const g=M.scrollHeight-a;if(l.isNumber(n)){let m=g*n;i==="border-box"&&(m=m+a+s),p=Math.max(m,p),d.minHeight=`${m}px`}if(l.isNumber(o)){let m=g*o;i==="border-box"&&(m=m+a+s),p=Math.min(m,p)}return d.height=`${p}px`,(r=M.parentNode)==null||r.removeChild(M),M=void 0,d}const en=l.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),tn=e=>jt(en,e),nn=l.buildProps({id:{type:String,default:void 0},size:l.useSizeProp,disabled:Boolean,modelValue:{type:l.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:l.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:l.iconPropType},prefixIcon:{type:l.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:l.definePropType([Object,Array,String]),default:()=>Nt.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...tn(["ariaLabel"])}),on={[Ce]:e=>l.isString(e),input:e=>l.isString(e),change:e=>l.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},rn=["class","style"],an=/^on[A-Z]/,sn=(e={})=>{const{excludeListeners:n=!1,excludeKeys:o}=e,r=t.computed(()=>((o==null?void 0:o.value)||[]).concat(rn)),a=t.getCurrentInstance();return a?t.computed(()=>{var s;return l.fromPairs(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(n&&an.test(i))))}):(l.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),t.computed(()=>({})))},we={prefix:Math.floor(Math.random()*1e4),current:0},ln=Symbol("elIdInjection"),un=()=>t.getCurrentInstance()?t.inject(ln,we):we,Se=e=>{const n=un();!l.isClient&&n===we&&l.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
3
|
prefix: number,
|
|
4
4
|
current: number,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as e, reactive as a, onMounted as o, createElementBlock as r, openBlock as n, createVNode as m } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import "./menu-
|
|
5
|
-
import { x as i } from "./index-
|
|
6
|
-
import { S as c } from "./index-
|
|
7
|
-
import { g as p } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
4
|
+
import "./menu-BuloZZcj.js";
|
|
5
|
+
import { x as i } from "./index-ByKePmLX.js";
|
|
6
|
+
import { S as c } from "./index-Crmnjr2c.js";
|
|
7
|
+
import { g as p } from "./index-4C972HsD.js";
|
|
8
8
|
const D = /* @__PURE__ */ e({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(s) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
3
|
-
import { p as B, s as V, E as Z } from "./menu-
|
|
4
|
-
import { u as S } from "./threeModel.
|
|
5
|
-
import "./array-
|
|
2
|
+
import { s as Y, g as J } from "./index-B9YbkQTN.js";
|
|
3
|
+
import { p as B, s as V, E as Z } from "./menu-BuloZZcj.js";
|
|
4
|
+
import { u as S } from "./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js";
|
|
5
|
+
import "./array-CYHZDvJf.js";
|
|
6
6
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { c as v } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
+
import { c as v } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
8
8
|
import ee from "./index-CZtXRS3l.js";
|
|
9
|
-
import { a as te } from "./index-
|
|
10
|
-
import { E as ne } from "./index-
|
|
9
|
+
import { a as te } from "./index-DkAnI-XG.js";
|
|
10
|
+
import { E as ne } from "./index-SdUkriaK.js";
|
|
11
11
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
12
12
|
__name: "index",
|
|
13
13
|
setup(O) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./menu-
|
|
1
|
+
"use strict";const o=require("./menu-n3qjG2rK.cjs");function a(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/uploadAvatar",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function i(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/downloadFile",method:"post",data:t,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}exports.downloadAvatarApi=i;exports.uploadAvatarApi=a;
|
|
@@ -1,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, m as pn, n as bt, t as hn, o as Pt, p as Xn, i as se, q as Ht, v as Xe, c as de, w as ye, x as We, y as gn, z as fe, A as jn, B as Jn, C as Zn, D as Qn, F as Te, G as Ie, H as Me, _ as Be, I as pe, V as eo, J as to, K as no, L as oo, M as ae, N as De, O as ao, e as Ge, P as mn, Q as yt, R as ro, T as dt, U as so, W as $t, X as io, Y as zt, d as lo, g as uo, b as co, Z as fo, $ as vo, a as po, a0 as Vt, a1 as _t, a2 as ho } from "./index-
|
|
3
|
-
import { m as go } from "./menu-
|
|
4
|
-
import { e as Dt, i as bn, h as mo, j as bo, k as yn, l as yo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
5
|
-
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { S as Ft, m as pn, n as bt, t as hn, o as Pt, p as Xn, i as se, q as Ht, v as Xe, c as de, w as ye, x as We, y as gn, z as fe, A as jn, B as Jn, C as Zn, D as Qn, F as Te, G as Ie, H as Me, _ as Be, I as pe, V as eo, J as to, K as no, L as oo, M as ae, N as De, O as ao, e as Ge, P as mn, Q as yt, R as ro, T as dt, U as so, W as $t, X as io, Y as zt, d as lo, g as uo, b as co, Z as fo, $ as vo, a as po, a0 as Vt, a1 as _t, a2 as ho } from "./index-B2WdBcN2.js";
|
|
3
|
+
import { m as go } from "./menu-BuloZZcj.js";
|
|
4
|
+
import { e as Dt, i as bn, h as mo, j as bo, k as yn, l as yo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
5
|
+
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-BWUFgZh-.js";
|
|
6
6
|
function Eo(e) {
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-
|
|
3
|
-
import { d as H, u as L } from "./index-
|
|
4
|
-
import { E as N } from "./menu-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-BWUFgZh-.js";
|
|
3
|
+
import { d as H, u as L } from "./index-Cnqn6WIO.js";
|
|
4
|
+
import { E as N } from "./menu-BuloZZcj.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-DkAnI-XG.js";
|
|
7
7
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
8
8
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
9
9
|
__name: "index",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as b, computed as U, reactive as de, nextTick as B, watch as fe, defineComponent as Se, onMounted as we, resolveComponent as A, resolveDirective as Me, createElementBlock as se, openBlock as ue, createVNode as I, withCtx as w, withDirectives as Fe, createElementVNode as ce, createTextVNode as ie } from "vue";
|
|
2
|
-
import { s as $, g as q, u as ve, E as F, p as H, f as he, d as be, h as Ne, j as Be } from "./menu-
|
|
3
|
-
import { u as Pe } from "./threeModel.
|
|
4
|
-
import { u as xe, x as Ee } from "./index-
|
|
5
|
-
import { h as Ke } from "./index-
|
|
2
|
+
import { s as $, g as q, u as ve, E as F, p as H, f as he, d as be, h as Ne, j as Be } from "./menu-BuloZZcj.js";
|
|
3
|
+
import { u as Pe } from "./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js";
|
|
4
|
+
import { u as xe, x as Ee } from "./index-ByKePmLX.js";
|
|
5
|
+
import { h as Ke } from "./index-lH7K2Ae4.js";
|
|
6
6
|
import { a as Ae } from "./menuIndex-BWim3TlH.js";
|
|
7
|
-
import { c as W } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
8
|
-
import { b as He, c as Re } from "./index-
|
|
7
|
+
import { c as W } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
8
|
+
import { b as He, c as Re } from "./index-DkAnI-XG.js";
|
|
9
9
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, configMenu: j, activeMenuPath: G, cacheStructures: M } = $(C), Q = b(!1), Ve = U(() => {
|
|
11
11
|
var t, e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs");require("./menu-n3qjG2rK.cjs");const n=require("./index-CGf5Z3_H.cjs"),r=require("./index-BbH6qY5i.cjs"),a=require("./index-CKudLJJ1.cjs"),i=e.defineComponent({__name:"index",setup(u){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await a.getActivePageStructureId()}),(c,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(n.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const l=require("vue"),c=require("./menu-n3qjG2rK.cjs"),u=require("./index-qYLxQkHk.cjs"),g=require("./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-CaLVdXus.cjs"),D=g.useModelComp(),{itemData:i}=c.storeToRefs(D),p=l.ref(0),f=l.ref([{label:"机构名称",value:"",name:"deptName"}]),_=e=>{console.log("handleQueryChange",e)},s=l.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),h=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},m=e=>{console.log("onDoubleClick",e)},C=(e,t)=>{console.log("onButtonClick",e,t)},k=async e=>{const t=await u.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var o;return{id:a.id,tableData:(o=a==null?void 0:a.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(a=>{var o;if(Array.isArray(a==null?void 0:a.tableData)){let r={id:a.id};return(o=a==null?void 0:a.tableData)==null||o.forEach((y,d)=>{r[`a${d}`]=y}),r}else return{...a.tableData,id:a.id}})},b={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};l.watch(()=>i.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(s.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:h,handleQueryChange:_,onButtonClick:C,onDoubleClick:m,pageData:s,queryFormData:f,structureId:p,tempDeptPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=S;exports.tempDeptPageData=b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createElementBlock as M, openBlock as L, createElementVNode as Q, renderSlot as u, defineComponent as Z, ref as m, resolveComponent as r, createVNode as S, withCtx as i, reactive as T, watch as N, unref as v, toDisplayString as k, createTextVNode as j } from "vue";
|
|
2
2
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as EA, l as IA } from "./index-
|
|
3
|
+
import { u as EA, l as IA } from "./index-B2WdBcN2.js";
|
|
4
4
|
import { useRouter as gA } from "vue-router";
|
|
5
|
-
import { u as CA } from "./login-
|
|
6
|
-
import { a as BA, p as QA, E as Y, b as iA, g as G } from "./menu-
|
|
7
|
-
import { v as oA } from "./index-
|
|
5
|
+
import { u as CA } from "./login-CJCoAoN1.js";
|
|
6
|
+
import { a as BA, p as QA, E as Y, b as iA, g as G } from "./menu-BuloZZcj.js";
|
|
7
|
+
import { v as oA } from "./index-DMEfwWgq.js";
|
|
8
8
|
import { d as cA } from "./crypto-BRyGpjGR.js";
|
|
9
9
|
const RA = {}, nA = { class: "header-wrapper" }, wA = { class: "header-horizontal" }, eA = { class: "header-logo" }, sA = { class: "header-cTitle" }, SA = { class: "header-horizontal" }, tA = { class: "header-eTitle" };
|
|
10
10
|
function JA(J, l) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as b, computed as D, watch as H } from "vue";
|
|
2
|
-
import { E as n, s as f, f as x, d as B, h as M, g as E, u as F, p as g } from "./menu-
|
|
3
|
-
import { a as I } from "./index-
|
|
2
|
+
import { E as n, s as f, f as x, d as B, h as M, g as E, u as F, p as g } from "./menu-BuloZZcj.js";
|
|
3
|
+
import { a as I } from "./index-4C972HsD.js";
|
|
4
4
|
import { d as T, i as N, e as S } from "./crypto-BRyGpjGR.js";
|
|
5
|
-
import { u as P } from "./login-
|
|
6
|
-
import { u as w } from "./threeModel.
|
|
7
|
-
import { E as _ } from "./index-
|
|
8
|
-
import { c as O } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
5
|
+
import { u as P } from "./login-CJCoAoN1.js";
|
|
6
|
+
import { u as w } from "./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-BKIbj4w0.js";
|
|
7
|
+
import { E as _ } from "./index-SdUkriaK.js";
|
|
8
|
+
import { c as O } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
9
9
|
const A = P(g), { superAdminInfo: U, cryptoInfo: r } = f(A), j = F(g), { activeMenuPath: i } = f(j), y = "123456", z = w(g), { itemData: L } = f(z), m = b(0), Q = b([
|
|
10
10
|
{
|
|
11
11
|
label: "用户名称",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),o=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),o=require("./menu-n3qjG2rK.cjs"),A=require("./index-CKudLJJ1.cjs"),i=require("./crypto-CRbcEKIz.cjs"),k=require("./login-C7DmHc80.cjs"),D=require("./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-CaLVdXus.cjs"),K=require("./index-DpRiYeQY.cjs"),x=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs"),T=k.useLoginState(o.pinia),{superAdminInfo:M,cryptoInfo:r}=o.storeToRefs(T),q=o.useMenuState(o.pinia),{activeMenuPath:y}=o.storeToRefs(q),f="123456",B=D.useModelComp(o.pinia),{itemData:H}=o.storeToRefs(B),v=c.ref(0),E=c.ref([{label:"用户名称",value:"",name:"userName"}]),d=c.computed(()=>{const a=sessionStorage.getItem("isSuperAdmin");return a?JSON.parse(a):!1}),P=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:"禁用"}],value:"启用"},{label:"操作"}]},{key:"tableContents",contents:[]}]),F=a=>{g(a.singleContent,a.buttonName,v.value)},b=c.ref(),I=a=>{console.log("onDoubleClick",a)},N=(a,s)=>{a==="重置密码"&&K.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("取消重置")})},C=()=>{h(y.value).then(a=>{var n;const s=Array.isArray(a)&&(a==null?void 0:a.filter(e=>(e==null?void 0:e.account)!==M.value.account));p.value=(n=p.value)==null?void 0:n.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=r==null?void 0:r.value)==null?void 0:l.privateKey)}})}:e)})},u=async(a,s,n)=>{var e,t;try{const l=await a(s);return((e=l==null?void 0:l.data)==null?void 0:e.code)===200?(n!=="查询"&&await T.setLogRecordAsync({type:n,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,n)=>{var t,l;const e=x.cloneDeep(a);e!=null&&e.id&&delete e.id,i.isEncryptAvailable()&&e&&(!e.password&&d.value?e.password=i.encryptData(f,(t=r==null?void 0:r.value)==null?void 0:t.publicKey):e.password&&d.value&&(e.password=i.encryptData(e==null?void 0:e.password,(l=r==null?void 0:r.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:n},value:{tableData:e}},s).then(m=>{var _;b.value={...a,newId:m,password:d.value?i.decryptData((a==null?void 0:a.password)??f,(_=r==null?void 0:r.value)==null?void 0:_.privateKey):a==null?void 0:a.password},s&&m&&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:n},value:{tableData:e}},s).then(()=>{s==="重置密码"&&C(),s&&o.ElMessage.success(s+"成功"),A.authorizeDialog.show=!1}):s==="删除"&&u(o.deleteInsofDataApi,{id:a.id},s).then(()=>{s&&o.ElMessage.success(s+"成功")})},h=async a=>{const s=await u(o.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),n=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 n==null?void 0:n.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}})},S={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:p.value,name:""}]}]};c.watch(()=>H.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 w=Object.freeze(Object.defineProperty({__proto__:null,changedRow:b,clickRowButton:N,getPageDataAsync:h,handleItemDataChange:F,handleQueryChange:P,handleSubmitAsync:u,loginUserIsSuper:d,onDoubleClick:I,pageData:p,queryFormData:E,refreshUserTableData:C,structureId:v,submitTableAsyncByVerify:g,tempUserPageData:S},Symbol.toStringTag,{value:"Module"}));exports.State=w;exports.getPageDataAsync=h;exports.handleSubmitAsync=u;exports.submitTableAsyncByVerify=g;exports.tempUserPageData=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index-Bw61yR16.cjs"),k=require("./menu-n3qjG2rK.cjs"),y=require("./threeModel.vue_vue_type_style_index_0_scoped_506601a0_lang-CaLVdXus.cjs");require("./array-DoAPPPoU.cjs");const V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs"),F=require("./index-C31XRLFj.cjs"),O=require("./index-CydkxCxM.cjs"),R=require("./index-DpRiYeQY.cjs"),b={class:"type-select"},L=["onClick"],U={class:"list-icon"},z={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i}=k.storeToRefs(m),C=v=>{const d=_.cloneDeep(i.value);d.push({comp:v.comp,name:v.name,compData:[]}),m.setItemData(d)};return(v,d)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",b,[(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:g=>C(f)},[e.createElementVNode("div",U,[e.createVNode(s,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,L)]))),128))])}}},H=V._export_sfc(z,[["__scopeId","data-v-1f87163f"]]),j={class:"fill-content"},A={class:"operate-content"},G={class:"collapse-title-content"},J={class:"collapse-title-item"},K={key:1},P=["onClick"],Q={class:"icon-content"},W={key:0,class:"edit-content"},X=["onClick"],Y={class:"comp-child"},Z={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i,originalData:C}=k.storeToRefs(m),v=e.ref([]);e.ref([]);const d=e.ref([]),s=e.ref([]),f=a=>{var n;let c=(n=_.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=_.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!1),t));s.value=c,v.value=_.cloneDeep(i.value)},g=(a,c)=>{var h;let n=(h=_.cloneDeep(s.value))==null?void 0:h.map((l,p)=>(a===p&&(l.content=!1),l));s.value=n;const t=_.cloneDeep(i.value),o=t==null?void 0:t.filter((l,p)=>(p===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?v.value=[]:v.value=(c=_.cloneDeep(i.value))==null?void 0:c.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=v.value,s.value=(n=_.cloneDeep(d.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const S=a=>B.getComponent(a),q=(a,c,n)=>{var o,h;if(!a)return;let t=_.cloneDeep(i.value);t=(o=t==null?void 0:t.map((l,p)=>(p===n&&(l.compData=a),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),s.value=(h=_.cloneDeep(t))==null?void 0:h.map((l,p)=>({id:p,content:!1})),m.setOriginalData(t),m.setItemData(t)},T=a=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const c=_.cloneDeep(i.value),n=c==null?void 0:c.filter((t,o)=>o!==a);m.setOriginalData(n),m.setItemData(n),k.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(a,c)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",j,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",A,[e.createVNode(F.default,{class:"collapse-content",collapseContents:v.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,p,D,N,x,w,$,I,M;return[e.createElementVNode("div",G,[e.createElementVNode("div",J,[(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=(p=s.value)==null?void 0:p.find(r=>r.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(O._sfc_main$1,{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=(N=s.value)==null?void 0:N.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,P))]),e.createElementVNode("div",Q,[($=(w=s.value)==null?void 0:w.find(r=>r.id===o))!=null&&$.content?(e.openBlock(),e.createElementBlock("div",W,[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=>g(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(M=(I=s.value)==null?void 0:I.find(r=>r.id===o))!=null&&M.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(r=>T(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,X))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",Y,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=d.value)==null?void 0:h.find((p,D)=>D===o))==null?void 0:l.compData,onChange:p=>q(p,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},ee=V._export_sfc(Z,[["__scopeId","data-v-27bd1564"]]),te={key:0,class:"show-content"},oe={style:{display:"flex"}},ne={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i}=k.storeToRefs(m),C=e.ref([]);e.watch(()=>i.value,()=>{var d;!i.value||((d=i.value)==null?void 0:d.length)===0?C.value=[]:C.value=_.cloneDeep(i.value)},{deep:!0,immediate:!0});const v=d=>B.getComponent(d);return(d,s)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:g},[e.createElementVNode("div",oe,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:g},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},le=V._export_sfc(ne,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=ee;exports.modelSelect=H;exports.modelShow=le;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as a, onMounted as r, createElementBlock as c, openBlock as s, createVNode as i } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { u as m, s as u } from "./menu-
|
|
5
|
-
import { x as l } from "./index-
|
|
6
|
-
import { S as p } from "./index-
|
|
7
|
-
import { u as d } from "./login-
|
|
8
|
-
import { g } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
4
|
+
import { u as m, s as u } from "./menu-BuloZZcj.js";
|
|
5
|
+
import { x as l } from "./index-ByKePmLX.js";
|
|
6
|
+
import { S as p } from "./index-lH7K2Ae4.js";
|
|
7
|
+
import { u as d } from "./login-CJCoAoN1.js";
|
|
8
|
+
import { g } from "./index-4C972HsD.js";
|
|
9
9
|
const I = /* @__PURE__ */ o({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(f) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./menu-
|
|
1
|
+
"use strict";const a=require("./menu-n3qjG2rK.cjs"),h=require("./login-C7DmHc80.cjs"),x=require("vue"),q=a.useMenuState(a.pinia),v=h.useLoginState(a.pinia),D=x.ref(!1),E=x.ref(!1),w=async()=>{const I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),K=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([I,K]).then(s=>{var r,u,o,n,i,l,c,g,y,d,S,f,m,p;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const M=(c=(l=(i=(n=(o=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:o.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;q.setRawMenus(M??[]),D.value=((g=t==null?void 0:t.data)==null?void 0:g.result)&&((d=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(v.setStructureData(e.data.result),v.setIsStructureExist(!0),E.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((p=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:p.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:D.value,structureExist:E.value}};exports.verifyStructureDataToStore=w;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as R, ref as b, reactive as A, resolveComponent as g, createElementBlock as k, openBlock as B, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as w, toDisplayString as N, nextTick as T, Fragment as q, withDirectives as $, renderSlot as z, vShow as H } from "vue";
|
|
2
|
-
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import { X as M, af as X, v as x, w as c, N as m } from "./index-
|
|
4
|
-
import { m as S } from "./menu-
|
|
2
|
+
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BI2vSErk.js";
|
|
3
|
+
import { X as M, af as X, v as x, w as c, N as m } from "./index-B2WdBcN2.js";
|
|
4
|
+
import { m as S } from "./menu-BuloZZcj.js";
|
|
5
5
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
function G(t) {
|
|
7
7
|
return t == null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),S=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),S=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZtlnVW5.cjs"),a=require("./index-BRWn9N9z.cjs"),_=require("./menu-n3qjG2rK.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function w(r){return r==null}const O="ElUpload";class k extends Error{constructor(o,n,i,p){super(o),this.name="UploadAjaxError",this.status=n,this.method=i,this.url=p}}function v(r,o,n){let i;return n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to ${o.method} ${r} ${n.status}`,new k(i,n.status,o.method,r)}function B(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const R=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,n=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(v(n,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(v(n,r,o));r.onSuccess(B(o))}),o.open(r.method,n,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))w(c)||o.setRequestHeader(t,String(c));return o.send(i),o},T=["text","picture","picture-card"];let U=1;const D=()=>Date.now()+U++,L=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>_.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>_.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:T,default:"text"},httpRequest:{type:a.definePropType(Function),default:R},disabled:Boolean,limit:Number});a.buildProps({...L,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const F={style:{"text-align":"left"}},q={class:"cropper-warp"},j={class:"cropper-warp-left"},A=["src"],$={class:"cropper-warp-right"},H={class:"cropper-warp-right-item"},z={class:"cropper-warp-right-value"},M=["src"],X={class:"cropper-warp-right-item"},J={class:"cropper-warp-right-value"},G=["src"],K={class:"dialog-footer"},Q=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:n}){const i=n,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async l=>{if(!l)return;let s=window.URL||window.webkitURL;t.cropperImg=s.createObjectURL(l),t.isShowDialog=!0,e.nextTick(()=>{g()})},u=()=>{var l;(l=t.cropper)==null||l.destroy(),t.isShowDialog=!1},f=()=>{u()},d=async()=>{const l=await h();i("submitImage",{file:l}),u()},y=async()=>{i("deleteImage")},g=()=>{const l=document.querySelector(".cropper-warp-left-img");l&&l.setAttribute("crossOrigin","anonymous"),t.cropper=new S.Cropper(l,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},h=()=>new Promise(l=>{t.cropper.getCroppedCanvas().toBlob(s=>{l(s)})}),C=async l=>{let s=window.URL||window.webkitURL;t.cropperImg=s.createObjectURL(l.raw),t.cropper.replace(t.cropperImg)},N=l=>{p.value.clearFiles();const s=l[0];s.uid=D(),p.value.handleStart(s)};return o({openDialog:c}),(l,s)=>{const E=e.resolveComponent("ele-Edit"),x=e.resolveComponent("el-icon"),m=e.resolveComponent("el-button"),b=e.resolveComponent("el-upload"),P=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(P,{modelValue:t.isShowDialog,"onUpdate:modelValue":s[0]||(s[0]=V=>t.isShowDialog=V),width:"769px","before-close":f},{header:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(x,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(E)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",K,[e.createVNode(b,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":C,"on-exceed":N},{trigger:e.withCtx(()=>[e.createVNode(m,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>s[4]||(s[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(m,{onClick:y,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>s[5]||(s[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(m,{onClick:f,id:"themeBorderButton"},{default:e.withCtx(()=>s[6]||(s[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(m,{onClick:d,id:"themeButton"},{default:e.withCtx(()=>s[7]||(s[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",j,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,A)]),e.createElementVNode("div",$,[s[3]||(s[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",H,[e.createElementVNode("div",z,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,M)]),s[1]||(s[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",X,[e.createElementVNode("div",J,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,G)]),s[2]||(s[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),W=I._export_sfc(Q,[["__scopeId","data-v-5d760968"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:String,default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const n=r,i=e.ref(),p=e.ref(null),t=o,c=async()=>{var d;n!=null&&n.banClick||(t("clickAvatar",n.avatarUrl),(d=i.value)==null||d.openDialog(n.avatarBlob))},u=async d=>{t("submitImage",d)},f=async()=>{t("deleteImage")};return(d,y)=>{const g=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{src:r.avatarUrl,onClick:c,fit:"cover",size:n==null?void 0:n.size,ref_key:"avatarRef",ref:p},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault")]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(W,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:u,onDeleteImage:f},null,8,["avatarUrl"]),[[e.vShow,r.showCropper]])],64)}}});exports._sfc_main=Y;exports.isNil=w;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as cc, s as c5, c as f5, u as h5, p as d5 } from "./menu-
|
|
1
|
+
import { g as cc, s as c5, c as f5, u as h5, p as d5 } from "./menu-BuloZZcj.js";
|
|
2
2
|
import { ref as p5, computed as m5 } from "vue";
|
|
3
|
-
import { a7 as Ac, a8 as ll, o as Ky, a4 as g5, a9 as v5, a5 as Mc, aa as Gh, ab as b5, m as Y0, ac as X0, ad as wh, a3 as y5, ae as su, S as Og } from "./index-
|
|
3
|
+
import { a7 as Ac, a8 as ll, o as Ky, a4 as g5, a9 as v5, a5 as Mc, aa as Gh, ab as b5, m as Y0, ac as X0, ad as wh, a3 as y5, ae as su, S as Og } from "./index-B2WdBcN2.js";
|
|
4
4
|
var Yp = Ac(ll, "WeakMap"), Rg = Object.create, w5 = /* @__PURE__ */ function() {
|
|
5
5
|
function t() {
|
|
6
6
|
}
|