ss-component-new 1.3.435 → 1.3.436
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/{MTLLoader-p0GsbA2N.cjs → MTLLoader-BwkFVqL-.cjs} +1 -1
- package/dist/{MTLLoader-D7sNoLcK.js → MTLLoader-DNSv6X0i.js} +1 -1
- package/dist/{OrbitControls-xsAEcOQ0.js → OrbitControls-BYUrBNWv.js} +1 -1
- package/dist/{OrbitControls-BhtVNiz9.cjs → OrbitControls-DaZRnXU6.cjs} +1 -1
- package/dist/{URDFLoader-OhWW6Ghz.js → URDFLoader-BZBVqZws.js} +2 -2
- package/dist/{URDFLoader-DAb823an.cjs → URDFLoader-DYKZA4lN.cjs} +1 -1
- package/dist/{animationData-CM85S6tn.cjs → animationData-BJRWi-LU.cjs} +1 -1
- package/dist/{animationData-CZHPgZ5e.js → animationData-Zq5cH5C8.js} +12 -12
- package/dist/{array-wB3zPS0S.js → array-BI1Zq_Vg.js} +2 -2
- package/dist/{array-luuLL6CX.cjs → array-eY34zAfR.cjs} +1 -1
- package/dist/{iconfont-DvB947R2.cjs → iconfont-Bt2wRD-G.cjs} +1 -1
- package/dist/{iconfont-C5j4Td3D.js → iconfont-CY4Fa9KU.js} +2 -2
- package/dist/{index-BF5SUWUn.js → index-5zBx2xab.js} +89 -83
- package/dist/{index-DZ-jLFih.js → index-B5-EcAFU.js} +1 -1
- package/dist/{index-CYnI31LU.js → index-B5nBaG72.js} +1 -1
- package/dist/{index-L_BH-SIP.js → index-BBXnYqQo.js} +3226 -3226
- package/dist/{index-Lhh-KMx5.js → index-BMbjyksn.js} +1 -1
- package/dist/{index-B9MP9Z_h.cjs → index-BMofVGXk.cjs} +20 -20
- package/dist/{index-DnwoeTr-.cjs → index-BP5IlDO1.cjs} +1 -1
- package/dist/{index-DTllcl_O.js → index-BRUxCmkT.js} +1 -1
- package/dist/index-BXHNS9fD.cjs +2 -0
- package/dist/{index-DbIRquOl.js → index-BhP-ZQK3.js} +6 -6
- package/dist/{index-BOz_MAHK.js → index-BiE5QG9s.js} +1146 -1146
- package/dist/{index-C3JpBKyN.cjs → index-BiwYTq-N.cjs} +1 -1
- package/dist/{index-BZ3P1ll8.js → index-BmejVlGP.js} +5 -5
- package/dist/{index-Bq7AQN37.js → index-BrzrnT8b.js} +1 -1
- package/dist/{index-CynRFydr.js → index-ByCDkQUG.js} +1 -1
- package/dist/{index-C4bA0jPu.cjs → index-BzNc3sdU.cjs} +1 -1
- package/dist/{index-CFiyfU1X.js → index-CCUIg0kG.js} +27 -27
- package/dist/{index-wRPswAvQ.cjs → index-CFNW7PfV.cjs} +1 -1
- package/dist/{index-C2qa2ljw.js → index-CGuQZvE_.js} +3 -3
- package/dist/{index-B99I_vDk.cjs → index-CH6FDDO2.cjs} +1 -1
- package/dist/{index-fsO0R02I.cjs → index-CQd0Aqkm.cjs} +1 -1
- package/dist/{index-D0FUzQhj.cjs → index-CrZWPOVM.cjs} +1 -1
- package/dist/{index-CiPgqhA6.cjs → index-D5jUcg0b.cjs} +1 -1
- package/dist/{index-CljHDtk8.cjs → index-D7aAxcbI.cjs} +1 -1
- package/dist/{index-CgMsDp37.js → index-D7kfKwZP.js} +4 -4
- package/dist/{index-DxPKykuA.cjs → index-D8DyFGA3.cjs} +1 -1
- package/dist/{index-DkA3dv5l.js → index-DCm5o7Nl.js} +1 -1
- package/dist/{index-CMpvaYXO.cjs → index-DKB0aNCU.cjs} +1 -1
- package/dist/{index-CJow9MRO.js → index-DS1OVe8L.js} +3 -3
- package/dist/{index-DQD6jg8m.cjs → index-DfyY-kQa.cjs} +1 -1
- package/dist/{index-CLLeUa5o.cjs → index-FcjQa2OL.cjs} +1 -1
- package/dist/{index-D1kQL369.cjs → index-K9cQO2sS.cjs} +1 -1
- package/dist/{index-BRqKT37j.cjs → index-QwmS4kdo.cjs} +1 -1
- package/dist/{index-BTgKT-Kp.js → index-aaiRLVcp.js} +7 -7
- package/dist/{index-CZuPznao.cjs → index-dAoOU6TR.cjs} +1 -1
- package/dist/{index-DXbOEeAm.js → index-fhsJt0EV.js} +4 -4
- package/dist/{index-fh5hS-5q.cjs → index-pTiemqvw.cjs} +1 -1
- package/dist/{index-Ca_pqbsS.js → index-sVk4LM6C.js} +27 -27
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js} +1 -1
- package/dist/{main-JSkTNHXB.js → main-BlZItKSk.js} +3 -3
- package/dist/{main-G0V83rc_.cjs → main-p7ugASAL.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-Df9F-OvR.cjs → threeModel-DfhsrZbS.cjs} +1 -1
- package/dist/{threeModel-CkZ94OPN.js → threeModel-U9Ebj9L9.js} +3 -3
- package/dist/{threePreview-Bs-m2IAX.cjs → threePreview-9qfx_J15.cjs} +1 -1
- package/dist/{threePreview-BoiGO8RT.js → threePreview-Djh17gcq.js} +3 -3
- package/dist/{threeSceneView-Blh_DkGZ.cjs → threeSceneView-Bwt7-yVb.cjs} +1 -1
- package/dist/{threeSceneView-BEoquzn3.js → threeSceneView-D4j_5KU8.js} +10 -10
- package/dist/{threeSceneViewForCPMPIP-c-Kv5yPO.js → threeSceneViewForCPMPIP-BR7977LK.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-BxzpG0Ns.cjs → threeSceneViewForCPMPIP-Bz2CMJLN.cjs} +1 -1
- package/dist/{threeTrackPathView-DL3Fx1XR.cjs → threeTrackPathView-C8S1xa9M.cjs} +1 -1
- package/dist/{threeTrackPathView-C7MWmsr9.js → threeTrackPathView-CewpNc2B.js} +3 -3
- package/dist/{threeViewerHost-DBcfrh7A.js → threeViewerHost-DUYBcUTK.js} +2 -2
- package/dist/{threeViewerHost-D_4JNLXj.cjs → threeViewerHost-tQd9g0c_.cjs} +1 -1
- package/dist/{urdfTree-BwPn5sja.js → urdfTree-BWSOyDd8.js} +1 -1
- package/dist/{urdfTree-B1vSZdxZ.cjs → urdfTree-tWRZTeGx.cjs} +1 -1
- package/dist/{workpieceTreePanel-DnVOjYQ2.js → workpieceTreePanel-C_zbYiB6.js} +4 -4
- package/dist/{workpieceTreePanel-zPR2Z6wa.cjs → workpieceTreePanel-cotaSjga.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-j5gKbJLv.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs"),a=require("./request-Dl8yi2iS.cjs"),k=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=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(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!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))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.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:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,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 j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{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")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, createElementBlock as D, openBlock as k, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as A, createBlock as ue, reactive as De, Fragment as pe, renderList as xe, unref as c, createTextVNode as h, onMounted as it, watch as dt, withModifiers as ct, createCommentVNode as H } from "vue";
|
|
2
2
|
import { u as ut, h as pt, i as mt } from "./request-XJsZ4h2T.js";
|
|
3
|
-
import { u as Se, o as _t, s as de, f as ce } from "./index-
|
|
3
|
+
import { u as Se, o as _t, s as de, f as ce } from "./index-aaiRLVcp.js";
|
|
4
4
|
import { G as Le, H as ft, u as vt, p as gt } from "./index-BK-oz1IK.js";
|
|
5
5
|
import { s as _e } from "./index-11kpzK0A.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
7
|
-
import "./index-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js";
|
|
7
|
+
import "./index-BiE5QG9s.js";
|
|
8
8
|
import "./index-BHtNKL1L.js";
|
|
9
9
|
import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
10
|
+
import "./index-5zBx2xab.js";
|
|
11
|
+
import "./index-DS1OVe8L.js";
|
|
12
12
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { c as me } from "./clone-BDsG8VVj.js";
|
|
14
14
|
const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { W as m } from "./index-
|
|
2
|
+
import { W as m } from "./index-BiE5QG9s.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-sl2ZbrIv.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import { S as m } from "./index-sl2ZbrIv.js";
|
|
3
|
-
import { W as _ } from "./index-
|
|
3
|
+
import { W as _ } from "./index-BiE5QG9s.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CH6FDDO2.cjs"),n=require("./index-DyCQbiMc.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { watch as ze, ref as v, computed as qe, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as ue, openBlock as pe, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as P, toDisplayString as we, Fragment as Fe, renderList as Re, withModifiers as Me } from "vue";
|
|
2
2
|
import { s as G, u as Ge, h as Qe } from "./request-XJsZ4h2T.js";
|
|
3
|
-
import {
|
|
4
|
-
import { s as
|
|
5
|
-
import { f as Ze, i as et, e as tt, a as ot } from "./index-
|
|
3
|
+
import { k as de, w as Oe } from "./index-5zBx2xab.js";
|
|
4
|
+
import { s as je, b as He, p as Ie, r as Je, E as Ke, C as be, j as We, c as Xe, u as Ye } from "./index-BK-oz1IK.js";
|
|
5
|
+
import { f as Ze, i as et, e as tt, a as ot } from "./index-aaiRLVcp.js";
|
|
6
6
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
7
|
import { s as at } from "./index-11kpzK0A.js";
|
|
8
8
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const st = He(Ie), { systemUrl: D } =
|
|
10
|
-
let
|
|
9
|
+
const st = He(Ie), { systemUrl: D } = je(st);
|
|
10
|
+
let k = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
|
|
11
11
|
ze(
|
|
12
12
|
() => D.value,
|
|
13
13
|
() => {
|
|
14
|
-
|
|
14
|
+
k = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
|
|
15
15
|
},
|
|
16
16
|
{ deep: !0, immediate: !0 }
|
|
17
17
|
);
|
|
18
18
|
function lt(u) {
|
|
19
19
|
return G({
|
|
20
|
-
url: `${
|
|
20
|
+
url: `${k}/platform/getdata_post`,
|
|
21
21
|
method: "post",
|
|
22
22
|
data: u
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function it(u) {
|
|
26
26
|
return G({
|
|
27
|
-
url: `${
|
|
27
|
+
url: `${k}/platform/createdata_post`,
|
|
28
28
|
method: "post",
|
|
29
29
|
data: u
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function rt(u) {
|
|
33
33
|
return G({
|
|
34
|
-
url: `${
|
|
34
|
+
url: `${k}/platform/updatedata_post`,
|
|
35
35
|
method: "post",
|
|
36
36
|
data: u
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function ut(u) {
|
|
40
40
|
return G({
|
|
41
|
-
url: `${
|
|
41
|
+
url: `${k}/platform/deletedata_post`,
|
|
42
42
|
method: "post",
|
|
43
43
|
data: u
|
|
44
44
|
});
|
|
@@ -64,7 +64,7 @@ const pt = [
|
|
|
64
64
|
tag: "info"
|
|
65
65
|
}
|
|
66
66
|
}, dt = () => {
|
|
67
|
-
const { platId: u, userId: r, isSuperAdmin:
|
|
67
|
+
const { platId: u, userId: r, isSuperAdmin: T } = Je(), Q = (e) => {
|
|
68
68
|
const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
|
|
69
69
|
return (n == null ? void 0 : n.label) || e;
|
|
70
70
|
}, V = (e) => {
|
|
@@ -72,8 +72,8 @@ const pt = [
|
|
|
72
72
|
return (n == null ? void 0 : n.tag) || "info";
|
|
73
73
|
}, L = v({}), S = qe(() => {
|
|
74
74
|
var t;
|
|
75
|
-
return
|
|
76
|
-
}),
|
|
75
|
+
return T.value ? !0 : ((t = L.value) == null ? void 0 : t.status) === Ze.EDITABLE.value;
|
|
76
|
+
}), O = async () => {
|
|
77
77
|
var I, R;
|
|
78
78
|
const t = {
|
|
79
79
|
pageName: "系统管理/职位管理",
|
|
@@ -81,9 +81,9 @@ const pt = [
|
|
|
81
81
|
userId: r.value
|
|
82
82
|
}, n = await We(t);
|
|
83
83
|
return (R = (I = n == null ? void 0 : n.data) == null ? void 0 : I.result) == null ? void 0 : R[0];
|
|
84
|
-
},
|
|
85
|
-
if (!
|
|
86
|
-
return L.value = await
|
|
84
|
+
}, j = async () => {
|
|
85
|
+
if (!T.value)
|
|
86
|
+
return L.value = await O(), L;
|
|
87
87
|
}, N = () => ({
|
|
88
88
|
name: ""
|
|
89
89
|
}), y = v(N()), H = () => {
|
|
@@ -199,7 +199,7 @@ const pt = [
|
|
|
199
199
|
setPageSize: K,
|
|
200
200
|
hasPositionEditAuth: S,
|
|
201
201
|
initPositionItem: b,
|
|
202
|
-
initPositionConfig:
|
|
202
|
+
initPositionConfig: j,
|
|
203
203
|
initGetByPage: U,
|
|
204
204
|
initCreate: ee,
|
|
205
205
|
initUpdate: h,
|
|
@@ -210,20 +210,20 @@ const pt = [
|
|
|
210
210
|
initExport: ne,
|
|
211
211
|
exportTemplate: async () => {
|
|
212
212
|
const e = de.aoa_to_sheet(F), t = de.book_new();
|
|
213
|
-
de.book_append_sheet(t, e, "职位"),
|
|
213
|
+
de.book_append_sheet(t, e, "职位"), Oe(t, "职位模板.xlsx");
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
}, ct = { class: "position-management" }, mt = { class: "header" }, ft = { class: "header-left" }, gt = { class: "query-wrapper" }, _t = { class: "header-right" }, vt = { class: "body" }, yt = { class: "position-table-wrapper" }, wt = { class: "table-wrapper" }, bt = { class: "operate-list" }, ht = ["onClick"], It = { class: "pagination-wrapper" }, Ct = { class: "position-management-wrapper" }, Pt = { class: "position-management-body" }, Dt = { class: "position-form-wrapper" }, St = { class: "edit-footer" }, Lt = { class: "footer-right" }, Et = /* @__PURE__ */ Ue({
|
|
217
217
|
__name: "index",
|
|
218
218
|
setup(u) {
|
|
219
219
|
const r = Ye(Ie), {
|
|
220
|
-
sortInfo:
|
|
220
|
+
sortInfo: T,
|
|
221
221
|
setSortInfo: Q,
|
|
222
222
|
queryInfo: V,
|
|
223
223
|
resetQuery: L,
|
|
224
224
|
pageInfo: S,
|
|
225
|
-
setPageNum:
|
|
226
|
-
setPageSize:
|
|
225
|
+
setPageNum: O,
|
|
226
|
+
setPageSize: j,
|
|
227
227
|
initGetByPage: N,
|
|
228
228
|
hasPositionEditAuth: y,
|
|
229
229
|
initPositionConfig: H,
|
|
@@ -242,11 +242,11 @@ const pt = [
|
|
|
242
242
|
}, b = async () => {
|
|
243
243
|
U.value = await Y();
|
|
244
244
|
}, A = (s) => {
|
|
245
|
-
|
|
245
|
+
O(s), r.setImportLoading(!0), b().finally(() => {
|
|
246
246
|
r.setImportLoading(!1);
|
|
247
247
|
});
|
|
248
248
|
}, Z = (s) => {
|
|
249
|
-
|
|
249
|
+
j(s), r.setImportLoading(!0), b().finally(() => {
|
|
250
250
|
r.setImportLoading(!1);
|
|
251
251
|
});
|
|
252
252
|
}, ee = (s) => {
|
|
@@ -344,7 +344,7 @@ const pt = [
|
|
|
344
344
|
};
|
|
345
345
|
return (s, o) => {
|
|
346
346
|
var ge, _e, ve, ye;
|
|
347
|
-
const m = p("el-input"), g = p("el-button"), x = p("el-icon"), le = p("el-dropdown-item"), Ee = p("el-dropdown-menu"), xe = p("el-dropdown"), B = p("el-table-column"), Be = p("el-tag"),
|
|
347
|
+
const m = p("el-input"), g = p("el-button"), x = p("el-icon"), le = p("el-dropdown-item"), Ee = p("el-dropdown-menu"), xe = p("el-dropdown"), B = p("el-table-column"), Be = p("el-tag"), ke = p("el-table"), Te = p("el-pagination"), ie = p("el-form-item"), re = p("el-col"), fe = p("el-row"), Ve = p("el-input-number"), Ne = p("el-form");
|
|
348
348
|
return pe(), ue("div", ct, [
|
|
349
349
|
i("div", mt, [
|
|
350
350
|
i("div", ft, [
|
|
@@ -445,11 +445,11 @@ const pt = [
|
|
|
445
445
|
i("div", vt, [
|
|
446
446
|
i("div", yt, [
|
|
447
447
|
i("div", wt, [
|
|
448
|
-
a(
|
|
448
|
+
a(ke, {
|
|
449
449
|
class: "department-table",
|
|
450
450
|
data: U.value,
|
|
451
451
|
"empty-text": "",
|
|
452
|
-
"default-sort": f(
|
|
452
|
+
"default-sort": f(T),
|
|
453
453
|
onSortChange: ee
|
|
454
454
|
}, {
|
|
455
455
|
default: l(() => [
|
|
@@ -510,7 +510,7 @@ const pt = [
|
|
|
510
510
|
]),
|
|
511
511
|
i("div", It, [
|
|
512
512
|
o[11] || (o[11] = i("div", null, null, -1)),
|
|
513
|
-
a(
|
|
513
|
+
a(Te, {
|
|
514
514
|
onSizeChange: Z,
|
|
515
515
|
onCurrentChange: A,
|
|
516
516
|
"current-page": (ge = f(S)) == null ? void 0 : ge.pageNum,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DKB0aNCU.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-BP5IlDO1.cjs");require("./index-BMofVGXk.cjs");const _=require("./index-xN3pvlzo.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { W as B } from "./index-
|
|
2
|
+
import { S as x } from "./index-sVk4LM6C.js";
|
|
3
|
+
import { W as B } from "./index-BiE5QG9s.js";
|
|
4
4
|
import { s as F } from "./index-11kpzK0A.js";
|
|
5
|
-
import { b as y } from "./index-
|
|
5
|
+
import { b as y } from "./index-D7kfKwZP.js";
|
|
6
6
|
import { u as S, p as I, s as N } from "./index-BK-oz1IK.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|