Commit c94ec921 by yuwei

项目初始化

parent 8edecfa3
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
<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">
<div v-if="apiExecuting">
<el-table :data="callData.dataList" stripe border <el-table :data="callData.dataList" stripe border
:max-height="200" :max-height="200"
style="width: 100%; margin: 15px 0;"> style="width: 100%; margin: 15px 0;">
...@@ -145,6 +146,8 @@ ...@@ -145,6 +146,8 @@
:page-size.sync="callData.pageSize" :page-size.sync="callData.pageSize"
:total="callData.dataTotal" :total="callData.dataTotal"
></el-pagination> ></el-pagination>
</div>
<div v-else>暂无数据</div>
</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
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment