ss-component-new 1.3.438 → 1.3.439
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-CvrQ4EwO.cjs → MTLLoader-BwkFVqL-.cjs} +1 -1
- package/dist/{MTLLoader-B_6MsRvs.js → MTLLoader-DNSv6X0i.js} +1 -1
- package/dist/{OrbitControls-DKFae7WL.js → OrbitControls-BYUrBNWv.js} +1 -1
- package/dist/{OrbitControls-BmTRTxOn.cjs → OrbitControls-DaZRnXU6.cjs} +1 -1
- package/dist/{URDFLoader-C3aCob6G.js → URDFLoader-BZBVqZws.js} +2 -2
- package/dist/{URDFLoader-B345qOec.cjs → URDFLoader-DYKZA4lN.cjs} +1 -1
- package/dist/{animationData-DeIFGQyE.cjs → animationData-BJRWi-LU.cjs} +1 -1
- package/dist/{animationData-sgKNBYrq.js → animationData-Zq5cH5C8.js} +12 -12
- package/dist/{array-aWbn8qBa.js → array-B_J5YFx_.js} +2 -2
- package/dist/{array-n24QbcFB.cjs → array-CAR_rRon.cjs} +1 -1
- package/dist/{iconfont-DJcVGYZj.cjs → iconfont-Bt2wRD-G.cjs} +1 -1
- package/dist/{iconfont-CvGxeps_.js → iconfont-CY4Fa9KU.js} +2 -2
- package/dist/{index-BF5SUWUn.js → index-5zBx2xab.js} +89 -83
- package/dist/{index-CRPMOd9M.js → index-6VMOjPND.js} +5 -5
- package/dist/{index-tuui_o56.js → index-BMbjyksn.js} +1 -1
- package/dist/{index-B9MP9Z_h.cjs → index-BMofVGXk.cjs} +20 -20
- package/dist/{index-B_b-9RDj.js → index-BRUxCmkT.js} +1 -1
- package/dist/{index-JEFalyAE.cjs → index-BU4FPg4o.cjs} +1 -1
- package/dist/{index-C9Pn4hQC.cjs → index-BWZAWWkK.cjs} +1 -1
- package/dist/{index-Btrphi_S.cjs → index-BiwYTq-N.cjs} +1 -1
- package/dist/{index-CuuYyKIw.js → index-BjxQmlOL.js} +5 -5
- package/dist/{index-DSbBB3gM.js → index-BkhhaWeF.js} +3227 -3227
- package/dist/{index-C6_Tsvgw.js → index-C5D-WjNg.js} +1 -1
- package/dist/{index-CFiyfU1X.js → index-CCUIg0kG.js} +27 -27
- package/dist/{index-Qj4hyEcC.cjs → index-Cd_-jFVk.cjs} +1 -1
- package/dist/{index-D-HQbgK4.cjs → index-CjJk8jhv.cjs} +1 -1
- package/dist/{index-C5mNmuca.js → index-CqJZchdY.js} +2198 -2196
- package/dist/{index-CP7omV5G.js → index-CvCdIaPc.js} +3 -3
- package/dist/{index-CljHDtk8.cjs → index-D7aAxcbI.cjs} +1 -1
- package/dist/{index-Cwihd-8T.cjs → index-D8DyFGA3.cjs} +1 -1
- package/dist/{index-BYR89prk.js → index-DCm5o7Nl.js} +1 -1
- package/dist/{index-BZnGHA40.cjs → index-DXr0PRtV.cjs} +1 -1
- package/dist/{index-Dsye36Ki.js → index-DhtXl0Lm.js} +1 -1
- package/dist/{index-BE5v43Vt.js → index-EQPoOyoV.js} +1 -1
- package/dist/{index-rVSu3pgq.cjs → index-FcjQa2OL.cjs} +1 -1
- package/dist/{index-CRSa6_kF.cjs → index-IagTMbvk.cjs} +1 -1
- package/dist/{index-B3MCUfK8.cjs → index-JQN-u09P.cjs} +5 -5
- package/dist/{index-jGhvBNbM.js → index-MGrE8_0v.js} +4 -4
- package/dist/{index-BTgKT-Kp.js → index-aaiRLVcp.js} +7 -7
- package/dist/{index-DJQ7yrfE.js → index-cBD8b37q.js} +3 -3
- package/dist/{index-CZuPznao.cjs → index-dAoOU6TR.cjs} +1 -1
- package/dist/index-ejSykur3.cjs +2 -0
- package/dist/{index-BrQme5Gx.js → index-fu-c98A1.js} +1 -1
- package/dist/{index-CzELqSBx.cjs → index-gnwEORSz.cjs} +2 -2
- package/dist/{index-BFLioZ06.js → index-hAQygFrw.js} +6 -6
- package/dist/{index-TYU0HY-n.cjs → index-jGVlIQR6.cjs} +1 -1
- package/dist/{index-DI41201t.cjs → index-ohrjA5d8.cjs} +1 -1
- 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-CuNPiHbH.cjs → index-xNKKzctX.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-87Te47Zq.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs} +59 -59
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-MobFDuC8.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js} +1648 -1643
- package/dist/{main-B_eTLx6e.js → main-CZG2vfBL.js} +3 -3
- package/dist/{main-CwbgYYBB.cjs → main-J4FxCVvD.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- 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-CBeqHs8p.js → threeModel-BEevplT2.js} +3 -3
- package/dist/{threeModel-ltaREaW0.cjs → threeModel-I9VzkkBQ.cjs} +1 -1
- package/dist/{threePreview-BRskpQt7.cjs → threePreview-9qfx_J15.cjs} +1 -1
- package/dist/{threePreview-BdB2Ejgl.js → threePreview-Djh17gcq.js} +3 -3
- package/dist/{threeSceneView-lqhX2anf.js → threeSceneView-C0gXbE2v.js} +10 -10
- package/dist/{threeSceneView-CEDRWk44.cjs → threeSceneView-D_P_J3w7.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DQsrKX6y.js → threeSceneViewForCPMPIP-BrVpXLZm.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-BXlkmvHH.cjs → threeSceneViewForCPMPIP-dZ7euhrN.cjs} +1 -1
- package/dist/{threeTrackPathView-efq9aI4q.cjs → threeTrackPathView-C8S1xa9M.cjs} +1 -1
- package/dist/{threeTrackPathView-Duq7EuCG.js → threeTrackPathView-CewpNc2B.js} +3 -3
- package/dist/{threeViewerHost-CVoY1tN8.js → threeViewerHost-C4ElVjnH.js} +2 -2
- package/dist/{threeViewerHost-5zPVIi_B.cjs → threeViewerHost-CWpAq6Oa.cjs} +1 -1
- package/dist/{urdfTree-DjV7m96c.js → urdfTree-BWSOyDd8.js} +1 -1
- package/dist/{urdfTree-D0GKaMy-.cjs → urdfTree-tWRZTeGx.cjs} +1 -1
- package/dist/{workpieceTreePanel-DIM7QK-1.js → workpieceTreePanel-C_zbYiB6.js} +4 -4
- package/dist/{workpieceTreePanel-BNOW7Npy.cjs → workpieceTreePanel-cotaSjga.cjs} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-xNgkAqH0.cjs +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x, s as w, a as L } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
2
|
+
import { S as I, t as x, s as w, a as L } from "./index-CvCdIaPc.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import { e as E } from "./index-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { e as E } from "./index-BjxQmlOL.js";
|
|
6
|
+
import "./index-5zBx2xab.js";
|
|
7
7
|
import { b as N, s as U } from "./index-BK-oz1IK.js";
|
|
8
8
|
import "./request-XJsZ4h2T.js";
|
|
9
9
|
/* empty css */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch as be, ref as w, computed as we } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { p as E, k as B, w as Le } from "./index-5zBx2xab.js";
|
|
3
3
|
import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-BK-oz1IK.js";
|
|
4
4
|
import { s as z } from "./request-XJsZ4h2T.js";
|
|
5
5
|
const qe = C(V), { systemUrl: f } = Te(qe);
|
|
@@ -72,14 +72,14 @@ const Ve = (s) => {
|
|
|
72
72
|
TABLE: {
|
|
73
73
|
value: "Table"
|
|
74
74
|
}
|
|
75
|
-
},
|
|
75
|
+
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
|
|
76
76
|
const s = C(), r = Re(V), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), I = (t) => {
|
|
77
77
|
const { propertyType: e } = t || {};
|
|
78
78
|
return e === ze.TABLE.value;
|
|
79
|
-
}, g = w({}),
|
|
79
|
+
}, g = w({}), O = we(() => {
|
|
80
80
|
var e;
|
|
81
81
|
return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
|
|
82
|
-
}),
|
|
82
|
+
}), j = (t) => {
|
|
83
83
|
var o, l;
|
|
84
84
|
const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = A(t);
|
|
85
85
|
return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
|
|
@@ -140,7 +140,7 @@ const Ve = (s) => {
|
|
|
140
140
|
l.main_ids = Ie, l.checked_ids = v.map((D) => D.id), l.params = G(v);
|
|
141
141
|
}
|
|
142
142
|
if (t) {
|
|
143
|
-
const v =
|
|
143
|
+
const v = j(t);
|
|
144
144
|
l = {
|
|
145
145
|
...l,
|
|
146
146
|
...v
|
|
@@ -250,7 +250,7 @@ const Ve = (s) => {
|
|
|
250
250
|
return (a == null ? void 0 : a.tag) || "info";
|
|
251
251
|
}, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
|
|
252
252
|
const { status: a } = t || {}, { tableOperate: n } = e || {};
|
|
253
|
-
return !!(R(a) || n &&
|
|
253
|
+
return !!(R(a) || n && Oe.includes(n));
|
|
254
254
|
}, pe = (t, e) => {
|
|
255
255
|
const { status: a } = t || {};
|
|
256
256
|
return R(a);
|
|
@@ -321,7 +321,7 @@ const Ve = (s) => {
|
|
|
321
321
|
getFeatureStatusTagByValue: ie,
|
|
322
322
|
hasEditable: de,
|
|
323
323
|
initRoleConfig: fe,
|
|
324
|
-
hasRoleEditAuth:
|
|
324
|
+
hasRoleEditAuth: O,
|
|
325
325
|
buildParamAuthTree: q,
|
|
326
326
|
initImport: ye,
|
|
327
327
|
initExport: _e,
|
|
@@ -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-CqJZchdY.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-BjxQmlOL.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 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const v=require("vue"),g=require("./index-BMofVGXk.cjs"),r=require("./index-xN3pvlzo.cjs"),F=require("./request-Dl8yi2iS.cjs"),Le=r.useLoginState(r.pinia),{systemUrl:y}=r.storeToRefs(Le);let A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value;v.watch(()=>y.value,()=>{A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value},{deep:!0,immediate:!0});function N(s){return F.service({url:`${A}/platform/import_data`,method:"post",data:s})}function C(s){return F.service({url:`${A}/platform/export_data`,method:"post",data:s,responseType:"blob"})}function we(s=""){const l=s.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const u=s.match(/filename=["']?([^"';]+)["']?/);return u?u[1]:"download.xlsx"}const V=s=>{var w,h;const l=((w=s==null?void 0:s.headers)==null?void 0:w["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",u=new Blob([s.data],{type:l}),D=(h=s==null?void 0:s.headers)==null?void 0:h["content-disposition"],I=we(D)||"数据.xlsx",i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.setAttribute("download",I),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(i)},Te=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],k="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},p={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},De={TABLE:{value:"Table"}},Re=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Ee=()=>{const s=r.useLoginState(),l=r.useMenuState(r.pinia),{isSuperAdmin:u,userId:D,userName:I,platId:i}=r.useUserInfo(),d=v.ref([]),w=t=>{const{propertyType:e}=t||{};return e===De.TABLE.value},h=v.ref({}),z=v.computed(()=>{var e;return u.value?!0:((e=h.value)==null?void 0:e.status)===p.EDITABLE.value}),O=t=>{var o,c;const e=r.formatterTimeStr(Date.now()),{id:a=0}=s.loginUserInfo||{},n=r.cloneDeep(t);return n.update_user_id=a,n.update_user_name=I.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:b}=m;return b}))||[],n},S=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=r.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(S(a.children)))}),e},P=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(P(o)))}return e},$=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=P(a.params);e=e.concat(n)}}),e},x=(t,e)=>{const a=s.loginUserInfo,{id:n=0}=a||{},o=r.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:I.value,update_user_id:n,update_user_name:I.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:b}=e||{};if(m&&b){const L=S(b),be=L.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=be,c.checked_ids=L.map(B=>B.id),c.params=$(L)}if(t){const L=O(t);c={...c,...L}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},G=async t=>await r.getRoleList({platId:t}),M=async()=>{var e;l.setImportLoading(!0);const t=await G(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},U=()=>({name:""}),T=v.ref(U()),j=()=>{T.value=U()},H=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),_=v.ref(H()),Q=t=>{_.value.pageNum=t},K=t=>{_.value.pageSize=t},W=()=>({platId:i.value,pageNum:_.value.pageNum,pageSize:_.value.pageSize,filter:{...T.value}}),J=async t=>{var a;const e=await r.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},X=async()=>{const t=W(),e=await J(t),{total:a}=e||{};return _.value.total=a,e||{}},Y=async t=>{delete t.role_id;const e=R(t);await r.createRole(e)},Z=async t=>{l.setImportLoading(!0),await Y(t).finally(()=>{l.setImportLoading(!1)})},ee=async t=>{const e=R(t);await r.updateRole(e)},te=async t=>{l.setImportLoading(!0),await ee(t).finally(()=>{l.setImportLoading(!1)})},ae=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await r.deleteRole(a)},ne=async t=>{await r.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ae(t).finally(()=>{l.setImportLoading(!1)})},oe=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},se=async t=>{var a;const e=await r.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},le=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await se(e).finally(()=>{l.setImportLoading(!1)});d.value=a},ce=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.label)||t},ie=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===p.EDITABLE.value,ue=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Re.includes(n))},pe=(t,e)=>{const{status:a}=t||{};return E(a)},de=(t,e)=>{if(u.value)return!0;const{type:a}=e||{};if(g.compType.TABLE===a)return ue(t,e);if(g.compType.FORM===a)return pe(t);const{status:n}=t||{};return E(n)},me=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:D.value},a=await r.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},fe=async()=>{if(!u.value)return h.value=await me(),h},q=t=>{const e=r.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=q(m))}return e},ge=async t=>{var a;const e=await N(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},ye=async t=>{const e=new FormData,a=x(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",k),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ge(e)},he=async t=>await C(t),_e=async()=>{const t={platId:i.value,tableType:k,filter:T.value},e=await he(t);return V(e),e},ve=[["名称","编码","备注","状态"]],Ie=async()=>{const t=g.utils.aoa_to_sheet(ve),e=g.utils.book_new();g.utils.book_append_sheet(e,t,"角色"),g.writeFileSync(e,"角色模板.xlsx")};return{compType:g.compType,isTableFeature:w,queryInfo:T,resetQuery:j,pageInfo:_,setPageNum:Q,setPageSize:K,initGetByPage:X,initRoleList:M,initCreate:Z,initUpdate:te,initDelete:ne,initRoleRequestData:R,initPropertyAuthTree:le,propertyAuthTree:d,initRoleItem:x,isSuperAdmin:u,getStatusLabelByValue:oe,getStatusTagByValue:re,getFeatureStatusLabelByValue:ce,getFeatureStatusTagByValue:ie,hasEditable:de,initRoleConfig:fe,hasRoleEditAuth:z,buildParamAuthTree:q,initImport:ye,initExport:_e,exportTemplate:Ie}};exports.exportData=C;exports.featureStatusConstants=p;exports.importData=N;exports.initDownloadFileByResponse=V;exports.operateList=Te;exports.statusConstants=f;exports.useRole=Ee;
|