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
=
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
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
)
=>
(
X
(
e
,
typeof
t
!=
"symbol"
?
t
+
""
:
t
,
s
),
s
);
var
k
=
(
e
,
t
,
s
)
=>
(
Z
(
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"
;
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
{
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
{
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
j
,
isImage
as
me
,
uploadFile
as
pe
,
RuntimeError
as
he
}
from
"@ibiz-template/core"
;
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
{
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"
;
import
{
ViewType
as
be
}
from
"@ibiz-template/model"
;
const
ve
=
U
({
const
ve
=
U
({
name
:
"CodeListGridColumn"
,
name
:
"CodeListGridColumn"
,
...
@@ -16,7 +16,7 @@ const ve = U({
...
@@ -16,7 +16,7 @@ const ve = U({
required
:
!
0
required
:
!
0
},
},
row
:
{
row
:
{
type
:
Z
,
type
:
ee
,
required
:
!
0
required
:
!
0
}
}
},
},
...
@@ -82,7 +82,7 @@ const ve = U({
...
@@ -82,7 +82,7 @@ const ve = U({
},
[
t
])]);
},
[
t
])]);
}
}
});
});
class
we
extends
e
e
{
class
we
extends
t
e
{
constructor
()
{
constructor
()
{
super
(...
arguments
);
super
(...
arguments
);
k
(
this
,
"imgSrc"
);
k
(
this
,
"imgSrc"
);
...
@@ -114,7 +114,7 @@ const ye = U({
...
@@ -114,7 +114,7 @@ const ye = U({
setup
(
e
)
{
setup
(
e
)
{
const
t
=
S
(
"preset-wf-chart-view"
),
{
const
t
=
S
(
"preset-wf-chart-view"
),
{
proxy
:
s
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
)),
{
return
z
(
s
,
"deName"
,
o
.
setDeName
.
bind
(
o
)),
{
c
:
o
,
c
:
o
,
ns
:
t
ns
:
t
...
@@ -198,7 +198,7 @@ const Ee = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => 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
);
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
);
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
)
{
function
Ie
(
e
,
t
,
s
)
{
const
o
=
m
([]),
r
=
m
({
const
o
=
m
([]),
r
=
m
({
Authorization
:
`Bearer
${
fe
(
"access_token"
)}
`
Authorization
:
`Bearer
${
fe
(
"access_token"
)}
`
...
@@ -252,7 +252,7 @@ function Ie(e, t, s) {
...
@@ -252,7 +252,7 @@ function Ie(e, t, s) {
id
:
i
.
fileid
id
:
i
.
fileid
}),
d
.
count
-=
1
,
d
.
count
===
0
&&
p
());
}),
d
.
count
-=
1
,
d
.
count
===
0
&&
p
());
},
h
=
(
i
,
a
)
=>
{
},
h
=
(
i
,
a
)
=>
{
throw
d
.
count
-=
1
,
new
j
({
throw
d
.
count
-=
1
,
new
R
({
response
:
{
data
:
a
,
status
:
i
.
status
}
response
:
{
data
:
a
,
status
:
i
.
status
}
});
});
},
C
=
(
i
)
=>
{
},
C
=
(
i
)
=>
{
...
@@ -285,7 +285,7 @@ function Ie(e, t, s) {
...
@@ -285,7 +285,7 @@ function Ie(e, t, s) {
const
a
=
window
.
Environment
.
previewFileUrl
;
const
a
=
window
.
Environment
.
previewFileUrl
;
if
(
a
)
{
if
(
a
)
{
const
b
=
encodeURIComponent
(
const
b
=
encodeURIComponent
(
$
(
H
(
`
${
window
.
location
.
origin
}${
i
.
url
}
?fullfilename=
${
i
.
name
}
`
`
${
window
.
location
.
origin
}${
i
.
url
}
?fullfilename=
${
i
.
name
}
`
)
)
);
);
...
@@ -296,8 +296,8 @@ function Ie(e, t, s) {
...
@@ -296,8 +296,8 @@ function Ie(e, t, s) {
}
}
const
De
=
U
({
const
De
=
U
({
name
:
"SyFileUpload"
,
name
:
"SyFileUpload"
,
props
:
s
e
(),
props
:
o
e
(),
emits
:
o
e
(),
emits
:
i
e
(),
setup
(
e
,
{
setup
(
e
,
{
emit
:
t
emit
:
t
})
{
})
{
...
@@ -437,7 +437,7 @@ function P(e, t) {
...
@@ -437,7 +437,7 @@ function P(e, t) {
}
}
return
e
;
return
e
;
}
}
function
H
(
e
)
{
function
J
(
e
)
{
const
t
=
m
(
""
),
s
=
m
(
""
),
o
=
m
([]);
const
t
=
m
(
""
),
s
=
m
(
""
),
o
=
m
([]);
return
T
(
return
T
(
e
.
data
,
e
.
data
,
...
@@ -470,7 +470,7 @@ function H(e) {
...
@@ -470,7 +470,7 @@ function H(e) {
valueList
:
o
valueList
:
o
};
};
}
}
function
J
(
e
)
{
function
Y
(
e
)
{
const
t
=
m
(
"undo"
),
s
=
m
([]),
{
downloadUrl
:
o
,
value
:
r
,
uploadUrl
:
n
}
=
e
;
const
t
=
m
(
"undo"
),
s
=
m
([]),
{
downloadUrl
:
o
,
value
:
r
,
uploadUrl
:
n
}
=
e
;
T
(
T
(
r
,
r
,
...
@@ -488,7 +488,7 @@ function J(e) {
...
@@ -488,7 +488,7 @@ function J(e) {
const
i
=
[
"html"
,
"js"
,
"exe"
,
"sh"
],
a
=
[];
const
i
=
[
"html"
,
"js"
,
"exe"
,
"sh"
],
a
=
[];
return
w
.
forEach
((
b
,
I
)
=>
{
return
w
.
forEach
((
b
,
I
)
=>
{
const
L
=
b
.
name
.
trim
().
toLowerCase
();
const
L
=
b
.
name
.
trim
().
toLowerCase
();
if
(
i
.
some
((
K
)
=>
L
.
endsWith
(
`.
${
K
}
`
)))
{
if
(
i
.
some
((
Q
)
=>
L
.
endsWith
(
`.
${
Q
}
`
)))
{
a
.
push
(
I
);
a
.
push
(
I
);
return
;
return
;
}
}
...
@@ -515,7 +515,7 @@ function J(e) {
...
@@ -515,7 +515,7 @@ function J(e) {
u
.
forEach
((
b
)
=>
{
u
.
forEach
((
b
)
=>
{
s
.
value
.
find
((
I
)
=>
I
.
id
===
b
.
uid
?
(
I
.
status
=
b
.
status
,
!
0
)
:
!
1
);
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
({
ibiz
.
notification
.
error
({
title
:
(
a
=
i
.
status
)
==
null
?
void
0
:
a
.
toString
(),
title
:
(
a
=
i
.
status
)
==
null
?
void
0
:
a
.
toString
(),
desc
:
i
.
message
,
desc
:
i
.
message
,
...
@@ -550,7 +550,7 @@ function J(e) {
...
@@ -550,7 +550,7 @@ function J(e) {
const
w
=
window
.
Environment
.
previewFileUrl
;
const
w
=
window
.
Environment
.
previewFileUrl
;
if
(
w
)
{
if
(
w
)
{
const
i
=
encodeURIComponent
(
const
i
=
encodeURIComponent
(
$
(
H
(
`
${
window
.
location
.
origin
}${
u
.
url
}
?fullfilename=
${
u
.
name
}
`
`
${
window
.
location
.
origin
}${
u
.
url
}
?fullfilename=
${
u
.
name
}
`
)
)
);
);
...
@@ -571,7 +571,7 @@ const Pe = U({
...
@@ -571,7 +571,7 @@ const Pe = U({
downloadUrl
:
n
,
downloadUrl
:
n
,
uploadUrl
:
l
,
uploadUrl
:
l
,
valueList
:
d
valueList
:
d
}
=
H
({
}
=
J
({
value
:
s
,
value
:
s
,
data
:
o
,
data
:
o
,
controller
:
r
controller
:
r
...
@@ -582,7 +582,7 @@ const Pe = U({
...
@@ -582,7 +582,7 @@ const Pe = U({
iframeUrl
:
h
,
iframeUrl
:
h
,
previewFile
:
C
,
previewFile
:
C
,
onModalCancel
:
g
onModalCancel
:
g
}
=
J
({
}
=
Y
({
downloadUrl
:
n
,
downloadUrl
:
n
,
uploadUrl
:
l
,
uploadUrl
:
l
,
value
:
d
value
:
d
...
@@ -655,6 +655,7 @@ const Pe = U({
...
@@ -655,6 +655,7 @@ const Pe = U({
}),
Ne
=
U
({
}),
Ne
=
U
({
name
:
"SyGridFileUploadContainer"
,
name
:
"SyGridFileUploadContainer"
,
props
:
A
(),
props
:
A
(),
emits
:
j
(),
render
(
e
)
{
render
(
e
)
{
return
this
.
disabled
||
this
.
readonly
?
e
(
"SyGridFileUpload"
,
{
return
this
.
disabled
||
this
.
readonly
?
e
(
"SyGridFileUpload"
,
{
props
:
{
props
:
{
...
@@ -663,6 +664,14 @@ const Pe = U({
...
@@ -663,6 +664,14 @@ const Pe = U({
})
:
e
(
"SyEditGridFileUpload"
,
{
})
:
e
(
"SyEditGridFileUpload"
,
{
props
:
{
props
:
{
...
this
.
$props
...
this
.
$props
},
on
:
{
change
:
(
t
,
s
)
=>
{
this
.
$emit
(
"change"
,
t
,
s
);
},
rowSave
:
()
=>
{
this
.
$emit
(
"rowSave"
);
}
}
}
});
});
}
}
...
@@ -701,11 +710,11 @@ const Le = U({
...
@@ -701,11 +710,11 @@ const Le = U({
fileList
:
l
,
fileList
:
l
,
uploadState
:
d
,
uploadState
:
d
,
selectFile
:
p
selectFile
:
p
}
=
J
({
}
=
Y
({
downloadUrl
:
o
,
downloadUrl
:
o
,
value
:
r
,
value
:
r
,
uploadUrl
:
n
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"
,
{
t
(
"close"
,
{
isModified
:
y
.
value
,
isModified
:
y
.
value
,
resultFiles
:
l
.
value
resultFiles
:
l
.
value
...
@@ -766,7 +775,7 @@ const Le = U({
...
@@ -766,7 +775,7 @@ const Le = U({
const
_e
=
U
({
const
_e
=
U
({
name
:
"SyEditGridFileUpload"
,
name
:
"SyEditGridFileUpload"
,
props
:
A
(),
props
:
A
(),
emits
:
re
(),
emits
:
j
(),
setup
(
e
,
{
setup
(
e
,
{
emit
:
t
emit
:
t
})
{
})
{
...
@@ -778,7 +787,7 @@ const _e = U({
...
@@ -778,7 +787,7 @@ const _e = U({
downloadUrl
:
l
,
downloadUrl
:
l
,
uploadUrl
:
d
,
uploadUrl
:
d
,
valueList
:
p
valueList
:
p
}
=
H
({
}
=
J
({
value
:
o
,
value
:
o
,
data
:
r
,
data
:
r
,
controller
:
n
controller
:
n
...
@@ -863,7 +872,7 @@ class Ge {
...
@@ -863,7 +872,7 @@ class Ge {
k
(
this
,
"component"
,
"IndexView"
);
k
(
this
,
"component"
,
"IndexView"
);
}
}
}
}
const
Y
=
U
({
const
K
=
U
({
name
:
"WFStepTraceGrid"
,
name
:
"WFStepTraceGrid"
,
props
:
{
props
:
{
context
:
Object
,
context
:
Object
,
...
@@ -996,7 +1005,7 @@ const Y = U({
...
@@ -996,7 +1005,7 @@ const Y = U({
}
}
if
(
this
.
c
.
complete
&&
this
.
c
.
model
.
drTab
.
pages
[
0
])
{
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
];
const
s
=
this
.
c
.
model
.
drTab
.
pages
[
0
],
o
=
this
.
c
.
drPages
[
s
.
source
.
name
];
t
.
push
(
e
(
Y
,
{
t
.
push
(
e
(
K
,
{
attrs
:
{
attrs
:
{
context
:
o
.
context
,
context
:
o
.
context
,
params
:
o
.
params
,
params
:
o
.
params
,
...
@@ -1052,7 +1061,7 @@ const Y = U({
...
@@ -1052,7 +1061,7 @@ const Y = U({
context
:
o
.
context
,
context
:
o
.
context
,
params
:
o
.
params
,
params
:
o
.
params
,
modal
:
{
modal
:
{
mode
:
R
.
EMBED
mode
:
$
.
EMBED
},
},
modelPath
:
s
.
embedView
.
source
.
modelPath
,
modelPath
:
s
.
embedView
.
source
.
modelPath
,
deName
:
this
.
c
.
model
.
appEntity
.
source
.
codeName
deName
:
this
.
c
.
model
.
appEntity
.
source
.
codeName
...
@@ -1130,7 +1139,7 @@ const Oe = U({
...
@@ -1130,7 +1139,7 @@ const Oe = U({
on
:
{
on
:
{
neuronInit
:
this
.
c
.
nerve
.
onNeuronInit
(
this
.
c
.
model
.
form
.
source
.
name
)
neuronInit
:
this
.
c
.
nerve
.
onNeuronInit
(
this
.
c
.
model
.
form
.
source
.
name
)
}
}
}),
e
(
Y
,
{
}),
e
(
K
,
{
attrs
:
{
attrs
:
{
context
:
this
.
c
.
drPages
[
this
.
c
.
model
.
drTab
.
pages
[
0
].
source
.
name
].
context
,
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
,
params
:
this
.
c
.
drPages
[
this
.
c
.
model
.
drTab
.
pages
[
0
].
source
.
name
].
params
,
...
@@ -1154,7 +1163,7 @@ const Oe = U({
...
@@ -1154,7 +1163,7 @@ const Oe = U({
context
:
s
.
context
,
context
:
s
.
context
,
params
:
s
.
params
,
params
:
s
.
params
,
modal
:
{
modal
:
{
mode
:
R
.
EMBED
mode
:
$
.
EMBED
},
},
modelPath
:
t
.
embedView
.
source
.
modelPath
,
modelPath
:
t
.
embedView
.
source
.
modelPath
,
deName
:
this
.
c
.
model
.
appEntity
.
source
.
codeName
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录