Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
91d093a1
提交
91d093a1
编写于
3月 13, 2023
作者:
lxm1993
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 插件更新
上级
090ad9ad
变更
2
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
41 行增加
和
32 行删除
+41
-32
ibiz-template-plugin.es.js
...plate-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
+40
-31
index.legacy.js
...s/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
+1
-1
未找到文件。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
浏览文件 @
91d093a1
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
e
e
,
UploadEditorController
as
V
}
from
"@ibiz-template/controller"
;
var
X
=
Object
.
defineProperty
;
var
Z
=
(
e
,
t
,
s
)
=>
t
in
e
?
X
(
e
,
t
,
{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
s
})
:
e
[
t
]
=
s
;
var
k
=
(
e
,
t
,
s
)
=>
(
Z
(
e
,
typeof
t
!=
"symbol"
?
t
+
""
:
t
,
s
),
s
);
import
{
GridFieldColumnController
as
O
,
GridRowController
as
ee
,
WFStepTraceViewController
as
t
e
,
UploadEditorController
as
V
}
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"
;
import
{
useNamespace
as
S
,
useViewController
as
se
,
usePropsWatch
as
z
,
getUploadProps
as
oe
,
getEditorEmits
as
ie
,
getGridUploadProps
as
A
,
getGridEditorEmits
as
j
,
useClickOutside
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
R
,
isImage
as
me
,
uploadFile
as
pe
,
RuntimeError
as
he
}
from
"@ibiz-template/core"
;
import
{
getCookie
as
fe
}
from
"qx-util"
;
import
{
ViewMode
as
R
}
from
"@ibiz-template/runtime"
;
import
{
ViewMode
as
$
}
from
"@ibiz-template/runtime"
;
import
{
ViewType
as
be
}
from
"@ibiz-template/model"
;
const
ve
=
U
({
name
:
"CodeListGridColumn"
,
...
...
@@ -16,7 +16,7 @@ const ve = U({
required
:
!
0
},
row
:
{
type
:
Z
,
type
:
ee
,
required
:
!
0
}
},
...
...
@@ -82,7 +82,7 @@ const ve = U({
},
[
t
])]);
}
});
class
we
extends
e
e
{
class
we
extends
t
e
{
constructor
()
{
super
(...
arguments
);
k
(
this
,
"imgSrc"
);
...
...
@@ -114,7 +114,7 @@ const ye = U({
setup
(
e
)
{
const
t
=
S
(
"preset-wf-chart-view"
),
{
proxy
:
s
}
=
N
(),
o
=
t
e
(
s
,
(
r
,
n
)
=>
new
we
(
e
.
modelPath
,
r
,
n
));
}
=
N
(),
o
=
s
e
(
s
,
(
r
,
n
)
=>
new
we
(
e
.
modelPath
,
r
,
n
));
return
z
(
s
,
"deName"
,
o
.
setDeName
.
bind
(
o
)),
{
c
:
o
,
ns
:
t
...
...
@@ -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
),
M
=
B
?
(
e
)
=>
Buffer
.
from
(
e
,
"utf8"
).
toString
(
"base64"
)
:
W
?
(
e
)
=>
xe
(
W
.
encode
(
e
))
:
(
e
)
=>
q
(
Te
(
e
)),
H
=
(
e
,
t
=
!
1
)
=>
t
?
Ee
(
M
(
e
))
:
M
(
e
);
function
Ie
(
e
,
t
,
s
)
{
const
o
=
m
([]),
r
=
m
({
Authorization
:
`Bearer
${
fe
(
"access_token"
)}
`
...
...
@@ -252,7 +252,7 @@ function Ie(e, t, s) {
id
:
i
.
fileid
}),
d
.
count
-=
1
,
d
.
count
===
0
&&
p
());
},
h
=
(
i
,
a
)
=>
{
throw
d
.
count
-=
1
,
new
j
({
throw
d
.
count
-=
1
,
new
R
({
response
:
{
data
:
a
,
status
:
i
.
status
}
});
},
C
=
(
i
)
=>
{
...
...
@@ -285,7 +285,7 @@ function Ie(e, t, s) {
const
a
=
window
.
Environment
.
previewFileUrl
;
if
(
a
)
{
const
b
=
encodeURIComponent
(
$
(
H
(
`
${
window
.
location
.
origin
}${
i
.
url
}
?fullfilename=
${
i
.
name
}
`
)
);
...
...
@@ -296,8 +296,8 @@ function Ie(e, t, s) {
}
const
De
=
U
({
name
:
"SyFileUpload"
,
props
:
s
e
(),
emits
:
o
e
(),
props
:
o
e
(),
emits
:
i
e
(),
setup
(
e
,
{
emit
:
t
})
{
...
...
@@ -437,7 +437,7 @@ function P(e, t) {
}
return
e
;
}
function
H
(
e
)
{
function
J
(
e
)
{
const
t
=
m
(
""
),
s
=
m
(
""
),
o
=
m
([]);
return
T
(
e
.
data
,
...
...
@@ -470,7 +470,7 @@ function H(e) {
valueList
:
o
};
}
function
J
(
e
)
{
function
Y
(
e
)
{
const
t
=
m
(
"undo"
),
s
=
m
([]),
{
downloadUrl
:
o
,
value
:
r
,
uploadUrl
:
n
}
=
e
;
T
(
r
,
...
...
@@ -488,7 +488,7 @@ function J(e) {
const
i
=
[
"html"
,
"js"
,
"exe"
,
"sh"
],
a
=
[];
return
w
.
forEach
((
b
,
I
)
=>
{
const
L
=
b
.
name
.
trim
().
toLowerCase
();
if
(
i
.
some
((
K
)
=>
L
.
endsWith
(
`.
${
K
}
`
)))
{
if
(
i
.
some
((
Q
)
=>
L
.
endsWith
(
`.
${
Q
}
`
)))
{
a
.
push
(
I
);
return
;
}
...
...
@@ -515,7 +515,7 @@ function J(e) {
u
.
forEach
((
b
)
=>
{
s
.
value
.
find
((
I
)
=>
I
.
id
===
b
.
uid
?
(
I
.
status
=
b
.
status
,
!
0
)
:
!
1
);
});
const
i
=
new
j
(
w
);
const
i
=
new
R
(
w
);
ibiz
.
notification
.
error
({
title
:
(
a
=
i
.
status
)
==
null
?
void
0
:
a
.
toString
(),
desc
:
i
.
message
,
...
...
@@ -550,7 +550,7 @@ function J(e) {
const
w
=
window
.
Environment
.
previewFileUrl
;
if
(
w
)
{
const
i
=
encodeURIComponent
(
$
(
H
(
`
${
window
.
location
.
origin
}${
u
.
url
}
?fullfilename=
${
u
.
name
}
`
)
);
...
...
@@ -571,7 +571,7 @@ const Pe = U({
downloadUrl
:
n
,
uploadUrl
:
l
,
valueList
:
d
}
=
H
({
}
=
J
({
value
:
s
,
data
:
o
,
controller
:
r
...
...
@@ -582,7 +582,7 @@ const Pe = U({
iframeUrl
:
h
,
previewFile
:
C
,
onModalCancel
:
g
}
=
J
({
}
=
Y
({
downloadUrl
:
n
,
uploadUrl
:
l
,
value
:
d
...
...
@@ -655,6 +655,7 @@ const Pe = U({
}),
Ne
=
U
({
name
:
"SyGridFileUploadContainer"
,
props
:
A
(),
emits
:
j
(),
render
(
e
)
{
return
this
.
disabled
||
this
.
readonly
?
e
(
"SyGridFileUpload"
,
{
props
:
{
...
...
@@ -663,6 +664,14 @@ const Pe = U({
})
:
e
(
"SyEditGridFileUpload"
,
{
props
:
{
...
this
.
$props
},
on
:
{
change
:
(
t
,
s
)
=>
{
this
.
$emit
(
"change"
,
t
,
s
);
},
rowSave
:
()
=>
{
this
.
$emit
(
"rowSave"
);
}
}
});
}
...
...
@@ -701,11 +710,11 @@ const Le = U({
fileList
:
l
,
uploadState
:
d
,
selectFile
:
p
}
=
J
({
}
=
Y
({
downloadUrl
:
o
,
value
:
r
,
uploadUrl
:
n
}),
v
=
m
(),
y
=
m
(
!
1
),
h
=
i
e
(
v
,
async
(
f
)
=>
{
}),
v
=
m
(),
y
=
m
(
!
1
),
h
=
r
e
(
v
,
async
(
f
)
=>
{
t
(
"close"
,
{
isModified
:
y
.
value
,
resultFiles
:
l
.
value
...
...
@@ -766,7 +775,7 @@ const Le = U({
const
_e
=
U
({
name
:
"SyEditGridFileUpload"
,
props
:
A
(),
emits
:
re
(),
emits
:
j
(),
setup
(
e
,
{
emit
:
t
})
{
...
...
@@ -778,7 +787,7 @@ const _e = U({
downloadUrl
:
l
,
uploadUrl
:
d
,
valueList
:
p
}
=
H
({
}
=
J
({
value
:
o
,
data
:
r
,
controller
:
n
...
...
@@ -863,7 +872,7 @@ class Ge {
k
(
this
,
"component"
,
"IndexView"
);
}
}
const
Y
=
U
({
const
K
=
U
({
name
:
"WFStepTraceGrid"
,
props
:
{
context
:
Object
,
...
...
@@ -996,7 +1005,7 @@ const Y = U({
}
if
(
this
.
c
.
complete
&&
this
.
c
.
model
.
drTab
.
pages
[
0
])
{
const
s
=
this
.
c
.
model
.
drTab
.
pages
[
0
],
o
=
this
.
c
.
drPages
[
s
.
source
.
name
];
t
.
push
(
e
(
Y
,
{
t
.
push
(
e
(
K
,
{
attrs
:
{
context
:
o
.
context
,
params
:
o
.
params
,
...
...
@@ -1052,7 +1061,7 @@ const Y = U({
context
:
o
.
context
,
params
:
o
.
params
,
modal
:
{
mode
:
R
.
EMBED
mode
:
$
.
EMBED
},
modelPath
:
s
.
embedView
.
source
.
modelPath
,
deName
:
this
.
c
.
model
.
appEntity
.
source
.
codeName
...
...
@@ -1130,7 +1139,7 @@ const Oe = U({
on
:
{
neuronInit
:
this
.
c
.
nerve
.
onNeuronInit
(
this
.
c
.
model
.
form
.
source
.
name
)
}
}),
e
(
Y
,
{
}),
e
(
K
,
{
attrs
:
{
context
:
this
.
c
.
drPages
[
this
.
c
.
model
.
drTab
.
pages
[
0
].
source
.
name
].
context
,
params
:
this
.
c
.
drPages
[
this
.
c
.
model
.
drTab
.
pages
[
0
].
source
.
name
].
params
,
...
...
@@ -1154,7 +1163,7 @@ const Oe = U({
context
:
s
.
context
,
params
:
s
.
params
,
modal
:
{
mode
:
R
.
EMBED
mode
:
$
.
EMBED
},
modelPath
:
t
.
embedView
.
source
.
modelPath
,
deName
:
this
.
c
.
model
.
appEntity
.
source
.
codeName
...
...
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
浏览文件 @
91d093a1
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录