Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
0d9f8011
提交
0d9f8011
编写于
9月 09, 2025
作者:
Cano1997
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: sy-web插件删除文件预览
上级
8e912ada
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
183 行增加
和
178 行删除
+183
-178
ibiz-template-plugin.es.js
...plate-plugin/sy-web@0.0.3/dist/ibiz-template-plugin.es.js
+182
-177
index.legacy.js
...s/@ibiz-template-plugin/sy-web@0.0.3/dist/index.legacy.js
+1
-1
未找到文件。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.3/dist/ibiz-template-plugin.es.js
浏览文件 @
0d9f8011
var
ce
=
Object
.
defineProperty
;
var
de
=
(
e
,
t
,
s
)
=>
t
in
e
?
ce
(
e
,
t
,
{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
s
})
:
e
[
t
]
=
s
;
var
E
=
(
e
,
t
,
s
)
=>
(
de
(
e
,
typeof
t
!=
"symbol"
?
t
+
""
:
t
,
s
),
s
);
var
U
=
(
e
,
t
,
s
)
=>
(
de
(
e
,
typeof
t
!=
"symbol"
?
t
+
""
:
t
,
s
),
s
);
import
{
IndexViewModel
as
ue
,
GridModel
as
he
,
ViewType
as
me
,
ModelUtil
as
pe
}
from
"@ibiz-template/model"
;
import
{
GridFieldColumnController
as
Z
,
GridRowController
as
X
,
WFStepTraceViewController
as
fe
,
UploadEditorController
as
J
,
GridController
as
ge
,
GridNotifyState
as
we
,
WFDynaEditView3Controller
as
ve
}
from
"@ibiz-template/controller"
;
import
{
defineComponent
as
L
,
computed
as
D
,
h
as
c
,
getCurrentInstance
as
A
,
ref
as
w
,
watch
as
N
,
toRefs
as
$
,
onUnmounted
as
be
}
from
"vue"
;
import
{
useNamespace
as
U
,
useViewController
as
Q
,
usePropsWatch
as
B
,
getUploadProps
as
ye
,
getEditorEmits
as
K
,
getGridUploadProps
as
z
,
getGridEditorEmits
as
_
,
useClickOutside
as
Ce
,
useEventListener
as
Fe
,
getInputProps
as
xe
,
getGridInputProps
as
ke
,
useGridCellEditor
as
Se
,
useControlController
as
Le
,
useWFStepTraceViewController
as
Ue
,
useEditView3Controller
as
E
e
}
from
"@ibiz-template/vue-util"
;
import
{
colorBlend
as
Ne
,
HttpError
as
Y
,
isImage
as
P
e
,
uploadFile
as
Ie
,
RuntimeError
as
Te
}
from
"@ibiz-template/core"
;
import
{
defineComponent
as
L
,
computed
as
D
,
h
as
c
,
getCurrentInstance
as
A
,
ref
as
g
,
watch
as
P
,
toRefs
as
$
,
onUnmounted
as
be
}
from
"vue"
;
import
{
useNamespace
as
E
,
useViewController
as
Q
,
usePropsWatch
as
B
,
getUploadProps
as
ye
,
getEditorEmits
as
K
,
getGridUploadProps
as
z
,
getGridEditorEmits
as
_
,
useClickOutside
as
Ce
,
useEventListener
as
xe
,
getInputProps
as
ke
,
getGridInputProps
as
Fe
,
useGridCellEditor
as
Se
,
useControlController
as
Le
,
useWFStepTraceViewController
as
Ee
,
useEditView3Controller
as
U
e
}
from
"@ibiz-template/vue-util"
;
import
{
colorBlend
as
Pe
,
HttpError
as
Y
,
isImage
as
N
e
,
uploadFile
as
Ie
,
RuntimeError
as
Te
}
from
"@ibiz-template/core"
;
import
{
getCookie
as
De
,
createUUID
as
W
}
from
"qx-util"
;
import
{
debounce
as
Me
}
from
"lodash-es"
;
import
{
ViewMode
as
ee
,
UIActionHandler
as
te
,
PluginStaticResource
as
Re
}
from
"@ibiz-template/runtime"
;
...
...
@@ -22,21 +22,21 @@ const Ae = L({
}
},
setup
(
e
)
{
const
t
=
U
(
"grid-field-column"
),
s
=
D
(()
=>
{
const
t
=
E
(
"grid-field-column"
),
s
=
D
(()
=>
{
var
r
;
if
(
e
.
controller
.
model
.
source
.
cLConvertMode
!==
"FRONT"
)
return
[];
const
n
=
e
.
row
.
data
[
e
.
controller
.
model
.
codeName
];
return
(
r
=
e
.
controller
.
codeListItems
)
!=
null
&&
r
.
length
&&
n
?
n
.
split
(
","
).
map
((
m
)
=>
{
const
p
=
e
.
controller
.
codeListItems
.
find
((
g
)
=>
g
.
value
===
m
);
const
p
=
e
.
controller
.
codeListItems
.
find
((
f
)
=>
f
.
value
===
m
);
if
(
p
)
{
const
g
=
p
.
color
||
"#515a6e"
;
const
f
=
p
.
color
||
"#515a6e"
;
return
{
text
:
p
.
text
,
colorStyle
:
t
.
cssVarBlock
({
color
:
g
,
"border-color"
:
g
,
"bg-color"
:
Ne
(
g
,
"#fff"
)
color
:
f
,
"border-color"
:
f
,
"bg-color"
:
Pe
(
f
,
"#fff"
)
})
};
}
...
...
@@ -92,7 +92,7 @@ class Ge extends fe {
* @type {string}
* @memberof PresetWFChartViewController
*/
E
(
this
,
"imgSrc"
);
U
(
this
,
"imgSrc"
);
}
async
getUIData
()
{
const
s
=
Object
.
assign
(
this
.
context
.
clone
(),
this
.
params
),
o
=
await
this
.
entityService
.
wf
.
getWFProcessDiagram
(
s
),
i
=
new
Blob
([
o
.
data
],
{
...
...
@@ -121,7 +121,7 @@ const Oe = L({
}
},
setup
(
e
)
{
const
t
=
U
(
"preset-wf-chart-view"
),
{
const
t
=
E
(
"preset-wf-chart-view"
),
{
proxy
:
s
}
=
A
(),
o
=
Q
(
s
,
(
i
,
n
)
=>
new
Ge
(
e
.
modelPath
,
i
,
n
));
return
B
(
s
,
"deName"
,
o
.
setDeName
.
bind
(
o
)),
{
...
...
@@ -150,7 +150,7 @@ const $e = L({
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"wf-toolbar"
),
o
=
async
(
n
,
r
)
=>
{
const
s
=
E
(
"wf-toolbar"
),
o
=
async
(
n
,
r
)
=>
{
t
(
"wf-link-click"
,
n
,
r
);
};
return
{
...
...
@@ -188,7 +188,7 @@ const V = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ze = "A
let
t
=
{};
return
e
.
forEach
((
s
,
o
)
=>
t
[
s
]
=
o
),
t
;
})(
R
);
const
I
=
String
.
fromCharCode
.
bind
(
String
);
const
T
=
String
.
fromCharCode
.
bind
(
String
);
typeof
Uint8Array
.
from
==
"function"
&&
Uint8Array
.
from
.
bind
(
Uint8Array
);
const
_e
=
(
e
)
=>
e
.
replace
(
/=/g
,
""
).
replace
(
/
[
+
\/]
/g
,
(
t
)
=>
t
==
"+"
?
"-"
:
"_"
),
je
=
(
e
)
=>
{
let
t
,
s
,
o
,
i
,
n
=
""
;
...
...
@@ -202,34 +202,34 @@ const _e = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
},
se
=
Be
?
(
e
)
=>
btoa
(
e
)
:
j
?
(
e
)
=>
Buffer
.
from
(
e
,
"binary"
).
toString
(
"base64"
)
:
je
,
We
=
j
?
(
e
)
=>
Buffer
.
from
(
e
).
toString
(
"base64"
)
:
(
e
)
=>
{
let
s
=
[];
for
(
let
o
=
0
,
i
=
e
.
length
;
o
<
i
;
o
+=
4096
)
s
.
push
(
I
.
apply
(
null
,
e
.
subarray
(
o
,
o
+
4096
)));
s
.
push
(
T
.
apply
(
null
,
e
.
subarray
(
o
,
o
+
4096
)));
return
se
(
s
.
join
(
""
));
},
Ve
=
(
e
)
=>
{
if
(
e
.
length
<
2
)
{
var
t
=
e
.
charCodeAt
(
0
);
return
t
<
128
?
e
:
t
<
2048
?
I
(
192
|
t
>>>
6
)
+
I
(
128
|
t
&
63
)
:
I
(
224
|
t
>>>
12
&
15
)
+
I
(
128
|
t
>>>
6
&
63
)
+
I
(
128
|
t
&
63
);
return
t
<
128
?
e
:
t
<
2048
?
T
(
192
|
t
>>>
6
)
+
T
(
128
|
t
&
63
)
:
T
(
224
|
t
>>>
12
&
15
)
+
T
(
128
|
t
>>>
6
&
63
)
+
T
(
128
|
t
&
63
);
}
else
{
var
t
=
65536
+
(
e
.
charCodeAt
(
0
)
-
55296
)
*
1024
+
(
e
.
charCodeAt
(
1
)
-
56320
);
return
I
(
240
|
t
>>>
18
&
7
)
+
I
(
128
|
t
>>>
12
&
63
)
+
I
(
128
|
t
>>>
6
&
63
)
+
I
(
128
|
t
&
63
);
return
T
(
240
|
t
>>>
18
&
7
)
+
T
(
128
|
t
>>>
12
&
63
)
+
T
(
128
|
t
>>>
6
&
63
)
+
T
(
128
|
t
&
63
);
}
},
qe
=
/
[\u
D800-
\u
DBFF
][\u
DC00-
\u
DFFFF
]
|
[^\x
00-
\x
7F
]
/g
,
He
=
(
e
)
=>
e
.
replace
(
qe
,
Ve
),
q
=
j
?
(
e
)
=>
Buffer
.
from
(
e
,
"utf8"
).
toString
(
"base64"
)
:
V
?
(
e
)
=>
We
(
V
.
encode
(
e
))
:
(
e
)
=>
se
(
He
(
e
)),
oe
=
(
e
,
t
=
!
1
)
=>
t
?
_e
(
q
(
e
))
:
q
(
e
);
function
Ze
(
e
,
t
,
s
)
{
var
S
;
const
o
=
w
([]),
i
=
w
({
var
k
;
const
o
=
g
([]),
i
=
g
({
Authorization
:
`Bearer
${
De
(
"access_token"
)}
`
}),
n
=
w
(
""
),
r
=
w
(
""
),
a
=
{
}),
n
=
g
(
""
),
r
=
g
(
""
),
a
=
{
count
:
0
,
cacheFiles
:
[]
// iview上传过程中不能改default-file-list,所以需要缓存
},
d
=
(
S
=
s
.
editorParams
)
==
null
?
void
0
:
S
.
blackList
;
},
d
=
(
k
=
s
.
editorParams
)
==
null
?
void
0
:
k
.
blackList
;
let
m
=
[];
d
&&
typeof
d
==
"string"
&&
(
m
=
d
.
split
(
","
)),
N
(
d
&&
typeof
d
==
"string"
&&
(
m
=
d
.
split
(
","
)),
P
(
()
=>
e
.
value
,
(
l
)
=>
{
o
.
value
=
l
?
JSON
.
parse
(
l
)
:
[];
},
{
immediate
:
!
0
}
),
N
(
),
P
(
()
=>
e
.
data
,
(
l
)
=>
{
if
(
l
)
{
...
...
@@ -238,7 +238,7 @@ function Ze(e, t, s) {
}
},
{
immediate
:
!
0
,
deep
:
!
0
}
),
N
(
),
P
(
o
,
(
l
)
=>
{
l
!=
null
&&
l
.
length
&&
r
.
value
&&
l
.
forEach
((
h
)
=>
{
...
...
@@ -246,7 +246,7 @@ function Ze(e, t, s) {
});
},
{
immediate
:
!
0
}
),
N
(
),
P
(
r
,
(
l
)
=>
{
l
&&
o
.
value
.
length
&&
o
.
value
.
forEach
((
h
)
=>
{
...
...
@@ -256,9 +256,9 @@ function Ze(e, t, s) {
{
immediate
:
!
0
}
);
const
p
=
()
=>
{
const
l
=
[...
o
.
value
,
...
a
.
cacheFiles
],
h
=
l
.
length
>
0
?
JSON
.
stringify
(
l
.
map
((
v
)
=>
({
name
:
v
.
name
,
id
:
v
.
id
})))
:
null
;
const
l
=
[...
o
.
value
,
...
a
.
cacheFiles
],
h
=
l
.
length
>
0
?
JSON
.
stringify
(
l
.
map
((
b
)
=>
({
name
:
b
.
name
,
id
:
b
.
id
})))
:
null
;
a
.
cacheFiles
=
[],
t
(
h
);
},
g
=
(
l
)
=>
{
},
f
=
(
l
)
=>
{
const
h
=
l
.
name
.
trim
().
toLowerCase
();
if
(
m
.
some
((
C
)
=>
h
.
endsWith
(
`.
${
C
}
`
)))
return
ibiz
.
message
.
error
(
`不可上传
${
m
.
join
(
"、"
)}
类型的文件!`
),
!
1
;
...
...
@@ -276,43 +276,43 @@ function Ze(e, t, s) {
},
x
=
(
l
)
=>
{
if
(
e
.
disabled
)
return
;
const
h
=
o
.
value
.
findIndex
((
v
)
=>
v
.
id
===
l
.
id
);
const
h
=
o
.
value
.
findIndex
((
b
)
=>
b
.
id
===
l
.
id
);
h
!==
-
1
&&
o
.
value
.
splice
(
h
,
1
),
p
();
},
f
=
(
l
)
=>
{
const
v
=
(
s
.
parent
.
form
||
s
.
parent
.
grid
).
model
.
appEntity
.
deName
,
C
=
`
${
l
.
id
}
|
${
v
}
|
${
e
.
data
.
srfkey
}
|
${
s
.
context
.
srfpersonid
||
s
.
context
.
srfuserid
}
`
,
M
=
l
.
url
||
r
.
value
.
replace
(
"%fileId%"
,
l
.
id
);
},
w
=
(
l
)
=>
{
const
b
=
(
s
.
parent
.
form
||
s
.
parent
.
grid
).
model
.
appEntity
.
deName
,
C
=
`
${
l
.
id
}
|
${
b
}
|
${
e
.
data
.
srfkey
}
|
${
s
.
context
.
srfpersonid
||
s
.
context
.
srfuserid
}
`
,
M
=
l
.
url
||
r
.
value
.
replace
(
"%fileId%"
,
l
.
id
);
s
.
fileDownload
({
url
:
`
${
M
}
?key=
${
window
.
btoa
(
C
)}${
Math
.
floor
(
1
e3
+
Math
.
random
()
*
9
e3
)}
`
,
name
:
l
.
name
});
},
u
=
w
(
!
1
),
b
=
w
(
""
),
P
=
w
(
""
);
},
u
=
g
(
!
1
),
v
=
g
(
""
),
N
=
g
(
""
);
return
{
uploadUrl
:
n
,
downloadUrl
:
r
,
headers
:
i
,
files
:
o
,
onDownload
:
f
,
onDownload
:
w
,
onError
:
y
,
onRemove
:
x
,
onSuccess
:
F
,
beforeUpload
:
g
,
beforeUpload
:
f
,
showModal
:
u
,
modalTitle
:
b
,
iframeUrl
:
P
,
modalTitle
:
v
,
iframeUrl
:
N
,
onModalCancel
:
()
=>
{
u
.
value
=
!
1
,
b
.
value
=
""
,
P
.
value
=
""
;
u
.
value
=
!
1
,
v
.
value
=
""
,
N
.
value
=
""
;
},
previewFile
:
(
l
)
=>
{
u
.
value
=
!
0
,
b
.
value
=
l
.
name
;
u
.
value
=
!
0
,
v
.
value
=
l
.
name
;
const
h
=
window
.
Environment
.
previewFileUrl
;
if
(
h
)
{
const
v
=
encodeURIComponent
(
const
b
=
encodeURIComponent
(
oe
(
`
${
window
.
location
.
origin
}${
l
.
url
}
?fullfilename=
${
l
.
name
}
`
)
);
P
.
value
=
`
${
h
}
/onlinePreview?url=
${
v
}
`
;
N
.
value
=
`
${
h
}
/onlinePreview?url=
${
b
}
`
;
}
}
};
...
...
@@ -324,7 +324,7 @@ const Xe = L({
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"sy-file-upload"
),
o
=
e
.
controller
,
{
const
s
=
E
(
"sy-file-upload"
),
o
=
e
.
controller
,
{
uploadUrl
:
i
,
headers
:
n
,
files
:
r
,
...
...
@@ -332,15 +332,15 @@ const Xe = L({
onError
:
d
,
onRemove
:
m
,
onSuccess
:
p
,
beforeUpload
:
g
,
beforeUpload
:
f
,
showModal
:
F
,
modalTitle
:
y
,
iframeUrl
:
x
,
onModalCancel
:
f
,
onModalCancel
:
w
,
previewFile
:
u
}
=
Ze
(
e
,
(
b
)
=>
{
t
(
"change"
,
b
);
},
o
);
}
=
Ze
(
e
,
(
I
)
=>
{
t
(
"change"
,
I
);
},
o
)
,
v
=
D
(()
=>
o
.
editorParams
.
showPreview
?
o
.
editorParams
.
showPreview
===
"true"
:
window
.
Environment
.
kkviewon
)
;
return
{
ns
:
s
,
c
:
o
,
...
...
@@ -351,12 +351,15 @@ const Xe = L({
onError
:
d
,
onRemove
:
m
,
onSuccess
:
p
,
beforeUpload
:
g
,
beforeUpload
:
f
,
showModal
:
F
,
modalTitle
:
y
,
iframeUrl
:
x
,
onModalCancel
:
f
,
previewFile
:
u
onModalCancel
:
w
,
onPreview
:
(
I
)
=>
{
v
.
value
&&
u
(
I
);
},
showPreview
:
v
};
},
render
(
e
)
{
...
...
@@ -446,13 +449,13 @@ const Xe = L({
attrs
:
{
d
:
"M8,6.25590375 C9.72432306,6.25590375 11.1277921,7.62964308 11.175675,9.34238963 L11.1769379,9.43284162 L11.1769379,12.7456325 C11.1769379,14.5002069 9.75457434,15.9225704 8,15.9225704 C6.27567694,15.9225704 4.8722079,14.5488311 4.824325,12.8360845 L4.82306213,12.7456325 L4.82306213,10.7559037 C4.82306213,10.4797614 5.04691975,10.2559037 5.32306213,10.2559037 C5.58296083,10.2559037 5.79654502,10.4541998 5.82077327,10.7077504 L5.82306213,10.7559037 L5.82306213,12.7456325 C5.82306213,13.9479221 6.79771041,14.9225704 8,14.9225704 C9.17615286,14.9225704 10.1344543,13.9898375 10.1755637,12.8237123 L10.1769379,12.7456325 L10.1769379,9.43284162 C10.1769379,8.23055203 9.20228959,7.25590375 8,7.25590375 C7.72385763,7.25590375 7.5,7.03204612 7.5,6.75590375 C7.5,6.47976137 7.72385763,6.25590375 8,6.25590375 Z M8,0.0774295852 C9.72432306,0.0774295852 11.1277921,1.45116892 11.175675,3.16391546 L11.1769379,3.25436746 L11.1769379,5.24409625 C11.1769379,5.52023863 10.9530802,5.74409625 10.6769379,5.74409625 C10.4170392,5.74409625 10.203455,5.54580022 10.1792267,5.29224959 L10.1769379,5.24409625 L10.1769379,3.25436746 C10.1769379,2.05207787 9.20228959,1.07742959 8,1.07742959 C6.82384714,1.07742959 5.86554572,2.01016247 5.82443628,3.17628769 L5.82306213,3.25436746 L5.82306213,6.56715838 C5.82306213,7.76944797 6.79771041,8.74409625 8,8.74409625 C8.27614237,8.74409625 8.5,8.96795388 8.5,9.24409625 C8.5,9.52023863 8.27614237,9.74409625 8,9.74409625 C6.27567694,9.74409625 4.8722079,8.37035692 4.824325,6.65761037 L4.82306213,6.56715838 L4.82306213,3.25436746 C4.82306213,1.49979312 6.24542566,0.0774295852 8,0.0774295852 Z"
,
id
:
"形状结合"
,
fill
:
"
#000000
"
,
fill
:
"
currentColor
"
,
transform
:
"translate(8.000000, 8.000000) rotate(-315.000000) translate(-8.000000, -8.000000) "
}
})])])])])]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"file-item-right-title"
),
on
:
{
click
:
()
=>
this
.
previewFile
(
t
)
click
:
()
=>
this
.
onPreview
(
t
)
}
},
[
t
.
name
]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"file-item-right-action"
)
...
...
@@ -498,10 +501,10 @@ const Xe = L({
width
:
"16"
,
height
:
"16"
}
})])])])]),
e
(
"span"
,
{
})])])])]),
this
.
showPreview
?
e
(
"span"
,
{
class
:
this
.
ns
.
e
(
"icon-preview"
),
on
:
{
click
:
()
=>
this
.
previewFile
(
t
)
click
:
()
=>
this
.
onPreview
(
t
)
}
},
[
e
(
"svg"
,
{
attrs
:
{
...
...
@@ -547,7 +550,7 @@ const Xe = L({
width
:
"16"
,
height
:
"16"
}
})])])])])]),
this
.
disabled
||
this
.
readonly
?
null
:
e
(
"span"
,
{
})])])])])])
:
null
,
this
.
disabled
||
this
.
readonly
?
null
:
e
(
"span"
,
{
class
:
this
.
ns
.
e
(
"icon-remove"
),
on
:
{
click
:
()
=>
this
.
onRemove
(
t
)
...
...
@@ -616,13 +619,13 @@ const Xe = L({
function
O
(
e
,
t
)
{
if
(
e
.
url
=
t
.
replace
(
"%fileId%"
,
e
.
id
),
e
.
status
||
(
e
.
status
=
"finished"
),
!
e
.
fileName
)
{
const
s
=
e
.
name
.
lastIndexOf
(
"."
);
e
.
fileName
=
e
.
name
.
substring
(
0
,
s
),
e
.
fileExt
=
e
.
name
.
substring
(
s
),
e
.
isImage
=
P
e
(
e
.
name
);
e
.
fileName
=
e
.
name
.
substring
(
0
,
s
),
e
.
fileExt
=
e
.
name
.
substring
(
s
),
e
.
isImage
=
N
e
(
e
.
name
);
}
return
e
;
}
function
ie
(
e
)
{
const
t
=
w
(
""
),
s
=
w
(
""
),
o
=
w
([]);
return
N
(
const
t
=
g
(
""
),
s
=
g
(
""
),
o
=
g
([]);
return
P
(
e
.
data
,
(
i
)
=>
{
if
(
i
)
{
...
...
@@ -631,7 +634,7 @@ function ie(e) {
}
},
{
immediate
:
!
0
,
deep
:
!
0
}
),
N
(
),
P
(
e
.
value
,
(
i
)
=>
{
o
.
value
=
i
?
JSON
.
parse
(
i
)
:
[],
o
.
value
.
length
&&
s
.
value
&&
o
.
value
.
forEach
((
n
)
=>
{
...
...
@@ -639,7 +642,7 @@ function ie(e) {
});
},
{
immediate
:
!
0
}
),
N
(
),
P
(
s
,
(
i
)
=>
{
i
&&
o
.
value
.
length
&&
o
.
value
.
forEach
((
n
)
=>
{
...
...
@@ -654,10 +657,10 @@ function ie(e) {
};
}
function
ne
(
e
)
{
var
k
,
S
;
const
t
=
w
(
"undo"
),
s
=
w
([]),
{
downloadUrl
:
o
,
value
:
i
,
uploadUrl
:
n
,
controller
:
r
}
=
e
,
a
=
(
S
=
(
k
=
r
==
null
?
void
0
:
r
.
value
)
==
null
?
void
0
:
k
.
editorParams
)
==
null
?
void
0
:
S
.
blackList
;
var
S
,
k
;
const
t
=
g
(
"undo"
),
s
=
g
([]),
{
downloadUrl
:
o
,
value
:
i
,
uploadUrl
:
n
,
controller
:
r
}
=
e
,
a
=
(
k
=
(
S
=
r
==
null
?
void
0
:
r
.
value
)
==
null
?
void
0
:
S
.
editorParams
)
==
null
?
void
0
:
k
.
blackList
;
let
d
=
[];
a
&&
typeof
a
==
"string"
&&
(
d
=
a
.
split
(
","
)),
N
(
a
&&
typeof
a
==
"string"
&&
(
d
=
a
.
split
(
","
)),
P
(
i
,
(
l
)
=>
{
l
.
length
>
0
&&
(
s
.
value
=
[],
l
.
forEach
((
h
)
=>
{
...
...
@@ -670,11 +673,11 @@ function ne(e) {
}
);
const
m
=
(
l
,
h
)
=>
{
const
v
=
[];
const
b
=
[];
return
h
.
forEach
((
C
,
M
)
=>
{
const
G
=
C
.
name
.
trim
().
toLowerCase
();
if
(
d
.
some
((
le
)
=>
G
.
endsWith
(
`.
${
le
}
`
)))
{
v
.
push
(
M
);
b
.
push
(
M
);
return
;
}
s
.
value
.
push
({
...
...
@@ -684,26 +687,26 @@ function ne(e) {
id
:
C
.
uid
,
url
:
""
});
}),
v
.
length
===
h
.
length
?
(
ibiz
.
message
.
error
(
`不可上传
${
d
.
join
(
"、"
)}
类型的文件!`
),
!
1
)
:
(
v
.
length
&&
(
v
.
forEach
((
C
)
=>
{
}),
b
.
length
===
h
.
length
?
(
ibiz
.
message
.
error
(
`不可上传
${
d
.
join
(
"、"
)}
类型的文件!`
),
!
1
)
:
(
b
.
length
&&
(
b
.
forEach
((
C
)
=>
{
l
.
splice
(
C
,
1
),
h
.
splice
(
C
,
1
);
}),
ibiz
.
message
.
error
(
`不可上传
${
d
.
join
(
"、"
)}
类型的文件!`
)),
!
0
);
},
p
=
(
l
)
=>
{
l
.
forEach
((
h
)
=>
{
s
.
value
.
find
((
v
)
=>
v
.
id
===
h
.
uid
?
(
v
.
percentage
=
h
.
percentage
,
!
0
)
:
!
1
);
s
.
value
.
find
((
b
)
=>
b
.
id
===
h
.
uid
?
(
b
.
percentage
=
h
.
percentage
,
!
0
)
:
!
1
);
});
},
g
=
(
l
,
h
)
=>
{
l
.
forEach
((
v
)
=>
{
s
.
value
.
find
((
C
)
=>
C
.
id
===
v
.
uid
?
(
C
.
status
=
v
.
status
,
C
.
id
=
h
.
data
.
fileid
,
C
.
name
=
h
.
data
.
filename
,
O
(
C
,
o
.
value
),
!
0
)
:
!
1
);
},
f
=
(
l
,
h
)
=>
{
l
.
forEach
((
b
)
=>
{
s
.
value
.
find
((
C
)
=>
C
.
id
===
b
.
uid
?
(
C
.
status
=
b
.
status
,
C
.
id
=
h
.
data
.
fileid
,
C
.
name
=
h
.
data
.
filename
,
O
(
C
,
o
.
value
),
!
0
)
:
!
1
);
});
},
F
=
(
l
,
h
)
=>
{
var
C
;
l
.
forEach
((
M
)
=>
{
s
.
value
.
find
((
G
)
=>
G
.
id
===
M
.
uid
?
(
G
.
status
=
M
.
status
,
!
0
)
:
!
1
);
});
const
v
=
new
Y
(
h
);
const
b
=
new
Y
(
h
);
ibiz
.
notification
.
error
({
title
:
(
C
=
v
.
status
)
==
null
?
void
0
:
C
.
toString
(),
desc
:
v
.
message
,
title
:
(
C
=
b
.
status
)
==
null
?
void
0
:
C
.
toString
(),
desc
:
b
.
message
,
duration
:
10
});
},
y
=
(
l
)
=>
{
...
...
@@ -715,31 +718,31 @@ function ne(e) {
uploadUrl
:
n
.
value
,
beforeUpload
:
m
,
progress
:
p
,
success
:
g
,
success
:
f
,
error
:
F
,
finish
:
y
});
},
f
=
w
(
!
1
),
u
=
w
(
""
),
b
=
w
(
""
);
},
w
=
g
(
!
1
),
u
=
g
(
""
),
v
=
g
(
""
);
return
{
selectFile
:
x
,
fileList
:
s
,
uploadState
:
t
,
showModal
:
f
,
showModal
:
w
,
modalTitle
:
u
,
iframeUrl
:
b
,
iframeUrl
:
v
,
onModalCancel
:
()
=>
{
f
.
value
=
!
1
,
u
.
value
=
""
,
b
.
value
=
""
;
w
.
value
=
!
1
,
u
.
value
=
""
,
v
.
value
=
""
;
},
previewFile
:
(
l
)
=>
{
f
.
value
=
!
0
,
u
.
value
=
l
.
name
;
w
.
value
=
!
0
,
u
.
value
=
l
.
name
;
const
h
=
window
.
Environment
.
previewFileUrl
;
if
(
h
)
{
const
v
=
encodeURIComponent
(
const
b
=
encodeURIComponent
(
oe
(
`
${
window
.
location
.
origin
}${
l
.
url
}
?fullfilename=
${
l
.
name
}
`
)
);
b
.
value
=
`
${
h
}
/onlinePreview?url=
${
v
}
`
;
v
.
value
=
`
${
h
}
/onlinePreview?url=
${
b
}
`
;
}
}
};
...
...
@@ -748,7 +751,7 @@ const Je = L({
name
:
"SyGridFileUpload"
,
props
:
z
(),
setup
(
e
)
{
const
t
=
U
(
"sy-grid-file-upload"
),
{
const
t
=
E
(
"sy-grid-file-upload"
),
{
value
:
s
,
data
:
o
,
controller
:
i
...
...
@@ -764,27 +767,29 @@ const Je = L({
fileList
:
d
,
showModal
:
m
,
modalTitle
:
p
,
iframeUrl
:
g
,
iframeUrl
:
f
,
previewFile
:
F
,
onModalCancel
:
y
}
=
ne
({
downloadUrl
:
n
,
uploadUrl
:
r
,
value
:
a
});
value
:
a
,
controller
:
i
}),
x
=
(
u
)
=>
{
const
v
=
e
.
controller
,
I
=
v
.
parent
.
grid
.
model
.
appEntity
.
deName
,
S
=
`
${
u
.
id
}
|
${
I
}
|
${
o
.
value
.
srfkey
}
|
${
v
.
context
.
srfpersonid
||
v
.
context
.
srfuserid
}
`
,
k
=
u
.
url
||
n
.
value
.
replace
(
"%fileId%"
,
u
.
id
);
v
.
fileDownload
({
url
:
`
${
k
}
?key=
${
window
.
btoa
(
S
)}${
Math
.
floor
(
1
e3
+
Math
.
random
()
*
9
e3
)}
`
,
name
:
u
.
name
});
},
w
=
D
(()
=>
e
.
controller
.
editorParams
.
showPreview
?
e
.
controller
.
editorParams
.
showPreview
===
"true"
:
window
.
Environment
.
kkviewon
);
return
{
ns
:
t
,
fileList
:
d
,
showModal
:
m
,
modalTitle
:
p
,
iframeUrl
:
g
,
downloadFile
:
(
f
)
=>
{
const
u
=
e
.
controller
,
P
=
u
.
parent
.
grid
.
model
.
appEntity
.
deName
,
T
=
`
${
f
.
id
}
|
${
P
}
|
${
o
.
value
.
srfkey
}
|
${
u
.
context
.
srfpersonid
||
u
.
context
.
srfuserid
}
`
,
k
=
f
.
url
||
n
.
value
.
replace
(
"%fileId%"
,
f
.
id
);
u
.
fileDownload
({
url
:
`
${
k
}
?key=
${
window
.
btoa
(
T
)}${
Math
.
floor
(
1
e3
+
Math
.
random
()
*
9
e3
)}
`
,
name
:
f
.
name
});
},
iframeUrl
:
f
,
showPreview
:
w
,
downloadFile
:
x
,
previewFile
:
F
,
onModalCancel
:
y
};
...
...
@@ -815,14 +820,14 @@ const Je = L({
on
:
{
click
:
()
=>
this
.
downloadFile
(
e
)
}
}),
c
(
"i-icon"
,
{
}),
this
.
showPreview
?
c
(
"i-icon"
,
{
attrs
:
{
type
:
"md-eye"
},
on
:
{
click
:
()
=>
this
.
previewFile
(
e
)
}
})])]))]),
c
(
"i-modal"
,
{
})
:
null
])]))]),
c
(
"i-modal"
,
{
attrs
:
{
value
:
this
.
showModal
,
title
:
this
.
modalTitle
,
...
...
@@ -895,7 +900,7 @@ const Ke = L({
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"sy-edit-grid-file-upload-popover"
),
{
const
s
=
E
(
"sy-edit-grid-file-upload-popover"
),
{
downloadUrl
:
o
,
value
:
i
,
uploadUrl
:
n
,
...
...
@@ -909,28 +914,28 @@ const Ke = L({
value
:
i
,
uploadUrl
:
n
,
controller
:
r
}),
p
=
w
(),
g
=
w
(
!
1
),
F
=
Ce
(
p
,
async
(
f
)
=>
{
}),
p
=
g
(),
f
=
g
(
!
1
),
F
=
Ce
(
p
,
async
(
w
)
=>
{
t
(
"close"
,
{
isModified
:
g
.
value
,
isModified
:
f
.
value
,
resultFiles
:
a
.
value
});
});
return
N
(
d
,
(
f
)
=>
{
f
===
"done"
?
(
g
.
value
=
!
0
,
F
.
proceed
())
:
f
===
"loading"
&&
F
.
pause
();
return
P
(
d
,
(
w
)
=>
{
w
===
"done"
?
(
f
.
value
=
!
0
,
F
.
proceed
())
:
w
===
"loading"
&&
F
.
pause
();
}),
{
ns
:
s
,
componentRef
:
p
,
fileList
:
a
,
deleteFile
:
(
f
)
=>
{
const
u
=
a
.
value
.
findIndex
((
b
)
=>
b
.
id
===
f
.
id
);
a
.
value
.
splice
(
u
,
1
),
g
.
value
=
!
0
;
deleteFile
:
(
w
)
=>
{
const
u
=
a
.
value
.
findIndex
((
v
)
=>
v
.
id
===
w
.
id
);
a
.
value
.
splice
(
u
,
1
),
f
.
value
=
!
0
;
},
selectFile
:
m
,
downloadFile
:
(
f
)
=>
{
const
u
=
e
.
controller
,
P
=
u
.
parent
.
grid
.
model
.
appEntity
.
deName
,
T
=
`
${
f
.
id
}
|
${
P
}
|
${
e
.
data
.
srfkey
}
|
${
u
.
context
.
srfpersonid
||
u
.
context
.
srfuserid
}
`
,
k
=
f
.
url
||
o
.
value
.
replace
(
"%fileId%"
,
f
.
id
);
downloadFile
:
(
w
)
=>
{
const
u
=
e
.
controller
,
N
=
u
.
parent
.
grid
.
model
.
appEntity
.
deName
,
I
=
`
${
w
.
id
}
|
${
N
}
|
${
e
.
data
.
srfkey
}
|
${
u
.
context
.
srfpersonid
||
u
.
context
.
srfuserid
}
`
,
S
=
w
.
url
||
o
.
value
.
replace
(
"%fileId%"
,
w
.
id
);
u
.
fileDownload
({
url
:
`
${
k
}
?key=
${
window
.
btoa
(
T
)}${
Math
.
floor
(
1
e3
+
Math
.
random
()
*
9
e3
)}
`
,
name
:
f
.
name
url
:
`
${
S
}
?key=
${
window
.
btoa
(
I
)}${
Math
.
floor
(
1
e3
+
Math
.
random
()
*
9
e3
)}
`
,
name
:
w
.
name
});
}
};
...
...
@@ -978,7 +983,7 @@ const Ye = L({
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"sy-edit-grid-file-upload"
),
{
const
s
=
E
(
"sy-edit-grid-file-upload"
),
{
value
:
o
,
data
:
i
,
controller
:
n
...
...
@@ -990,10 +995,10 @@ const Ye = L({
value
:
o
,
data
:
i
,
controller
:
n
}),
m
=
w
(),
p
=
async
()
=>
{
}),
m
=
g
(),
p
=
async
()
=>
{
if
(
!
m
.
value
)
throw
new
Te
(
"容器元素不存在"
);
const
g
=
m
.
value
.
$el
,
F
=
g
.
offsetHeight
,
y
=
ibiz
.
overlay
.
createPopover
((
u
)
=>
u
(
Ke
,
{
const
f
=
m
.
value
.
$el
,
F
=
f
.
offsetHeight
,
y
=
ibiz
.
overlay
.
createPopover
((
u
)
=>
u
(
Ke
,
{
props
:
{
value
:
d
.
value
,
data
:
i
.
value
,
...
...
@@ -1002,8 +1007,8 @@ const Ye = L({
controller
:
n
.
value
},
on
:
{
close
:
(
b
)
=>
{
y
.
dismiss
(
b
);
close
:
(
v
)
=>
{
y
.
dismiss
(
v
);
}
}
}),
void
0
,
{
...
...
@@ -1014,20 +1019,20 @@ const Ye = L({
crossAxis
:
0
}
});
await
y
.
present
(
g
);
await
y
.
present
(
f
);
const
{
isModified
:
x
,
resultFiles
:
f
resultFiles
:
w
}
=
await
y
.
onWillDismiss
();
if
(
x
)
{
const
u
=
f
.
length
>
0
?
JSON
.
stringify
(
f
.
map
((
b
)
=>
({
name
:
b
.
name
,
id
:
b
.
id
const
u
=
w
.
length
>
0
?
JSON
.
stringify
(
w
.
map
((
v
)
=>
({
name
:
v
.
name
,
id
:
v
.
id
})))
:
null
;
t
(
"change"
,
u
),
t
(
"rowSave"
);
}
};
return
Fe
(
m
,
"click"
,
(
g
)
=>
{
return
xe
(
m
,
"click"
,
(
f
)
=>
{
e
.
disabled
||
p
();
}),
{
ns
:
s
,
...
...
@@ -1055,12 +1060,12 @@ const Ye = L({
});
L
({
name
:
"SyInput"
,
props
:
x
e
(),
props
:
k
e
(),
emits
:
K
(),
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"input"
),
i
=
e
.
controller
.
model
,
n
=
w
(),
r
=
w
(
2
);
const
s
=
E
(
"input"
),
i
=
e
.
controller
.
model
,
n
=
g
(),
r
=
g
(
2
);
i
.
editorType
===
"TEXTAREA_10"
&&
(
r
.
value
=
10
);
const
a
=
D
(()
=>
{
switch
(
i
.
editorType
)
{
...
...
@@ -1074,15 +1079,15 @@ L({
default
:
return
"string"
;
}
}),
d
=
w
(
""
);
N
(()
=>
e
.
value
,
(
u
,
b
)
=>
{
u
!==
b
&&
(
u
?
d
.
value
=
u
:
d
.
value
=
""
);
}),
d
=
g
(
""
);
P
(()
=>
e
.
value
,
(
u
,
v
)
=>
{
u
!==
v
&&
(
u
?
d
.
value
=
u
:
d
.
value
=
""
);
},
{
immediate
:
!
0
});
let
m
=
!
1
,
p
,
g
;
let
m
=
!
1
,
p
,
f
;
const
F
=
Me
((
u
)
=>
{
g
!==
u
.
target
.
value
&&
t
(
"change"
,
u
.
target
.
value
),
g
=
void
0
,
m
=
!
1
,
p
&&
p
();
f
!==
u
.
target
.
value
&&
t
(
"change"
,
u
.
target
.
value
),
f
=
void
0
,
m
=
!
1
,
p
&&
p
();
},
300
,
{
leading
:
!
0
}),
y
=
(
u
)
=>
{
...
...
@@ -1091,10 +1096,10 @@ L({
u
&&
u
.
code
===
"Enter"
&&
m
&&
(
p
=
()
=>
{
n
.
value
.
$el
.
dispatchEvent
(
u
);
});
},
f
=
()
=>
{
g
=
n
.
value
.
currentValue
,
t
(
"change"
,
g
);
},
w
=
()
=>
{
f
=
n
.
value
.
currentValue
,
t
(
"change"
,
f
);
};
return
e
.
autoFocus
&&
N
(
n
,
(
u
)
=>
{
return
e
.
autoFocus
&&
P
(
n
,
(
u
)
=>
{
u
&&
u
.
$el
.
getElementsByTagName
(
"input"
)[
0
].
focus
();
}),
{
ns
:
s
,
...
...
@@ -1103,7 +1108,7 @@ L({
currentVal
:
d
,
handleChange
:
y
,
handleKeyUp
:
x
,
handleBlur
:
f
,
handleBlur
:
w
,
inputRef
:
n
};
},
...
...
@@ -1136,12 +1141,12 @@ L({
});
L
({
name
:
"SyGridInput"
,
props
:
k
e
(),
props
:
F
e
(),
emits
:
_
(),
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"grid-input"
),
{
const
s
=
E
(
"grid-input"
),
{
isInfoMode
:
o
,
autoFocus
:
i
,
componentRef
:
n
,
...
...
@@ -1214,7 +1219,7 @@ const et = L({
setup
(
e
,
{
emit
:
t
})
{
const
s
=
U
(
"layout"
),
o
=
w
(
!
1
),
i
=
()
=>
{
const
s
=
E
(
"layout"
),
o
=
g
(
!
1
),
i
=
()
=>
{
o
.
value
=
!
o
.
value
,
t
(
"onCollapseChange"
,
o
.
value
);
},
n
=
D
(()
=>
e
.
model
.
source
.
blankMode
===
!
0
),
r
=
D
(()
=>
!!
(
window
.
Environment
.
manualdownloadurl
||
ibiz
.
env
.
manualdownloadurl
));
return
{
...
...
@@ -1311,7 +1316,7 @@ function tt(e) {
}),
e
.
singleSelect
||
s
.
splice
(
0
,
0
,
{
type
:
"selection"
,
width
:
60
}),
s
;
}
function
st
(
e
)
{
const
t
=
w
([]);
const
t
=
g
([]);
return
e
.
nerve
.
self
.
evt
.
on
(
"created"
,
()
=>
{
t
.
value
=
tt
(
e
);
}),
[
D
(()
=>
{
...
...
@@ -1372,7 +1377,7 @@ class nt extends ge {
* @author: zhujiamin
* @Date: 2023-10-09 14:00:38
*/
E
(
this
,
"groups"
,
[]);
U
(
this
,
"groups"
,
[]);
/**
* 分组名称属性
*
...
...
@@ -1380,7 +1385,7 @@ class nt extends ge {
* @date 2024-12-19 10:12:56
* @type {string}
*/
E
(
this
,
"groupField"
,
""
);
U
(
this
,
"groupField"
,
""
);
/**
* 第一列名称
*
...
...
@@ -1388,7 +1393,7 @@ class nt extends ge {
* @date 2024-12-19 10:12:30
* @type {string}
*/
E
(
this
,
"firstColName"
,
""
);
U
(
this
,
"firstColName"
,
""
);
}
async
onInit
()
{
const
s
=
this
.
model
.
columns
.
find
(
...
...
@@ -1474,7 +1479,7 @@ const at = L({
setup
(
e
)
{
const
{
proxy
:
t
}
=
A
(),
s
=
U
(
"grid"
),
o
=
rt
(
t
,
e
.
modelData
,
e
.
context
,
e
.
params
),
[
i
]
=
st
(
o
),
{
}
=
A
(),
s
=
E
(
"grid"
),
o
=
rt
(
t
,
e
.
modelData
,
e
.
context
,
e
.
params
),
[
i
]
=
st
(
o
),
{
onRowClick
:
n
,
onDbRowClick
:
r
,
onSelectionChange
:
a
,
...
...
@@ -1482,60 +1487,60 @@ const at = L({
}
=
ot
(
o
),
{
onPageChange
:
m
,
onPageReset
:
p
,
onPageSizeChange
:
g
}
=
it
(
o
),
F
=
(
k
,
S
)
=>
{
onPageSizeChange
:
f
}
=
it
(
o
),
F
=
(
S
,
k
)
=>
{
const
l
=
t
.
$refs
.
grid
;
l
&&
(
l
.
toggleSelect
&&
l
.
toggleSelect
(
S
),
l
.
highlightCurrentRow
&&
l
.
highlightCurrentRow
(
S
)),
n
(
k
);
},
y
=
w
(
0
),
x
=
w
(
null
),
f
=
w
(
null
);
let
u
=
null
,
b
=
0
;
const
P
=
()
=>
{
var
k
;
if
(
x
.
value
&&
((
k
=
e
.
modal
)
==
null
?
void
0
:
k
.
mode
)
!==
"EMBED"
)
if
(
o
.
model
.
source
.
enablePagingBar
&&
f
.
value
)
{
const
S
=
f
.
value
.
$el
,
l
=
S
.
offsetHeight
+
parseFloat
(
window
.
getComputedStyle
(
S
).
paddingTop
);
l
&&
(
l
.
toggleSelect
&&
l
.
toggleSelect
(
k
),
l
.
highlightCurrentRow
&&
l
.
highlightCurrentRow
(
k
)),
n
(
S
);
},
y
=
g
(
0
),
x
=
g
(
null
),
w
=
g
(
null
);
let
u
=
null
,
v
=
0
;
const
N
=
()
=>
{
var
S
;
if
(
x
.
value
&&
((
S
=
e
.
modal
)
==
null
?
void
0
:
S
.
mode
)
!==
"EMBED"
)
if
(
o
.
model
.
source
.
enablePagingBar
&&
w
.
value
)
{
const
k
=
w
.
value
.
$el
,
l
=
k
.
offsetHeight
+
parseFloat
(
window
.
getComputedStyle
(
k
).
paddingTop
);
y
.
value
=
x
.
value
.
offsetHeight
-
l
;
}
else
y
.
value
=
x
.
value
.
offsetHeight
;
o
.
model
.
source
.
height
>
0
&&
(
y
.
value
=
o
.
model
.
source
.
height
);
};
N
(
x
,
(
k
,
S
)
=>
{
k
&&
k
!==
S
&&
(
P
(),
window
.
ResizeObserver
&&
x
.
value
&&
(
u
=
new
ResizeObserver
((
l
)
=>
{
P
(
x
,
(
S
,
k
)
=>
{
S
&&
S
!==
k
&&
(
N
(),
window
.
ResizeObserver
&&
x
.
value
&&
(
u
=
new
ResizeObserver
((
l
)
=>
{
const
h
=
l
[
0
].
contentRect
.
height
;
h
!==
b
&&
(
P
(),
b
=
h
);
h
!==
v
&&
(
N
(),
v
=
h
);
}),
u
.
observe
(
x
.
value
)));
}),
be
(()
=>
{
u
&&
u
.
disconnect
();
});
const
T
=
D
(()
=>
{
const
k
=
[];
return
o
.
groups
.
forEach
((
S
)
=>
{
if
(
!
S
.
children
.
length
)
const
I
=
D
(()
=>
{
const
S
=
[];
return
o
.
groups
.
forEach
((
k
)
=>
{
if
(
!
k
.
children
.
length
)
return
;
const
h
=
[...
S
.
children
].
shift
();
k
.
push
({
srfkey
:
S
.
caption
,
const
h
=
[...
k
.
children
].
shift
();
S
.
push
({
srfkey
:
k
.
caption
,
isGroupData
:
!
0
,
first
:
h
,
children
:
S
.
children
,
children
:
k
.
children
,
_showChildren
:
!
0
});
}),
k
;
}),
S
;
});
return
{
c
:
o
,
ns
:
s
,
columns
:
i
,
tableData
:
T
,
tableData
:
I
,
onDbRowClick
:
r
,
onUIRowClick
:
F
,
onSelectionChange
:
a
,
onSortChange
:
d
,
onPageChange
:
m
,
onPageSizeChange
:
g
,
onPageSizeChange
:
f
,
onPageReset
:
p
,
tableHeight
:
y
,
gridRef
:
x
,
girdPaginationRef
:
f
girdPaginationRef
:
w
};
},
render
()
{
...
...
@@ -1610,12 +1615,12 @@ const at = L({
});
class
lt
{
constructor
()
{
E
(
this
,
"component"
,
Oe
);
U
(
this
,
"component"
,
Oe
);
}
}
class
ct
{
constructor
()
{
E
(
this
,
"component"
,
Ae
);
U
(
this
,
"component"
,
Ae
);
}
async
createController
(
t
,
s
)
{
const
o
=
new
Z
(
t
,
s
);
...
...
@@ -1624,7 +1629,7 @@ class ct {
}
class
dt
{
constructor
()
{
E
(
this
,
"component"
,
"IndexView"
);
U
(
this
,
"component"
,
"IndexView"
);
}
}
const
ae
=
L
({
...
...
@@ -1649,15 +1654,15 @@ const ae = L({
setup
(
e
)
{
const
{
proxy
:
t
}
=
A
(),
s
=
U
e
(
t
,
e
.
modelPath
);
}
=
A
(),
s
=
E
e
(
t
,
e
.
modelPath
);
B
(
t
,
"deName"
,
s
.
setDeName
.
bind
(
s
));
const
o
=
U
(
"wf-step-trace-grid"
),
i
=
w
([]),
n
=
(
a
,
d
,
m
=
!
1
)
=>
{
const
o
=
E
(
"wf-step-trace-grid"
),
i
=
g
([]),
n
=
(
a
,
d
,
m
=
!
1
)
=>
{
a
.
identitylinks
.
length
>
0
||
a
.
comments
.
length
>
0
&&
a
.
comments
.
forEach
((
p
)
=>
{
var
g
,
F
,
y
;
var
f
,
F
,
y
;
m
&&
p
.
type
===
"启动流程"
||
d
.
push
({
id
:
W
(),
nodeName
:
a
.
userTaskName
,
personName
:
(
g
=
p
.
authorName
)
==
null
?
void
0
:
g
.
replace
(
/
\([^
)
]
*
\)[^
(
]
*$/
,
""
),
personName
:
(
f
=
p
.
authorName
)
==
null
?
void
0
:
f
.
replace
(
/
\([^
)
]
*
\)[^
(
]
*$/
,
""
),
deptName
:
((
y
=
(
F
=
p
.
authorName
)
==
null
?
void
0
:
F
.
match
(
/.*
\(([^
)
]
*
)\)[^
(
]
*$/
))
==
null
?
void
0
:
y
[
1
])
||
""
,
time
:
p
.
time
,
content
:
p
.
type
,
...
...
@@ -1687,7 +1692,7 @@ const ae = L({
n
(
d
,
i
.
value
);
}),
i
.
value
.
sort
((
d
,
m
)
=>
Date
.
parse
(
d
.
time
)
-
Date
.
parse
(
m
.
time
)));
});
const
r
=
w
([{
const
r
=
g
([{
title
:
"序号"
,
key
:
"index"
,
width
:
60
,
...
...
@@ -1780,7 +1785,7 @@ L({
setup
(
e
)
{
const
{
proxy
:
t
}
=
A
(),
s
=
Q
(
t
,
(
r
,
a
)
=>
new
ut
(
e
.
modelPath
,
r
,
a
)),
o
=
U
(
`view-
${
me
.
DE_WF_DYNA_EDIT_VIEW3
}
`
.
toLowerCase
()),
i
=
w
([
"mainForm"
]);
}
=
A
(),
s
=
Q
(
t
,
(
r
,
a
)
=>
new
ut
(
e
.
modelPath
,
r
,
a
)),
o
=
E
(
`view-
${
me
.
DE_WF_DYNA_EDIT_VIEW3
}
`
.
toLowerCase
()),
i
=
g
([
"mainForm"
]);
return
{
c
:
s
,
ns
:
o
,
...
...
@@ -1900,7 +1905,7 @@ L({
setup
(
e
)
{
const
{
proxy
:
t
}
=
A
(),
s
=
Ee
(
t
,
e
.
modelPath
),
o
=
U
(
"view-deeditview3"
),
i
=
w
([
"mainForm"
]);
}
=
A
(),
s
=
Ue
(
t
,
e
.
modelPath
),
o
=
E
(
"view-deeditview3"
),
i
=
g
([
"mainForm"
]);
return
{
c
:
s
,
ns
:
o
,
...
...
@@ -1982,8 +1987,8 @@ L({
});
class
ht
{
constructor
()
{
E
(
this
,
"formEditor"
,
"SyFileUpload"
);
E
(
this
,
"gridEditor"
,
"SyGridFileUploadContainer"
);
U
(
this
,
"formEditor"
,
"SyFileUpload"
);
U
(
this
,
"gridEditor"
,
"SyGridFileUploadContainer"
);
}
async
createController
(
t
,
s
)
{
const
o
=
new
J
(
t
,
s
);
...
...
@@ -2007,7 +2012,7 @@ class mt extends te {
}
class
pt
{
constructor
()
{
E
(
this
,
"handler"
);
U
(
this
,
"handler"
);
}
async
getHandler
()
{
return
this
.
handler
||
(
this
.
handler
=
new
mt
()),
this
.
handler
;
...
...
@@ -2030,7 +2035,7 @@ class ft extends te {
}
class
gt
{
constructor
()
{
E
(
this
,
"handler"
);
U
(
this
,
"handler"
);
}
async
getHandler
()
{
return
this
.
handler
||
(
this
.
handler
=
new
ft
()),
this
.
handler
;
...
...
@@ -2038,10 +2043,10 @@ class gt {
}
class
wt
{
constructor
()
{
E
(
this
,
"component"
,
"GroupGrid"
);
U
(
this
,
"component"
,
"GroupGrid"
);
}
}
const
vt
=
new
Re
(
import
.
meta
.
url
),
N
t
=
{
const
vt
=
new
Re
(
import
.
meta
.
url
),
P
t
=
{
mateUrl
:
import
.
meta
.
url
,
install
(
e
)
{
pe
.
getModelService
().
then
((
t
)
=>
{
...
...
@@ -2072,5 +2077,5 @@ const vt = new Re(import.meta.url), Nt = {
}
};
export
{
N
t
as
default
P
t
as
default
};
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.3/dist/index.legacy.js
浏览文件 @
0d9f8011
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录