Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
黄营
datax-cloud
Commits
c94ec921
Commit
c94ec921
authored
Aug 10, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
8edecfa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
26 deletions
+32
-26
DataApiCall.vue
datax-ui/src/views/market/dataapi/DataApiCall.vue
+32
-26
No files found.
datax-ui/src/views/market/dataapi/DataApiCall.vue
View file @
c94ec921
...
@@ -118,33 +118,36 @@
...
@@ -118,33 +118,36 @@
<el-divider
content-position=
"left"
>
返回数据
</el-divider>
<el-divider
content-position=
"left"
>
返回数据
</el-divider>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-table
:data=
"callData.dataList"
stripe
border
<div
v-if=
"apiExecuting"
>
:max-height=
"200"
<el-table
:data=
"callData.dataList"
stripe
border
style=
"width: 100%; margin: 15px 0;"
>
:max-height=
"200"
<el-table-column
label=
"序号"
align=
"center"
>
style=
"width: 100%; margin: 15px 0;"
>
<
template
slot-scope=
"scope"
>
<el-table-column
label=
"序号"
align=
"center"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<
template
v-for=
"(column, index) in callData.columnList"
>
<el-table-column
:prop=
"column"
:label=
"column"
:key=
"index"
align=
"center"
show-overflow-tooltip
/>
</
template
>
</
template
>
</el-table-column>
</el-table>
<
template
v-for=
"(column, index) in callData.columnList"
>
<el-pagination
<el-table-column
:page-sizes=
"[10, 20, 50, 100]"
:prop=
"column"
layout=
"total, sizes, prev, pager, next, jumper"
:label=
"column"
@
size-change=
"handleSizeChange"
:key=
"index"
@
current-change=
"handleCurrentChange"
align=
"center"
:current-page
.
sync=
"callData.pageNum"
show-overflow-tooltip
:page-size
.
sync=
"callData.pageSize"
/>
:total=
"callData.dataTotal"
</
template
>
></el-pagination>
</el-table>
</div>
<el-pagination
<div
v-else
>
暂无数据
</div>
:page-sizes=
"[10, 20, 50, 100]"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"callData.pageNum"
:page-size
.
sync=
"callData.pageSize"
:total=
"callData.dataTotal"
></el-pagination>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
...
@@ -189,6 +192,7 @@ export default {
...
@@ -189,6 +192,7 @@ export default {
whereTypeOptions
:
[],
whereTypeOptions
:
[],
// 参数类型数据字典
// 参数类型数据字典
paramTypeOptions
:
[],
paramTypeOptions
:
[],
apiExecuting
:
false
,
callData
:
{
callData
:
{
dataList
:
[],
dataList
:
[],
columnList
:
[],
columnList
:
[],
...
@@ -267,6 +271,7 @@ export default {
...
@@ -267,6 +271,7 @@ export default {
this
.
callData
.
dataList
=
dataList
this
.
callData
.
dataList
=
dataList
this
.
callData
.
columnList
=
columnList
this
.
callData
.
columnList
=
columnList
this
.
callData
.
dataTotal
=
data
.
total
this
.
callData
.
dataTotal
=
data
.
total
this
.
apiExecuting
=
true
}
}
})
})
}
else
if
(
this
.
form
.
reqMethod
===
'POST'
)
{
}
else
if
(
this
.
form
.
reqMethod
===
'POST'
)
{
...
@@ -281,6 +286,7 @@ export default {
...
@@ -281,6 +286,7 @@ export default {
this
.
callData
.
dataList
=
dataList
this
.
callData
.
dataList
=
dataList
this
.
callData
.
columnList
=
columnList
this
.
callData
.
columnList
=
columnList
this
.
callData
.
dataTotal
=
data
.
total
this
.
callData
.
dataTotal
=
data
.
total
this
.
apiExecuting
=
true
}
}
})
})
}
}
...
...
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