🦄 refactor: 封装统一表格组件,便于批量扩展表格能力
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" fit :data="modelList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" fit :data="modelList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="模型标识" align="center" prop="modelKey" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="模型名称" align="center" :show-overflow-tooltip="true">
|
||||
@@ -143,7 +143,7 @@
|
||||
</el-dropdown>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
@@ -224,7 +224,7 @@
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="模型历史" :visible.sync="history.open" width="70%" >
|
||||
<el-table v-loading="history.loading" fit :data="historyList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="history.loading" fit :data="historyList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="模型标识" align="center" prop="modelKey" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="模型名称" align="center" :show-overflow-tooltip="true">
|
||||
@@ -260,7 +260,7 @@
|
||||
>设为最新</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="historyTotal > 0"
|
||||
|
||||
Reference in New Issue
Block a user