Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
fukai
vue-gjjs
Commits
c1c28201
Commit
c1c28201
authored
Dec 27, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FunctionBtn的跳转
parent
9a4c47be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
24 deletions
+45
-24
FunctionBtn.vue
src/components/FunctionBtn.vue
+1
-0
commonFuncs.js
src/mixin/commonFuncs.js
+17
-8
Status.js
src/store/Status.js
+5
-1
index.vue
src/views/TaskList/index.vue
+22
-15
No files found.
src/components/FunctionBtn.vue
View file @
c1c28201
...
...
@@ -98,6 +98,7 @@ export default {
})
.
then
(
res
=>
{
// this.$router.back();
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
handleExit
&&
this
.
handleExit
()
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
routeParams
)
{
setTimeout
(()
=>
{
...
...
src/mixin/commonFuncs.js
View file @
c1c28201
...
...
@@ -11,7 +11,10 @@ export default {
message
:
"保存成功"
,
type
:
"success"
,
});
this
.
$router
.
history
.
push
(
"/business/trnrel"
);
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
)
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
...
...
@@ -32,7 +35,10 @@ export default {
message
:
"暂存成功"
,
type
:
"success"
,
});
this
.
$router
.
history
.
push
(
"/business/sptsel"
);
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'sptbrk'
)
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
...
...
@@ -44,7 +50,15 @@ export default {
// 表单校验
async
handleCheck
()
{
let
result
=
await
this
.
checkAll
();
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
if
(
result
.
respCode
==
SUCCESS
)
{
if
(
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"校核成功"
,
type
:
"success"
,
});
return
;
}
// 清除之前的校验状态
this
.
$refs
.
modelForm
.
clearValidate
();
const
fields
=
this
.
$refs
.
modelForm
.
fields
;
...
...
@@ -56,11 +70,6 @@ export default {
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"成功"
,
message
:
"校核成功"
,
type
:
"success"
,
});
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
result
.
respMsg
});
}
...
...
src/store/Status.js
View file @
c1c28201
...
...
@@ -21,7 +21,8 @@ const Status = {
check
:
false
,
// 暂存
stash
:
false
}
},
taskListTabVal
:
''
},
mutations
:
{
setMode
(
state
,
value
)
{
...
...
@@ -78,6 +79,9 @@ const Status = {
},
setLoadingStash
(
state
,
value
)
{
state
.
loading
.
stash
=
value
;
},
setTaskListTabVal
(
state
,
value
)
{
state
.
taskListTabVal
=
value
;
}
}
}
...
...
src/views/TaskList/index.vue
View file @
c1c28201
...
...
@@ -37,26 +37,33 @@ import Bopsel from "~/views/Business/Bopsel";
export
default
{
data
(){
return
{
tabVal
:
"sptsel"
,
}
},
computed
:
{
tabVal
:
{
get
()
{
return
this
.
$store
.
state
.
Status
.
taskListTabVal
||
"sptsel"
},
set
(
val
)
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
val
)
}
}
},
name
:
"TaskList"
,
methods
:
{
tabClick
()
{},
created
()
{
},
components
:{
"t-sptsel"
:
Sptsel
,
"t-sptbrk"
:
Sptbrk
,
"t-trnrel"
:
Trnrel
,
"t-trnfnd"
:
Trnfnd
,
"t-diasel"
:
Diasel
,
"t-bopsel"
:
Bopsel
,
methods
:
{
tabClick
(
tab
)
{
},
},
components
:{
"t-sptsel"
:
Sptsel
,
"t-sptbrk"
:
Sptbrk
,
"t-trnrel"
:
Trnrel
,
"t-trnfnd"
:
Trnfnd
,
"t-diasel"
:
Diasel
,
"t-bopsel"
:
Bopsel
,
},
};
</
script
>
...
...
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