Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
657e4561
提交
657e4561
编写于
3月 10, 2023
作者:
lxm1993
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 插件更新
上级
7c952bc7
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
44 行删除
+44
-44
ibiz-template-plugin.es.js
...plate-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
+42
-42
index.legacy.js
...s/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
+1
-1
style.css
...plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/style.css
+1
-1
未找到文件。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
浏览文件 @
657e4561
var
Q
=
Object
.
defineProperty
;
var
X
=
(
e
,
t
,
s
)
=>
t
in
e
?
Q
(
e
,
t
,
{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
s
})
:
e
[
t
]
=
s
;
var
k
=
(
e
,
t
,
s
)
=>
(
X
(
e
,
typeof
t
!=
"symbol"
?
t
+
""
:
t
,
s
),
s
);
import
{
GridFieldColumnController
as
O
,
GridRowController
as
Z
,
WFStepTraceViewController
as
ee
,
UploadEditorController
as
V
}
from
"@ibiz-template/controller"
;
import
{
GridFieldColumnController
as
V
,
GridRowController
as
Z
,
WFStepTraceViewController
as
ee
,
UploadEditorController
as
M
}
from
"@ibiz-template/controller"
;
import
{
defineComponent
as
U
,
computed
as
G
,
h
as
c
,
getCurrentInstance
as
N
,
ref
as
m
,
watch
as
T
,
toRefs
as
_
}
from
"vue"
;
import
{
useNamespace
as
S
,
useViewController
as
te
,
usePropsWatch
as
z
,
getUploadProps
as
se
,
getEditorEmits
as
oe
,
getGridUploadProps
as
A
,
useClickOutside
as
ie
,
getGridEditorEmits
as
re
,
useEventListener
as
ne
,
useWFStepTraceViewController
as
ae
,
useWFDynaEditView3Controller
as
le
,
useEditView3Controller
as
ce
}
from
"@ibiz-template/vue-util"
;
import
{
colorBlend
as
de
,
IBizContext
as
ue
,
HttpError
as
j
,
isImage
as
me
,
uploadFile
as
pe
,
RuntimeError
as
he
}
from
"@ibiz-template/core"
;
...
...
@@ -12,7 +12,7 @@ const ve = U({
name
:
"CodeListGridColumn"
,
props
:
{
controller
:
{
type
:
O
,
type
:
V
,
required
:
!
0
},
row
:
{
...
...
@@ -130,7 +130,7 @@ const ye = U({
})]);
}
});
const
g
e
=
U
({
const
F
e
=
U
({
name
:
"WFToolbar"
,
props
:
{
wfLinks
:
{
...
...
@@ -167,7 +167,7 @@ const ge = U({
},
[
t
.
sequenceFlowName
||
""
])]);
})]);
}
}),
F
e
=
typeof
btoa
==
"function"
,
B
=
typeof
Buffer
==
"function"
;
}),
g
e
=
typeof
btoa
==
"function"
,
B
=
typeof
Buffer
==
"function"
;
typeof
TextDecoder
==
"function"
&&
new
TextDecoder
();
const
W
=
typeof
TextEncoder
==
"function"
?
new
TextEncoder
()
:
void
0
,
Ce
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
,
D
=
Array
.
prototype
.
slice
.
call
(
Ce
);
((
e
)
=>
{
...
...
@@ -185,7 +185,7 @@ const Ee = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
t
=
s
<<
16
|
o
<<
8
|
r
,
n
+=
D
[
t
>>
18
&
63
]
+
D
[
t
>>
12
&
63
]
+
D
[
t
>>
6
&
63
]
+
D
[
t
&
63
];
}
return
l
?
n
.
slice
(
0
,
l
-
3
)
+
"==="
.
substring
(
l
)
:
n
;
},
q
=
F
e
?
(
e
)
=>
btoa
(
e
)
:
B
?
(
e
)
=>
Buffer
.
from
(
e
,
"binary"
).
toString
(
"base64"
)
:
Ue
,
xe
=
B
?
(
e
)
=>
Buffer
.
from
(
e
).
toString
(
"base64"
)
:
(
e
)
=>
{
},
q
=
g
e
?
(
e
)
=>
btoa
(
e
)
:
B
?
(
e
)
=>
Buffer
.
from
(
e
,
"binary"
).
toString
(
"base64"
)
:
Ue
,
xe
=
B
?
(
e
)
=>
Buffer
.
from
(
e
).
toString
(
"base64"
)
:
(
e
)
=>
{
let
s
=
[];
for
(
let
o
=
0
,
r
=
e
.
length
;
o
<
r
;
o
+=
4096
)
s
.
push
(
x
.
apply
(
null
,
e
.
subarray
(
o
,
o
+
4096
)));
...
...
@@ -198,7 +198,7 @@ const Ee = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
var
t
=
65536
+
(
e
.
charCodeAt
(
0
)
-
55296
)
*
1024
+
(
e
.
charCodeAt
(
1
)
-
56320
);
return
x
(
240
|
t
>>>
18
&
7
)
+
x
(
128
|
t
>>>
12
&
63
)
+
x
(
128
|
t
>>>
6
&
63
)
+
x
(
128
|
t
&
63
);
}
},
ke
=
/
[\u
D800-
\u
DBFF
][\u
DC00-
\u
DFFFF
]
|
[^\x
00-
\x
7F
]
/g
,
Te
=
(
e
)
=>
e
.
replace
(
ke
,
Se
),
M
=
B
?
(
e
)
=>
Buffer
.
from
(
e
,
"utf8"
).
toString
(
"base64"
)
:
W
?
(
e
)
=>
xe
(
W
.
encode
(
e
))
:
(
e
)
=>
q
(
Te
(
e
)),
$
=
(
e
,
t
=
!
1
)
=>
t
?
Ee
(
M
(
e
))
:
M
(
e
);
},
ke
=
/
[\u
D800-
\u
DBFF
][\u
DC00-
\u
DFFFF
]
|
[^\x
00-
\x
7F
]
/g
,
Te
=
(
e
)
=>
e
.
replace
(
ke
,
Se
),
O
=
B
?
(
e
)
=>
Buffer
.
from
(
e
,
"utf8"
).
toString
(
"base64"
)
:
W
?
(
e
)
=>
xe
(
W
.
encode
(
e
))
:
(
e
)
=>
q
(
Te
(
e
)),
$
=
(
e
,
t
=
!
1
)
=>
t
?
Ee
(
O
(
e
))
:
O
(
e
);
function
Ie
(
e
,
t
,
s
)
{
const
o
=
m
([]),
r
=
m
({
Authorization
:
`Bearer
${
fe
(
"access_token"
)}
`
...
...
@@ -260,28 +260,28 @@ function Ie(e, t, s) {
return
;
const
a
=
o
.
value
.
findIndex
((
b
)
=>
b
.
id
===
i
.
id
);
a
!==
-
1
&&
o
.
value
.
splice
(
a
,
1
),
p
();
},
g
=
(
i
)
=>
{
},
F
=
(
i
)
=>
{
const
a
=
i
.
url
||
l
.
value
.
replace
(
"%fileId%"
,
i
.
id
);
s
.
fileDownload
({
url
:
a
,
name
:
i
.
name
});
},
f
=
m
(
!
1
),
F
=
m
(
""
),
E
=
m
(
""
);
},
f
=
m
(
!
1
),
g
=
m
(
""
),
E
=
m
(
""
);
return
{
uploadUrl
:
n
,
downloadUrl
:
l
,
headers
:
r
,
files
:
o
,
onDownload
:
g
,
onDownload
:
F
,
onError
:
h
,
onRemove
:
C
,
onSuccess
:
y
,
beforeUpload
:
v
,
showModal
:
f
,
modalTitle
:
F
,
modalTitle
:
g
,
iframeUrl
:
E
,
onModalCancel
:
()
=>
{
f
.
value
=
!
1
,
F
.
value
=
""
,
E
.
value
=
""
;
f
.
value
=
!
1
,
g
.
value
=
""
,
E
.
value
=
""
;
},
previewFile
:
(
i
)
=>
{
f
.
value
=
!
0
,
F
.
value
=
i
.
name
;
f
.
value
=
!
0
,
g
.
value
=
i
.
name
;
const
a
=
window
.
Environment
.
previewFileUrl
;
if
(
a
)
{
const
b
=
encodeURIComponent
(
...
...
@@ -311,9 +311,9 @@ const De = U({
onSuccess
:
y
,
beforeUpload
:
h
,
showModal
:
C
,
modalTitle
:
g
,
modalTitle
:
F
,
iframeUrl
:
f
,
onModalCancel
:
F
,
onModalCancel
:
g
,
previewFile
:
E
}
=
Ie
(
e
,
(
u
)
=>
{
t
(
"change"
,
u
);
...
...
@@ -330,9 +330,9 @@ const De = U({
onSuccess
:
y
,
beforeUpload
:
h
,
showModal
:
C
,
modalTitle
:
g
,
modalTitle
:
F
,
iframeUrl
:
f
,
onModalCancel
:
F
,
onModalCancel
:
g
,
previewFile
:
E
};
},
...
...
@@ -534,19 +534,19 @@ function J(e) {
error
:
v
,
finish
:
y
});
},
C
=
m
(
!
1
),
g
=
m
(
""
),
f
=
m
(
""
);
},
C
=
m
(
!
1
),
F
=
m
(
""
),
f
=
m
(
""
);
return
{
selectFile
:
h
,
fileList
:
s
,
uploadState
:
t
,
showModal
:
C
,
modalTitle
:
g
,
modalTitle
:
F
,
iframeUrl
:
f
,
onModalCancel
:
()
=>
{
C
.
value
=
!
1
,
g
.
value
=
""
,
f
.
value
=
""
;
C
.
value
=
!
1
,
F
.
value
=
""
,
f
.
value
=
""
;
},
previewFile
:
(
u
)
=>
{
C
.
value
=
!
0
,
g
.
value
=
u
.
name
;
C
.
value
=
!
0
,
F
.
value
=
u
.
name
;
const
w
=
window
.
Environment
.
previewFileUrl
;
if
(
w
)
{
const
i
=
encodeURIComponent
(
...
...
@@ -581,7 +581,7 @@ const Pe = U({
modalTitle
:
y
,
iframeUrl
:
h
,
previewFile
:
C
,
onModalCancel
:
g
onModalCancel
:
F
}
=
J
({
downloadUrl
:
n
,
uploadUrl
:
l
,
...
...
@@ -593,11 +593,11 @@ const Pe = U({
showModal
:
v
,
modalTitle
:
y
,
iframeUrl
:
h
,
downloadFile
:
(
F
)
=>
{
e
.
controller
.
fileDownload
(
F
);
downloadFile
:
(
g
)
=>
{
e
.
controller
.
fileDownload
(
g
);
},
previewFile
:
C
,
onModalCancel
:
g
onModalCancel
:
F
};
},
render
()
{
...
...
@@ -683,7 +683,7 @@ const Le = U({
required
:
!
0
},
controller
:
{
type
:
V
,
type
:
M
,
required
:
!
0
}
},
...
...
@@ -718,8 +718,8 @@ const Le = U({
componentRef
:
v
,
fileList
:
l
,
deleteFile
:
(
f
)
=>
{
const
F
=
l
.
value
.
findIndex
((
E
)
=>
E
.
id
===
f
.
id
);
l
.
value
.
splice
(
F
,
1
),
y
.
value
=
!
0
;
const
g
=
l
.
value
.
findIndex
((
E
)
=>
E
.
id
===
f
.
id
);
l
.
value
.
splice
(
g
,
1
),
y
.
value
=
!
0
;
},
selectFile
:
p
,
downloadFile
:
(
f
)
=>
{
...
...
@@ -785,7 +785,7 @@ const _e = U({
}),
v
=
m
(),
y
=
async
()
=>
{
if
(
!
v
.
value
)
throw
new
he
(
"
\
u5BB9
\
u5668
\
u5143
\
u7D20
\
u4E0D
\
u5B58
\
u5728"
);
const
h
=
v
.
value
.
$el
,
C
=
h
.
offsetHeight
,
g
=
ibiz
.
overlay
.
createPopover
((
E
)
=>
E
(
Le
,
{
const
h
=
v
.
value
.
$el
,
C
=
h
.
offsetHeight
,
F
=
ibiz
.
overlay
.
createPopover
((
E
)
=>
E
(
Le
,
{
props
:
{
value
:
p
.
value
,
uploadUrl
:
d
.
value
,
...
...
@@ -794,7 +794,7 @@ const _e = U({
},
on
:
{
close
:
(
u
)
=>
{
g
.
dismiss
(
u
);
F
.
dismiss
(
u
);
}
}
}),
void
0
,
{
...
...
@@ -805,13 +805,13 @@ const _e = U({
crossAxis
:
0
}
});
await
g
.
present
(
h
);
await
F
.
present
(
h
);
const
{
isModified
:
f
,
resultFiles
:
F
}
=
await
g
.
onWillDismiss
();
resultFiles
:
g
}
=
await
F
.
onWillDismiss
();
if
(
f
)
{
const
E
=
F
.
length
>
0
?
JSON
.
stringify
(
F
.
map
((
u
)
=>
({
const
E
=
g
.
length
>
0
?
JSON
.
stringify
(
g
.
map
((
u
)
=>
({
name
:
u
.
name
,
id
:
u
.
id
})))
:
null
;
...
...
@@ -854,7 +854,7 @@ class Be {
k
(
this
,
"component"
,
ve
);
}
async
createController
(
t
,
s
)
{
const
o
=
new
O
(
t
,
s
);
const
o
=
new
V
(
t
,
s
);
return
await
o
.
init
(),
o
;
}
}
...
...
@@ -1065,12 +1065,12 @@ const Y = U({
})])]);
}
});
class
M
e
{
class
O
e
{
constructor
()
{
k
(
this
,
"component"
,
We
);
}
}
const
O
e
=
U
({
const
V
e
=
U
({
name
:
"SyEditView3"
,
props
:
{
context
:
Object
,
...
...
@@ -1167,9 +1167,9 @@ const Oe = U({
})])]);
}
});
class
V
e
{
class
M
e
{
constructor
()
{
k
(
this
,
"component"
,
O
e
);
k
(
this
,
"component"
,
V
e
);
}
}
class
ze
{
...
...
@@ -1178,14 +1178,14 @@ class ze {
k
(
this
,
"gridEditor"
,
"SyGridFileUploadContainer"
);
}
async
createController
(
t
,
s
)
{
const
o
=
new
V
(
t
,
s
);
const
o
=
new
M
(
t
,
s
);
return
await
o
.
init
(),
o
;
}
}
const
Xe
=
{
mateUrl
:
import
.
meta
.
url
,
install
(
e
)
{
ibiz
.
config
.
enableDataInfoBar
=
!
1
,
ibiz
.
config
.
gridEditShowMode
=
"all"
,
e
.
component
(
"WfToolbar"
,
g
e
),
ibiz
.
register
.
view
.
register
(
ibiz
.
config
.
enableDataInfoBar
=
!
1
,
e
.
component
(
"WfToolbar"
,
F
e
),
ibiz
.
register
.
view
.
register
(
"VIEW_CUSTOM_SyWebIndexView"
,
new
Ge
()
),
ibiz
.
register
.
view
.
register
(
...
...
@@ -1196,10 +1196,10 @@ const Xe = {
new
Be
()
),
ibiz
.
register
.
view
.
register
(
"VIEW_CUSTOM_SyWfDynaEditView3"
,
new
M
e
()
new
O
e
()
),
ibiz
.
register
.
view
.
register
(
"VIEW_CUSTOM_SyEditView3"
,
new
V
e
()
new
M
e
()
),
e
.
component
(
"SyFileUpload"
,
De
),
e
.
component
(
"SyGridFileUpload"
,
Pe
),
e
.
component
(
"SyEditGridFileUpload"
,
_e
),
e
.
component
(
"SyGridFileUploadContainer"
,
Ne
),
ibiz
.
register
.
editor
.
register
(
"EDITOR_CUSTOMSTYLE_SyFileUpload"
,
new
ze
()
...
...
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
浏览文件 @
657e4561
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/style.css
浏览文件 @
657e4561
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录