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
6899907e
Commit
6899907e
authored
Feb 02, 2023
by
FuYuXi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.xrt更新
parent
a595baf3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
40 deletions
+23
-40
xrt.js
src/service/test/xrt.js
+1
-1
XrtInfo.vue
src/views/Statics/Dblxrt/XrtInfo.vue
+13
-33
index.vue
src/views/Statics/Dblxrt/index.vue
+4
-1
Infsea.vue
src/views/Statics/Infxrt/Infsea.vue
+5
-5
No files found.
src/service/test/xrt.js
View file @
6899907e
...
...
@@ -21,6 +21,6 @@ export function deleteById(data) {
}
export
function
queryByCUR
(
data
){
return
Api
.
post
(
"/manager/xrt/
edit
"
,
data
)
return
Api
.
post
(
"/manager/xrt/
queryByCUR
"
,
data
)
}
src/views/Statics/Dblxrt/XrtInfo.vue
View file @
6899907e
...
...
@@ -2,42 +2,36 @@
<div
class=
"eibs-tab"
>
<c-col
:span=
"16"
class=
"col-left"
v-if=
"type != 'add'"
>
<!-- 绑定的数据 -->
<
!--
<
el-table
:data=
"
table
Data"
<el-table
:data=
"
xrtCUR
Data"
style=
"width: 100%"
:default-sort =
"
{prop: 'date', order: 'descending'}"
>
<!--:default-sort = "
{prop: 'date', order: 'descending'}"-->
<el-table-column
prop=
"
model.
"
prop=
"
xrttim
"
label=
"日末牌价"
width=
""
>
width=
"
auto
"
>
</el-table-column>
<el-table-column
prop=
"
date
"
prop=
"
midrat
"
label=
"中间汇率"
sortable
width=
"
100px
"
>
width=
"
auto
"
>
</el-table-column>
<el-table-column
prop=
"
name
"
prop=
"
selrat
"
label=
"卖出汇率"
sortable
width=
"
100px
"
>
width=
"
auto
"
>
</el-table-column>
<el-table-column
prop=
"
name
"
prop=
"
buyrat
"
label=
"买入汇率"
sortable
width=
"
100px
"
>
width=
"
aoto
"
>
</el-table-column>
</el-table>
-->
<c-paging-table
:data=
"xrtCURData"
:columns=
"xrtCURColumns"
v-on:queryFunc=
"queryFunc"
:border=
"true"
>
</c-paging-table>
</el-table>
</c-col>
<c-col
:span=
"8"
class=
"col-right"
>
<el-form-item
label=
"货币名称"
prop=
"cur"
v-if=
"type == 'add'"
>
...
...
@@ -90,7 +84,6 @@
<
script
>
import
codes
from
"~/config/CodeTable"
;
import
{
queryByCUR
}
from
"~/service/test/xrt.js"
;
export
default
{
name
:
""
,
...
...
@@ -99,25 +92,12 @@ export default {
data
()
{
return
{
xrtCURData
:
[],
xrtCURColumns
:
[
{
label
:
'货币名称'
,
prop
:
'cur'
,
width
:
'120'
},
{
label
:
'日期时间'
,
prop
:
'xrttim'
,
width
:
'120'
},
{
label
:
'中间汇率'
,
prop
:
'midrat'
,
width
:
'120'
},
{
label
:
'买入汇率'
,
prop
:
'buyrat'
,
width
:
'120'
},
{
label
:
'卖出汇率'
,
prop
:
'selrat'
,
width
:
'120'
},
],
};
},
methods
:
{
getCodesByKey
(
key
)
{
return
codes
[
key
]
??
[];
},
queryFunc
(){
queryByCUR
(
this
.
model
).
then
(
res
=>
{
console
.
log
(
res
)
})
}
},
};
</
script
>
...
...
src/views/Statics/Dblxrt/index.vue
View file @
6899907e
...
...
@@ -6,7 +6,7 @@
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
>
<el-tab-pane
label=
"具体牌价信息"
name=
"xrt"
>
<c-content>
<m-xrt-info
:model=
"model"
:type=
"type"
/>
<m-xrt-info
ref=
"xrt"
:model=
"model"
:type=
"type"
/>
</c-content>
</el-tab-pane>
</c-tabs>
...
...
@@ -67,6 +67,9 @@ export default {
queryById
(
params
).
then
((
res
)
=>
{
if
(
res
.
inr
)
{
this
.
model
=
res
;
queryByCUR
(
this
.
model
).
then
(
res
=>
{
this
.
$refs
.
xrt
.
xrtCURData
=
res
;
})
}
else
{
this
.
$message
.
error
(
"该信息不存在"
)
}
...
...
src/views/Statics/Infxrt/Infsea.vue
View file @
6899907e
...
...
@@ -114,11 +114,11 @@ export default {
return
{
xrtData
:
[],
xrtColumns
:
[
{
label
:
'货币名称'
,
prop
:
'cur'
,
width
:
'
120
'
},
{
label
:
'日期时间'
,
prop
:
'xrttim'
,
width
:
'
120
'
},
{
label
:
'中间汇率'
,
prop
:
'midrat'
,
width
:
'
120
'
},
{
label
:
'买入汇率'
,
prop
:
'buyrat'
,
width
:
'
120
'
},
{
label
:
'卖出汇率'
,
prop
:
'selrat'
,
width
:
'
120
'
},
{
label
:
'货币名称'
,
prop
:
'cur'
,
width
:
'
auto
'
},
{
label
:
'日期时间'
,
prop
:
'xrttim'
,
width
:
'
auto
'
},
{
label
:
'中间汇率'
,
prop
:
'midrat'
,
width
:
'
auto
'
},
{
label
:
'买入汇率'
,
prop
:
'buyrat'
,
width
:
'
auto
'
},
{
label
:
'卖出汇率'
,
prop
:
'selrat'
,
width
:
'
auto
'
},
],
};
},
...
...
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