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
191a98d7
Commit
191a98d7
authored
Jan 20, 2022
by
吴佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20220120 wujia 跳转草稿箱、待复核页面后刷新页面数据
parent
06420273
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
16 deletions
+71
-16
commonFuncs.js
src/mixin/commonFuncs.js
+4
-0
Status.js
src/store/Status.js
+9
-1
index.vue
src/views/Business/Sptsel/Sptbrk/index.vue
+20
-4
index.vue
src/views/Business/Trnrel/index.vue
+35
-10
index.vue
src/views/TaskList/index.vue
+3
-1
No files found.
src/mixin/commonFuncs.js
View file @
191a98d7
...
...
@@ -14,6 +14,8 @@ export default {
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
)
//修改待复核界面刷新状态为需要刷新
this
.
$store
.
commit
(
"setLoadingFreshReview"
,
true
)
});
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
...
...
@@ -48,6 +50,8 @@ export default {
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'sptbrk'
)
//修改草稿箱界面刷新状态为需要刷新
this
.
$store
.
commit
(
"setLoadingFreshPending"
,
true
)
});
}
else
{
this
.
$notify
({
...
...
src/store/Status.js
View file @
191a98d7
...
...
@@ -20,7 +20,9 @@ const Status = {
// 校验
check
:
false
,
// 暂存
stash
:
false
stash
:
false
,
freshReview
:
false
,
freshPending
:
false
,
},
taskListTabVal
:
''
,
taskList
:
{
...
...
@@ -84,6 +86,12 @@ const Status = {
setLoadingCheck
(
state
,
value
)
{
state
.
loading
.
check
=
value
;
},
setLoadingFreshReview
(
state
,
value
)
{
state
.
loading
.
freshReview
=
value
;
},
setLoadingFreshPending
(
state
,
value
)
{
state
.
loading
.
freshPending
=
value
;
},
setLoadingStash
(
state
,
value
)
{
state
.
loading
.
stash
=
value
;
},
...
...
src/views/Business/Sptsel/Sptbrk/index.vue
View file @
191a98d7
...
...
@@ -34,9 +34,6 @@ export default {
}
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
computed
:
{
},
data
(){
return
{
tabVal
:
"menu"
,
...
...
@@ -62,7 +59,26 @@ export default {
this
.
$refs
.
Menu
.
sptfndHandleSearch
();
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
})
}
},
computed
:
{
reload
:
function
(){
return
this
.
$store
.
state
.
Status
.
loading
.
freshPending
;
}
},
watch
:{
reload
:
function
(
val
,
oldVal
){
if
(
val
){
const
that
=
this
;
that
.
init
(
that
.
model
).
then
((
res
)
=>
{
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
//请求草稿箱数据
this
.
$refs
.
Menu
.
sptfndHandleSearch
();
//刷新页面后重置刷新状态为不刷新
this
.
$store
.
commit
(
"setLoadingFreshPending"
,
false
)
});
}
},
},
}
</
script
>
<
style
>
...
...
src/views/Business/Trnrel/index.vue
View file @
191a98d7
...
...
@@ -68,7 +68,7 @@ export default {
"m-inftrnps"
:
Inftrnps
,
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
computed
:
{},
//
computed: {},
provide
()
{
return
{
root
:
this
,
...
...
@@ -87,19 +87,44 @@ export default {
bchtyp
:
CodeTable
.
bchtyp
,
usrsort
:
CodeTable
.
usrsort
,
},
// reload:false,
};
},
methods
:
{},
mounted
:
async
function
()
{
console
.
log
(
"进入trnrel交易"
);
created
()
{
const
that
=
this
;
that
.
init
(
that
.
model
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
that
.
init
(
that
.
model
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this
.
$refs
.
inftrnps
.
handleSearch
();
});
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this
.
$refs
.
inftrnps
.
handleSearch
();
});
},
methods
:
{
},
computed
:
{
reload
:
function
(){
return
this
.
$store
.
state
.
Status
.
loading
.
freshReview
;
}
},
watch
:{
reload
:
function
(
val
,
oldVal
){
if
(
val
){
const
that
=
this
;
that
.
init
(
that
.
model
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this
.
$refs
.
inftrnps
.
handleSearch
();
//刷新页面后重置刷新状态为不刷新
this
.
$store
.
commit
(
"setLoadingFreshReview"
,
false
)
});
}
},
},
};
</
script
>
...
...
src/views/TaskList/index.vue
View file @
191a98d7
...
...
@@ -91,7 +91,9 @@ export default {
name
:
"TaskList"
,
created
()
{},
methods
:
{
tabClick
(
tab
)
{},
tabClick
(
tab
)
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
tab
.
name
)
},
},
components
:
{
"t-sptsel"
:
Sptsel
,
...
...
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