ss-component-new 1.1.412 → 1.1.413
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-DAoy3WS9.cjs → array-CSwVpKuJ.cjs} +1 -1
- package/dist/{array-CYOvmzeK.js → array-Dh0i46pi.js} +2 -2
- package/dist/{index-DbuzlHfh.js → index-24rHtXOF.js} +9 -9
- package/dist/{index-D68A4TXc.cjs → index-AYpwatFI.cjs} +1 -1
- package/dist/{index-WPbX9sqP.cjs → index-B2Fq07yi.cjs} +1 -1
- package/dist/{index-UYsrvpRs.js → index-B5T7_Hfv.js} +413 -380
- package/dist/{index-DrUjNhjW.js → index-BBceT0Au.js} +1 -1
- package/dist/{index-DMp2zGXo.js → index-BCL3B2W3.js} +7 -7
- package/dist/{index-DoIHM98M.js → index-BDBTYDAm.js} +1 -1
- package/dist/{index-AzrB9NlT.js → index-BE-LZbiq.js} +4 -4
- package/dist/{index-eSv5uzFM.js → index-BGGv8YCW.js} +4 -4
- package/dist/{index-Dxfzna5p.cjs → index-BPynUUkE.cjs} +1 -1
- package/dist/{index-DIv5glVC.js → index-BStNLZ42.js} +15 -15
- package/dist/{index-DPm-3I4S.js → index-BTw--p5k.js} +6 -6
- package/dist/{index-BPDslvev.js → index-BU03o3Ju.js} +2 -2
- package/dist/{index-BxHhG5PY.js → index-BVPTyDGN.js} +3 -3
- package/dist/{index-CffNkMWN.cjs → index-BbZUyAdu.cjs} +1 -1
- package/dist/{index-CilqH8oC.cjs → index-BjDV7Cz7.cjs} +1 -1
- package/dist/{index-BibIA5-P.cjs → index-BjaVXOv5.cjs} +1 -1
- package/dist/{index-BpPyaNFa.cjs → index-Bk37DuoM.cjs} +1 -1
- package/dist/{index-9QTlnrEQ.cjs → index-Bm-e95WZ.cjs} +1 -1
- package/dist/{index-CyOcoFxe.cjs → index-BrdbMKvd.cjs} +1 -1
- package/dist/{index-DrCpGMdZ.js → index-BxnGHDCM.js} +3 -3
- package/dist/{index-DHhMROzm.cjs → index-C4OhyEpp.cjs} +1 -1
- package/dist/{index-DjhZHYH_.cjs → index-CAPbOxeI.cjs} +1 -1
- package/dist/{index-BJiXsb3E.cjs → index-CU9Do_8v.cjs} +1 -1
- package/dist/{index-TEDdJfFz.js → index-CY1519pX.js} +7 -7
- package/dist/{index-VOSN3Mnh.js → index-C_Jun3tv.js} +5 -5
- package/dist/{index-Bvr0YvSP.cjs → index-Cr7aGVch.cjs} +1 -1
- package/dist/{index-BszUQuvL.cjs → index-CvB_YjeX.cjs} +1 -1
- package/dist/{index-C8jmJvXd.cjs → index-Cwveu5wW.cjs} +2 -2
- package/dist/{index-Bhg9ISur.js → index-Cx0UOXzP.js} +6 -6
- package/dist/{index-Dnq8JVuW.cjs → index-Cz-SX3Vr.cjs} +1 -1
- package/dist/{index-BSAEf__V.js → index-D7zpgFH2.js} +5 -5
- package/dist/{index-BJIMXITA.js → index-DALN1fcs.js} +5 -5
- package/dist/{index-faxMOO3y.js → index-DCXRZxtU.js} +5 -5
- package/dist/{index-DuwxEG2Y.js → index-DEowpIN-.js} +1 -1
- package/dist/{index-9srnYnzT.js → index-DFLwJ3KT.js} +9 -9
- package/dist/{index-BA-Qtevs.cjs → index-Dgf9fuDm.cjs} +1 -1
- package/dist/{index-Dm1_86kX.js → index-Dle4rTtv.js} +3 -3
- package/dist/{index-BHxsT1eb.cjs → index-DnhKk8wP.cjs} +1 -1
- package/dist/{index-BimZK7wy.cjs → index-Dp0b548D.cjs} +1 -1
- package/dist/{index-BJitBJZu.cjs → index-Dw0rc4QE.cjs} +1 -1
- package/dist/{index-BVuLbYm9.cjs → index-DxLAL2lm.cjs} +1 -1
- package/dist/{index-DBB_scdx.cjs → index-JaxYzGiv.cjs} +1 -1
- package/dist/{index-B6_X9xq9.js → index-KkjugPBD.js} +4 -4
- package/dist/{index-FBp-XX6h.js → index-Mzgmsk8P.js} +1 -1
- package/dist/{index-BOzZXj2f.js → index-RZC24UKn.js} +7 -7
- package/dist/{index-CTTEAggF.cjs → index-_wV6-Llj.cjs} +1 -1
- package/dist/index-b6dDRbJK.cjs +1 -0
- package/dist/{index-8nzu3dKT.js → index-b8cI-JMV.js} +4 -4
- package/dist/{index-CA9lI4P8.js → index-bj7mOAVK.js} +4 -4
- package/dist/{index-ZUmqWSaw.cjs → index-mnA3swxC.cjs} +1 -1
- package/dist/{index-3dpRV7yS.cjs → index-ryZW4H12.cjs} +1 -1
- package/dist/{index-CdLmmvxi.cjs → index-vX-r2aen.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-OrELjG9X.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-d9_SaET-.js} +3 -3
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs +244 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js +51941 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-C1K4Ki_m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DysCq2pc.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CI2nWr0Z.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CtkN_3NU.js} +15 -15
- package/dist/{login-DsWsywlE.cjs → login-CwoRR3Nc.cjs} +1 -1
- package/dist/{login-CARNmuDg.js → login-jvP43w57.js} +1 -1
- package/dist/{main-C7zpT64X.js → main-B4JZ9T9G.js} +6 -6
- package/dist/{main-NoOanZcQ.cjs → main-DI3zYE5l.cjs} +1 -1
- package/dist/{menu-B-Z5KAh5.cjs → menu-Bj4qq0KK.cjs} +1 -1
- package/dist/{menu-D9x5_s9p.js → menu-pNM6_DJi.js} +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-component2.cjs +1 -1
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-BazaxATJ.js → threeModel-B2v_doHa.js} +1 -1
- package/dist/{threeModel-MVkoDB-c.cjs → threeModel-Bx3XHoSZ.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CNQtTLfb.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js +0 -9119
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs +0 -47
|
@@ -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-OrELjG9X.cjs");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),r=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),r=require("./menu-Bj4qq0KK.cjs"),R=require("./login-CwoRR3Nc.cjs"),q=require("./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs"),F=r.useMenuState(),{activeMenuPath:b}=r.storeToRefs(F),I=R.useLoginState(),{structureData:z}=r.storeToRefs(I),O=q.useModelComp(),{itemData:$}=r.storeToRefs(O),j=c.ref([{label:"角色名称",value:"",name:"roleName"}]),H=c.ref([{label:"查询"},{label:"重置"}]),w=c.reactive({isFilter:!1,filterForm:{}}),L=c.ref(!1),Q=a=>{console.log("handleQueryChange",a),w.isFilter=!0,w.filterForm=a},f=c.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"header",contents:[{label:"角色名称",prop:"roleName"},{label:"角色状态",formType:"Radio",prop:"roleStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"角色排序",prop:"roleOrder",formType:"Number"},{label:"备注",prop:"remark",formType:"TextArea"},{label:"权限",prop:"roleAuthority",isTableColHidden:!0,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:[]}]),U=c.computed(()=>f.value),V=a=>{C(a.singleContent,a.buttonName)},A=c.ref({}),k=c.ref(),d=async(a,e,l)=>{var t,n;try{const s=await a(e);return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(l!=="查询"&&await I.setLogRecordAsync({type:l,data:e},b.value),s.data.result||((n=s==null?void 0:s.data)==null?void 0:n.code)===200):null}catch(s){r.ElMessage.error(s)}},M=(a,e)=>{e==null||e.forEach(l=>{a==null||a.forEach(t=>{var n;t.path==l.path&&(t.checkedButtons=l.checkedButtons),t.children&&((n=t.children)==null?void 0:n.length)>0&&M(t.children,e)})})},T=a=>a==null?void 0:a.map(e=>{var t;const l={...e,checkedButtons:[]};return l.children&&((t=l.children)==null?void 0:t.length)>0&&(l.children=T(l.children)),l}),G=async(a,e)=>{switch(A.value=m.cloneDeep(e),a){case"授权":u.title=`【${e.roleName}】授权`,u.show=!0,await c.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&M(p.value,e.roleAuthority);break}},J=()=>{u.show=!1},g=c.ref(),W=async a=>{const e=await d(r.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((o,y)=>{s[`a${y}`]=o}),s}else return{...t.tableData,id:t.id}})},C=(a,e)=>{const l=m.cloneDeep(a);l!=null&&l.id&&delete l.id,e==="新增"?d(r.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{g.value={...a,newId:t},e&&t&&r.ElMessage.success(e+"成功")}):e==="编辑"?(console.log("编辑角色",l),d(r.updateInsofDataApi,{id:a.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功"),u.show=!1})):e==="删除"&&d(r.deleteInsofDataApi,{id:a.id},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功")})},K=a=>{let e=[];return a==null||a.forEach(l=>{var t;if(l.checkedButtons&&((t=l.checkedButtons)==null?void 0:t.length)>0){const n={path:l.path,checkedButtons:l.checkedButtons};e=e.concat(n)}l.children&&(e=e.concat(K(l.children)))}),e},X=()=>{g.value={...A.value,roleAuthority:K(p.value)},c.nextTick(()=>{console.log("clickSubmitAuthority",g.value,f.value),C(g.value,"编辑")})},u=c.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),Y=({isPenultimate:a},e)=>{var l,t;return console.log("isPenultimate",a,e),((t=(l=e==null?void 0:e.data)==null?void 0:l.renderButtons)==null?void 0:t.length)>0?"is-penultimate":""},v=c.ref(0),x=async()=>{var l,t,n,s,o;let a;const e=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:b.value}});return((l=e==null?void 0:e.data)==null?void 0:l.code)===200&&(t=e==null?void 0:e.data)!=null&&t.result&&((n=e==null?void 0:e.data)==null?void 0:n.result.length)>0&&(a=(o=(s=e==null?void 0:e.data.result)==null?void 0:s[0])==null?void 0:o.id),a},p=c.ref([]),Z=c.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),ee=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},i=c.ref([]),te=(a,e)=>{var l,t,n;e.checkedButtons=a,((l=e.checkedButtons)==null?void 0:l.length)===((t=e.renderButtons)==null?void 0:t.length)?i.value.push(e.path):(a==null?void 0:a.length)===0&&(i.value=(n=i.value)==null?void 0:n.filter(s=>s!==e.path))};c.watch(()=>i.value.length,()=>{var e,l;const a=(e=k.value)==null?void 0:e.getCheckedKeys();console.log(112,i.value,a),(l=k.value)==null||l.setCheckedKeys([...i.value])});c.watch(()=>u.show,a=>{a||(p.value=T(p.value))});const D=c.computed(()=>{var l;const a=(l=m.cloneDeep(z.value))==null?void 0:l.filter(t=>{var n,s;return((s=(n=t==null?void 0:t.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...a==null?void 0:a.map(t=>{var o,y,_,S;const n=/button/i;let s=(_=(y=(o=t==null?void 0:t.value)==null?void 0:o.pageData)==null?void 0:y.compData)==null?void 0:_.filter(h=>n.test(h==null?void 0:h.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(h=>h.contents.map(N=>N.label)))),{path:(S=t==null?void 0:t.key)==null?void 0:S.pageKey,buttons:s}}),...P.value]}),P=c.ref([]),B=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(o=>(o==null?void 0:o.path)===(l==null?void 0:l.path));return l.childMenus&&l.childMenus.length>0?{...l,renderButtons:l.carryData?(n=t==null?void 0:t.buttons)==null?void 0:n.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[],children:B(l.childMenus,D.value),childMenus:B(l.childMenus,D.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[]}})},E={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:f.value,name:""}]}]};c.watch(()=>$.value,a=>{var e;a&&(a==null?void 0:a.length)>0&&(f.value=(e=a==null?void 0:a[0])==null?void 0:e.compData)});const ae=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:B,authorizeDialog:u,buttonValue:H,changedRow:g,clickRow:A,clickRowButton:G,clickSubmitAuthority:X,closeAuthorizeDialog:J,customNodeClass:Y,getActivePageStructureId:x,getPageDataAsync:W,handleItemDataChange:V,handleNodeBtnChange:te,handleNodeCheckChange:ee,handleQueryChange:Q,handleSubmitAsync:d,isPageDataExist:L,menuData:p,menusButtons:Z,pageData:f,pageDataFiltered:U,queryFormData:j,structureButtons:D,structureId:v,submitTableAsyncByVerify:C,tempRolePageData:E,tempSysMenus:P,treeRef:k},Symbol.toStringTag,{value:"Module"}));exports.State=ae;exports.authorizeDialog=u;exports.getActivePageStructureId=x;exports.tempRolePageData=E;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as c, computed as M, reactive as N, nextTick as x, watch as D } from "vue";
|
|
2
|
-
import { g as P, s as C, E as f, c as z, d as H, e as L, u as Q } from "./menu-
|
|
3
|
-
import { u as U } from "./login-
|
|
4
|
-
import { u as V } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-
|
|
5
|
-
import { c as A } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { g as P, s as C, E as f, c as z, d as H, e as L, u as Q } from "./menu-pNM6_DJi.js";
|
|
3
|
+
import { u as U } from "./login-jvP43w57.js";
|
|
4
|
+
import { u as V } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js";
|
|
5
|
+
import { c as A } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
6
6
|
const $ = Q(), { activeMenuPath: b } = C($), E = U(), { structureData: q } = C(E), G = V(), { itemData: J } = C(G), W = c([
|
|
7
7
|
{
|
|
8
8
|
label: "角色名称",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Iw, watch as cL, onUnmounted as pL, createElementBlock as Lw, openBlock as Ew, createVNode as dL } from "vue";
|
|
2
2
|
import { _ as Pw } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as qi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { c as qi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -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.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-
|
|
5
|
-
import "./array-
|
|
2
|
+
import { s as Y, g as J } from "./index-BCL3B2W3.js";
|
|
3
|
+
import { p as B, s as V, E as Z } from "./menu-pNM6_DJi.js";
|
|
4
|
+
import { u as S } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js";
|
|
5
|
+
import "./array-Dh0i46pi.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-BP5MoIJH.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-B5T7_Hfv.js";
|
|
10
|
+
import { E as ne } from "./index-BGGv8YCW.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 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-OrELjG9X.cjs"),k=require("./index-CvB_YjeX.cjs"),x=require("./menu-Bj4qq0KK.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-Cwveu5wW.cjs"),B=require("./index-Bk37DuoM.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:T=>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"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=E;exports.ssSignature=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-Bk37DuoM.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs");require("./menu-Bj4qq0KK.cjs");const r=require("./index-Dgf9fuDm.cjs"),n=require("./index-BjaVXOv5.cjs"),a=require("./index-JaxYzGiv.cjs"),i={class:"role-wrapper"},o=e.defineComponent({__name:"index",setup(c){const t=e.reactive({...n.State});return e.onMounted(async()=>{t.structureId=await a.getActivePageStructureId()}),(u,s)=>(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(r.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=o;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as y, reactive as v, onMounted as w, watch as V, nextTick as S, resolveComponent as s, createElementBlock as f, openBlock as i, createVNode as r, withCtx as n, createElementVNode as h, toDisplayString as p, Fragment as M, renderList as z, createBlock as T, createTextVNode as _ } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import { c as A } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { u as N, s as R } from "./menu-
|
|
5
|
-
import { v as I } from "./index-
|
|
6
|
-
import { S as k } from "./index-
|
|
3
|
+
import { c as A } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
4
|
+
import { u as N, s as R } from "./menu-pNM6_DJi.js";
|
|
5
|
+
import { v as I } from "./index-DCXRZxtU.js";
|
|
6
|
+
import { S as k } from "./index-KkjugPBD.js";
|
|
7
7
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "role-wrapper" }, F = { class: "role-dialog-header" }, O = { class: "node-text" }, L = { class: "dialog-footer" }, P = /* @__PURE__ */ y({
|
|
9
9
|
__name: "index",
|
|
@@ -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-24rHtXOF.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-jvP43w57.js";
|
|
6
|
+
import { a as BA, p as QA, E as Y, b as iA, g as G } from "./menu-pNM6_DJi.js";
|
|
7
|
+
import { v as oA } from "./index-BU03o3Ju.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-Bk37DuoM.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs");const n=require("./menu-Bj4qq0KK.cjs"),c=require("./index-Dgf9fuDm.cjs"),r=require("./index-DnhKk8wP.cjs"),u=require("./login-CwoRR3Nc.cjs"),i=require("./index-JaxYzGiv.cjs"),s=e.defineComponent({__name:"index",setup(l){const o=n.useMenuState(),{activeMenuPath:d}=n.storeToRefs(o),a=u.useLoginState(),t=e.reactive({...r.State});return e.onMounted(async()=>{a.getModelSecretAsync(),t.structureId=await i.getActivePageStructureId()}),(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(c.ssTable,{itemData:t.pageData,changedContent:t.changedRow,onChange:t.handleItemDataChange,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=s;
|