From 4641a877cd6a94e4d35dca7f7f14bc1443e2d2ad Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期二, 29 十一月 2022 17:59:55 +0800 Subject: [PATCH] 上传处置类型修改 --- src/components/Table/index.vue | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/Table/index.vue b/src/components/Table/index.vue index ca39951..ca943ee 100644 --- a/src/components/Table/index.vue +++ b/src/components/Table/index.vue @@ -4,9 +4,7 @@ <el-table ref="multipleTable" :data="tableData" style="width: 100%" :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}" :row-class-name="tableRowClassName"> - <el-table-column type="selection" :min-width="5"> - </el-table-column> - <el-table-column v-for="(item,idx) in option.group" :key="item.prop" :label="item.label" + <el-table-column v-for="item in option.group" :key="item.prop" :label="item.label" :prop="item.prop" :min-width="item['min-width'] ? item['item.min-width']:'10'"> <template slot-scope="scope"> <div v-if="item.type === 'text'"> @@ -17,7 +15,9 @@ </slot> <slot name="status" v-else-if="item.type === 'status'" :info="scope"> </slot> - <div class=""></div> + <slot name='time' v-else-if="item.type === 'time'" :timeobj="scope"> + + </slot> </template> </el-table-column> </el-table> @@ -118,12 +118,11 @@ methods: { // 璁剧疆琛ㄦ牸鏂戦┈绾� tableRowClassName({ row, rowIndex }) { - if ((rowIndex + 1) % 2 == 0) { + if ((rowIndex + 1) % 2 === 0) { return 'warning-row'; } else { return 'success-row'; } - return ''; }, // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠� changeCurrentPage(page) { -- Gitblit v1.8.0