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
16138a37
Commit
16138a37
authored
Jan 17, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复核bug
parent
d25e6dbc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
25 deletions
+17
-25
gj-common.min.js
src/components/gj-common.min.js
+0
-0
commonFuncs.js
src/mixin/commonFuncs.js
+1
-1
index.js
src/routers/index.js
+1
-6
BusRouter.js
src/views/Business/BusRouter.js
+1
-1
index.vue
src/views/Layout/index.vue
+2
-12
ReviewDitopn.vue
src/views/Review/Business/ReviewDitopn.vue
+5
-5
ReviewRouter.js
src/views/Review/ReviewRouter.js
+7
-0
No files found.
src/components/gj-common.min.js
View file @
16138a37
This diff is collapsed.
Click to expand it.
src/mixin/commonFuncs.js
View file @
16138a37
...
...
@@ -89,6 +89,6 @@ export default {
},
async
handlePass
(
data
)
{
this
.
$store
.
state
.
Transaction
.
operateFuns
[
data
.
operateId
][
"pass"
]()
},
},
},
};
src/routers/index.js
View file @
16138a37
...
...
@@ -5,6 +5,7 @@ import Display from "../views/Display";
import
Login
from
"../views/Login"
;
import
Layout
from
"../views/Layout"
;
import
BusRouter
from
"../views/Business/BusRouter"
;
import
ReviewRouter
from
"../views/Review/ReviewRouter"
;
import
DocRouter
from
"../views/Docpan/DocRouter"
;
Vue
.
use
(
VueRouter
);
...
...
@@ -15,12 +16,6 @@ const DisplayRouter = BusRouter.map(route => {
return
newRoute
;
})
const
ReviewRouter
=
BusRouter
.
map
(
route
=>
{
const
newRoute
=
Object
.
assign
({},
route
)
newRoute
.
name
=
newRoute
.
name
+
'Review'
return
newRoute
;
})
/**
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
...
...
src/views/Business/BusRouter.js
View file @
16138a37
...
...
@@ -145,7 +145,7 @@ const BusRouter = [
{
path
:
'ditame'
,
component
:
Ditame
,
name
:
'Ditame'
,
meta
:
{
title
:
'信用证修改'
}
},
{
path
:
'ditcan'
,
component
:
Ditcan
,
name
:
'Ditcan'
,
meta
:
{
title
:
'信用证注销'
}
},
{
path
:
'ditsel'
,
component
:
Ditsel
,
name
:
'Ditsel'
,
meta
:
{
title
:
'信用证查询'
}
},
{
path
:
'ditopn'
,
component
:
Ditopn
,
name
:
'Ditopn'
,
meta
:
{
title
:
(
tag
)
=>
{
return
tag
.
path
.
startsWith
(
"/review"
)
?
"复核"
:
'买方信用证开立'
}
}
},
{
path
:
'ditopn'
,
component
:
Ditopn
,
name
:
'Ditopn'
,
meta
:
{
title
:
'买方信用证开立'
}
},
{
path
:
'infdid'
,
component
:
Infdid
,
name
:
'Infdid'
,
meta
:
{
title
:
'信用证交易查询'
}
},
{
path
:
'ditdck'
,
component
:
Ditdck
,
name
:
'Ditdck'
,
meta
:
{
title
:
'信用证到单'
}
},
// 例
...
...
src/views/Layout/index.vue
View file @
16138a37
...
...
@@ -14,11 +14,7 @@
<el-main
class=
"m-app-main"
>
<tagViews></tagViews>
<div
style=
"height: 2px"
></div>
<keep-alive>
<component
v-bind:is=
"activeComponentName"
></component>
</keep-alive>
<!--
<business
v-if=
"activeComponentName === 'Business'"
></business>
<review
v-if=
"activeComponentName === 'Review'"
></review>
-->
<business></business>
<toolbars></toolbars>
</el-main>
</el-container>
...
...
@@ -30,17 +26,11 @@ import headerCom from "./Header";
import
sideMenu
from
"./SideMenu"
;
import
tagViews
from
"./components/TagsView"
;
import
business
from
"../Business"
;
import
review
from
"../Review"
;
import
toolbars
from
"~/components/Toolbars"
;
export
default
{
name
:
"Layout"
,
components
:
{
headerCom
,
sideMenu
,
tagViews
,
business
,
review
,
toolbars
},
computed
:
{
activeComponentName
()
{
return
this
.
$route
.
path
.
startsWith
(
"/review"
)
?
"review"
:
"business"
}
}
components
:
{
headerCom
,
sideMenu
,
tagViews
,
business
,
toolbars
},
};
</
script
>
...
...
src/views/Review/
index
.vue
→
src/views/Review/
Business/ReviewDitopn
.vue
View file @
16138a37
<
template
>
<ReviewWrapper>
<
businessContainer
ref=
"business"
></businessContainer
>
<
Ditopn></Ditopn
>
</ReviewWrapper>
</
template
>
<
script
>
import
businessContainer
from
"../Business
"
;
import
{
ReviewWrapper
}
from
"
../..
/components/gj-common.min.js"
;
import
Ditopn
from
"~/views/Business/Ditopn
"
;
import
{
ReviewWrapper
}
from
"
~
/components/gj-common.min.js"
;
export
default
{
name
:
"Review"
,
components
:
{
ReviewWrapper
,
businessContainer
},
name
:
"Review
Ditopn
"
,
components
:
{
ReviewWrapper
,
Ditopn
},
created
()
{},
mounted
()
{},
};
...
...
src/views/Review/ReviewRouter.js
0 → 100644
View file @
16138a37
import
ReviewDitopn
from
"./Business/ReviewDitopn.vue"
;
const
ReviewRouter
=
[
{
path
:
"ditopn"
,
component
:
ReviewDitopn
,
name
:
"ReviewDitopn"
,
meta
:
{
title
:
"复核-买方信用证开立"
}
},
];
export
default
ReviewRouter
;
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