From 0747a32003b83a155466496d18f7dddf6f800436 Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期五, 11 八月 2023 17:49:33 +0800 Subject: [PATCH] Crunchy-08/11下班 --- src/components/view/raw-ins.vue | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/view/raw-ins.vue b/src/components/view/raw-ins.vue index 5f3117b..ed319c6 100644 --- a/src/components/view/raw-ins.vue +++ b/src/components/view/raw-ins.vue @@ -1,5 +1,7 @@ <style scoped> - .raw_ins {} + .raw_ins { + height: 100%; + } .raw_ins .title .el-button { height: 32px; @@ -80,7 +82,7 @@ <el-row> <el-col :span="12" style="line-height: 32px;">鍘熸潗鏂欐楠�</el-col> <el-col :span="12" style="text-align: right;"> - <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">鏂板</el-button> + <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="goDetail(null)">鏂板</el-button> <el-button icon="el-icon-download">鍒犻櫎</el-button> </el-col> </el-row> @@ -110,7 +112,7 @@ </div> <div class="thing"> <el-table :data="tableData" border style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)" - max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" border default-expand-all + max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}" row-key="id"> <el-table-column type="selection" width="50"> </el-table-column> @@ -146,7 +148,7 @@ </el-table-column> <el-table-column label="鎿嶄綔" width="100"> <template slot-scope="scope"> - <span class="table_do">鏌ョ湅</span> + <span class="table_do" @click="changeShowDetail(scope.row)">鏌ョ湅</span> <span class="table_do">鎵撳嵃</span> </template> </el-table-column> @@ -178,6 +180,7 @@ pageSize: 10 } }, + props:['goDetail'], mounted() { this.selectRawInspectsList() }, @@ -218,6 +221,13 @@ judgeState: 2 }, this.selectRawInspectsList() + }, + changeShowDetail({id}){ + this.goDetail(id) + // console.log(id) + // const res = await this.$axios.post(this.$api.url.selectRawInspectsListById,{params:{id}}) + // console.log(res) + } } } -- Gitblit v1.9.3