Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow2
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow2
Commits
49d728d4
提交
49d728d4
authored
9月 15, 2021
作者:
1239068511@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[代码更新] 加了一点东西
上级
6bad79ed
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
124 行增加
和
131 行删除
+124
-131
OrganizationService.java
...m/tykj/workflowcore/user/service/OrganizationService.java
+1
-1
CenterUserServiceImpl.java
...workflowcore/user/service/impl/CenterUserServiceImpl.java
+8
-7
OrganizationServiceImpl.java
...rkflowcore/user/service/impl/OrganizationServiceImpl.java
+6
-7
SyncDataService.java
.../tykj/workflowcore/user/service/impl/SyncDataService.java
+7
-4
UserController.java
...rkflowcore/workflow_editer/controller/UserController.java
+2
-0
WorkFlowController.java
...owcore/workflow_editer/controller/WorkFlowController.java
+0
-2
DefaultUserServiceImpl.java
.../workflow_editer/service/impl/DefaultUserServiceImpl.java
+1
-1
WorkFlowServiceImpl.java
...ore/workflow_editer/service/impl/WorkFlowServiceImpl.java
+83
-80
application-mysql.yml
src/main/resources/application-mysql.yml
+12
-3
chunk-5f2116e7.55076b45.css
src/main/resources/workflow/css/chunk-5f2116e7.55076b45.css
+0
-2
chunk-79a2a6d4.f7ea5f40.css
src/main/resources/workflow/css/chunk-79a2a6d4.f7ea5f40.css
+0
-2
chunk-b5da06ba.7a6ae39b.css
src/main/resources/workflow/css/chunk-b5da06ba.7a6ae39b.css
+0
-2
parser-home.8cdb50e6.css
src/main/resources/workflow/css/parser-home.8cdb50e6.css
+0
-2
index.html
src/main/resources/workflow/index.html
+2
-2
chunk-5f2116e7.39e63f89.js
src/main/resources/workflow/js/chunk-5f2116e7.39e63f89.js
+0
-2
chunk-79a2a6d4.b1d5b12d.js
src/main/resources/workflow/js/chunk-79a2a6d4.b1d5b12d.js
+0
-2
chunk-b5da06ba.6d3fd328.js
src/main/resources/workflow/js/chunk-b5da06ba.6d3fd328.js
+0
-2
chunk-fec0be80.0583a8a1.js
src/main/resources/workflow/js/chunk-fec0be80.0583a8a1.js
+0
-2
parser-home.8b3caa4d.js
src/main/resources/workflow/js/parser-home.8b3caa4d.js
+0
-2
preview.f1d279d5.js
src/main/resources/workflow/js/preview.f1d279d5.js
+0
-2
tinymce-example.0cafa1e6.js
src/main/resources/workflow/js/tinymce-example.0cafa1e6.js
+0
-2
preview.html
src/main/resources/workflow/preview.html
+2
-2
没有找到文件。
src/main/java/com/tykj/workflowcore/user/service/OrganizationService.java
浏览文件 @
49d728d4
...
...
@@ -53,7 +53,7 @@ public interface OrganizationService {
* @param code
* @return
*/
List
<
Organization
>
findOrganizationListBy
Code
(
String
code
);
List
<
Organization
>
findOrganizationListBy
Id
(
Integer
id
);
}
src/main/java/com/tykj/workflowcore/user/service/impl/CenterUserServiceImpl.java
浏览文件 @
49d728d4
...
...
@@ -4,7 +4,6 @@ import com.tykj.workflowcore.user.dao.UserDao;
import
com.tykj.workflowcore.user.pojo.Organization
;
import
com.tykj.workflowcore.user.pojo.User
;
import
com.tykj.workflowcore.user.pojo.UserDetail
;
import
com.tykj.workflowcore.user.pojo.vo.OrganizationVo
;
import
com.tykj.workflowcore.user.service.CenterUserService
;
import
com.tykj.workflowcore.workflow_editer.entity.enums.RoleTypeEnum
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -45,13 +44,15 @@ public class CenterUserServiceImpl implements CenterUserService {
return
null
;
}
//拼装用户的用户组
List
<
Organization
>
organizationListByCode
=
organizationService
.
findOrganizationListByCode
(
userDetail
.
getOrganizationCode
());
userDetail
.
setOrganizationList
(
organizationListByCode
);
//遍历organizationListByCode 将他拼接成string 例如:organization_code
List
<
String
>
groupStringListBuffer
=
new
ArrayList
<>();
if
(
organizationListByCode
!=
null
&&
organizationListByCode
.
size
()>
0
){
for
(
Organization
organization
:
organizationListByCode
)
{
groupStringListBuffer
.
add
(
RoleTypeEnum
.
ORGANIZATION
.
name
()+
"_"
+
organization
.
getCode
());
if
(
userDetail
.
getOrganizationId
()!=
null
){
List
<
Organization
>
organizationListByCode
=
organizationService
.
findOrganizationListById
(
userDetail
.
getOrganizationId
());
userDetail
.
setOrganizationList
(
organizationListByCode
);
//遍历organizationListByCode 将他拼接成string 例如:organization_code
if
(
organizationListByCode
!=
null
&&
organizationListByCode
.
size
()>
0
){
for
(
Organization
organization
:
organizationListByCode
)
{
groupStringListBuffer
.
add
(
RoleTypeEnum
.
ORGANIZATION
.
name
()+
"_"
+
organization
.
getCode
());
}
}
}
userDetail
.
setGroupStrings
(
groupStringListBuffer
);
...
...
src/main/java/com/tykj/workflowcore/user/service/impl/OrganizationServiceImpl.java
浏览文件 @
49d728d4
...
...
@@ -86,9 +86,9 @@ public class OrganizationServiceImpl implements OrganizationService {
@Override
public
Organization
findById
(
Integer
id
)
{
O
rganization
organization
=
organizationDao
.
findById
(
id
).
get
(
);
if
(
organization
!=
null
){
return
organization
;
O
ptional
<
Organization
>
byId
=
organizationDao
.
findById
(
id
);
if
(
byId
.
isPresent
()
){
return
byId
.
get
()
;
}
return
null
;
}
...
...
@@ -218,12 +218,11 @@ public class OrganizationServiceImpl implements OrganizationService {
}
@Override
public
List
<
Organization
>
findOrganizationListBy
Code
(
String
code
){
List
<
Organization
>
byCode
=
findByCode
(
code
);
if
(
byCode
==
null
||
byCode
.
size
()<=
0
){
public
List
<
Organization
>
findOrganizationListBy
Id
(
Integer
id
){
Organization
organization
=
findById
(
id
);
if
(
organization
==
null
){
return
null
;
}
Organization
organization
=
byCode
.
get
(
0
);
List
<
Organization
>
all
=
findAll
();
Map
<
Integer
,
Organization
>
nodeCollect
=
all
.
stream
().
collect
(
Collectors
.
toMap
(
Organization:
:
getId
,
org
->
org
));
...
...
src/main/java/com/tykj/workflowcore/user/service/impl/SyncDataService.java
浏览文件 @
49d728d4
...
...
@@ -42,7 +42,10 @@ public class SyncDataService {
@Value
(
"${sync.port}"
)
private
Integer
port
=
8880
;
private
String
url
=
String
.
format
(
"http://%s:%s"
,
ip
,
port
);
public
String
getUrl
(){
return
String
.
format
(
"http://%s:%s"
,
ip
,
port
);
}
@Scheduled
(
cron
=
"0 0 */1 * * ?"
)
public
void
execute
()
{
...
...
@@ -53,7 +56,7 @@ public class SyncDataService {
private
void
syncKey
()
{
log
.
info
(
"开始同步秘钥信息..."
);
ResponseEntity
<
String
>
entity
=
restTemplate
.
postForEntity
(
url
+
"/storageKey/getKeys"
,
null
,
String
.
class
,
new
HashMap
<>());
ResponseEntity
<
String
>
entity
=
restTemplate
.
postForEntity
(
getUrl
()
+
"/storageKey/getKeys"
,
null
,
String
.
class
,
new
HashMap
<>());
if
(
nonNull
(
entity
)
&&
nonNull
(
entity
.
getBody
()))
{
try
{
ResultObj
<
StorageKey
>
resultObj
=
new
ObjectMapper
().
readValue
(
entity
.
getBody
(),
new
TypeReference
<
ResultObj
<
StorageKey
>>()
{
...
...
@@ -69,7 +72,7 @@ public class SyncDataService {
private
void
syncUser
()
{
log
.
info
(
"开始同步用户信息..."
);
ResponseEntity
<
String
>
entity
=
restTemplate
.
getForEntity
(
url
+
"/user/all"
,
String
.
class
,
new
HashMap
<>());
ResponseEntity
<
String
>
entity
=
restTemplate
.
getForEntity
(
getUrl
()
+
"/user/all"
,
String
.
class
,
new
HashMap
<>());
if
(
nonNull
(
entity
)
&&
nonNull
(
entity
.
getBody
()))
{
try
{
ResultObj
<
List
<
User
>>
resultObj
=
new
ObjectMapper
().
readValue
(
entity
.
getBody
(),
new
TypeReference
<
ResultObj
<
List
<
User
>>>()
{
...
...
@@ -85,7 +88,7 @@ public class SyncDataService {
private
void
syncOrganization
()
{
log
.
info
(
"开始同步组织架构信息..."
);
ResponseEntity
<
String
>
entity
=
restTemplate
.
getForEntity
(
url
+
"/organization/all"
,
String
.
class
,
new
HashMap
<>());
ResponseEntity
<
String
>
entity
=
restTemplate
.
getForEntity
(
getUrl
()
+
"/organization/all"
,
String
.
class
,
new
HashMap
<>());
if
(
nonNull
(
entity
)
&&
nonNull
(
entity
.
getBody
()))
{
try
{
ResultObj
<
List
<
Organization
>>
resultObj
=
new
ObjectMapper
().
readValue
(
entity
.
getBody
(),
new
TypeReference
<
ResultObj
<
List
<
Organization
>>>()
{
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/controller/UserController.java
浏览文件 @
49d728d4
...
...
@@ -49,4 +49,6 @@ public class UserController {
List
<
WorkFlowRole
>
allRole
=
userService
.
getAllRole
(
roleType
);
return
allRole
;
}
}
src/main/java/com/tykj/workflowcore/workflow_editer/controller/WorkFlowController.java
浏览文件 @
49d728d4
...
...
@@ -120,8 +120,6 @@ public class WorkFlowController {
@ApiOperation
(
"查询我发起的流程"
)
public
ResponseEntity
findStartByUser
(
@RequestBody
MyStartProcessSelectVo
myStartProcessSelectVo
)
{
//入参 分页 状态 流程标题
UserDetail
authentication
=
authenticationUtils
.
getAuthentication
();
myStartProcessSelectVo
.
setUserId
(
authentication
.
getId
());
PageReturnVo
<
List
<
ProcessInstanceReturnVo
>>
pageReturnVo
=
workFlowService
.
findStartByUser
(
myStartProcessSelectVo
);
return
ResultUtil
.
success
(
pageReturnVo
,
"查询成功"
);
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/DefaultUserServiceImpl.java
浏览文件 @
49d728d4
...
...
@@ -95,7 +95,7 @@ public class DefaultUserServiceImpl implements UserService {
workFlowRole
.
setChildNodes
(
changeOrgToWorkFlowRole
(
organization
.
getChildNodes
()));
}
workFlowRole
.
setName
(
organization
.
getOrganizationName
());
workFlowRole
.
setId
(
organization
.
get
Code
()
);
workFlowRole
.
setId
(
organization
.
get
Id
()+
""
);
workFlowRole
.
setRoleType
(
RoleTypeEnum
.
ORGANIZATION
.
name
());
workFlowRoles
.
add
(
workFlowRole
);
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/WorkFlowServiceImpl.java
浏览文件 @
49d728d4
...
...
@@ -61,8 +61,8 @@ import java.util.stream.Collectors;
public
class
WorkFlowServiceImpl
implements
WorkFlowService
{
private
static
String
ALL_USER
=
"ALL_USER"
;
private
static
String
XML_FILE_PATH
=
File
.
separator
+
"xml"
+
File
.
separator
;
// private static String XML_FILE_PATH = File.separator+"xml"+File.separator;
private
static
String
XML_FILE_PATH
=
File
.
separator
+
"xml"
+
File
.
separator
;
// private static String XML_FILE_PATH = File.separator+"xml"+File.separator;
private
static
String
BASE_PATH
=
System
.
getProperty
(
"user.dir"
);
private
final
RepositoryService
repositoryService
;
private
final
RuntimeService
runtimeService
;
...
...
@@ -131,18 +131,18 @@ public class WorkFlowServiceImpl implements WorkFlowService {
@Override
public
void
flowXml
(
@RequestBody
FlowsInfoVo
flowsInfoVo
)
throws
XMLStreamException
,
IOException
{
Optional
<
FlowsInfo
>
byId
=
flowsInfoMapper
.
findById
(
flowsInfoVo
.
getId
());
if
(!
byId
.
isPresent
())
{
if
(!
byId
.
isPresent
())
{
throw
new
ApiException
(
"该流程不存在"
);
}
FlowsInfo
flowsInfo
=
byId
.
get
();
if
(
flowsInfo
.
getState
()
==
0
)
{
if
(
flowsInfo
.
getState
()
==
0
)
{
throw
new
ApiException
(
"请先暂停流程再进行编辑"
);
}
String
flowKey
=
flowsInfoVo
.
getFlowKey
();
String
flowXmlResourceName
=
flowKey
+
"bpmn20.xml"
;
String
CustomFlowXmlResourceName
=
flowKey
+
"bpmnCustom20.xml"
;
//从数据库里查处来
if
(
StringUtils
.
isEmpty
(
flowsInfo
.
getFilePath
())){
if
(
StringUtils
.
isEmpty
(
flowsInfo
.
getFilePath
()))
{
//生成xml文件
flowsInfo
=
flowsInfoVo
.
toEntity
(
flowsInfo
);
flowsInfo
.
setResourceName
(
flowXmlResourceName
);
...
...
@@ -150,7 +150,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
flowsInfo
.
setFileCustomPath
(
XML_FILE_PATH
+
CustomFlowXmlResourceName
);
}
File
file
=
FileUtil
.
createFileByString
(
BASE_PATH
+
XML_FILE_PATH
+
flowXmlResourceName
,
flowsInfoVo
.
getFileXml
().
replaceAll
(
"\\[\\?\\?[^\\]]+\\?\\?\\]"
,
""
).
replaceAll
(
"<"
,
"<"
).
replaceAll
(
">"
,
">"
));
flowsInfoVo
.
getFileXml
().
replaceAll
(
"\\[\\?\\?[^\\]]+\\?\\?\\]"
,
""
).
replaceAll
(
"<"
,
"<"
).
replaceAll
(
">"
,
">"
));
FileUtil
.
createFileByString
(
BASE_PATH
+
XML_FILE_PATH
+
CustomFlowXmlResourceName
,
flowsInfoVo
.
getFileXml
());
//获取bmpnModel
BpmnModel
bpmnModel
=
getBpmnModel
(
file
);
...
...
@@ -167,16 +167,16 @@ public class WorkFlowServiceImpl implements WorkFlowService {
flowsInfoMapper
.
save
(
flowsInfo
);
}
public
List
<
String
>
getPageIds
(
BpmnModel
bpmnModel
){
public
List
<
String
>
getPageIds
(
BpmnModel
bpmnModel
)
{
ArrayList
<
String
>
result
=
new
ArrayList
<>();
List
<
Process
>
processes
=
bpmnModel
.
getProcesses
();
for
(
Process
process
:
processes
)
{
Collection
<
FlowElement
>
flowElements
=
process
.
getFlowElements
();
for
(
FlowElement
flowElement
:
flowElements
)
{
if
(
flowElement
instanceof
StartEvent
){
if
(
flowElement
instanceof
StartEvent
)
{
result
.
add
(((
StartEvent
)
flowElement
).
getFormKey
());
}
if
(
flowElement
instanceof
UserTask
){
if
(
flowElement
instanceof
UserTask
)
{
result
.
add
(((
UserTask
)
flowElement
).
getFormKey
());
}
}
...
...
@@ -187,18 +187,19 @@ public class WorkFlowServiceImpl implements WorkFlowService {
/**
* 获取流程开始页面的ID
*
* @param bpmnModel
* @return
*/
public
Integer
getStartPageId
(
BpmnModel
bpmnModel
){
public
Integer
getStartPageId
(
BpmnModel
bpmnModel
)
{
Process
process
=
bpmnModel
.
getProcesses
().
get
(
0
);
Collection
<
FlowElement
>
flowElements
=
process
.
getFlowElements
();
for
(
FlowElement
flowElement
:
flowElements
)
{
if
(
flowElement
instanceof
StartEvent
){
if
(
flowElement
instanceof
StartEvent
)
{
String
formKey
=
((
StartEvent
)
flowElement
).
getFormKey
();
if
(
formKey
==
null
){
if
(
formKey
==
null
)
{
throw
new
ApiException
(
"开始节点表单不能为空"
);
}
else
{
}
else
{
return
Integer
.
valueOf
(
formKey
);
}
}
...
...
@@ -209,6 +210,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
/**
* 获取bpmnModel
*
* @param xmlFile
* @return
* @throws FileNotFoundException
...
...
@@ -225,19 +227,19 @@ public class WorkFlowServiceImpl implements WorkFlowService {
}
public
void
checkXml
(
BpmnModel
bpmnModel
){
public
void
checkXml
(
BpmnModel
bpmnModel
)
{
//做校验
ProcessValidator
defaultProcessValidator
=
processValidatorFactoryExt
.
createDefaultProcessValidator
();
List
<
ValidationError
>
validate
=
defaultProcessValidator
.
validate
(
bpmnModel
);
StringBuffer
message
=
new
StringBuffer
();
if
(
validate
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
validate
.
size
();
i
++)
{
if
(
validate
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
validate
.
size
();
i
++)
{
ValidationError
validationError
=
validate
.
get
(
i
);
String
problem
=
validationError
.
getProblem
();
message
.
append
(
i
+
1
+
""
+
problem
);
message
.
append
(
i
+
1
+
""
+
problem
);
message
.
append
(
"\r\n"
);
}
throw
new
ApiException
(
null
,
message
.
toString
());
throw
new
ApiException
(
null
,
message
.
toString
());
}
}
...
...
@@ -274,7 +276,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
public
void
startFlow
(
@RequestBody
StartFlowVo
startFlowVo
)
{
//设置流程发起人
WorkFlowUser
currentUser
=
userService
.
getCurrentUser
();
ProcessInstance
processInstance
=
runtimeService
.
startProcessInstanceByKey
(
startFlowVo
.
getFlowKey
(),
currentUser
.
getId
(),
ProcessInstance
processInstance
=
runtimeService
.
startProcessInstanceByKey
(
startFlowVo
.
getFlowKey
(),
currentUser
.
getId
(),
startFlowVo
.
getMap
());
// 存储流程实例id
// 根据flowKey查询出一个FlowInfo
...
...
@@ -292,11 +294,11 @@ public class WorkFlowServiceImpl implements WorkFlowService {
List
<
Map
<
String
,
Object
>>
listMap
=
new
ArrayList
<
Map
<
String
,
Object
>>();
TaskQuery
taskQuery
=
taskService
.
createTaskQuery
();
if
(
nextTaskVo
.
getGroupStrings
()
!=
null
||
nextTaskVo
.
getUserId
()
!=
null
)
{
if
(!
StringUtils
.
isEmpty
(
nextTaskVo
.
getProcessName
())){
taskQuery
.
processDefinitionName
(
"%"
+
nextTaskVo
.
getProcessName
()+
"%"
);
if
(!
StringUtils
.
isEmpty
(
nextTaskVo
.
getProcessName
()))
{
taskQuery
.
processDefinitionName
(
"%"
+
nextTaskVo
.
getProcessName
()
+
"%"
);
}
if
(!
StringUtils
.
isEmpty
(
nextTaskVo
.
getTaskName
()))
{
taskQuery
.
taskName
(
"%"
+
nextTaskVo
.
getTaskName
()+
"%"
);
taskQuery
.
taskName
(
"%"
+
nextTaskVo
.
getTaskName
()
+
"%"
);
}
taskQuery
.
or
();
taskQuery
.
taskCandidateUser
(
ALL_USER
);
...
...
@@ -334,7 +336,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
map
.
put
(
"processInstanceId"
,
processInstance
.
getId
());
map
.
put
(
"currentPageId"
,
formKey
);
map
.
put
(
"processName"
,
processInstance
.
getProcessDefinitionName
());
if
(
byFlowKeyWithDelete
!=
null
)
{
if
(
byFlowKeyWithDelete
!=
null
)
{
map
.
put
(
"processDes"
,
byFlowKeyWithDelete
.
getFlowDescribe
());
}
...
...
@@ -367,12 +369,12 @@ public class WorkFlowServiceImpl implements WorkFlowService {
ConcurrentHashMap
oldFlowMap
=
new
ConcurrentHashMap
<>();
ConcurrentHashMap
userMap
=
new
ConcurrentHashMap
<>();
Task
task
=
taskService
.
createTaskQuery
().
taskId
(
taskVo
.
getTaskId
()).
singleResult
();
if
(
task
==
null
)
{
throw
new
ApiException
(
null
,
"该任务已经被完成了"
);
if
(
task
==
null
)
{
throw
new
ApiException
(
null
,
"该任务已经被完成了"
);
}
//用户map
if
(
taskVo
.
getMap
()
!=
null
)
{
if
(
taskVo
.
getMap
()
!=
null
)
{
userMap
.
putAll
(
taskVo
.
getMap
());
}
//流程map
...
...
@@ -384,21 +386,21 @@ public class WorkFlowServiceImpl implements WorkFlowService {
taskService
.
addComment
(
task
.
getId
(),
processInstanceId
,
taskVo
.
getComments
());
}
//先判断
if
(
taskVo
.
getHandlingOpinion
()
!=
null
){
if
(
taskVo
.
getHandlingOpinion
()
!=
null
)
{
//局部变量
localMap
.
put
(
"handlingOpinion"
,
taskVo
.
getHandlingOpinion
());
localMap
.
put
(
"handlingOpinion"
,
taskVo
.
getHandlingOpinion
());
}
try
{
taskService
.
setVariables
(
task
.
getId
(),
userMap
);
taskService
.
setVariables
(
task
.
getId
(),
userMap
);
claimTask
(
task
.
getId
());
taskService
.
complete
(
task
.
getId
(),
localMap
);
taskService
.
complete
(
task
.
getId
(),
localMap
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
taskService
.
removeVariableLocal
(
task
.
getId
(),
"handlingOpinion"
);
taskService
.
removeVariables
(
task
.
getId
(),
taskService
.
getVariables
(
task
.
getId
()).
keySet
());
taskService
.
setVariables
(
task
.
getId
(),
oldFlowMap
);
taskService
.
removeVariableLocal
(
task
.
getId
(),
"handlingOpinion"
);
taskService
.
removeVariables
(
task
.
getId
(),
taskService
.
getVariables
(
task
.
getId
()).
keySet
());
taskService
.
setVariables
(
task
.
getId
(),
oldFlowMap
);
//归还
taskService
.
setAssignee
(
task
.
getId
(),
null
);
taskService
.
setAssignee
(
task
.
getId
(),
null
);
}
}
...
...
@@ -448,7 +450,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
flowsInfoMapper
.
deleteById
(
id
);
}
}
else
{
throw
new
ApiException
(
null
,
"流程不存在"
);
throw
new
ApiException
(
null
,
"流程不存在"
);
}
}
...
...
@@ -521,11 +523,11 @@ public class WorkFlowServiceImpl implements WorkFlowService {
// }
//由于这里存在两种数据的查询 无法正常分页 所以需要一点特殊的手段
//前区的偏移
long
offset1
=
0
;
long
size1
=
0
;
long
offset1
=
0
;
long
size1
=
0
;
//后区偏移
long
offset2
=
0
;
long
size2
=
0
;
long
offset2
=
0
;
long
size2
=
0
;
//计算分页信息
long
count1
=
historyService
.
createHistoricProcessInstanceQuery
()
.
processInstanceBusinessKey
(
myTaskSelectVo
.
getUserId
())
...
...
@@ -542,10 +544,10 @@ public class WorkFlowServiceImpl implements WorkFlowService {
long
pageOffset
=
myTaskSelectVo
.
getOffset
();
long
pageSize
=
myTaskSelectVo
.
getSize
();
//先判断偏移量是否超出前区
if
(
pageOffset
>
count1
)
{
if
(
pageOffset
>
count1
)
{
offset2
=
pageOffset
-
count1
;
size2
=
pageSize
;
}
else
{
}
else
{
offset1
=
pageOffset
;
size1
=
count1
-
pageOffset
;
pageSize
=
pageSize
-
size1
;
...
...
@@ -556,7 +558,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
//查出我发起的流程
List
<
HistoricProcessInstance
>
myStartProcessInstance
=
historyService
.
createHistoricProcessInstanceQuery
()
.
processInstanceBusinessKey
(
myTaskSelectVo
.
getUserId
())
.
listPage
((
int
)
offset1
,(
int
)
size1
);
.
listPage
((
int
)
offset1
,
(
int
)
size1
);
//先查出所有的开始节点 拼接节点信息
//由于开始节点也存在内容,所有需要将开始节点的内容放入返回集
for
(
HistoricProcessInstance
historicProcessInstance
:
myStartProcessInstance
)
{
...
...
@@ -573,10 +575,10 @@ public class WorkFlowServiceImpl implements WorkFlowService {
taskHistoryReturnVo
.
setTaskName
(
historicActivityInstance
.
getActivityName
());
taskHistoryReturnVo
.
setCreateTime
(
historicActivityInstance
.
getStartTime
());
taskHistoryReturnVo
.
setEndTime
(
historicActivityInstance
.
getEndTime
());
if
(
historicActivityInstance
.
getEndTime
()
==
null
)
{
if
(
historicActivityInstance
.
getEndTime
()
==
null
)
{
taskHistoryReturnVo
.
setState
(
0
);
}
else
{
taskHistoryReturnVo
.
setDurationTime
(
getDatePoor
(
historicActivityInstance
.
getEndTime
(),
historicActivityInstance
.
getStartTime
()));
}
else
{
taskHistoryReturnVo
.
setDurationTime
(
getDatePoor
(
historicActivityInstance
.
getEndTime
(),
historicActivityInstance
.
getStartTime
()));
taskHistoryReturnVo
.
setState
(
1
);
}
taskHistoryReturnVo
.
setProcessDescription
(
byFlowKeyWithDelete
.
getFlowDescribe
());
...
...
@@ -592,11 +594,11 @@ public class WorkFlowServiceImpl implements WorkFlowService {
historyService
.
createHistoricActivityInstanceQuery
()
.
activityType
(
"userTask"
)
.
taskAssignee
(
userService
.
getCurrentUser
().
getId
()
+
""
)
.
taskAssignee
(
userService
.
getCurrentUser
().
getId
()
+
""
)
.
finished
()
.
orderByHistoricActivityInstanceStartTime
()
.
desc
()
.
listPage
((
int
)
offset2
,(
int
)
size2
);
.
listPage
((
int
)
offset2
,
(
int
)
size2
);
//遍历将我执行的任务都加入到返回列表中
for
(
HistoricActivityInstance
historicActivityInstance
:
taskInstanceList
)
{
//查出对应的流程实例 有且只有一个
...
...
@@ -612,10 +614,10 @@ public class WorkFlowServiceImpl implements WorkFlowService {
taskHistoryReturnVo
.
setTaskName
(
historicActivityInstance
.
getActivityName
());
taskHistoryReturnVo
.
setCreateTime
(
historicActivityInstance
.
getStartTime
());
taskHistoryReturnVo
.
setEndTime
(
historicActivityInstance
.
getEndTime
());
if
(
historicActivityInstance
.
getEndTime
()
==
null
)
{
if
(
historicActivityInstance
.
getEndTime
()
==
null
)
{
taskHistoryReturnVo
.
setState
(
0
);
}
else
{
taskHistoryReturnVo
.
setDurationTime
(
getDatePoor
(
historicActivityInstance
.
getEndTime
(),
historicActivityInstance
.
getStartTime
()));
}
else
{
taskHistoryReturnVo
.
setDurationTime
(
getDatePoor
(
historicActivityInstance
.
getEndTime
(),
historicActivityInstance
.
getStartTime
()));
taskHistoryReturnVo
.
setState
(
1
);
}
taskHistoryReturnVo
.
setProcessDescription
(
byFlowKeyWithDelete
.
getFlowDescribe
());
...
...
@@ -638,17 +640,17 @@ public class WorkFlowServiceImpl implements WorkFlowService {
// .list();
// ArrayList<Object> arrayList = new ArrayList<>();
// arrayList.addAll(taskInstanceList);
return
new
PageReturnVo
<>(
allCount
,
taskHistoryReturnVoList
return
new
PageReturnVo
<>(
allCount
,
taskHistoryReturnVoList
);
}
@Override
public
String
getCurrentNodeId
(
String
taskId
)
{
if
(
taskId
!=
null
)
{
if
(
taskId
!=
null
)
{
return
taskService
.
createTaskQuery
().
taskId
(
taskId
).
singleResult
().
getTaskDefinitionKey
();
}
else
{
throw
new
ApiException
(
null
,
"任务已经不存在了"
);
}
else
{
throw
new
ApiException
(
null
,
"任务已经不存在了"
);
}
}
...
...
@@ -660,24 +662,25 @@ public class WorkFlowServiceImpl implements WorkFlowService {
}
@Override
public
PageReturnVo
<
List
<
ProcessInstanceReturnVo
>
>
findStartByUser
(
MyStartProcessSelectVo
myStartProcessSelectVo
)
{
public
PageReturnVo
<
List
<
ProcessInstanceReturnVo
>>
findStartByUser
(
MyStartProcessSelectVo
myStartProcessSelectVo
)
{
//先获取流程的BusinessKey
List
<
HistoricProcessInstance
>
historicProcessInstances
=
null
;
HistoricProcessInstanceQuery
historicProcessInstanceQuery
=
historyService
.
createHistoricProcessInstanceQuery
();
if
(!
StringUtils
.
isEmpty
(
myStartProcessSelectVo
.
getUserId
()))
{
historicProcessInstanceQuery
.
processInstanceBusinessKey
(
myStartProcessSelectVo
.
getUserId
());
if
(
myStartProcessSelectVo
.
getState
()!=
null
){
if
(
myStartProcessSelectVo
.
getState
()==
0
){
historicProcessInstanceQuery
.
unfinished
();
}
if
(
myStartProcessSelectVo
.
getState
()==
1
){
historicProcessInstanceQuery
.
finished
();
}
}
if
(
myStartProcessSelectVo
.
getState
()
!=
null
)
{
if
(
myStartProcessSelectVo
.
getState
()
==
0
)
{
historicProcessInstanceQuery
.
unfinished
();
}
if
(
!
StringUtils
.
isEmpty
(
myStartProcessSelectVo
.
getProcessName
()))
{
historicProcessInstanceQuery
.
processDefinitionName
(
"%"
+
myStartProcessSelectVo
.
getProcessName
()+
"%"
);
if
(
myStartProcessSelectVo
.
getState
()
==
1
)
{
historicProcessInstanceQuery
.
finished
(
);
}
}
if
(!
StringUtils
.
isEmpty
(
myStartProcessSelectVo
.
getProcessName
()))
{
historicProcessInstanceQuery
.
processDefinitionName
(
"%"
+
myStartProcessSelectVo
.
getProcessName
()
+
"%"
);
}
historicProcessInstances
=
historicProcessInstanceQuery
.
listPage
((
int
)
myStartProcessSelectVo
.
getOffset
(),
myStartProcessSelectVo
.
getLimit
());
// .processInstanceBusinessKey(myStartProcessSelectVo.getUserId()).list();
List
<
ProcessInstanceReturnVo
>
processInstanceReturnVos
=
new
ArrayList
<>();
//拼接VO 流程名称 流程描述 流程状态 状态 创建时间 创建人 完成时间 持续时间
for
(
HistoricProcessInstance
historicProcessInstance
:
historicProcessInstances
)
{
...
...
@@ -690,21 +693,22 @@ public class WorkFlowServiceImpl implements WorkFlowService {
processInstanceReturnVo
.
setCreateTime
(
historicProcessInstance
.
getStartTime
());
processInstanceReturnVo
.
setEndTime
(
historicProcessInstance
.
getEndTime
());
processInstanceReturnVo
.
setProcessInstanceId
(
historicProcessInstance
.
getId
());
if
(
processInstanceReturnVo
.
getEndTime
()
==
null
)
{
if
(
processInstanceReturnVo
.
getEndTime
()
==
null
)
{
processInstanceReturnVo
.
setState
(
0
);
}
else
{
processInstanceReturnVo
.
setDurationTime
(
getDatePoor
(
processInstanceReturnVo
.
getEndTime
(),
processInstanceReturnVo
.
getCreateTime
()));
}
else
{
processInstanceReturnVo
.
setDurationTime
(
getDatePoor
(
processInstanceReturnVo
.
getEndTime
(),
processInstanceReturnVo
.
getCreateTime
()));
processInstanceReturnVo
.
setState
(
1
);
}
processInstanceReturnVo
.
setCreateUser
(
centerUserService
.
findById
(
historicProcessInstance
.
getBusinessKey
()).
getRealName
());
//将processInstanceReturnVo 加入到返回的数组中
processInstanceReturnVos
.
add
(
processInstanceReturnVo
);
}
return
new
PageReturnVo
<
List
<
ProcessInstanceReturnVo
>
>(
historicProcessInstanceQuery
.
count
(),
processInstanceReturnVos
);
return
new
PageReturnVo
<
List
<
ProcessInstanceReturnVo
>
>(
historicProcessInstanceQuery
.
count
(),
processInstanceReturnVos
);
}
/**
* 计算 两个时间相差多少
*
* @param endDate
* @param nowDate
* @return
...
...
@@ -729,7 +733,6 @@ public class WorkFlowServiceImpl implements WorkFlowService {
}
@Override
public
Map
<
String
,
Object
>
setVariables
(
@RequestBody
Map
<
String
,
Object
>
maxMap
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
@@ -742,16 +745,16 @@ public class WorkFlowServiceImpl implements WorkFlowService {
ProcessInstance
processInstance
=
runtimeService
.
createProcessInstanceQuery
().
processInstanceId
(
processInstanceId
).
singleResult
();
if
(
processInstance
!=
null
)
{
//1、获取终止节点
List
<
EndEvent
>
endNodes
=
findEndFlowElement
(
processInstance
.
getProcessDefinitionId
());
List
<
EndEvent
>
endNodes
=
findEndFlowElement
(
processInstance
.
getProcessDefinitionId
());
String
endId
=
endNodes
.
get
(
0
).
getId
();
//2、执行终止
List
<
Execution
>
executions
=
runtimeService
.
createExecutionQuery
().
parentId
(
processInstanceId
).
list
();
List
<
String
>
executionIds
=
new
ArrayList
<>();
executions
.
forEach
(
execution
->
executionIds
.
add
(
execution
.
getId
()));
runtimeService
.
createChangeActivityStateBuilder
().
moveExecutionsToSingleActivityId
(
executionIds
,
endId
).
changeState
();
log
.
info
(
"终止processInstanceId:{}胜利"
,
processInstanceId
);
}
else
{
log
.
info
(
"不存在运行的流程实例processInstanceId:{},请确认!"
,
processInstanceId
);
log
.
info
(
"终止processInstanceId:{}胜利"
,
processInstanceId
);
}
else
{
log
.
info
(
"不存在运行的流程实例processInstanceId:{},请确认!"
,
processInstanceId
);
}
}
...
...
@@ -765,12 +768,12 @@ public class WorkFlowServiceImpl implements WorkFlowService {
}
@Override
public
List
<
ProcessInstance
>
queryUnfinishedProcessInstance
(
String
processKey
){
public
List
<
ProcessInstance
>
queryUnfinishedProcessInstance
(
String
processKey
)
{
List
<
ProcessInstance
>
list
=
runtimeService
.
createProcessInstanceQuery
().
processDefinitionKey
(
processKey
).
list
();
return
list
;
}
public
HistoricActivityInstance
findLastActivityByProcessInstance
(
String
processInstance
){
public
HistoricActivityInstance
findLastActivityByProcessInstance
(
String
processInstance
)
{
List
<
HistoricActivityInstance
>
list
=
historyService
.
createHistoricActivityInstanceQuery
()
.
processInstanceId
(
processInstance
)
...
...
@@ -780,10 +783,10 @@ public class WorkFlowServiceImpl implements WorkFlowService {
.
list
();
//根据降序遍历 返回符合条件的第一个
for
(
HistoricActivityInstance
historicActivityInstance
:
list
)
{
if
(
historicActivityInstance
.
getActivityType
().
equals
(
"userTask"
)){
if
(
historicActivityInstance
.
getActivityType
().
equals
(
"userTask"
))
{
return
historicActivityInstance
;
}
if
(
historicActivityInstance
.
getActivityType
().
equals
(
"startEvent"
)){
if
(
historicActivityInstance
.
getActivityType
().
equals
(
"startEvent"
))
{
return
historicActivityInstance
;
}
}
...
...
@@ -797,9 +800,9 @@ public class WorkFlowServiceImpl implements WorkFlowService {
.
createHistoricActivityInstanceQuery
()
.
activityInstanceId
(
Id
)
.
list
();
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
return
list
.
get
(
0
);
}
else
{
}
else
{
return
null
;
}
}
...
...
src/main/resources/application-mysql.yml
浏览文件 @
49d728d4
...
...
@@ -17,15 +17,24 @@ spring:
maximum-pool-size
:
60
minimum-idle
:
10
jpa
:
show-sql
:
fals
e
show-sql
:
tru
e
hibernate
:
naming
:
physical-strategy
:
com.tykj.workflowcore.base.config.ToUpperCase
ddl-auto
:
update
database-platform
:
org.hibernate.dialect.MySQL8Dialect
application
:
name
:
workflow
sync
:
ip
:
192.168.102.171
port
:
8880
server
:
port
:
8800
port
:
8088
eureka
:
instance
:
prefer-ip-address
:
true
lease-expiration-duration-in-seconds
:
3
lease-renewal-interval-in-seconds
:
7
client
:
service-url
:
defaultZone
:
http://192.168.100.248:1111/eureka/
src/main/resources/workflow/css/chunk-5f2116e7.55076b45.css
deleted
100644 → 0
浏览文件 @
6bad79ed
.searchBar
[
data-v-7ef02ce2
]
{
background-color
:
#fff
;
width
:
100%
;
height
:
84px
;
-webkit-box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
border-radius
:
4px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.addProcessDialog
[
data-v-7ef02ce2
]
.el-input__inner
,
.addProcessDialog
[
data-v-7ef02ce2
]
.el-textarea__inner
{
font-size
:
20px
;
background-color
:
#f9fafd
}
.ty_padding_left_right
[
data-v-7ef02ce2
]
{
padding
:
0
36px
}
.checkModel
[
data-v-7ef02ce2
]
{
width
:
100%
;
height
:
60px
}
.checkModel
.add
[
data-v-7ef02ce2
]
{
border
:
1px
solid
#2a3db3
;
color
:
#2a3db3
;
border-radius
:
20px
}
.add
[
data-v-7ef02ce2
]
:hover
,
.checkModel
.add
[
data-v-7ef02ce2
]
{
width
:
100px
;
height
:
40px
;
text-align
:
center
;
line-height
:
40px
;
font-size
:
18px
;
cursor
:
pointer
}
.add
[
data-v-7ef02ce2
]
:hover
{
background-color
:
#2a3db3
;
color
:
#fff
;
border-radius
:
20px
}
.check_byte
[
data-v-7ef02ce2
]
{
margin-top
:
30px
}
.check_byte
.item
[
data-v-7ef02ce2
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
width
:
500px
;
margin-bottom
:
10px
}
.item
[
data-v-7ef02ce2
]
.el-input__inner
{
height
:
50px
;
font-size
:
18px
}
.item
.del
[
data-v-7ef02ce2
]
{
margin-left
:
40px
;
width
:
50px
;
color
:
red
;
font-size
:
18px
;
cursor
:
pointer
}
.el-dialog__header
{
background
:
#e0e8ff
;
height
:
36px
;
padding
:
10px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
}
.el-dialog__header
>
.el-dialog__title
{
font-size
:
22px
;
color
:
#35435e
;
font-weight
:
700
;
margin-left
:
30px
}
.el-dialog__header
>
.el-dialog__headerbtn
>
i
{
border-radius
:
50%
;
background
:
#2a3db3
;
color
:
#fff
;
font-size
:
22px
}
.ty_return
[
data-v-1edc5e91
]
{
display
:
inline-block
;
color
:
#2a3db3
;
cursor
:
pointer
;
font-size
:
18px
}
.addDataModel
[
data-v-1edc5e91
]
{
height
:
100%
}
.addDataModel
[
data-v-1edc5e91
]
.el-form-item__label
{
font-size
:
20px
}
.searchBar
[
data-v-1edc5e91
]
.el-col
{
margin
:
10px
0
}
.searchBar
[
data-v-1edc5e91
]
.el-form-item
{
margin-bottom
:
0
}
.searchBar
[
data-v-1edc5e91
]
.el-form-item__content
{
line-height
:
0
}
.searchBar
[
data-v-1edc5e91
]
.el-input__inner
,
.searchBar
[
data-v-1edc5e91
]
.el-select
.el-input__inner
{
background
:
#f9fafd
;
border
:
1px
solid
#ebedf1
;
font-size
:
20px
;
color
:
#a1a8ba
}
.searchBar
[
data-v-1edc5e91
]
.el-input__inner
:focus
{
background-color
:
#fdfdfd
;
border
:
1px
solid
#a8b0e2
;
font-size
:
20px
;
color
:
#35435e
}
.searchBar
[
data-v-1edc5e91
]
{
background-color
:
#fff
;
width
:
100%
;
height
:
90px
;
-webkit-box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
border-radius
:
4px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.basicObject
[
data-v-1edc5e91
]
{
font-size
:
20px
;
color
:
#606266
;
line-height
:
40px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
}
.basicObject_input
[
data-v-1edc5e91
]
{
position
:
relative
;
width
:
60%
;
margin-left
:
10px
}
.basicObject_input
input
[
data-v-1edc5e91
]
{
width
:
98%
;
background
:
#f9fafd
;
border
:
1px
solid
#ebedf1
;
font-size
:
20px
;
color
:
#a1a8ba
;
height
:
37px
;
line-height
:
37px
;
border-radius
:
3px
;
margin
:
0
;
padding-left
:
16px
}
.basicObject_input
input
.active.focus
[
data-v-1edc5e91
],
.basicObject_input
input
.active
[
data-v-1edc5e91
]
:focus
,
.basicObject_input
input
.focus
[
data-v-1edc5e91
],
.basicObject_input
input
:active
.focus
[
data-v-1edc5e91
],
.basicObject_input
input
[
data-v-1edc5e91
]
:active:focus
,
.basicObject_input
input
[
data-v-1edc5e91
]
:focus
{
outline
:
none
;
border-color
:
#ebedf1
;
-webkit-box-shadow
:
none
;
box-shadow
:
none
}
.icon_more
[
data-v-1edc5e91
]
{
background
:
#fff
;
right
:
-13px
}
.icon-circle-close
[
data-v-1edc5e91
],
.icon_more
[
data-v-1edc5e91
]
{
font-size
:
20px
;
width
:
37px
;
height
:
36px
;
border
:
0
;
color
:
#606266
;
position
:
absolute
;
cursor
:
pointer
;
top
:
3px
;
border-radius
:
3px
}
.icon-circle-close
[
data-v-1edc5e91
]
{
background
:
transparent
;
right
:
36px
}
.icon_more.active.focus
[
data-v-1edc5e91
],
.icon_more.active
[
data-v-1edc5e91
]
:focus
,
.icon_more.focus
[
data-v-1edc5e91
],
.icon_more
:active
.focus
[
data-v-1edc5e91
],
.icon_more
[
data-v-1edc5e91
]
:active:focus
,
.icon_more
[
data-v-1edc5e91
]
:focus
{
outline-color
:
#2a3db3
;
outline-width
:
1px
;
-webkit-box-shadow
:
none
;
box-shadow
:
none
}
.ty_span_name
[
data-v-1edc5e91
]
{
font-size
:
20px
;
line-height
:
40px
;
color
:
#a1a8ba
}
\ No newline at end of file
src/main/resources/workflow/css/chunk-79a2a6d4.f7ea5f40.css
deleted
100644 → 0
浏览文件 @
6bad79ed
.main
[
data-v-33cb2b2c
]
{
background-color
:
#fff
;
height
:
100%
}
\ No newline at end of file
src/main/resources/workflow/css/chunk-b5da06ba.7a6ae39b.css
deleted
100644 → 0
浏览文件 @
6bad79ed
#dataModel
[
data-v-37e3475c
]
{
height
:
100%
}
\ No newline at end of file
src/main/resources/workflow/css/parser-home.8cdb50e6.css
deleted
100644 → 0
浏览文件 @
6bad79ed
.homePage
>
.el-container
[
data-v-ef5e00c4
],
.homePage
[
data-v-ef5e00c4
],
.homePage
[
data-v-ef5e00c4
]
.el-aside
{
height
:
100%
}
.homePage
[
data-v-ef5e00c4
]
.menu
{
height
:
100%
;
width
:
100%
;
background-color
:
#2a3db3
}
.homePage
.title
[
data-v-ef5e00c4
]
{
width
:
100%
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-pack
:
center
;
-ms-flex-pack
:
center
;
justify-content
:
center
;
margin-bottom
:
34px
}
.homePage
.title
span
[
data-v-ef5e00c4
]
{
font-size
:
35px
;
font-weight
:
700
;
color
:
#fff
;
text-align
:
center
;
margin
:
44px
0
}
.homePage
.menuItem
[
data-v-ef5e00c4
]
{
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
-ms-flex-direction
:
column
;
flex-direction
:
column
;
-webkit-box-pack
:
center
;
-ms-flex-pack
:
center
;
justify-content
:
center
}
.homePage
.menuItem
[
data-v-ef5e00c4
],
.ItemDiv
[
data-v-ef5e00c4
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
}
.ItemDiv
[
data-v-ef5e00c4
]
{
width
:
228px
;
height
:
56px
;
border-radius
:
8px
;
margin
:
0
;
margin-bottom
:
20px
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
}
.itemDivAct
[
data-v-ef5e00c4
]
{
background-color
:
#fff
}
.itemDivAct
.ItemSpanAct
[
data-v-ef5e00c4
]
{
color
:
#35435e
}
.ItemImg
[
data-v-ef5e00c4
]
{
margin-left
:
20px
;
margin-right
:
10px
}
.ItemSpan
[
data-v-ef5e00c4
]
{
font-size
:
20px
;
color
:
#d7dbe3
}
.header
[
data-v-ef5e00c4
]
{
width
:
100%
;
height
:
72px
!important
;
padding
:
0
!important
;
background-color
:
#f3f2f7
}
.header
>
div
[
data-v-ef5e00c4
]
{
width
:
100%
;
height
:
56px
;
background-color
:
#fff
;
-webkit-box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-pack
:
justify
;
-ms-flex-pack
:
justify
;
justify-content
:
space-between
}
.ty_return
[
data-v-ef5e00c4
]
{
display
:
inline-block
;
margin-right
:
40px
;
color
:
#2a3db3
!important
;
cursor
:
pointer
}
.main
[
data-v-ef5e00c4
]
.stripe
{
background-color
:
#fcfcfd
}
.main
[
data-v-ef5e00c4
]
{
background-color
:
#f3f2f7
;
padding
:
12px
32px
32px
;
height
:
100%
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
94%
;
-webkit-box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
box-shadow
:
0
2px
4px
rgba
(
42
,
61
,
179
,
.1
);
border-radius
:
4px
}
.main
[
data-v-ef5e00c4
]
.el-table
.cell
{
font-size
:
18px
;
color
:
#35435e
;
line-height
:
36px
;
text-align
:
center
}
.main
[
data-v-ef5e00c4
]
.el-table
th
{
background-color
:
#dde1f3
}
.main
[
data-v-ef5e00c4
]
.el-table
th
>
.cell
{
text-align
:
center
;
font-size
:
16px
;
background-color
:
#dde1f3
;
color
:
#65728a
}
.main
[
data-v-ef5e00c4
]
.el-dialog__header
{
background
:
#e0e8ff
;
height
:
36px
;
padding
:
10px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
}
.main
[
data-v-ef5e00c4
]
.el-dialog__header
>
.el-dialog__title
{
font-size
:
20px
;
color
:
#35435e
;
font-weight
:
700
;
margin-left
:
30px
}
.main
[
data-v-ef5e00c4
]
.el-dialog__header
>
.el-dialog__headerbtn
>
i
{
border-radius
:
50%
;
background
:
#2a3db3
;
color
:
#fff
;
font-size
:
22px
}
.main
[
data-v-ef5e00c4
]
.el-dialog
{
border-radius
:
6px
;
-webkit-box-shadow
:
4px
4px
8px
rgba
(
42
,
61
,
179
,
.2
);
box-shadow
:
4px
4px
8px
rgba
(
42
,
61
,
179
,
.2
)}
.homePage
[
data-v-ef5e00c4
]
.el-dialog__header
{
border-radius
:
6px
}
.main
[
data-v-ef5e00c4
]
.el-dialog__header
>
.el-dialog__headerbtn
:hover
{
opacity
:
.6
}
.main
[
data-v-ef5e00c4
]
.el-table
td
{
border-bottom
:
1px
solid
#e7ebfc
}
.main
[
data-v-ef5e00c4
]
.el-table
td
,
.main
[
data-v-ef5e00c4
]
.el-table
th
{
padding
:
8px
0
!important
}
.main
[
data-v-ef5e00c4
]
.el-table
tr
:hover
>
td
{
background-color
:
#98a9e1
!important
}
.main
[
data-v-ef5e00c4
]
.el-table__body
tr
:hover
:not
(
input
,
i
)
{
color
:
#fff
!important
}
.time
[
data-v-ef5e00c4
]
{
height
:
80px
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
position
:
relative
}
.time
span
[
data-v-ef5e00c4
]
{
font-size
:
18px
;
color
:
#65728a
;
margin-left
:
34px
}
\ No newline at end of file
src/main/resources/workflow/index.html
浏览文件 @
49d728d4
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><style>
.pre-loader
{
position
:
absolute
;
top
:
calc
(
50%
-
32px
);
left
:
calc
(
50%
-
32px
);
width
:
64px
;
height
:
64px
;
border-radius
:
50%
;
perspective
:
800px
}
.pre-loader
.inner
{
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
border-radius
:
50%
}
.pre-loader
.inner.one
{
left
:
0
;
top
:
0
;
-webkit-animation
:
rotate-one
1s
linear
infinite
;
animation
:
rotate-one
1s
linear
infinite
;
border-bottom
:
3px
solid
#bc9048
}
.pre-loader
.inner.two
{
right
:
0
;
top
:
0
;
-webkit-animation
:
rotate-two
1s
linear
infinite
;
animation
:
rotate-two
1s
linear
infinite
;
border-right
:
3px
solid
#74aeff
}
.pre-loader
.inner.three
{
right
:
0
;
bottom
:
0
;
-webkit-animation
:
rotate-three
1s
linear
infinite
;
animation
:
rotate-three
1s
linear
infinite
;
border-top
:
3px
solid
#caef74
}
@keyframes
rotate-one
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-two
{
0
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-three
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
)}}
</style><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><link
href=
"https://lib.baomitu.com/monaco-editor/0.19.3/min/vs/editor/editor.main.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><link
href=
"css/chunk-049cee69.d76d2b9a.css"
rel=
"prefetch"
><link
href=
"css/chunk-06ec14b8.fa77da4b.css"
rel=
"prefetch"
><link
href=
"css/chunk-3006e7c0.263a45f1.css"
rel=
"prefetch"
><link
href=
"css/chunk-5f2116e7.55076b45.css"
rel=
"prefetch"
><link
href=
"css/chunk-75a4e523.a68f5ffa.css"
rel=
"prefetch"
><link
href=
"css/chunk-79a2a6d4.f7ea5f40.css"
rel=
"prefetch"
><link
href=
"css/chunk-7c52297c.61b80532.css"
rel=
"prefetch"
><link
href=
"css/chunk-b5da06ba.7a6ae39b.css"
rel=
"prefetch"
><link
href=
"css/parser-home.8cdb50e6.css"
rel=
"prefetch"
><link
href=
"css/tinymce-example.0e433876.css"
rel=
"prefetch"
><link
href=
"js/chunk-049cee69.436ac7e8.js"
rel=
"prefetch"
><link
href=
"js/chunk-06ec14b8.53b2ec94.js"
rel=
"prefetch"
><link
href=
"js/chunk-3006e7c0.954089d3.js"
rel=
"prefetch"
><link
href=
"js/chunk-5f2116e7.39e63f89.js"
rel=
"prefetch"
><link
href=
"js/chunk-75a4e523.42aad87f.js"
rel=
"prefetch"
><link
href=
"js/chunk-79a2a6d4.b1d5b12d.js"
rel=
"prefetch"
><link
href=
"js/chunk-7c52297c.c0a80b51.js"
rel=
"prefetch"
><link
href=
"js/chunk-b5da06ba.6d3fd328.js"
rel=
"prefetch"
><link
href=
"js/chunk-fec0be80.0583a8a1.js"
rel=
"prefetch"
><link
href=
"js/parser-home.8b3caa4d.js"
rel=
"prefetch"
><link
href=
"js/tinymce-example.0cafa1e6.js"
rel=
"prefetch"
><link
href=
"css/index.7a9e4f8e.css"
rel=
"preload"
as=
"style"
><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/index.637817d4.js"
rel=
"preload"
as=
"script"
><link
href=
"css/index.7a9e4f8e.css"
rel=
"stylesheet"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"app"
></div><div
class=
"pre-loader"
id=
"pre-loader"
><div
class=
"inner one"
></div><div
class=
"inner two"
></div><div
class=
"inner three"
></div></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/index.637817d4.js"
></script></body></html>
\ No newline at end of file
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><style>
.pre-loader
{
position
:
absolute
;
top
:
calc
(
50%
-
32px
);
left
:
calc
(
50%
-
32px
);
width
:
64px
;
height
:
64px
;
border-radius
:
50%
;
perspective
:
800px
}
.pre-loader
.inner
{
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
border-radius
:
50%
}
.pre-loader
.inner.one
{
left
:
0
;
top
:
0
;
-webkit-animation
:
rotate-one
1s
linear
infinite
;
animation
:
rotate-one
1s
linear
infinite
;
border-bottom
:
3px
solid
#bc9048
}
.pre-loader
.inner.two
{
right
:
0
;
top
:
0
;
-webkit-animation
:
rotate-two
1s
linear
infinite
;
animation
:
rotate-two
1s
linear
infinite
;
border-right
:
3px
solid
#74aeff
}
.pre-loader
.inner.three
{
right
:
0
;
bottom
:
0
;
-webkit-animation
:
rotate-three
1s
linear
infinite
;
animation
:
rotate-three
1s
linear
infinite
;
border-top
:
3px
solid
#caef74
}
@keyframes
rotate-one
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-two
{
0
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-three
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
)}}
</style><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><link
href=
"https://lib.baomitu.com/monaco-editor/0.19.3/min/vs/editor/editor.main.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><link
href=
"css/chunk-02a5a3a9.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-18e0ea77.04c9f0cf.css"
rel=
"prefetch"
><link
href=
"css/chunk-29fd0152.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-3006e7c0.263a45f1.css"
rel=
"prefetch"
><link
href=
"css/chunk-30179e6c.f89cccc5.css"
rel=
"prefetch"
><link
href=
"css/chunk-358e2103.ad6bf27a.css"
rel=
"prefetch"
><link
href=
"css/chunk-525fc2d8.84a55126.css"
rel=
"prefetch"
><link
href=
"css/chunk-5a68d65e.265b8789.css"
rel=
"prefetch"
><link
href=
"css/chunk-5b2534c0.404c0fca.css"
rel=
"prefetch"
><link
href=
"css/chunk-6aa30806.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-7c52297c.61b80532.css"
rel=
"prefetch"
><link
href=
"css/chunk-e78c3d4c.2ab27357.css"
rel=
"prefetch"
><link
href=
"css/parser-home.b5026cff.css"
rel=
"prefetch"
><link
href=
"css/tinymce-example.0e433876.css"
rel=
"prefetch"
><link
href=
"js/chunk-02a5a3a9.78f2297b.js"
rel=
"prefetch"
><link
href=
"js/chunk-18e0ea77.71a934e6.js"
rel=
"prefetch"
><link
href=
"js/chunk-29fd0152.ac2e6d8a.js"
rel=
"prefetch"
><link
href=
"js/chunk-3006e7c0.3c1f4d0c.js"
rel=
"prefetch"
><link
href=
"js/chunk-30179e6c.485a62e2.js"
rel=
"prefetch"
><link
href=
"js/chunk-358e2103.62d5b25a.js"
rel=
"prefetch"
><link
href=
"js/chunk-525fc2d8.4b415298.js"
rel=
"prefetch"
><link
href=
"js/chunk-5a68d65e.33db689d.js"
rel=
"prefetch"
><link
href=
"js/chunk-5b2534c0.a0d64759.js"
rel=
"prefetch"
><link
href=
"js/chunk-6aa30806.fc92c339.js"
rel=
"prefetch"
><link
href=
"js/chunk-7c52297c.c0a80b51.js"
rel=
"prefetch"
><link
href=
"js/chunk-e78c3d4c.09ead955.js"
rel=
"prefetch"
><link
href=
"js/chunk-fec0be80.46ae2c64.js"
rel=
"prefetch"
><link
href=
"js/parser-home.1cbe416e.js"
rel=
"prefetch"
><link
href=
"js/tinymce-example.0f8d90cb.js"
rel=
"prefetch"
><link
href=
"css/index.4307d532.css"
rel=
"preload"
as=
"style"
><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/index.f19c1f4f.js"
rel=
"preload"
as=
"script"
><link
href=
"css/index.4307d532.css"
rel=
"stylesheet"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"app"
></div><div
class=
"pre-loader"
id=
"pre-loader"
><div
class=
"inner one"
></div><div
class=
"inner two"
></div><div
class=
"inner three"
></div></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/index.f19c1f4f.js"
></script></body></html>
\ No newline at end of file
src/main/resources/workflow/js/chunk-5f2116e7.39e63f89.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5f2116e7"
],{
"0383"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"637b"
)},
"0654"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
.
r
(
e
);
var
i
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"addDataModel"
},[
a
(
"div"
,{
staticClass
:
"topDiv"
},[
t
.
update
?
t
.
_e
():
a
(
"span"
,{
staticClass
:
"title"
},[
t
.
_v
(
"基础数据模型添加 "
)]),
t
.
update
?
a
(
"span"
,{
staticClass
:
"title"
},[
t
.
_v
(
"基础数据模型修改 "
)]):
t
.
_e
(),
a
(
"span"
,{
staticClass
:
"ty_return"
,
on
:{
click
:
function
(
e
){
return
t
.
$emit
(
"changeVue"
,
0
)}}},[
t
.
_v
(
"返回"
)])]),
a
(
"div"
,{
staticClass
:
"searchBar"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
model
:
t
.
fieldTableData
,
rules
:
t
.
rules
,
"label-width"
:
"100px"
}},[
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"名称: "
,
prop
:
"name"
}},[
t
.
update
?
t
.
_e
():
a
(
"el-input"
,{
staticStyle
:{
width
:
"80%"
},
model
:{
value
:
t
.
fieldTableData
.
name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
fieldTableData
,
"name"
,
e
)},
expression
:
"fieldTableData.name"
}}),
t
.
update
?
a
(
"span"
,{
staticClass
:
"ty_span_name"
},[
t
.
_v
(
t
.
_s
(
t
.
fieldTableData
.
name
))]):
t
.
_e
()],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"标签: "
,
prop
:
"alias"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"80%"
},
model
:{
value
:
t
.
fieldTableData
.
alias
,
callback
:
function
(
e
){
t
.
$set
(
t
.
fieldTableData
,
"alias"
,
e
)},
expression
:
"fieldTableData.alias"
}})],
1
)],
1
),
a
(
"el-col"
,{
attrs
:{
span
:
7
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"描述: "
,
prop
:
"description"
}},[
a
(
"el-input"
,{
staticStyle
:{
width
:
"80%"
},
model
:{
value
:
t
.
fieldTableData
.
description
,
callback
:
function
(
e
){
t
.
$set
(
t
.
fieldTableData
,
"description"
,
e
)},
expression
:
"fieldTableData.description"
}})],
1
)],
1
)],
1
)],
1
)],
1
),
a
(
"div"
,{
staticClass
:
"ty_table"
,
staticStyle
:{
overflow
:
"hidden"
}},[
a
(
"div"
,{
staticClass
:
"topDiv"
},[
a
(
"button"
,{
staticClass
:
"addProcess"
,
on
:{
click
:
t
.
add
}},[
t
.
_v
(
"新增字段"
)]),
a
(
"button"
,{
staticClass
:
"preservationButton"
,
on
:{
click
:
t
.
addTable
}},[
t
.
_v
(
"保存"
)])]),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"10px"
},
attrs
:{
data
:
t
.
fieldTableData
.
columnInfos
,
height
:
"540"
,
"row-class-name"
:
function
(
t
){
t
.
row
;
var
e
=
t
.
rowIndex
;
return
e
%
2
==
0
?
""
:
"stripe"
}}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"字段名"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-input"
,{
model
:{
value
:
e
.
row
.
name
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"name"
,
a
)},
expression
:
"scope.row.name"
}}):
t
.
_e
(),
0
==
e
.
row
.
isPrimary
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
name
))]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"description"
,
label
:
"描述"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-input"
,{
model
:{
value
:
e
.
row
.
description
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"description"
,
a
)},
expression
:
"scope.row.description"
}}):
t
.
_e
(),
0
==
e
.
row
.
isPrimary
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
description
))]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"pattern"
,
label
:
"正则"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-input"
,{
model
:{
value
:
e
.
row
.
pattern
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"pattern"
,
a
)},
expression
:
"scope.row.pattern"
}}):
t
.
_e
(),
0
==
e
.
row
.
isPrimary
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
pattern
))]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"type"
,
label
:
"类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择数据类型"
},
on
:{
change
:
function
(
a
){
return
t
.
changeType
(
e
.
$index
,
e
.
row
.
type
)}},
model
:{
value
:
e
.
row
.
type
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"type"
,
a
)},
expression
:
"scope.row.type"
}},
t
.
_l
(
t
.
type
,(
function
(
t
){
return
a
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
lab
,
value
:
t
.
value
}})})),
1
):
t
.
_e
(),
0
==
e
.
row
.
isPrimary
?
a
(
"span"
,[
"java.lang.String"
==
e
.
row
.
type
?
a
(
"span"
,[
t
.
_v
(
"文本"
)]):
t
.
_e
(),
"java.lang.Integer"
==
e
.
row
.
type
?
a
(
"span"
,[
t
.
_v
(
"数字"
)]):
t
.
_e
(),
"java.util.Date"
==
e
.
row
.
type
?
a
(
"span"
,[
t
.
_v
(
"时间"
)]):
t
.
_e
()]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"length"
,
label
:
"长度"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-input"
,{
model
:{
value
:
e
.
row
.
length
,
callback
:
function
(
a
){
t
.
$set
(
e
.
row
,
"length"
,
a
)},
expression
:
"scope.row.length"
}}):
t
.
_e
(),
0
==
e
.
row
.
isPrimary
?
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
row
.
length
))]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"引用"
,
width
:
"130"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
1
==
e
.
row
.
isPrimary
?
a
(
"el-button"
,{
staticStyle
:{
"background-color"
:
"#2a3db3"
,
color
:
"#fff"
},
on
:{
click
:
function
(
a
){
return
t
.
onClick_showOptionSet
(
e
.
row
.
quotes
,
e
.
$index
)}}},[
t
.
_v
(
"设置"
)]):
t
.
_e
()]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"130"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
0
!=
e
.
row
.
isPrimary
?
a
(
"el-button"
,{
staticStyle
:{
color
:
"red"
},
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
return
t
.
del
(
e
.
$index
)}}},[
t
.
_v
(
"删除"
)]):
a
(
"span"
,{
staticStyle
:{
display
:
"inline-block"
,
width
:
"100%"
,
height
:
"100%"
}})]}}])})],
1
)],
1
),
t
.
isShowOptionSet
?
a
(
"option-set-dialog"
,{
attrs
:{
isShowOptionSet
:
t
.
isShowOptionSet
,
currentIndex
:
t
.
currentIndex
,
optionList
:
t
.
optionList
,
update
:
t
.
update
},
on
:{
"update:isShowOptionSet"
:
function
(
e
){
t
.
isShowOptionSet
=
e
},
"update:is-show-option-set"
:
function
(
e
){
t
.
isShowOptionSet
=
e
},
close
:
t
.
onClick_closeOption
}}):
t
.
_e
()],
1
)},
n
=
[],
s
=
(
a
(
"c740"
),
a
(
"a434"
),
a
(
"b0c0"
),
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"addOptionDialog"
},[
a
(
"el-dialog"
,{
attrs
:{
title
:
"引用设置"
,
visible
:
t
.
isShowOptionSet
,
width
:
"40%"
,
top
:
"80px"
,
"append-to-body"
:
""
,
"before-close"
:
t
.
showFalse
},
on
:{
"update:visible"
:
function
(
e
){
t
.
isShowOptionSet
=
e
}}},[
a
(
"div"
,{
staticClass
:
"ty_padding_left_right"
},[
a
(
"div"
,{
staticClass
:
"checkModel"
},[
a
(
"div"
,{
staticClass
:
"add"
,
on
:{
click
:
t
.
add
}},[
t
.
_v
(
"添加"
)])]),
a
(
"div"
,{
staticClass
:
"check_byte"
},
t
.
_l
(
t
.
inputList
,(
function
(
e
,
i
){
return
a
(
"div"
,{
key
:
i
,
staticClass
:
"item"
},[
a
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入内容"
},
model
:{
value
:
e
.
value
,
callback
:
function
(
a
){
t
.
$set
(
e
,
"value"
,
a
)},
expression
:
"item.value"
}}),
a
(
"div"
,{
staticClass
:
"del"
,
on
:{
click
:
function
(
e
){
return
t
.
del
(
i
)}}},[
t
.
_v
(
"删除"
)])],
1
)})),
0
)]),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"button"
,{
staticClass
:
"button_ty"
,
on
:{
click
:
t
.
showFalse
}},[
t
.
_v
(
"取 消"
)]),
a
(
"button"
,{
staticClass
:
"searchBtn button_ty"
,
on
:{
click
:
t
.
onClick_confrim
}},[
t
.
_v
(
" 确定 "
)])])])],
1
)}),
l
=
[],
o
=
{
props
:[
"isShowOptionSet"
,
"currentIndex"
,
"optionList"
,
"update"
],
data
:
function
(){
return
{
inputList
:[{
value
:
""
}]}},
created
:
function
(){
Array
.
isArray
(
this
.
optionList
)
&&
this
.
optionList
.
length
>
0
&&
(
this
.
inputList
=
this
.
optionList
)},
methods
:{
add
:
function
(){
this
.
inputList
.
push
({
value
:
""
})},
del
:
function
(
t
){
this
.
inputList
.
length
>
1
&&
this
.
inputList
.
splice
(
t
,
1
)},
showFalse
:
function
(){
this
.
$emit
(
"close"
,
!
1
)},
unNull
:
function
(
t
){
for
(
var
e
=
0
;
e
<
t
.
length
;
e
++
)
if
(
t
[
e
].
value
.
length
<
1
)
return
!
0
;
return
!
1
},
onClick_confrim
:
function
(){
this
.
$emit
(
"close"
,
this
.
inputList
,
this
.
currentIndex
,
!
0
)}}},
r
=
o
,
c
=
(
a
(
"5c50"
),
a
(
"0383"
),
a
(
"2877"
)),
u
=
Object
(
c
[
"a"
])(
r
,
s
,
l
,
!
1
,
null
,
"7ef02ce2"
,
null
),
d
=
u
.
exports
,
p
=
{
name
:
"addFormDialog"
,
components
:{
OptionSetDialog
:
d
},
data
:
function
(){
return
{
update
:
!
1
,
isShowOptionSet
:
!
1
,
optionList
:[],
type
:[{
lab
:
"数字"
,
value
:
"java.lang.Integer"
,
lengths
:
"11"
},{
lab
:
"文本"
,
value
:
"java.lang.String"
,
lengths
:
"255"
},{
lab
:
"时间"
,
value
:
"java.util.Date"
,
lengths
:
"0"
}],
rules
:{
name
:[{
required
:
!
0
,
message
:
"请输入表名"
,
trigger
:
"blur"
}],
alias
:[{
required
:
!
0
,
message
:
"请输入别名"
,
trigger
:
"blur"
}]},
dbId
:
""
,
fieldTableData
:{
name
:
""
,
alias
:
""
,
description
:
""
,
processKey
:
""
,
columnInfos
:[{
name
:
""
,
pattern
:
""
,
description
:
""
,
type
:
"java.lang.String"
,
length
:
"255"
,
isPrimary
:
1
,
quotes
:[{
value
:
""
}]}]}}},
created
:
function
(){
this
.
$store
.
state
.
ty_model
.
id
&&
(
this
.
update
=!
0
,
this
.
fieldTableData
=
this
.
$store
.
state
.
ty_model
)},
methods
:{
onClick_showOptionSet
:
function
(
t
,
e
){
this
.
currentIndex
=
e
,
this
.
optionList
=
t
,
this
.
isShowOptionSet
=!
0
},
onClick_closeOption
:
function
(
t
,
e
){
this
.
isShowOptionSet
=!
1
,
t
&&
(
this
.
fieldTableData
.
columnInfos
[
e
].
quotes
=
t
)},
changeType
:
function
(
t
,
e
){
var
a
=
this
.
type
.
findIndex
((
function
(
t
,
a
,
i
){
return
t
.
value
==
e
}));
this
.
fieldTableData
.
columnInfos
[
t
].
length
=
this
.
type
[
a
].
lengths
},
add
:
function
(){
var
t
=
{
name
:
""
,
description
:
""
,
type
:
"java.lang.String"
,
length
:
"255"
,
pattern
:
""
,
isPrimary
:
1
,
quotes
:[{
value
:
""
}]};
this
.
fieldTableData
.
columnInfos
.
push
(
t
)},
del
:
function
(
t
){
this
.
fieldTableData
.
columnInfos
.
length
<=
1
||
this
.
fieldTableData
.
columnInfos
.
splice
(
t
,
1
)},
unique
:
function
(
t
){
for
(
var
e
=
0
;
e
<
t
.
length
;
e
++
)
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
if
(
t
[
e
].
name
==
t
[
a
].
name
&&
e
!=
a
)
return
!
0
;
return
!
1
},
unNull
:
function
(
t
){
for
(
var
e
=
0
;
e
<
t
.
length
;
e
++
)
if
(
t
[
e
].
name
.
length
<
1
)
return
!
0
;
return
!
1
},
addTable
:
function
(){
var
t
=
this
;
if
(
this
.
fieldTableData
.
name
.
length
<
1
)
this
.
$message
.
error
(
"请输入表名"
);
else
{
var
e
=
/^
[
A-Za-z
]{1}[
A-Za-z0-9_
]
+$/
;
if
(
e
.
test
(
this
.
fieldTableData
.
name
))
if
(
this
.
fieldTableData
.
alias
.
length
<
1
)
this
.
$message
.
error
(
"请输入别名"
);
else
if
(
this
.
unique
(
this
.
fieldTableData
.
columnInfos
))
this
.
$message
.
error
(
"字段名不能重复"
);
else
if
(
this
.
unNull
(
this
.
fieldTableData
.
columnInfos
))
this
.
$message
.
error
(
"字段名不能为空"
);
else
{
var
a
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
fieldTableData
));
if
(
a
.
columnInfos
.
length
<
1
)
this
.
$message
.
error
(
"字段个数不能少于一个"
);
else
{
var
i
=
this
.
$loading
({
lock
:
!
0
,
text
:
"保存中,请稍后"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(0, 0, 0, 0.7)"
});
this
.
update
?(
a
.
id
=
""
,
this
.
$axios
.
updateModel
(
a
).
then
((
function
(
e
){
i
.
close
(),
t
.
$emit
(
"changeVue"
,
0
),
t
.
$message
({
message
:
e
.
data
.
message
,
type
:
"success"
})})).
catch
((
function
(
e
){
i
.
close
(),
t
.
$message
.
error
(
e
.
response
.
data
.
data
)}))):
this
.
$axios
.
addModel
(
a
).
then
((
function
(
e
){
i
.
close
(),
t
.
$emit
(
"changeVue"
,
0
),
t
.
$message
({
message
:
e
.
data
.
message
,
type
:
"success"
})})).
catch
((
function
(
e
){
i
.
close
(),
console
.
log
(
e
.
response
),
t
.
$message
.
error
(
e
.
response
.
data
.
data
)}))}}
else
this
.
$message
.
error
(
"表名格式错误"
)}}}},
f
=
p
,
h
=
(
a
(
"2d8d"
),
a
(
"4cdf"
),
Object
(
c
[
"a"
])(
f
,
i
,
n
,
!
1
,
null
,
"1edc5e91"
,
null
));
e
[
"default"
]
=
h
.
exports
},
"0f47"
:
function
(
t
,
e
,
a
){},
"2d8d"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"ee68"
)},
"4cdf"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"0f47"
)},
"5c50"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"bc1e"
)},
"637b"
:
function
(
t
,
e
,
a
){},
bc1e
:
function
(
t
,
e
,
a
){},
ee68
:
function
(
t
,
e
,
a
){}}]);
\ No newline at end of file
src/main/resources/workflow/js/chunk-79a2a6d4.b1d5b12d.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-79a2a6d4"
],{
"0f1d"
:
function
(
t
,
e
,
a
){
"use strict"
;
a
.
r
(
e
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticStyle
:{
height
:
"100%"
}},[
a
(
"div"
,{
staticClass
:
"main"
},[
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
,
"row-class-name"
:
function
(
t
){
t
.
row
;
var
e
=
t
.
rowIndex
;
return
e
%
2
==
0
?
""
:
"stripe"
}}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"index"
,
label
:
"序号"
,
width
:
"100"
}}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"flowName"
,
label
:
"流程名"
}}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"flowDescribe"
,
label
:
"流程描述"
}}),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"createdTime"
,
label
:
"创建时间"
}}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"是否启用"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
1
==
e
.
row
.
state
?
"暂停"
:
"启用"
))])]}}])}),
a
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"350"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"operation"
},[
a
(
"span"
,{
on
:{
click
:
function
(
a
){
return
t
.
editProcess
(
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
a
(
"span"
,{
class
:
1
!=
e
.
row
.
state
?
"disableSpan"
:
""
,
on
:{
click
:
function
(
a
){
return
t
.
disableProcess
(
e
.
row
.
id
)}}},[
t
.
_v
(
t
.
_s
(
1
==
e
.
row
.
state
?
"启用"
:
"暂停"
))]),
a
(
"span"
,{
on
:{
click
:
function
(
a
){
return
t
.
deleteProcess
(
e
.
row
)}}},[
t
.
_v
(
"删除"
)])])]}}])})],
1
),
a
(
"el-pagination"
,{
staticStyle
:{
"text-align"
:
"right"
,
"margin-right"
:
"20px"
,
"margin-top"
:
"30px"
},
attrs
:{
background
:
""
,
layout
:
"prev, pager, next"
,
total
:
t
.
totalPages
,
"prev-text"
:
"上一页"
,
"next-text"
:
"下一页"
},
on
:{
"current-change"
:
t
.
pageChange
}})],
1
)])},
s
=
[],
o
=
(
a
(
"b0c0"
),{
name
:
"searchFlowInfo"
,
data
:
function
(){
return
{
totalPages
:
0
,
tableData
:[],
searchForm
:{},
nowPage
:
0
}},
created
:
function
(){
this
.
getProcessData
()},
methods
:{
getProcessData
:
function
(
t
){
var
e
=
this
;
this
.
$axios
.
getProcessData
({
size
:
9
,
page
:
t
,
flowName
:
this
.
searchForm
.
name
,
state
:
this
.
searchForm
.
disable
}).
then
((
function
(
t
){
var
a
=
t
.
data
.
content
;
e
.
totalPages
=
10
*
t
.
data
.
totalPages
,
e
.
tableData
=
a
})).
catch
((
function
(
t
){
console
.
log
(
t
)}))},
pageChange
:
function
(
t
){
this
.
nowPage
=
t
-
1
,
this
.
getProcessData
(
t
-
1
)}}}),
r
=
o
,
l
=
(
a
(
"c858"
),
a
(
"2877"
)),
c
=
Object
(
l
[
"a"
])(
r
,
n
,
s
,
!
1
,
null
,
"33cb2b2c"
,
null
);
e
[
"default"
]
=
c
.
exports
},
"7c02"
:
function
(
t
,
e
,
a
){},
c858
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"7c02"
)}}]);
\ No newline at end of file
src/main/resources/workflow/js/chunk-b5da06ba.6d3fd328.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-b5da06ba"
],{
"38c7"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8b63"
)},
"8b63"
:
function
(
e
,
t
,
n
){},
eee9
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
c
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
attrs
:{
id
:
"dataModel"
}},[
n
(
"router-view"
)],
1
)},
u
=
[],
a
=
(
n
(
"38c7"
),
n
(
"2877"
)),
i
=
{},
r
=
Object
(
a
[
"a"
])(
i
,
c
,
u
,
!
1
,
null
,
"37e3475c"
,
null
);
t
[
"default"
]
=
r
.
exports
}}]);
\ No newline at end of file
src/main/resources/workflow/js/chunk-fec0be80.0583a8a1.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-fec0be80"
],{
"246a"
:
function
(
module
,
__webpack_exports__
,
__webpack_require__
){
"use strict"
;
var
code
=
{
template
:
'<el-form ref="elForm" :model="formData" :rules="rules" size="small" label-width="100px">
\
n <el-form-item label="单行文本" prop="field101">
\
n <el-input v-model="formData.field101" placeholder="请输入单行文本" clearable :style="{width:
\'
100%
\'
}"></el-input>
\
n </el-form-item>
\
n <el-form-item label="下拉选择" prop="field118">
\
n <el-select v-model="formData.field118" placeholder="请选择下拉选择" clearable :style="{width:
\'
100%
\'
}">
\
n <el-option v-for="(item, index) in field118Options" :key="index" :label="item.label" :value="item.value"
\
n :disabled="item.disabled"></el-option>
\
n </el-select>
\
n </el-form-item>
\
n <el-form-item label="单选框组" prop="field119">
\
n <el-radio-group v-model="formData.field119" size="medium">
\
n <el-radio v-for="(item, index) in field119Options" :key="index" :label="item.value"
\
n :disabled="item.disabled">{{item.label}}</el-radio>
\
n </el-radio-group>
\
n </el-form-item>
\
n <el-form-item label="多选框组" prop="field120">
\
n <el-checkbox-group v-model="formData.field120" size="medium">
\
n <el-checkbox v-for="(item, index) in field120Options" :key="index" :label="item.value"
\
n :disabled="item.disabled">{{item.label}}</el-checkbox>
\
n </el-checkbox-group>
\
n </el-form-item>
\
n <el-form-item label="按钮" prop="field121">
\
n <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
\
n </el-form-item>
\
n <el-form-item size="large">
\
n <el-button type="primary" @click="submitForm">提交</el-button>
\
n <el-button @click="resetForm">重置</el-button>
\
n </el-form-item>
\
n</el-form>
\
n'
,
js
:
' {
\
n components: {},
\
n props: [],
\
n data() {
\
n return {
\
n formData: {
\
n field101: undefined,
\
n field118: undefined,
\
n field119: undefined,
\
n field120: [],
\
n field121: undefined,
\
n },
\
n rules: {
\
n field101: [{
\
n required: true,
\
n message:
\'
请输入单行文本
\'
,
\
n trigger:
\'
blur
\'
\
n }],
\
n field118: [{
\
n required: true,
\
n message:
\'
请选择下拉选择
\'
,
\
n trigger:
\'
change
\'
\
n }],
\
n field119: [{
\
n required: true,
\
n message:
\'
单选框组不能为空
\'
,
\
n trigger:
\'
change
\'
\
n }],
\
n field120: [{
\
n required: true,
\
n type:
\'
array
\'
,
\
n message:
\'
请至少选择一个多选框组
\'
,
\
n trigger:
\'
change
\'
\
n }],
\
n },
\
n field118Options: [{
\
n "label": "选项一",
\
n "value": 1
\
n }, {
\
n "label": "选项二",
\
n "value": 2
\
n }],
\
n field119Options: [{
\
n "label": "选项一",
\
n "value": 1
\
n }, {
\
n "label": "选项二",
\
n "value": 2
\
n }],
\
n field120Options: [{
\
n "label": "选项一",
\
n "value": 1
\
n }, {
\
n "label": "选项二",
\
n "value": 2
\
n }],
\
n }
\
n },
\
n computed: {},
\
n watch: {},
\
n created() {},
\
n mounted() {},
\
n methods: {
\
n submitForm() {
\
n this.$refs[
\'
elForm
\'
].validate(valid => {
\
n if (!valid) return
\
n // TODO 提交表单
\
n })
\
n },
\
n resetForm() {
\
n this.$refs[
\'
elForm
\'
].resetFields()
\
n },
\
n }
\
n}
\
n'
},
main
=
eval
(
"("
.
concat
(
code
.
js
,
")"
));
main
.
template
=
"<div>"
.
concat
(
code
.
template
,
"</div>"
),
__webpack_exports__
[
"a"
]
=
{
data
:
function
(){
return
{
blogTitle
:
"123"
,
dialogVisible
:
!
1
}},
components
:{
myComp
:{
props
:{
list
:{
type
:
Array
,
default
:
function
(){
return
[]}},
myParam
:{
type
:
Array
}},
components
:{
child
:
main
},
data
:
function
(){
return
{
app
:{
newTime
:
""
,
nowTime
:
""
}}},
template
:
"<div><child /></div>"
,
created
:
function
(){
this
.
newTime
=
Date
.
now
()},
mounted
:
function
(){
this
.
nowTime
=
Date
.
now
(),
console
.
log
(
this
.
nowTime
),
console
.
log
(
this
.
newTime
)}}},
created
:
function
(){
console
.
log
(
210
,
main
),
this
.
getFromPage
(
2
);
var
e
=
[{
tag
:
"el-input"
,
placeholder
:
"请输入单行文本1"
,
bindData
:
"app"
,
name
:
"name"
},{
tag
:
"el-input"
,
bindData
:
"app"
,
name
:
"age"
}];
this
.
param
=
e
},
methods
:{
getFromPage
:
function
(){
var
e
=
this
,
n
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
1
;
n
=
parseInt
(
n
);
var
l
=
{
id
:
n
};
this
.
$axios
.
get_echoPage
(
l
).
then
((
function
(
n
){
var
l
=
JSON
.
parse
(
n
.
data
.
descFile
);
e
.
formData
=
l
,
e
.
drawingList
=
l
.
fields
,
e
.
formData
.
pageName
=
n
.
data
.
pageName
,
e
.
formData
.
pageDesc
=
n
.
data
.
pageDesc
,
e
.
formData
.
id
=
n
.
data
.
id
,
console
.
log
(
206
,
e
.
formData
)})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
openDialog
:
function
(){
this
.
dialogVisible
=!
0
},
handleClose
:
function
(){
this
.
dialogVisible
=!
1
}}}},
"8fa7"
:
function
(
e
,
n
,
l
){
"use strict"
;
l
.
r
(
n
);
var
i
=
function
(){
var
e
=
this
,
n
=
e
.
$createElement
,
l
=
e
.
_self
.
_c
||
n
;
return
l
(
"div"
,[
l
(
"el-button"
,{
on
:{
click
:
e
.
openDialog
}},[
e
.
_v
(
"打开dialog"
)]),
l
(
"el-dialog"
,{
attrs
:{
title
:
"提示"
,
visible
:
e
.
dialogVisible
,
width
:
"30%"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
n
){
e
.
dialogVisible
=
n
}}},[
l
(
"div"
,{
ref
:
"myDiv"
},[
l
(
"myComp"
,{
attrs
:{
myParam
:
e
.
param
}})],
1
),
l
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
l
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取 消"
)]),
l
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
n
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"确 定"
)])],
1
)])],
1
)},
t
=
[],
a
=
l
(
"246a"
),
o
=
a
[
"a"
],
r
=
l
(
"2877"
),
d
=
Object
(
r
[
"a"
])(
o
,
i
,
t
,
!
1
,
null
,
null
,
null
);
n
[
"default"
]
=
d
.
exports
}}]);
\ No newline at end of file
src/main/resources/workflow/js/parser-home.8b3caa4d.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"parser-home"
],{
"1c6e"
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAAA3UlEQVRIie2VwQ2CMBRAH8S7I8hZZhAZoIlsIE6ibuAG4gRiZIJO4KV3HMEJ6sFqKiECAomJvKRpf9uf1zZN62itqYMfZDGwt7pOSoqoTq5by/BgX4gXdRObSL5mkDRiZAd+kCXA0oQ3IFRSXNpKXjvxgyy0BABjYNdW8Cbpk0Hye5JR9ZRqzM3cWF25kiJ+Bl3tZAPMrbI04k4lHxkkfypxtNb4QRYBEe+vMMAVSEx7XZK/NXUMTApjByBVUqTOdHaOgGMnSy5n5QI5jw+qD27A5XlcHuD1IMmVFPkdsmszeOZbf3AAAAAASUVORK5CYII="
},
3103
:
function
(
A
,
t
,
e
){},
3712
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAABEUlEQVRIie2VzXHCMBBGnz3cKSE54wNQQBwKUBEugQ6ADlwCJWgmLoCoAvmgOyVABeaANCNsiT+bHJh8J+236322dsabNE0DQJZXM2ALTOmvGiiMEhog9RJyIAC2j3SBD9kPBHD6cIdRpKAGlk80LgncRgxyMErsHiVkeXUI+TGIe6gEZi42Siy8nP8S2igR/fKrEAv4juRifkfp7ZL+eh9IMvn6KYCC8/2PrX8EdMsD+PXO/kyu1esR8El3iOOA1258d/37zOQf8jBEv5ghU6OEBOacf+9DqgbmRokycesXIMurNbAaALAxSqxdcAGxoD67/mK3O3UGbwtk279Tsg0IQl6hP4HENuMW2D3Rbx8yTwtqSfCGzgIOAAAAAElFTkSuQmCC"
},
"517f"
:
function
(
A
,
t
,
e
){
"use strict"
;
e
(
"3103"
)},
"5cc9"
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAABqUlEQVRIibWWzVHDMBBGXzzcSQfkjA+4ATzmrhlSgumADggdmApIOsgMviNUQXLQ3XTgVGAOlh1ZSDEQ81083rX8dlern1nTNADEaZkBSyABdkChlaj4geK0nAM5kBnTViux7vyzpmmI0zIHXp2xByDXSmxHAAtAAleOa6+VSACiOC0TDwDgElibKE+p8AAAbuK0XAFc0JbIjr4AnixQBmxNOd9HgK6WwCpyjFIrsQI+LNvilz+2tYA2k9oy3sdpWTFMX5pn7cA7JbQZ+yQBZte3b3OgCnz4oZXIToVq6v4UcN9pJWSklahp6/7pAhjOl1emvC+O+QA8aCUkmBa2oupeRjNwZVp5YV53JnignZNJZBZu5fNNBjmVidvC5yinXUfvtB3Xa0pIUG65ns2z+jeIacfJdQH9Vp14/IMJ/Ku6FS+BG49/D2RjILOTS467xmBcBDwGABj74y8B3TjZHRNndVcA8A10bgsvAwAb9O08+Q/tzoUUtJMc0kYrsY4YHlreSEIO65jwgTZaiRyOt5UC/zpZ21ebkEwXSY5d2gN6yBSy7l61G9gX5GKjjut+7BkAAAAASUVORK5CYII="
},
a793
:
function
(
A
,
t
,
e
){
"use strict"
;
e
.
r
(
t
);
var
n
=
function
(){
var
A
=
this
,
t
=
A
.
$createElement
,
e
=
A
.
_self
.
_c
||
t
;
return
e
(
"div"
,[
A
.
_v
(
"apiManage"
)])},
a
=
[],
i
=
e
(
"2877"
),
s
=
{},
g
=
Object
(
i
[
"a"
])(
s
,
n
,
a
,
!
1
,
null
,
null
,
null
);
t
[
"default"
]
=
g
.
exports
},
ae41
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAAA2UlEQVRIie2W0Q2CMBCGPwl7yAZ2Ax3FERyBERzFERihboAbsMHvg605kUKA+kL8k0vocbmv7UGvSCKYk+SVRz7kQxI7SQS1wJ58egAVQGGcbUYAmAmXiYA7cFmQ+Aoc+s4UpAOaBZBuyJmCRF0BZ8Yn82wn4RlZ+RTEAcfEu5T/S8V0yHptB1IC52C2wI5XYV0vvknkGYv3SKozHSUpNdupyR8yG+J/zLj9oitGvbtjhETL9c/UNm8fsnZVH7092lDhPXBbvP8DNd7OJ2yvRFZVsLlqGbj1PAEtKPP38F+1xwAAAABJRU5ErkJggg=="
},
d5e4
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAAArUlEQVRIie2WwQ3CMAxFXyoGYISOwAgdoSOETRiFDegIHYERMgKd4HMoQWmJkEXTC8qTfIgc5yfytxQkYQyvJYO11knCSG6jsxQ2VoUtVJFNIlfmBgt4AKciKonVOn0yJvkcJgv/b0+qyFcOhc7pgEuyDoB/rwpZeMzkumrhKrI/cU76V6xpWfp/Tcy1mZwHjsDgJPXA7YcLWjk3zNM57SQwAff4JWrJP3krAQhP3noW+phZMpcAAAAASUVORK5CYII="
},
d69c
:
function
(
A
,
t
){
A
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsSAAALEgHS3X78AAABaUlEQVRIib2W0XGDMBBEnz3+Dx2EDkwJdBBKcCmkA0qwO3AHcTpQOqAEUsHmQ5Ity0jgQLIz+kCn08Lu3Q0bSTjUQANUgAE6oGceCuDg7gA4A8drVBKSDnrEIKlx8dwqJfUj+cafQVI1ciAkKiZIzpn8VhJbJ5HHN/AePL8EEtSARtZbRsYGYBttXoAW+Az2yswlUygBdsAQbL5hzX6NiHHnQnKPCvvFY7C5TvMhoellhvFtxpPaG+/NjyvkMsN0v7ood5CtWCSx0a1PwBqJk6WeJ/sVJTf/DIENuycvyqEn0bxrkpQkviQu4SU4AB9uVWFgTZIkYrl8t/d/SdKueXlMUhDp6HBn4K/hGs4kOtbMbMhK91PjLm9qLMjFnyF4IFpaXRV2CI4NyL2LFUtJmgRBSNT+R5+YpSQd8JWJn4DjlukSNZnYgJ3WY0Qn7Ki5jvqO8T45Ev7apFFgTd7HBCHJGvD/XkP8Yj9ZqknhlU92jgAAAABJRU5ErkJggg=="
},
d981
:
function
(
A
,
t
,
e
){
"use strict"
;
e
.
r
(
t
);
var
n
=
function
(){
var
A
=
this
,
t
=
A
.
$createElement
,
e
=
A
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"homePage"
},[
e
(
"el-container"
,[
e
(
"el-aside"
,{
attrs
:{
width
:
"280px"
}},[
e
(
"div"
,{
staticClass
:
"menu"
},[
e
(
"div"
,{
staticClass
:
"title"
},[
e
(
"span"
,[
A
.
_v
(
"XXX工作流"
)])]),
e
(
"div"
,{
staticClass
:
"menuItem"
},
A
.
_l
(
A
.
menuItem
,(
function
(
t
){
return
e
(
"router-link"
,{
key
:
t
.
url
,
staticClass
:
"ItemDiv"
,
attrs
:{
"active-class"
:
"itemDivAct"
,
to
:
t
.
url
,
tag
:
"div"
}},[
e
(
"img"
,{
staticClass
:
"ItemImg"
,
attrs
:{
src
:
A
.
$route
.
matched
[
1
].
path
==
t
.
url
?
t
.
actionICon
:
t
.
icon
,
alt
:
""
}}),
e
(
"span"
,{
staticClass
:
"ItemSpan ItemSpanAct"
},[
A
.
_v
(
A
.
_s
(
t
.
name
))])])})),
1
)])]),
e
(
"el-container"
,[
e
(
"el-header"
,{
staticClass
:
"header"
},[
e
(
"div"
,{
staticClass
:
"time"
},[
e
(
"span"
,[
A
.
_v
(
A
.
_s
(
A
.
newTime
))]),
"/dataModel/Manage"
!=
A
.
$route
.
path
&&
"/process/Manage"
!=
A
.
$route
.
path
?
e
(
"span"
,{
staticClass
:
"ty_return"
,
on
:{
click
:
A
.
goOut
}},[
A
.
_v
(
"返回"
)]):
A
.
_e
()])]),
e
(
"el-main"
,{
staticClass
:
"main"
},[
e
(
"router-view"
)],
1
)],
1
)],
1
)],
1
)},
a
=
[],
i
=
{
data
:
function
(){
return
{
menuItem
:[{
name
:
"流程管理"
,
icon
:
e
(
"d69c"
),
actionICon
:
e
(
"5cc9"
),
url
:
"/process"
},{
name
:
"数据模型管理"
,
icon
:
e
(
"d5e4"
),
actionICon
:
e
(
"1c6e"
),
url
:
"/dataModel"
},{
name
:
"服务接口管理"
,
icon
:
e
(
"ae41"
),
actionICon
:
e
(
"3712"
),
url
:
"/searchFlowInfo"
}],
newTime
:
""
}},
created
:
function
(){
var
A
=
this
;
this
.
newTime
=
this
.
getDate
(
Date
.
now
()),
setInterval
((
function
(){
A
.
newTime
=
A
.
getDate
(
Date
.
now
())}),
1
e3
)},
methods
:{
goOut
:
function
(){
this
.
$router
.
go
(
-
1
)},
getDate
:
function
(
A
){
var
t
=
new
Date
(
A
),
e
=
t
.
getFullYear
()
+
"-"
,
n
=
(
t
.
getMonth
()
+
1
<
10
?
"0"
+
(
t
.
getMonth
()
+
1
):
t
.
getMonth
()
+
1
)
+
"-"
,
a
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
i
=
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
,
s
=
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
,
g
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
e
+
n
+
a
+
" "
+
i
+
s
+
g
}}},
s
=
i
,
g
=
(
e
(
"517f"
),
e
(
"2877"
)),
o
=
Object
(
g
[
"a"
])(
s
,
n
,
a
,
!
1
,
null
,
"ef5e00c4"
,
null
);
t
[
"default"
]
=
o
.
exports
}}]);
\ No newline at end of file
src/main/resources/workflow/js/preview.f1d279d5.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
function
(
_
){
function
e
(
e
){
for
(
var
o
,
a
,
s
=
e
[
0
],
i
=
e
[
1
],
c
=
e
[
2
],
u
=
0
,
d
=
[];
u
<
s
.
length
;
u
++
)
a
=
s
[
u
],
Object
.
prototype
.
hasOwnProperty
.
call
(
n
,
a
)
&&
n
[
a
]
&&
d
.
push
(
n
[
a
][
0
]),
n
[
a
]
=
0
;
for
(
o
in
i
)
Object
.
prototype
.
hasOwnProperty
.
call
(
i
,
o
)
&&
(
_
[
o
]
=
i
[
o
]);
l
&&
l
(
e
);
while
(
d
.
length
)
d
.
shift
()();
return
t
.
push
.
apply
(
t
,
c
||
[]),
r
()}
function
r
(){
for
(
var
_
,
e
=
0
;
e
<
t
.
length
;
e
++
){
for
(
var
r
=
t
[
e
],
o
=!
0
,
s
=
1
;
s
<
r
.
length
;
s
++
){
var
i
=
r
[
s
];
0
!==
n
[
i
]
&&
(
o
=!
1
)}
o
&&
(
t
.
splice
(
e
--
,
1
),
_
=
a
(
a
.
s
=
r
[
0
]))}
return
_
}
var
o
=
{},
n
=
{
preview
:
0
},
t
=
[];
function
a
(
e
){
if
(
o
[
e
])
return
o
[
e
].
exports
;
var
r
=
o
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
_
[
e
].
call
(
r
.
exports
,
r
,
r
.
exports
,
a
),
r
.
l
=!
0
,
r
.
exports
}
a
.
m
=
_
,
a
.
c
=
o
,
a
.
d
=
function
(
_
,
e
,
r
){
a
.
o
(
_
,
e
)
||
Object
.
defineProperty
(
_
,
e
,{
enumerable
:
!
0
,
get
:
r
})},
a
.
r
=
function
(
_
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
_
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
_
,
"__esModule"
,{
value
:
!
0
})},
a
.
t
=
function
(
_
,
e
){
if
(
1
&
e
&&
(
_
=
a
(
_
)),
8
&
e
)
return
_
;
if
(
4
&
e
&&
"object"
===
typeof
_
&&
_
&&
_
.
__esModule
)
return
_
;
var
r
=
Object
.
create
(
null
);
if
(
a
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
_
}),
2
&
e
&&
"string"
!=
typeof
_
)
for
(
var
o
in
_
)
a
.
d
(
r
,
o
,
function
(
e
){
return
_
[
e
]}.
bind
(
null
,
o
));
return
r
},
a
.
n
=
function
(
_
){
var
e
=
_
&&
_
.
__esModule
?
function
(){
return
_
[
"default"
]}:
function
(){
return
_
};
return
a
.
d
(
e
,
"a"
,
e
),
e
},
a
.
o
=
function
(
_
,
e
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
_
,
e
)},
a
.
p
=
""
;
var
s
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
i
=
s
.
push
.
bind
(
s
);
s
.
push
=
e
,
s
=
s
.
slice
();
for
(
var
c
=
0
;
c
<
s
.
length
;
c
++
)
e
(
s
[
c
]);
var
l
=
i
;
t
.
push
([
1
,
"chunk-vendors"
]),
r
()})({
1
:
function
(
_
,
e
,
r
){
_
.
exports
=
r
(
"2c42"
)},
"2c42"
:
function
(
module
,
__webpack_exports__
,
__webpack_require__
){
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
var
core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
"99af"
),
core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default
=
__webpack_require__
.
n
(
core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__
),
core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
"4160"
),
core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1___default
=
__webpack_require__
.
n
(
core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1__
),
core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__
=
__webpack_require__
(
"159b"
),
core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default
=
__webpack_require__
.
n
(
core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__
),
D_work_yida_workflow_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__
=
__webpack_require__
(
"e260"
),
D_work_yida_workflow_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3___default
=
__webpack_require__
.
n
(
D_work_yida_workflow_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__
),
D_work_yida_workflow_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__
=
__webpack_require__
(
"e6cf"
),
D_work_yida_workflow_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default
=
__webpack_require__
.
n
(
D_work_yida_workflow_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__
),
D_work_yida_workflow_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5__
=
__webpack_require__
(
"cca6"
),
D_work_yida_workflow_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5___default
=
__webpack_require__
.
n
(
D_work_yida_workflow_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_5__
),
D_work_yida_workflow_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6__
=
__webpack_require__
(
"a79d"
),
D_work_yida_workflow_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6___default
=
__webpack_require__
.
n
(
D_work_yida_workflow_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_6__
),
vue__WEBPACK_IMPORTED_MODULE_7__
=
__webpack_require__
(
"8bbf"
),
vue__WEBPACK_IMPORTED_MODULE_7___default
=
__webpack_require__
.
n
(
vue__WEBPACK_IMPORTED_MODULE_7__
),
_utils_loadScript__WEBPACK_IMPORTED_MODULE_8__
=
__webpack_require__
(
"c88b"
),
axios__WEBPACK_IMPORTED_MODULE_9__
=
__webpack_require__
(
"bc3a"
),
axios__WEBPACK_IMPORTED_MODULE_9___default
=
__webpack_require__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_9__
);
vue__WEBPACK_IMPORTED_MODULE_7___default
.
a
.
prototype
.
$axios
=
axios__WEBPACK_IMPORTED_MODULE_9___default
.
a
;
var
$previewApp
=
document
.
getElementById
(
"previewApp"
),
childAttrs
=
{
file
:
""
,
dialog
:
' width="600px" class="dialog-width" v-if="visible" :visible.sync="visible" :modal-append-to-body="false" '
};
function
buildLinks
(
_
){
var
e
=
""
;
return
_
.
forEach
((
function
(
_
){
e
+=
'<link href="'
.
concat
(
_
,
'" rel="stylesheet">'
)})),
e
}
function
init
(
_
){
if
(
"refreshFrame"
===
_
.
data
.
type
){
var
e
=
_
.
data
.
data
,
r
=
childAttrs
[
e
.
generateConf
.
type
],
o
=
""
;
Array
.
isArray
(
e
.
links
)
&&
e
.
links
.
length
>
0
&&
(
o
=
buildLinks
(
e
.
links
)),
$previewApp
.
innerHTML
=
""
.
concat
(
o
,
"<style>"
).
concat
(
e
.
css
,
'</style><div id="app"></div>'
),
Array
.
isArray
(
e
.
scripts
)
&&
e
.
scripts
.
length
>
0
?
Object
(
_utils_loadScript__WEBPACK_IMPORTED_MODULE_8__
[
"b"
])(
e
.
scripts
,(
function
(){
newVue
(
r
,
e
.
js
,
e
.
html
)})):
newVue
(
r
,
e
.
js
,
e
.
html
)}}
function
newVue
(
attrs
,
main
,
html
){
main
=
eval
(
"("
.
concat
(
main
,
")"
)),
main
.
template
=
"<div>"
.
concat
(
html
,
"</div>"
),
new
vue__WEBPACK_IMPORTED_MODULE_7___default
.
a
({
components
:{
child
:
main
},
data
:
function
(){
return
{
visible
:
!
0
}},
template
:
"<div><child "
.
concat
(
attrs
,
"/></div>"
)}).
$mount
(
"#app"
)}
window
.
addEventListener
(
"message"
,
init
,
!
1
)},
"8bbf"
:
function
(
_
,
e
){
_
.
exports
=
Vue
},
c88b
:
function
(
_
,
e
,
r
){
"use strict"
;
r
.
d
(
e
,
"b"
,(
function
(){
return
t
}));
r
(
"4160"
),
r
(
"159b"
);
var
o
=
{};
function
n
(
_
,
e
){
var
r
=
document
.
getElementById
(
_
),
n
=
e
||
function
(){};
if
(
!
r
){
o
[
_
]
=
[];
var
t
=
document
.
createElement
(
"script"
);
t
.
src
=
_
,
t
.
id
=
_
,
t
.
async
=
1
,
document
.
body
.
appendChild
(
t
);
var
a
=
"onload"
in
t
?
s
.
bind
(
t
):
i
.
bind
(
t
);
a
(
t
)}
function
s
(
e
){
var
r
=
this
;
e
.
onload
=
function
(){
r
.
onerror
=
r
.
onload
=
null
,
o
[
_
].
forEach
((
function
(
_
){
_
(
null
,
e
)})),
delete
o
[
_
]},
e
.
onerror
=
function
(){
r
.
onerror
=
r
.
onload
=
null
,
n
(
new
Error
(
"Failed to load "
.
concat
(
_
)),
e
)}}
function
i
(
e
){
var
r
=
this
;
e
.
onreadystatechange
=
function
(){
"complete"
!==
r
.
readyState
&&
"loaded"
!==
r
.
readyState
||
(
r
.
onreadystatechange
=
null
,
o
[
_
].
forEach
((
function
(
_
){
_
(
null
,
e
)})),
delete
o
[
_
])}}
o
[
_
].
push
(
n
)}
function
t
(
_
,
e
){
var
r
=
_
.
shift
();
_
.
length
?
n
(
r
,(
function
(){
return
t
(
_
,
e
)})):
n
(
r
,
e
)}
e
[
"a"
]
=
n
}});
\ No newline at end of file
src/main/resources/workflow/js/tinymce-example.0cafa1e6.js
deleted
100644 → 0
浏览文件 @
6bad79ed
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"tinymce-example"
],{
1496
:
function
(
e
,
t
,
s
){
"use strict"
;
s
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
},
attrs
:{
id
:
"ty_newPath"
}},[
s
(
"iframe"
,{
ref
:
"previewPage"
,
staticClass
:
"result-wrapper"
,
staticStyle
:{
width
:
"100%"
,
height
:
"100%"
},
attrs
:{
frameborder
:
"0"
,
src
:
"preview.html"
},
on
:{
load
:
e
.
iframeLoad
}})])},
i
=
[],
o
=
(
s
(
"99af"
),
s
(
"ac1f"
),
s
(
"5319"
),
s
(
"c534"
)),
r
=
s
(
"f4a7"
),
n
=
s
(
"42ea"
),
c
=
s
(
"ed08"
),
h
=
s
(
"b3ae"
),
f
=
{
data
:
function
(){
return
{
formData
:
void
0
,
generateConf
:{
fileName
:
void
0
,
type
:
"file"
},
activeTab
:
"html"
,
htmlCode
:
""
,
jsCode
:
""
,
cssCode
:
""
,
scripts
:[],
links
:[]}},
computed
:{
resources
:
function
(){
return
this
.
scripts
.
concat
(
this
.
links
)}},
watch
:{},
created
:
function
(){
this
.
getFromPage
(
2
)},
methods
:{
getFromPage
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
1
;
t
=
parseInt
(
t
);
var
s
=
{
id
:
t
};
this
.
$axios
.
get_echoPage
(
s
).
then
((
function
(
t
){
console
.
log
(
"表单"
,
t
.
data
);
var
s
=
JSON
.
parse
(
t
.
data
.
descFile
);
e
.
formData
=
s
,
e
.
onOpen
()})).
catch
((
function
(
e
){
console
.
log
(
e
)}))},
onOpen
:
function
(){
var
e
=
this
,
t
=
this
.
generateConf
.
type
;
this
.
htmlCode
=
Object
(
o
[
"b"
])(
this
.
formData
,
t
),
this
.
jsCode
=
Object
(
r
[
"a"
])(
this
.
formData
,
t
,
1
),
this
.
cssCode
=
Object
(
n
[
"a"
])(
this
.
formData
),
Object
(
h
[
"a"
])((
function
(
t
){
beautifier
=
t
,
e
.
htmlCode
=
beautifier
.
html
(
e
.
htmlCode
,
c
[
"a"
].
html
),
e
.
jsCode
=
beautifier
.
js
(
e
.
jsCode
,
c
[
"a"
].
js
),
e
.
cssCode
=
beautifier
.
css
(
e
.
cssCode
,
c
[
"a"
].
html
)}))},
iframeLoad
:
function
(){
this
.
runCode
()},
runCode
:
function
(){
try
{
var
e
=
{
type
:
"refreshFrame"
,
data
:{
generateConf
:
this
.
generateConf
,
html
:
this
.
htmlCode
,
js
:
this
.
jsCode
.
replace
(
c
[
"c"
],
""
),
css
:
this
.
cssCode
,
scripts
:
this
.
scripts
,
links
:
this
.
links
}};
this
.
$refs
.
previewPage
.
contentWindow
.
postMessage
(
e
,
location
.
origin
)}
catch
(
t
){
this
.
$message
.
error
(
"js错误:"
.
concat
(
t
)),
console
.
error
(
t
)}}}},
d
=
f
,
l
=
(
s
(
"f171"
),
s
(
"2877"
)),
u
=
Object
(
l
[
"a"
])(
d
,
a
,
i
,
!
1
,
null
,
"4cce116c"
,
null
);
t
[
"default"
]
=
u
.
exports
},
"9b42"
:
function
(
e
,
t
,
s
){},
f171
:
function
(
e
,
t
,
s
){
"use strict"
;
s
(
"9b42"
)}}]);
\ No newline at end of file
src/main/resources/workflow/preview.html
浏览文件 @
49d728d4
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><style>body
{
margin
:
0
;
padding
:
0
;
overflow-x
:
hidden
;
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
height
:
calc
(
100vh
-
33px
);
padding
:
12px
;
box-sizing
:
border-box
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
}
input
,
textarea
{
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
}
</style><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/preview.f1d279d5.js"
rel=
"preload"
as=
"script"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"previewApp"
></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/preview.f1d279d5.js"
></script></body></html>
\ No newline at end of file
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><style>body
{
margin
:
0
;
padding
:
0
;
overflow-x
:
hidden
;
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
height
:
calc
(
100vh
-
33px
);
padding
:
12px
;
box-sizing
:
border-box
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
}
input
,
textarea
{
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
}
</style><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/preview.a0955f40.js"
rel=
"preload"
as=
"script"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"previewApp"
></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/preview.a0955f40.js"
></script></body></html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论