|
@@ -1,28 +1,17 @@
|
|
|
<template>
|
|
|
- <!-- 表格 公共组件 包含表格上面的搜索栏 表头 操作栏 都是自定义的 -->
|
|
|
- <div>
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="data"
|
|
|
- style="width: 100%"
|
|
|
- :header-cell-style="{'color':'rgba(74,74,74,1)','font-size':'14px','font-weight':'500' }"
|
|
|
- :cell-style="{ 'font-size':'14px','color':'rgba(102,102,102,1)' }"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
- <el-table-column v-if="isShowSelect" type="selection" width="55" />
|
|
|
- <el-table-column v-for="obj in tableConfiguration" :key="obj.key" :prop="obj.prop" :label="obj.label" :min-width="obj.width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <slot name="specialItem" :row="scope.row" :column="obj.prop" :type="obj.type" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column v-if="isShowOperate" fixed="right" label="操作" align="center" :min-width="operateWidth">
|
|
|
- <template slot-scope="scope">
|
|
|
- <slot name="operateBox" :row="scope.row" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
+ <el-table v-loading="loading" :data="data" style="width: 100%" :header-cell-style="{'color':'rgba(74,74,74,1)','font-size':'14px','font-weight':'500' }" :cell-style="{ 'font-size':'14px','color':'rgba(102,102,102,1)' }" :show-overflow-tooltip="true" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column v-if="isShowSelect" type="selection" width="55" />
|
|
|
+ <el-table-column v-for="obj in tableConfiguration" :key="obj.key" :prop="obj.prop" :label="obj.label" :min-width="obj.width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <slot name="specialItem" :row="scope.row" :column="obj.prop" :type="obj.type" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column v-if="isShowOperate" fixed="right" label="操作" align="center" :min-width="operateWidth">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <slot name="operateBox" :row="scope.row" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</template>
|
|
|
|
|
|
<script>
|