Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
smart-web-tabs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SVI
svi-templates
smart-web-tabs
Commits
4d4ff769
Commit
4d4ff769
authored
Nov 25, 2019
by
曾沂轮
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-StyleRenderForm' into 'master'
Style: 新建表单工作时,渲染参数接口调整 See merge request
!3
parents
5aa1386c
96b1b66f
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
24 additions
and
21 deletions
+24
-21
http.config.js
template/config/http.config.js
+0
-0
index.js
template/form/api/index.js
+3
-2
submitTask.vue
template/form/views/common/submitTask.vue
+1
-1
form.vue
template/form/views/form.vue
+19
-10
page.vue
template/form/views/page.vue
+0
-0
config.js
template/src/api/config.js
+0
-0
loginInterceptor.js
template/src/api/loginInterceptor.js
+0
-0
tab-nav.vue
template/src/components/tabs/src/tab-nav.vue
+0
-0
businessConfig.js
template/src/plugins/routes/businessConfig.js
+0
-0
index.js
template/src/store/index.js
+1
-1
menu.js
template/src/utils/expression/modules/menu.js
+0
-0
system.js
template/src/utils/expression/modules/system.js
+0
-0
global.js
template/src/utils/global.js
+0
-0
index.js
template/src/utils/index.js
+0
-0
permissionMixin.js
template/src/utils/mixins/permissionMixin.js
+0
-0
Main.vue
template/src/views/Main.vue
+0
-6
ConfigurePage.vue
template/src/views/common/ConfigurePage.vue
+0
-0
Header.vue
template/src/views/common/Header.vue
+0
-0
Logo.vue
template/src/views/common/Logo.vue
+0
-0
PasswordDialog.vue
template/src/views/common/PasswordDialog.vue
+0
-1
No files found.
template/config/http.config.js
View file @
4d4ff769
template/form/api/index.js
View file @
4d4ff769
...
...
@@ -23,11 +23,12 @@ const Api = {
* @param {*} linkId
* @param {*} linkKey
*/
getBusinessStartForm
(
businessDefinitionId
)
{
getBusinessStartForm
(
businessDefinitionId
,
taskId
)
{
return
config
.
doGetPromise
(
baseUrl
+
'/v1.1.0/workflow/workflowForm/getBusinessStartForm'
,
{
businessDefinitionId
businessDefinitionId
,
taskId
}
);
},
...
...
template/form/views/common/submitTask.vue
View file @
4d4ff769
...
...
@@ -169,7 +169,7 @@ export default {
this
.
currentLink
.
masterMen
.
forEach
(
user
=>
{
this
.
$set
(
user
,
'checked'
,
true
);
// 如果提交所有人,禁止状态,不能改变选中
if
(
val
.
completingToAll
)
this
.
$set
(
user
,
'disabled'
,
true
)
;
if
(
val
.
completingToAll
)
this
.
$set
(
user
,
'disabled'
,
true
)
;
this
.
mainCheckedKeys
.
push
(
user
.
organInfo
.
rid
);
});
this
.
currentLink
.
normalMen
.
forEach
(
user
=>
{
...
...
template/form/views/form.vue
View file @
4d4ff769
...
...
@@ -42,7 +42,7 @@
ref=
"submitTask"
:nextLinks=
"submitData.subTask"
:nextLinkUsers=
"submitData.userInfos"
@
closed=
"
submitTaskDialogVisible = fal
se"
@
closed=
"
handleSubmitTaskClo
se"
@
save=
"handleSubmitTaskSave"
></submit-task>
<!-- 转办 -->
...
...
@@ -125,7 +125,8 @@ export default {
submitTaskDialogVisible
:
false
,
// 提交dialog
submitData
:
{},
transformDialogVisible
:
false
,
// 转办dialog
returnTaskVisible
:
false
// 退回dialog
returnTaskVisible
:
false
,
// 退回dialog
createTaskId
:
''
// 新建工作后保存时的taskId
};
},
...
...
@@ -145,8 +146,8 @@ export default {
},
// 刷新
refresh
()
{
this
.
fetch
();
refresh
(
taskId
)
{
this
.
fetch
(
taskId
);
},
handleResultHtml
(
data
,
key
)
{
...
...
@@ -158,10 +159,12 @@ export default {
return
{};
}
},
fetch
()
{
/**
* 新建工作时,保存的时候后端返回tId
*/
fetch
(
tId
)
{
let
taskId
=
getTaskId
()
||
this
.
childrenData
.
taskId
;
const
linkId
=
getLinkId
()
||
this
.
childrenData
.
linkId
;
const
linkId
=
tId
?
tId
:
getLinkId
()
||
this
.
childrenData
.
linkId
;
const
linkKey
=
getLinkKey
()
||
this
.
childrenData
.
linkKey
;
// console.log(taskId, linkId, linkKey)
let
apiFn
=
'renderFormByTaskId'
;
...
...
@@ -177,9 +180,7 @@ export default {
taskId
=
getFinishForm
();
apiFn
=
'renderFinishForm'
;
}
this
.
isLoading
=
true
;
Api
[
apiFn
](
taskId
,
linkId
,
linkKey
)
.
then
(
res
=>
{
this
.
isLoading
=
false
;
...
...
@@ -420,7 +421,9 @@ export default {
// console.log(res)
if
(
res
.
status
===
0
)
{
notification
(
'success'
,
'保存成功!'
);
this
.
refresh
();
if
(
!
res
.
data
.
taskId
)
return
false
;
this
.
createTaskId
=
res
.
data
.
taskId
;
this
.
refresh
(
res
.
data
.
taskId
);
}
else
{
notification
(
'warning'
,
res
.
message
||
'保存失败,请重试!'
);
}
...
...
@@ -777,6 +780,12 @@ export default {
/* eslint-disable no-eval */
eval
(
item
.
operation
);
}
},
// 关闭提交后的对话框事件
handleSubmitTaskClose
()
{
this
.
submitTaskDialogVisible
=
false
;
this
.
refresh
(
this
.
createTaskId
);
}
}
};
...
...
template/form/views/page.vue
View file @
4d4ff769
template/src/api/config.js
View file @
4d4ff769
template/src/api/loginInterceptor.js
View file @
4d4ff769
template/src/components/tabs/src/tab-nav.vue
View file @
4d4ff769
template/src/plugins/routes/businessConfig.js
View file @
4d4ff769
template/src/store/index.js
View file @
4d4ff769
import
Vue
from
'vue'
;
import
Vuex
from
'vuex'
;
const
packageConfig
=
require
(
'.
.
/../../package.json'
);
const
packageConfig
=
require
(
'./../../package.json'
);
Vue
.
use
(
Vuex
);
...
...
template/src/utils/expression/modules/menu.js
View file @
4d4ff769
template/src/utils/expression/modules/system.js
View file @
4d4ff769
template/src/utils/global.js
View file @
4d4ff769
template/src/utils/index.js
View file @
4d4ff769
template/src/utils/mixins/permissionMixin.js
View file @
4d4ff769
template/src/views/Main.vue
View file @
4d4ff769
...
...
@@ -127,12 +127,6 @@ export default {
}
},
navigationList
(
newVal
)
{
if
(
newVal
.
length
>
0
)
{
}
},
currentTab
()
{
const
len
=
this
.
tabsData
.
length
;
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
...
...
template/src/views/common/ConfigurePage.vue
View file @
4d4ff769
template/src/views/common/Header.vue
View file @
4d4ff769
template/src/views/common/Logo.vue
View file @
4d4ff769
template/src/views/common/PasswordDialog.vue
View file @
4d4ff769
...
...
@@ -137,7 +137,6 @@ export default {
});
this
.
passSubmiting
=
false
;
},
3000
);
}
else
{
this
.
$message
({
type
:
'warning'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment