From 8f7e8efc981cf68a3067fb3421fdfbbf6f6275ab Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 23 八月 2022 11:48:31 +0800 Subject: [PATCH] 合并主线 --- web_src/src/components/CloudRecord.vue | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/web_src/src/components/CloudRecord.vue b/web_src/src/components/CloudRecord.vue index 1d0819b..73f20c1 100644 --- a/web_src/src/components/CloudRecord.vue +++ b/web_src/src/components/CloudRecord.vue @@ -18,19 +18,17 @@ <div v-if="!recordDetail"> <!--璁惧鍒楄〃--> - <el-table :data="recordList" border style="width: 100%" :height="winHeight"> - <el-table-column prop="app" label="搴旂敤鍚�" align="center"> + <el-table :data="recordList" style="width: 100%" :height="winHeight"> + <el-table-column prop="app" label="搴旂敤鍚�" > </el-table-column> - <el-table-column prop="stream" label="娴両D" align="center"> + <el-table-column prop="stream" label="娴両D" > </el-table-column> - <el-table-column prop="time" label="鏃堕棿" align="center"> + <el-table-column prop="time" label="鏃堕棿" > </el-table-column> - <el-table-column label="鎿嶄綔" width="360" align="center" fixed="right"> + <el-table-column label="鎿嶄綔" width="360" fixed="right"> <template slot-scope="scope"> - <el-button-group> - <el-button size="mini" icon="el-icon-video-camera-solid" type="primary" @click="showRecordDetail(scope.row)">鏌ョ湅</el-button> - <!-- <el-button size="mini" icon="el-icon-delete" type="danger" @click="deleteRecord(scope.row)">鍒犻櫎</el-button>--> - </el-button-group> + <el-button size="medium" icon="el-icon-folder-opened" type="text" @click="showRecordDetail(scope.row)">鏌ョ湅</el-button> + <!-- <el-button size="mini" icon="el-icon-delete" type="danger" @click="deleteRecord(scope.row)">鍒犻櫎</el-button>--> </template> </el-table-column> </el-table> @@ -127,8 +125,10 @@ } }).then(function (res) { console.log(res) - that.total = res.data.data.total; - that.recordList = res.data.data.list; + if (res.data.code === 0) { + that.total = res.data.data.total; + that.recordList = res.data.data.list; + } that.loading = false; }).catch(function (error) { console.log(error); @@ -176,8 +176,10 @@ } }).then(function (res) { console.log(res) - that.total = res.data.data.total; - that.recordList = res.data.data.list; + if (res.data.code === 0) { + that.total = res.data.data.total; + that.recordList = res.data.data.list; + } }).catch(function (error) { console.log(error); }); -- Gitblit v1.8.0