Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-web-vue
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
isc-v3.1-tmp
isc-web-vue
Commits
0844be95
Commit
0844be95
authored
Oct 25, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化代码,去掉console
parent
4492e3e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
88 additions
and
100 deletions
+88
-100
index.js
src/page/Funds/Inffxd/event/index.js
+88
-100
No files found.
src/page/Funds/Inffxd/event/index.js
View file @
0844be95
...
@@ -4,9 +4,6 @@ import moment from "moment";
...
@@ -4,9 +4,6 @@ import moment from "moment";
export
default
{
export
default
{
methods
:
{
methods
:
{
async
handleSearch
()
{
async
handleSearch
()
{
console
.
log
(
"serach......"
);
console
.
log
(
this
.
activeTab
)
let
opndatfrom
=
this
.
model
.
infcon
.
opndatfrom
;
let
opndatfrom
=
this
.
model
.
infcon
.
opndatfrom
;
if
(
!
opndatfrom
||
opndatfrom
==
""
)
{
if
(
!
opndatfrom
||
opndatfrom
==
""
)
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
@@ -25,29 +22,25 @@ export default {
...
@@ -25,29 +22,25 @@ export default {
}
}
this
.
load
=
true
;
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/funds/fxtsel/list"
+
this
.
activeTab
,
{
let
rtnmsg
=
await
Api
.
post
(
"/funds/fxtsel/list"
+
this
.
activeTab
,
{
...
this
.
model
.
infcon
,
...
this
.
model
.
infcon
,
pageNumber
:
this
.
pagination
.
pageNumber
<=
0
?
1
:
this
.
pagination
.
pageNumber
,
pageNumber
:
this
.
pagination
.
pageNumber
<=
0
?
1
:
this
.
pagination
.
pageNumber
,
pageSize
:
this
.
pagination
.
pageSize
<=
0
?
10
:
this
.
pagination
.
pageSize
,
pageSize
:
this
.
pagination
.
pageSize
<=
0
?
10
:
this
.
pagination
.
pageSize
,
opndatfrom
:
moment
(
opndatfrom
).
format
(
"YYYY-MM-DD"
),
opndatfrom
:
moment
(
opndatfrom
).
format
(
"YYYY-MM-DD"
),
opndatto
:
moment
(
opndatto
).
format
(
"YYYY-MM-DD"
),
opndatto
:
moment
(
opndatto
).
format
(
"YYYY-MM-DD"
),
});
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
load
=
false
;
this
.
load
=
false
;
this
.
stmData
.
data
=
[];
this
.
stmData
.
data
=
[];
if
(
this
.
activeTab
===
"jsh"
)
{
if
(
this
.
activeTab
===
"jsh"
)
{
this
.
stmData
.
data
=
rtnmsg
.
data
.
list
;
this
.
stmData
.
data
=
rtnmsg
.
data
.
list
;
}
}
else
if
(
this
.
activeTab
===
"dhpp"
)
{
else
if
(
this
.
activeTab
===
"dhpp"
){
this
.
stmDataDh
.
data
=
rtnmsg
.
data
.
list
;
this
.
stmDataDh
.
data
=
rtnmsg
.
data
.
list
;
}
}
else
if
(
this
.
activeTab
===
"jshpp"
)
{
else
if
(
this
.
activeTab
===
"jshpp"
){
this
.
stmDatajshpp
.
data
=
rtnmsg
.
data
.
list
;
this
.
stmDatajshpp
.
data
=
rtnmsg
.
data
.
list
;
}
}
this
.
pagination
.
total
=
rtnmsg
.
data
.
total
;
this
.
pagination
.
total
=
rtnmsg
.
data
.
total
;
}
else
{
}
else
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
title
:
this
.
$t
(
"financing.错误"
),
...
@@ -82,54 +75,49 @@ export default {
...
@@ -82,54 +75,49 @@ export default {
},
},
//首字母大写
//首字母大写
toTitleCase
(
str
){
toTitleCase
(
str
)
{
return
str
.
charAt
(
0
).
toUpperCase
()
+
str
.
slice
(
1
).
toLowerCase
()
return
str
.
charAt
(
0
).
toUpperCase
()
+
str
.
slice
(
1
).
toLowerCase
();
},
},
// 处理
// 处理
async
handler
(
row
)
{
async
handler
(
row
)
{
this
.
handleModel
=
row
;
this
.
handleModel
=
row
;
this
.
trnUrl
=
'funds'
;
this
.
trnUrl
=
"funds"
;
this
.
inifrm
=
'fxtsel'
;
this
.
inifrm
=
"fxtsel"
;
this
.
initdialog
=
true
;
this
.
initdialog
=
true
;
},
},
//双击表格数据
//双击表格数据
async
TableDblRow
(
row
)
{
async
TableDblRow
(
row
)
{
this
.
handler
(
row
)
this
.
handler
(
row
);
},
},
//点击页签
//点击页签
async
handleClickTab
()
{
async
handleClickTab
()
{
switch
(
this
.
activeTab
)
{
switch
(
this
.
activeTab
)
{
case
'jsh'
:
case
"jsh"
:
this
.
titleNam
=
"结售汇交易列表"
this
.
titleNam
=
"结售汇交易列表"
;
break
;
break
;
case
'dhpp'
:
case
"dhpp"
:
this
.
titleNam
=
"外币兑换平盘交易列表"
this
.
titleNam
=
"外币兑换平盘交易列表"
;
break
;
break
;
default
:
default
:
this
.
titleNam
=
"交易列表"
this
.
titleNam
=
"交易列表"
;
break
;
break
;
}
}
},
},
//单击表格数据
//单击表格数据
TableRowClick
(
row
)
{
TableRowClick
(
row
)
{
this
[
'selectedModel'
+
this
.
toTitleCase
(
this
.
activeTab
)]
=
row
this
[
"selectedModel"
+
this
.
toTitleCase
(
this
.
activeTab
)]
=
row
;
},
},
changeOwnref
()
{},
async
handleClick
(
btn
,
row
)
{
changeOwnref
(){
},
async
handleClick
(
btn
,
row
)
{
this
.
routerPush
({
this
.
routerPush
({
path
:
"/business/"
+
btn
.
code
.
toLowerCase
(),
path
:
"/business/"
+
btn
.
code
.
toLowerCase
(),
query
:
{
inr
:
row
.
inr
,
pntinr
:
row
.
pntinr
}
query
:
{
inr
:
row
.
inr
,
pntinr
:
row
.
pntinr
},
});
});
this
.
initdialog
=
false
;
this
.
initdialog
=
false
;
},
},
...
@@ -147,73 +135,74 @@ export default {
...
@@ -147,73 +135,74 @@ export default {
},
},
//进入即期结汇交易
//进入即期结汇交易
toFxtssb
()
{
toFxtssb
()
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business/fxtssb'
,
path
:
"/business/fxtssb"
,
});
});
},
},
//进入即期售汇交易
//进入即期售汇交易
toFxtsss
()
{
toFxtsss
()
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business/fxtsss'
,
path
:
"/business/fxtsss"
,
});
});
},
},
//进入结售汇平盘登记交易
//进入结售汇平盘登记交易
toFxtlop
()
{
toFxtlop
()
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business/fxtlop'
,
path
:
"/business/fxtlop"
,
});
});
},
},
//进入外币兑换平盘登记交易
//进入外币兑换平盘登记交易
toFxtfop
()
{
toFxtfop
()
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business/fxtfop'
,
path
:
"/business/fxtfop"
,
});
});
},
},
// 详情
// 详情
async
details
(
row
)
{
async
details
(
row
)
{
const
params
=
{
const
params
=
{
ownref
:
row
.
ownref
,
ownref
:
row
.
ownref
,
shgref
:
row
.
shgref
?
row
.
shgref
.
trim
()
:
''
,
shgref
:
row
.
shgref
?
row
.
shgref
.
trim
()
:
""
,
};
};
const
res
=
await
Api
.
post
(
'/manager/trn/getTrnListByOwnref'
,
params
);
const
res
=
await
Api
.
post
(
"/manager/trn/getTrnListByOwnref"
,
params
);
if
(
res
.
respCode
===
SUCCESS
)
{
if
(
res
.
respCode
===
SUCCESS
)
{
if
(
res
.
data
.
length
===
1
)
{
if
(
res
.
data
.
length
===
1
)
{
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
])
{
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
])
{
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
}
}
this
.
display
(
res
.
data
[
0
])
this
.
display
(
res
.
data
[
0
]);
}
else
{
}
else
{
this
.
trnData
.
data
=
res
.
data
;
this
.
trnData
.
data
=
res
.
data
;
this
.
oldRefId
=
'popover_'
+
row
.
inr
this
.
oldRefId
=
"popover_"
+
row
.
inr
;
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
true
;
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
true
;
}
}
}
}
},
},
closeDisplayDialog
()
{
closeDisplayDialog
(){
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
])
{
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
]){
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
}
}
},
},
//Info
//Info
toInfo
(
row
,
objtyp
,
subobjtyp
){
toInfo
(
row
,
objtyp
,
subobjtyp
)
{
this
.
routerPush
({
this
.
routerPush
({
path
:
"/business/fxdinf"
,
path
:
"/business/fxdinf"
,
query
:
{
inr
:
row
.
inr
,
objtyp
:
objtyp
,
pntinr
:
row
.
pntinr
,
subobjtyp
:
subobjtyp
}
query
:
{
inr
:
row
.
inr
,
objtyp
:
objtyp
,
pntinr
:
row
.
pntinr
,
subobjtyp
:
subobjtyp
,
},
});
});
},
},
// 关闭详情弹框
// 关闭详情弹框
closeDetailsDialog
(
refId
)
{
closeDetailsDialog
(
refId
)
{
if
(
refId
&&
this
.
$refs
[
refId
])
{
if
(
refId
&&
this
.
$refs
[
refId
])
{
this
.
$refs
[
refId
].
showPopper
=
false
;
this
.
$refs
[
refId
].
showPopper
=
false
;
}
}
},
},
// 关闭处理弹框
// 关闭处理弹框
...
@@ -221,89 +210,88 @@ toFxtfop() {
...
@@ -221,89 +210,88 @@ toFxtfop() {
this
.
initdialog
=
false
;
this
.
initdialog
=
false
;
},
},
/**
/**
* 打开详情页面
* 打开详情页面
* @param row
* @param row
*/
*/
display
(
row
)
{
display
(
row
)
{
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
])
{
if
(
this
.
oldRefId
&&
this
.
$refs
[
this
.
oldRefId
])
{
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
this
.
$refs
[
this
.
oldRefId
].
showPopper
=
false
;
}
}
// 历史快照
// 历史快照
if
(
row
.
inr
.
length
==
8
)
{
if
(
row
.
inr
.
length
==
8
)
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business/HistoryRecord'
,
path
:
"/business/HistoryRecord"
,
query
:
{
query
:
{
businessInr
:
row
.
inr
,
businessInr
:
row
.
inr
,
businessType
:
'TRN'
,
businessType
:
"TRN"
,
type
:
'view'
type
:
"view"
,
}
},
})
});
}
else
if
(
row
.
inr
.
length
==
16
)
{
}
else
if
(
row
.
inr
.
length
==
16
)
{
this
.
routerPush
({
this
.
routerPush
({
path
:
`/display/
${
row
.
inifrm
.
toLowerCase
()}
`
,
path
:
`/display/
${
row
.
inifrm
.
toLowerCase
()}
`
,
query
:
{
query
:
{
businessInr
:
row
.
inr
,
businessInr
:
row
.
inr
,
businessType
:
'TRN'
businessType
:
"TRN"
,
}
},
});
});
}
}
},
},
checkData
(
row
)
{
checkData
(
row
)
{
this
.
routerPush
({
this
.
routerPush
({
path
:
'/business-new/litdck'
,
path
:
"/business-new/litdck"
,
query
:
{
query
:
{
inr
:
this
.
handleModel
.
inr
,
brdinr
:
row
.
inr
inr
:
this
.
handleModel
.
inr
,
}
brdinr
:
row
.
inr
,
},
});
});
this
.
litdckdialog
=
false
this
.
litdckdialog
=
false
;
this
.
$options
.
methods
.
closeHandlerDialog
.
call
(
this
);
this
.
$options
.
methods
.
closeHandlerDialog
.
call
(
this
);
},
},
//修改弹窗状态
//修改弹窗状态
changeBtn
(
isVisible
)
{
changeBtn
(
isVisible
)
{
this
.
initdialog
=
isVisible
;
this
.
initdialog
=
isVisible
;
},
},
//获取码表数据
//获取码表数据
getCodeTable
(
tbl
,
uil
,
value
)
{
getCodeTable
(
tbl
,
uil
,
value
)
{
if
(
uil
)
{
if
(
uil
)
{
uil
=
'EN'
uil
=
"EN"
;
}
}
let
localCodes
=
localStorage
.
getItem
(
'localCodes'
);
let
localCodes
=
localStorage
.
getItem
(
"localCodes"
);
if
(
localCodes
)
{
if
(
localCodes
)
{
let
codeobj
=
JSON
.
parse
(
localCodes
)[
tbl
+
'_'
+
uil
+
'_COD'
];
let
codeobj
=
JSON
.
parse
(
localCodes
)[
tbl
+
"_"
+
uil
+
"_COD"
];
if
(
codeobj
)
{
if
(
codeobj
)
{
let
codeobj
=
codeobj
.
filter
(
m
=>
m
.
value
===
value
);
let
codeobj
=
codeobj
.
filter
(
(
m
)
=>
m
.
value
===
value
);
return
codeobj
?
codeobj
.
label
:
value
;
return
codeobj
?
codeobj
.
label
:
value
;
}
else
{
}
else
{
return
value
;
return
value
;
}
}
}
else
{
}
else
{
return
value
;
return
value
;
}
}
},
},
//获取码表数据
//获取码表数据
getCodelabel
(
value
,
codenam
)
{
getCodelabel
(
value
,
codenam
)
{
const
codeobj
=
this
.
model
.
dbCodes
[
codenam
].
find
(
obj
=>
obj
.
value
===
value
)
const
codeobj
=
this
.
model
.
dbCodes
[
codenam
].
find
(
(
obj
)
=>
obj
.
value
===
value
);
return
codeobj
?
codeobj
.
label
:
value
;
return
codeobj
?
codeobj
.
label
:
value
;
},
},
async
getdbCode
(
codeType
,
uil
,
codeNam
)
{
async
getdbCode
(
codeType
,
uil
,
codeNam
)
{
let
params
=
{
let
params
=
{
codeType
:
codeType
,
codeType
:
codeType
,
uil
:
uil
?
uil
:
'EN'
uil
:
uil
?
uil
:
"EN"
,
}
};
let
rtnmsg
=
await
Api
.
post
(
"/manager/dic/listDicInfo"
,
params
)
let
rtnmsg
=
await
Api
.
post
(
"/manager/dic/listDicInfo"
,
params
);
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
curList
=
rtnmsg
.
data
.
map
(
item
=>
({
let
curList
=
rtnmsg
.
data
.
map
((
item
)
=>
({
value
:
item
.
codeValue
,
value
:
item
.
codeValue
,
label
:
item
.
codeName
label
:
item
.
codeName
,
}));
}));
this
.
model
.
dbCodes
[
codeNam
]
=
curList
this
.
model
.
dbCodes
[
codeNam
]
=
curList
;
}
}
},
},
},
},
};
};
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