ss-component-new 1.1.543 → 1.1.544
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/icons/svg/DongHuaFangZhen.svg +1 -0
- package/dist/{index-C23b7B-Z.js → index-9tUjy5PU.js} +1 -1
- package/dist/{index-zR3cYynp.cjs → index-B8CCHFAL.cjs} +1 -1
- package/dist/{index-CCicaukT.cjs → index-BGGoiAQJ.cjs} +1 -1
- package/dist/{index-xdstWmmZ.js → index-BKkwXFHJ.js} +2 -2
- package/dist/{index-tNGQXarW.js → index-BT2f4FLq.js} +2 -2
- package/dist/{index-DHuUMPnc.cjs → index-BWPge8BF.cjs} +1 -1
- package/dist/{index-CkcltdIx.js → index-BdeHq8U4.js} +3 -3
- package/dist/{index-hPQ6sEZh.cjs → index-BhGDL0w9.cjs} +1 -1
- package/dist/{index-CRANGpYU.js → index-Bk7P0gLn.js} +1 -1
- package/dist/{index-D3VIsRk3.cjs → index-C2UyEyuW.cjs} +1 -1
- package/dist/{index-CysVaN7M.cjs → index-CFs5XhDB.cjs} +12 -12
- package/dist/{index-BHtY7SP1.cjs → index-CKFdtJQ_.cjs} +1 -1
- package/dist/{index-B_uGYaMU.js → index-CNTga0xp.js} +1 -1
- package/dist/{index-CQjIHKId.js → index-CYajRR8m.js} +3 -3
- package/dist/{index-CA3Cjtjp.js → index-CcbZfGsJ.js} +1352 -1349
- package/dist/{index-DtWH6Vvi.cjs → index-Ck9qfG6f.cjs} +1 -1
- package/dist/{index-CTfCdDlp.js → index-DGA3OWJM.js} +1 -1
- package/dist/{index-ttUumQ5Q.cjs → index-DGEdWdZI.cjs} +1 -1
- package/dist/{index-CVcxT3vs.js → index-DGrZ9_7w.js} +1 -1
- package/dist/{index-6c_x2IDg.js → index-DKb5dDlW.js} +1 -1
- package/dist/{index-CF0HELy8.cjs → index-DMjNdCd0.cjs} +1 -1
- package/dist/{index-Dhb2_O4O.cjs → index-DbnVZsFm.cjs} +1 -1
- package/dist/{index-CQpu-l4k.js → index-Dt9xVNCe.js} +1 -1
- package/dist/{index-Cjhr1ckv.js → index-DzviQheY.js} +5 -5
- package/dist/{index-B09eH1Mw.js → index-Fh9o9Ue4.js} +2 -2
- package/dist/{index-CSKKNykq.cjs → index-G1MrSJAj.cjs} +1 -1
- package/dist/{index-eoUnPPUX.js → index-I04gcueX.js} +1 -1
- package/dist/{index-wGEqfX7s.js → index-LBVcL9le.js} +8 -8
- package/dist/{index-D0RGZjrn.cjs → index-Rr_qIjuI.cjs} +1 -1
- package/dist/{index-BkHmd2IB.cjs → index-_RkQlee1.cjs} +1 -1
- package/dist/{index-C-dMmgwp.cjs → index-pmo81TJd.cjs} +1 -1
- package/dist/{index-DSGsFq9G.cjs → index-w-MJfuW8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CWITBDjC.cjs → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BboyWIOn.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BPX2BQrS.js → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CCTXAXtk.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DtFsZ9uu.js → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BPGeGqic.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BgDPBstQ.cjs → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DL9lrMO2.cjs} +1 -1
- package/dist/{main-TVV3GYVF.js → main-DG5uHzh3.js} +2 -2
- package/dist/{main-DZLl56n8.cjs → main-tgL45d0T.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-TrTm27Rg.cjs → threeModel-CU8X0f4b.cjs} +1 -1
- package/dist/{threeModel-_UHu0iBp.js → threeModel-DyEg1a4d.js} +497 -469
- package/package.json +1 -1
- package/public/icons/svg/DongHuaFangZhen.svg +1 -0
- /package/dist/{threeModel.vue_vue_type_style_index_0_scoped_fa07a7ad_lang-BV7oq1Z4.js → threeModel.vue_vue_type_style_index_0_scoped_d7504764_lang-BV7oq1Z4.js} +0 -0
- /package/dist/{threeModel.vue_vue_type_style_index_0_scoped_fa07a7ad_lang-DCn4bomb.cjs → threeModel.vue_vue_type_style_index_0_scoped_d7504764_lang-DCn4bomb.cjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753424743198" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="51312" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M672.768 62.890667l147.797333 85.333333-34.048 95.146667a384.725333 384.725333 0 0 1 58.026667 76.629333c16.469333 28.501333 28.842667 58.24 37.376 88.533333L981.333333 426.666667v170.666666l-99.541333 18.133334a383.573333 383.573333 0 0 1-95.274667 165.162666l34.048 95.146667-147.797333 85.333333-65.408-77.056a383.573333 383.573333 0 0 1-190.677333-0.085333l-65.450667 77.141333-147.797333-85.333333 34.048-95.146667a384.725333 384.725333 0 0 1-58.026667-76.629333 384.725333 384.725333 0 0 1-37.376-88.576L42.666667 597.333333v-170.666666l99.541333-18.133334a383.573333 383.573333 0 0 1 95.274667-165.162666l-34.048-95.146667 147.797333-85.333333L416.64 139.946667a383.573333 383.573333 0 0 1 190.677333 0.085333l65.450667-77.141333zM405.333333 327.253333a213.333333 213.333333 0 1 0 213.333334 369.493334 213.333333 213.333333 0 0 0-213.333334-369.493334zM512 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z" p-id="51313"></path></svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
2
|
import { c as J, s as be, g as U, u as he, E as S, p as $, bO as ae, bM as oe, bP as Ce, f as Ie } from "./menu-DV47UKJo.js";
|
|
3
3
|
import { u as ke } from "./modelComp-B4I2gbtf.js";
|
|
4
|
-
import { u as Te } from "./index-
|
|
4
|
+
import { u as Te } from "./index-Fh9o9Ue4.js";
|
|
5
5
|
import { f as Me } from "./index-z1F5TOoY.js";
|
|
6
6
|
import { a as Se } from "./menuIndex-M4MLExuN.js";
|
|
7
7
|
const F = ke($), ne = Te($), C = he($), { menus: ue, configMenu: O, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DL9lrMO2.cjs"),e=require("vue"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),p=["title"],_={key:0,class:"menu-operate-icon"},C={class:"menu-config-wrap"},k=["onClick"],f={class:"module-dialog-content"};function h(o,l,m,B,V,y){const r=e.resolveComponent("svg-icon"),a=e.resolveComponent("el-popover"),d=e.resolveComponent("ssMenu"),i=e.resolveComponent("el-button"),c=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{mode:o.mode,menuList:o.renderMenuList,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var s;return[e.createVNode(r,{name:t.icon??"",class:"menu-icon"},null,8,["name"]),e.createElementVNode("span",{title:t.title,class:"menu-title"},e.toDisplayString(t.title??""),9,p),t!=null&&t.config&&((s=t==null?void 0:t.config)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("span",_,[e.createVNode(a,{title:"菜单操作",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(r,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:N=>o.clickMenuIcon(t,n)},[e.createVNode(r,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,k))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"]),e.createVNode(c,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",f,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(i,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(i,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const v=g._export_sfc(u._sfc_main,[["render",h],["__scopeId","data-v-d888ede3"]]);exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-CKFdtJQ_.cjs");require("./menu-B-wiVQl5.cjs");require("./array-CP2rPazD.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DL9lrMO2.cjs");require("./index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BboyWIOn.cjs");require("./crypto-Cd99aqcx.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CK9PyDrN.cjs");require("./threeModel.vue_vue_type_style_index_0_scoped_d7504764_lang-DCn4bomb.cjs");require("vue-router");require("./index-DbnVZsFm.cjs");const g={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,l=()=>{i("buildContent")},s=t=>{i("openThreeBuild",t)},w=t=>{i("threeData",t)},u=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,d=16,h=t/r,f=d*h;document.documentElement.style.fontSize=`${f}px`};return n.onMounted(()=>{u(),window.addEventListener("resize",u)}),(t,r)=>{const d=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(d,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,onBuildContent:l,onOpenThreeBuild:s,pageKey:o.pageKey,onThreeData:w},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","pageKey"])])}}},m=C._export_sfc(g,[["__scopeId","data-v-907901e0"]]);exports.default=m;
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
2
|
+
import { s as Y, g as J } from "./index-BdeHq8U4.js";
|
|
3
3
|
import { p as B, s as V, c as v, E as Z } from "./menu-DV47UKJo.js";
|
|
4
4
|
import { u as S } from "./modelComp-B4I2gbtf.js";
|
|
5
5
|
import "./array-CLz11m07.js";
|
|
6
6
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ee from "./index-CZtXRS3l.js";
|
|
8
|
-
import { b as te } from "./index-
|
|
8
|
+
import { b as te } from "./index-CcbZfGsJ.js";
|
|
9
9
|
import { E as ne } from "./index-8i6baSTn.js";
|
|
10
10
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
11
11
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as c, reactive as k, computed as K, defineComponent as Z, onMounted as G, resolveDirective as Q, createElementBlock as E, openBlock as _, createElementVNode as b, withDirectives as X, createVNode as S, unref as D, createBlock as Y } from "vue";
|
|
2
2
|
import { s as U, bS as ee, bT as te, bU as ae, g as P, u as se, p as V, bM as re, E as B } from "./menu-DV47UKJo.js";
|
|
3
3
|
import { u as L, e as ne, d as oe } from "./crypto-8Ga3ud_Q.js";
|
|
4
|
-
import { a as le, s as ie } from "./index-
|
|
5
|
-
import { d as ue, h as de } from "./index-
|
|
4
|
+
import { a as le, s as ie } from "./index-DGA3OWJM.js";
|
|
5
|
+
import { d as ue, h as de } from "./index-CcbZfGsJ.js";
|
|
6
6
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const $ = L(V), { loginUserInfo: i, cryptoInfo: m } = U($), ge = se(V), { activeMenuPath: h } = U(ge), I = c(0);
|
|
8
8
|
var R, N, M, x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("./menu-B-wiVQl5.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("./menu-B-wiVQl5.cjs"),_=require("./index-DbnVZsFm.cjs"),r=require("./index-Cwjqsu4B.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g={class:"menu-content"},v=l.defineComponent({__name:"index",setup(h){const d=t.useMenuState(t.pinia),{menus:c}=t.storeToRefs(d),p=l.ref([]),f=async()=>{var o,n,u,a;const e=await t.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((o=e==null?void 0:e.data)==null?void 0:o.type)==="success"){let i=(u=(n=e==null?void 0:e.data)==null?void 0:n.result)==null?void 0:u.map(s=>s);return i=(a=t.cloneDeep(i))==null?void 0:a.map(s=>{var m;const b=Object.values((m=s==null?void 0:s.value)==null?void 0:m.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),i}else return[]};l.onMounted(async()=>{var u;const e=await f(),n=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(u=t.cloneDeep(c.value))==null?void 0:u.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];n.push({key:"tableContents",contents:e}),p.value=n});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,o)=>(l.openBlock(),l.createElementBlock("div",g,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),x=C._export_sfc(v,[["__scopeId","data-v-26f5cadc"]]);exports.default=x;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { p as oa, a as Gl, I as al, g as gl, q as ua, r as ra, v as ca, w as ta, x as zl, y as da, z as pa, A as fa, B as va } from "./index-
|
|
1
|
+
import { p as oa, a as Gl, I as al, g as gl, q as ua, r as ra, v as ca, w as ta, x as zl, y as da, z as pa, A as fa, B as va } from "./index-Fh9o9Ue4.js";
|
|
2
2
|
import { ref as W, watch as Ne, createElementBlock as ue, openBlock as M, createVNode as U, resolveComponent as Ee, Fragment as Be, renderList as Fe, createElementVNode as x, createCommentVNode as Je, toDisplayString as me, withCtx as ee, createBlock as Le, createTextVNode as xe, defineComponent as il, reactive as El, resolveDynamicComponent as ml, unref as ql, computed as Bl, renderSlot as kl, createSlots as ha, mergeProps as ma, normalizeStyle as ya, withModifiers as hl } from "vue";
|
|
3
3
|
import { bR as Hl, p as qe, c as i, s as ll, E as Ge, u as ba, g as wl, d as Dl, bO as ga } from "./menu-DV47UKJo.js";
|
|
4
|
-
import { d as We, s as ze, e as Ql, a as ka, f as _a, h as Ca, b as wa } from "./index-
|
|
4
|
+
import { d as We, s as ze, e as Ql, a as ka, f as _a, h as Ca, b as wa } from "./index-CcbZfGsJ.js";
|
|
5
5
|
import { F as Ml, a as Da, b as Pe, m as ol, s as He, f as sl, e as xl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPJ7Cu30.js";
|
|
6
6
|
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { E as el } from "./index-8i6baSTn.js";
|
|
8
8
|
import { u as Xl } from "./modelComp-B4I2gbtf.js";
|
|
9
|
-
import { s as xa, a as Ia } from "./index-
|
|
9
|
+
import { s as xa, a as Ia } from "./index-DGA3OWJM.js";
|
|
10
10
|
import Aa from "./index-CZtXRS3l.js";
|
|
11
11
|
const $a = (p) => p.match(/\((.*)\)/)[1], Ea = Hl("formComp", {
|
|
12
12
|
state: () => ({
|
|
@@ -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-CK9PyDrN.cjs");const n=require("./menu-B-wiVQl5.cjs"),u=require("./index-
|
|
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-CK9PyDrN.cjs");const n=require("./menu-B-wiVQl5.cjs"),u=require("./index-DbnVZsFm.cjs"),o=require("./index-C2mK8_eD.cjs"),c=require("./index-RqtMCA_6.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { u as h, p as k, s as x, c as m, g as M } from "./menu-DV47UKJo.js";
|
|
3
|
-
import { B as D } from "./index-
|
|
3
|
+
import { B as D } from "./index-Fh9o9Ue4.js";
|
|
4
4
|
import { a as T, d as B, f as S } from "./index-B3MmxsIn.js";
|
|
5
5
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-IJCmIwBn.cjs"),k=require("./index-Csb_gyiA.cjs"),x=require("./menu-B-wiVQl5.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-IJCmIwBn.cjs"),k=require("./index-Csb_gyiA.cjs"),x=require("./menu-B-wiVQl5.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CFs5XhDB.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;
|