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
3fd5fc77
Commit
3fd5fc77
authored
4 years ago
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成office调整
parent
f7e52a4e
master
…
bochk-demo-202202
bochk-poc
bochk-poc-1113
ceb-demo-202201
development-202206
hangzhoubank
origin/development-202206
revert-594e4a5c
revert-8c42ad65
revert-d0d76887
settle-test-20230110
train
v0.2
vue-gjjs-template
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
146 additions
and
16 deletions
+146
-16
App.vue
src/App.vue
+7
-0
index.html
src/index.html
+1
-1
main.js
src/main.js
+2
-0
Api.js
src/service/Api.js
+7
-7
I18NStore.js
src/store/I18NStore.js
+1
-0
UserContext.js
src/store/UserContext.js
+4
-0
index.js
src/store/index.js
+2
-2
vuefunc.js
src/utils/vuefunc.js
+16
-0
TodoItem.vue
src/views/Business/Office/TodoItem.vue
+93
-0
index.vue
src/views/Business/Office/index.vue
+0
-0
Header.vue
src/views/Layout/Header.vue
+1
-1
index.vue
src/views/Login/index.vue
+9
-2
webpack.config.js
webpack.config.js
+3
-3
No files found.
src/App.vue
View file @
3fd5fc77
...
...
@@ -20,4 +20,11 @@ export default {
display
:
flex
;
flex-direction
:
column
;
}
.e-table-wrapper
{
display
:
flex
;
flex-direction
:
column
;
}
.e-table-wrapper
.el-table
{
flex
:
1
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/index.html
View file @
3fd5fc77
...
...
@@ -10,7 +10,7 @@
height
:
100%
;
width
:
100%
;
margin
:
0
;
overflow
:
hidden
;
}
</style>
</head>
...
...
This diff is collapsed.
Click to expand it.
src/main.js
View file @
3fd5fc77
...
...
@@ -11,11 +11,13 @@ import RootRouter from './routers'
import
store
from
"./store"
import
CustomComponent
from
"./components"
import
VueFunc
from
"./utils/vuefunc"
window
.
SUCCESS
=
"00000"
Vue
.
use
(
ElementUI
)
Vue
.
use
(
CustomComponent
)
Vue
.
use
(
VueFunc
)
new
Vue
({
el
:
'#app'
,
...
...
This diff is collapsed.
Click to expand it.
src/service/Api.js
View file @
3fd5fc77
import
axios
from
'axios'
import
{
MessageBox
}
from
'element-ui'
export
const
BASE_HOST
=
"/
reactremit
/"
export
const
BASE_URI
=
BASE_HOST
+
"
service/
"
;
export
const
BASE_HOST
=
"/
gjjs
/"
export
const
BASE_URI
=
BASE_HOST
+
""
;
const
instance
=
axios
.
create
({
baseURL
:
BASE_URI
,
...
...
@@ -24,22 +24,22 @@ export default class Api
{
let
token
=
window
.
sessionStorage
.
token
let
userId
=
window
.
sessionStorage
.
userId
let
headers
=
{
userId
,
token
};
let
headers
=
{
userId
,
token
,
"terminal"
:
"WEB"
};
if
(
url
!=
`
${
BASE_URI
}
login`
&&
token
)
headers
.
token
=
token
;
return
new
Promise
(
(
resolve
,
reject
)
=>
{
axios
.
post
(
url
,
data
,{
headers
,
method
,
timeout
:
5000
,
timeout
:
5000
0
,
})
.
then
(
response
=>
{
const
{
data
}
=
response
;
if
(
data
&&
data
.
retcod
!=
SUCCESS
)
if
(
data
&&
data
.
code
!=
SUCCESS
)
{
console
.
log
(
"错误码:"
+
data
.
retcod
+
" 错误信息:"
+
data
.
retmsg
)
console
.
log
(
"错误码:"
+
data
.
code
+
" 错误信息:"
+
data
.
message
)
}
if
(
data
&&
data
.
retcod
==
'L0003'
){
if
(
data
&&
data
.
code
==
'L0003'
){
window
.
sessionStorage
.
removeItem
(
"token"
)
window
.
sessionStorage
.
removeItem
(
"userId"
)
MessageBox
.
alert
({
...
...
This diff is collapsed.
Click to expand it.
src/store/I18NStore.js
View file @
3fd5fc77
const
I18N
=
{
namespaced
:
true
,
state
:{
lang
:
"cn"
},
...
...
This diff is collapsed.
Click to expand it.
src/store/UserContext.js
View file @
3fd5fc77
const
UserContext
=
{
namespaced
:
true
,
state
:{
userName
:
""
,
userId
:
""
,
...
...
@@ -15,6 +16,9 @@ const UserContext={
state
.
menu
=
info
.
menu
state
.
state
=
"LOGIN"
state
.
token
=
info
.
token
window
.
sessionStorage
.
userId
=
info
.
userId
window
.
sessionStorage
.
userName
=
info
.
userName
window
.
sessionStorage
.
token
=
info
.
token
},
setLogout
(
state
){
state
.
userName
=
""
...
...
This diff is collapsed.
Click to expand it.
src/store/index.js
View file @
3fd5fc77
...
...
@@ -7,8 +7,8 @@ Vue.use(Vuex)
const
store
=
new
Vuex
.
Store
({
modules
:
{
i
18n
:
I18NStore
,
u
serContext
:
UserContext
I
18n
:
I18NStore
,
U
serContext
:
UserContext
}
})
...
...
This diff is collapsed.
Click to expand it.
src/utils/vuefunc.js
0 → 100644
View file @
3fd5fc77
export
function
findCodeLabel
(
codes
,
val
)
{
if
(
!
codes
)
return
val
;
let
item
=
codes
.
find
(
item
=>
item
.
value
==
val
)
if
(
!
item
)
return
val
;
return
item
.
label
}
export
default
{
install
(
Vue
){
Vue
.
prototype
.
findCodeLabel
=
findCodeLabel
}
}
This diff is collapsed.
Click to expand it.
src/views/Business/Office/TodoItem.vue
0 → 100644
View file @
3fd5fc77
<
template
>
<div
class=
"e-table-wrapper"
style=
"height:100%"
>
<el-table
:data=
"todolist"
style=
"width: 100%"
>
<el-table-column
prop=
"typ"
label=
"操作类型"
sortable
>
<template
slot-scope=
"scope"
>
<span>
{{
findCodeLabel
(
codes
.
oratyp
,
scope
.
row
.
typ
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"inifrm"
label=
"交易码"
sortable
>
</el-table-column>
<el-table-column
prop=
"ownref"
label=
"业务编号"
sortable
>
</el-table-column>
<el-table-column
prop=
"nam"
label=
"概要描述"
sortable
>
</el-table-column>
<el-table-column
prop=
"usr"
label=
"经办柜员"
sortable
>
</el-table-column>
<el-table-column
prop=
"cur"
label=
"币种"
sortable
>
</el-table-column>
<el-table-column
prop=
"amt"
label=
"金额"
sortable
width=
"100"
>
</el-table-column>
</el-table>
<el-pagination
layout=
"prev, pager, next"
:total=
"pager.total"
>
</el-pagination>
</div>
</template>
<
script
>
import
CodeTable
from
"~/config/CodeTable"
import
Api
from
"~/service/Api"
export
default
{
props
:[
'todoType'
],
data
(){
return
{
codes
:{
oratyp
:
CodeTable
.
oratyp
,
},
todolist
:[],
pager
:{
total
:
0
,
curIdx
:
0
}
}
},
methods
:{
async
onOffpTodo
(){
let
rtnmsg
=
await
Api
.
post
(
"office/offp_todo"
,{
data
:{
'offp_todotyp'
:
this
.
todoType
}})
if
(
rtnmsg
.
code
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
todolist
=
rtnmsg
.
data
.
offp_todolst
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
},
mounted
(){
this
.
onOffpTodo
()
}
}
</
script
>
This diff is collapsed.
Click to expand it.
src/views/Business/Office/index.vue
View file @
3fd5fc77
This diff is collapsed.
Click to expand it.
src/views/Layout/Header.vue
View file @
3fd5fc77
<
template
>
<div
class=
"self-header"
>
<h2
class=
"self_header_label"
>
新一代
邮储
银行国际结算系统
</h2>
<h2
class=
"self_header_label"
>
新一代银行国际结算系统
</h2>
</div>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
src/views/Login/index.vue
View file @
3fd5fc77
<
template
>
<div
class=
"loginContainer"
>
<div
id=
"loginForamWrapper"
>
<h2>
欢迎
邮储
银行国际结算系统
</h2>
<h2>
欢迎银行国际结算系统
</h2>
<div
id=
"loginForm"
>
<p
style=
"text-align:left;font-size:1.2em;color:#888"
>
用户登录 / LOGIN IN
</p>
<el-form
:model=
"loginForm"
status-icon
:rules=
"rules"
ref=
"loginForm"
size=
"small"
>
...
...
@@ -23,6 +23,11 @@
</
template
>
<
script
>
import
{
createNamespacedHelpers
}
from
'vuex'
const
{
mapState
,
mapMutations
,
mapActions
}
=
createNamespacedHelpers
(
'UserContext'
)
export
default
{
data
()
{
return
{
...
...
@@ -44,6 +49,7 @@
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
setLoginInfo
({
userId
:
this
.
loginForm
.
username
})
this
.
$router
.
push
(
"/business/office"
);
}
else
{
console
.
log
(
'error submit!!'
);
...
...
@@ -53,7 +59,8 @@
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
}
},
...
mapMutations
([
"setLoginInfo"
])
}
}
</
script
>
...
...
This diff is collapsed.
Click to expand it.
webpack.config.js
View file @
3fd5fc77
...
...
@@ -58,11 +58,11 @@ module.exports = (options = {}) => ({
host
:
'127.0.0.1'
,
port
:
8010
,
proxy
:
{
'/
api
/'
:
{
target
:
'http://127.0.0.1:80
8
0'
,
'/
gjjs
/'
:
{
target
:
'http://127.0.0.1:80
7
0'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/
api'
:
'
'
'^/
gjjs'
:
'/gjjs
'
}
}
},
...
...
This diff is collapsed.
Click to expand it.
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