| @@ -70,10 +70,6 @@ limitations under the License. | |||||
| @contextmenu.prevent="rightClick(scope.row, $event, 0)" | @contextmenu.prevent="rightClick(scope.row, $event, 0)" | ||||
| @click.stop="goToSaliencyMap(scope.row)"> | @click.stop="goToSaliencyMap(scope.row)"> | ||||
| {{$t('explain.title')}} </span> | {{$t('explain.title')}} </span> | ||||
| <!-- <span class="menu-item operate-btn" | |||||
| @contextmenu.prevent="rightClick(scope.row, $event, 1)" | |||||
| @click.stop="goToConterfactualinterpretation(scope.row)"> | |||||
| {{$t('explain.conterfactualInterpretation')}} </span> --> | |||||
| </template> | </template> | ||||
| </el-table-column> | </el-table-column> | ||||
| </el-table> | </el-table> | ||||
| @@ -83,8 +79,10 @@ limitations under the License. | |||||
| <!-- outer Page --> | <!-- outer Page --> | ||||
| <div class="pagination-content"> | <div class="pagination-content"> | ||||
| <el-pagination @current-change="currentPageChange" | <el-pagination @current-change="currentPageChange" | ||||
| @size-change="currentPagesizeChange" | |||||
| :current-page="pagination.currentPage" | :current-page="pagination.currentPage" | ||||
| :page-size="pagination.pageSize" | :page-size="pagination.pageSize" | ||||
| :page-sizes="pagination.pageSizes" | |||||
| :layout="pagination.layout" | :layout="pagination.layout" | ||||
| :total="pagination.total" | :total="pagination.total" | ||||
| class="page"> | class="page"> | ||||
| @@ -113,9 +111,10 @@ export default { | |||||
| summaryList: [], | summaryList: [], | ||||
| pagination: { | pagination: { | ||||
| currentPage: 1, | currentPage: 1, | ||||
| pageSize: 16, | |||||
| pageSize: 20, | |||||
| pageSizes: [10, 20, 50], | |||||
| total: 0, | total: 0, | ||||
| layout: 'total, prev, pager, next, jumper', | |||||
| layout: 'total, sizes, prev, pager, next, jumper', | |||||
| }, | }, | ||||
| contextMenu: { | contextMenu: { | ||||
| show: false, | show: false, | ||||
| @@ -203,6 +202,14 @@ export default { | |||||
| this.loading = false; | this.loading = false; | ||||
| }); | }); | ||||
| }, | }, | ||||
| currentPagesizeChange(pageSize) { | |||||
| this.pagination.pageSize = pageSize; | |||||
| const params = { | |||||
| offset: this.pagination.currentPage - 1, | |||||
| limit: this.pagination.pageSize, | |||||
| }; | |||||
| this.querySummaryList(params); | |||||
| }, | |||||
| currentPageChange(currentPage) { | currentPageChange(currentPage) { | ||||
| this.pagination.currentPage = currentPage; | this.pagination.currentPage = currentPage; | ||||
| const params = { | const params = { | ||||
| @@ -114,8 +114,10 @@ limitations under the License. | |||||
| </el-table> | </el-table> | ||||
| <el-pagination :current-page="props.row.opDetailPage.offset + 1" | <el-pagination :current-page="props.row.opDetailPage.offset + 1" | ||||
| :page-size="props.row.opDetailPage.limit" | :page-size="props.row.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opDetailPageChange(props.row, ...args)}" | @current-change="(...args)=>{opDetailPageChange(props.row, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opDetailPageSizeChange(props.row, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="props.row.pageTotal"> | :total="props.row.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| <div class="clear"></div> | <div class="clear"></div> | ||||
| @@ -162,8 +164,10 @@ limitations under the License. | |||||
| v-if="opAllTypeList.opDetailList.length" | v-if="opAllTypeList.opDetailList.length" | ||||
| :current-page="opAllTypeList.opDetailPage.offset + 1" | :current-page="opAllTypeList.opDetailPage.offset + 1" | ||||
| :page-size="opAllTypeList.opDetailPage.limit" | :page-size="opAllTypeList.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opDetailPageChange(opAllTypeList, ...args)}" | @current-change="(...args)=>{opDetailPageChange(opAllTypeList, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opDetailPageSizeChange(opAllTypeList, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="opAllTypeList.pageTotal"> | :total="opAllTypeList.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| </div> | </div> | ||||
| @@ -244,8 +248,10 @@ limitations under the License. | |||||
| <el-pagination v-if="coreList.opDetailList.length" | <el-pagination v-if="coreList.opDetailList.length" | ||||
| :current-page="coreList.opDetailPage.offset + 1" | :current-page="coreList.opDetailPage.offset + 1" | ||||
| :page-size="coreList.opDetailPage.limit" | :page-size="coreList.opDetailPage.limit" | ||||
| @current-change="(...args)=>{opCorePageChange(coreList, ...args)}" | |||||
| layout="total, prev, pager, next, jumper" | |||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="opCorePageChange" | |||||
| @size-change="opCorePageSizeChange" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="coreList.pageTotal"> | :total="coreList.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| </div> | </div> | ||||
| @@ -296,7 +302,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: { | op_sort_condition: { | ||||
| @@ -310,7 +316,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: {}, | op_sort_condition: {}, | ||||
| @@ -465,7 +471,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: { | op_sort_condition: { | ||||
| @@ -493,7 +499,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: {}, | op_sort_condition: {}, | ||||
| @@ -529,7 +535,7 @@ export default { | |||||
| opDetailCol: [], | opDetailCol: [], | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| pageTotal: 0, | pageTotal: 0, | ||||
| op_filter_condition: { | op_filter_condition: { | ||||
| @@ -705,12 +711,30 @@ export default { | |||||
| this.getOperatorDetailList(row, false); | this.getOperatorDetailList(row, false); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Core list page change | |||||
| * Operator detail list page size change | |||||
| * @param {Object} row table cell | * @param {Object} row table cell | ||||
| * @param {Number} pageSize current page | |||||
| */ | |||||
| opDetailPageSizeChange(row, pageSize) { | |||||
| row.opDetailPage.offset = 0; | |||||
| row.opDetailPage.limit = pageSize; | |||||
| this.getOperatorDetailList(row, false); | |||||
| }, | |||||
| /** | |||||
| * Core list page change | |||||
| * @param {Number} pageIndex current page | * @param {Number} pageIndex current page | ||||
| */ | */ | ||||
| opCorePageChange(row, pageIndex) { | |||||
| row.opDetailPage.offset = pageIndex - 1; | |||||
| opCorePageChange(pageIndex) { | |||||
| this.coreList.opDetailPage.offset = pageIndex - 1; | |||||
| this.getCoreList(false); | |||||
| }, | |||||
| /** | |||||
| * Core list page size change | |||||
| * @param {Number} pageSize current page size | |||||
| */ | |||||
| opCorePageSizeChange(pageSize) { | |||||
| this.coreList.opDetailPage.offset = 0; | |||||
| this.coreList.opDetailPage.limit = pageSize; | |||||
| this.getCoreList(false); | this.getCoreList(false); | ||||
| }, | }, | ||||
| /** | /** | ||||
| @@ -113,8 +113,10 @@ limitations under the License. | |||||
| </el-table> | </el-table> | ||||
| <el-pagination :current-page="props.row.opDetailPage.offset + 1" | <el-pagination :current-page="props.row.opDetailPage.offset + 1" | ||||
| :page-size="props.row.opDetailPage.limit" | :page-size="props.row.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opDetailPageChange(props.row, ...args)}" | @current-change="(...args)=>{opDetailPageChange(props.row, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opDetailPageSizeChange(props.row, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="props.row.pageTotal"> | :total="props.row.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| <div class="clear"></div> | <div class="clear"></div> | ||||
| @@ -160,8 +162,10 @@ limitations under the License. | |||||
| v-if="opAllTypeList.opDetailList.length" | v-if="opAllTypeList.opDetailList.length" | ||||
| :current-page="opAllTypeList.opDetailPage.offset + 1" | :current-page="opAllTypeList.opDetailPage.offset + 1" | ||||
| :page-size="opAllTypeList.opDetailPage.limit" | :page-size="opAllTypeList.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opDetailPageChange(opAllTypeList, ...args)}" | @current-change="(...args)=>{opDetailPageChange(opAllTypeList, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opDetailPageSizeChange(opAllTypeList, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="opAllTypeList.pageTotal"> | :total="opAllTypeList.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| </div> | </div> | ||||
| @@ -268,8 +272,10 @@ limitations under the License. | |||||
| </el-table> | </el-table> | ||||
| <el-pagination :current-page="props.row.opDetailPage.offset + 1" | <el-pagination :current-page="props.row.opDetailPage.offset + 1" | ||||
| :page-size="props.row.opDetailPage.limit" | :page-size="props.row.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opCpuDetailPageChange(props.row, ...args)}" | @current-change="(...args)=>{opCpuDetailPageChange(props.row, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opCpuDetailPageSizeChange(props.row, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="props.row.pageTotal"> | :total="props.row.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| <div class="clear"></div> | <div class="clear"></div> | ||||
| @@ -310,11 +316,13 @@ limitations under the License. | |||||
| </el-table-column> | </el-table-column> | ||||
| </el-table> | </el-table> | ||||
| <el-pagination v-show="cpuStatisticType" | <el-pagination v-show="cpuStatisticType" | ||||
| v-if="opCpuAllTypeList.opDetailList.length" | |||||
| v-if="opCpuAllTypeList.opDetailList.length" | |||||
| :current-page="opCpuAllTypeList.opDetailPage.offset + 1" | :current-page="opCpuAllTypeList.opDetailPage.offset + 1" | ||||
| :page-size="opCpuAllTypeList.opDetailPage.limit" | :page-size="opCpuAllTypeList.opDetailPage.limit" | ||||
| :page-sizes="[10, 20, 50]" | |||||
| @current-change="(...args)=>{opCpuDetailPageChange(opCpuAllTypeList, ...args)}" | @current-change="(...args)=>{opCpuDetailPageChange(opCpuAllTypeList, ...args)}" | ||||
| layout="total, prev, pager, next, jumper" | |||||
| @size-change="(...args)=>{opCpuDetailPageSizeChange(opCpuAllTypeList, ...args)}" | |||||
| layout="total, sizes, prev, pager, next, jumper" | |||||
| :total="opCpuAllTypeList.pageTotal"> | :total="opCpuAllTypeList.pageTotal"> | ||||
| </el-pagination> | </el-pagination> | ||||
| </div> | </div> | ||||
| @@ -393,7 +401,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: { | op_sort_condition: { | ||||
| @@ -407,7 +415,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: {}, | op_sort_condition: {}, | ||||
| @@ -555,7 +563,10 @@ export default { | |||||
| this.$nextTick(() => { | this.$nextTick(() => { | ||||
| const item = this.$refs['expandCpuChild']; | const item = this.$refs['expandCpuChild']; | ||||
| if (item && this.curCpuActiveRow.rowItem) { | if (item && this.curCpuActiveRow.rowItem) { | ||||
| item.sort(this.curCpuActiveRow.childProp, this.curCpuActiveRow.childOrder); | |||||
| item.sort( | |||||
| this.curCpuActiveRow.childProp, | |||||
| this.curCpuActiveRow.childOrder, | |||||
| ); | |||||
| } | } | ||||
| }); | }); | ||||
| }, | }, | ||||
| @@ -578,7 +589,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: {}, | op_sort_condition: {}, | ||||
| @@ -603,7 +614,7 @@ export default { | |||||
| pageTotal: 0, | pageTotal: 0, | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| op_filter_condition: {}, | op_filter_condition: {}, | ||||
| op_sort_condition: {}, | op_sort_condition: {}, | ||||
| @@ -639,7 +650,7 @@ export default { | |||||
| opDetailCol: [], | opDetailCol: [], | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| pageTotal: 0, | pageTotal: 0, | ||||
| op_filter_condition: { | op_filter_condition: { | ||||
| @@ -778,7 +789,7 @@ export default { | |||||
| opDetailCol: [], | opDetailCol: [], | ||||
| opDetailPage: { | opDetailPage: { | ||||
| offset: 0, | offset: 0, | ||||
| limit: 15, | |||||
| limit: 10, | |||||
| }, | }, | ||||
| pageTotal: 0, | pageTotal: 0, | ||||
| op_filter_condition: { | op_filter_condition: { | ||||
| @@ -809,10 +820,7 @@ export default { | |||||
| this.cpuCharts.device_id = this.currentCard; | this.cpuCharts.device_id = this.currentCard; | ||||
| this.cpuCharts.data = []; | this.cpuCharts.data = []; | ||||
| res.data.object.forEach((k) => { | res.data.object.forEach((k) => { | ||||
| if ( | |||||
| this.cpuCharts.data && | |||||
| this.cpuCharts.data.length < 19 | |||||
| ) { | |||||
| if (this.cpuCharts.data && this.cpuCharts.data.length < 19) { | |||||
| this.cpuCharts.data.push({ | this.cpuCharts.data.push({ | ||||
| name: k[0], | name: k[0], | ||||
| value: k[1], | value: k[1], | ||||
| @@ -896,6 +904,16 @@ export default { | |||||
| row.opDetailPage.offset = pageIndex - 1; | row.opDetailPage.offset = pageIndex - 1; | ||||
| this.getCoreDetailList(row, false); | this.getCoreDetailList(row, false); | ||||
| }, | }, | ||||
| /** | |||||
| * Operator detail list page size change | |||||
| * @param {Object} row table cell | |||||
| * @param {Number} pageSize current page size | |||||
| */ | |||||
| opDetailPageSizeChange(row, pageSize) { | |||||
| row.opDetailPage.offset = 0; | |||||
| row.opDetailPage.limit = pageSize; | |||||
| this.getCoreDetailList(row, false); | |||||
| }, | |||||
| /** | /** | ||||
| * Cpu list page change | * Cpu list page change | ||||
| * @param {Object} row table cell | * @param {Object} row table cell | ||||
| @@ -905,6 +923,16 @@ export default { | |||||
| row.opDetailPage.offset = pageIndex - 1; | row.opDetailPage.offset = pageIndex - 1; | ||||
| this.getCpuDetailList(row, false); | this.getCpuDetailList(row, false); | ||||
| }, | }, | ||||
| /** | |||||
| * Cpu list page size change | |||||
| * @param {Object} row table cell | |||||
| * @param {Number} pageSize current page size | |||||
| */ | |||||
| opCpuDetailPageSizeChange(row, pageSize) { | |||||
| row.opDetailPage.offset = 0; | |||||
| row.opDetailPage.limit = pageSize; | |||||
| this.getCpuDetailList(row, false); | |||||
| }, | |||||
| /** | /** | ||||
| * Get core list by search | * Get core list by search | ||||
| */ | */ | ||||
| @@ -226,8 +226,10 @@ limitations under the License. | |||||
| </el-table> | </el-table> | ||||
| <div class="pagination-container"> | <div class="pagination-container"> | ||||
| <el-pagination @current-change="handleCurrentChange" | <el-pagination @current-change="handleCurrentChange" | ||||
| @size-change="currentPagesizeChange" | |||||
| :current-page="pagination.currentPage" | :current-page="pagination.currentPage" | ||||
| :page-size="pagination.pageSize" | :page-size="pagination.pageSize" | ||||
| :page-sizes="pagination.pageSizes" | |||||
| :layout="pagination.layout" | :layout="pagination.layout" | ||||
| :total="pagination.total"> | :total="pagination.total"> | ||||
| </el-pagination> | </el-pagination> | ||||
| @@ -446,9 +448,10 @@ export default { | |||||
| // Page data | // Page data | ||||
| pagination: { | pagination: { | ||||
| currentPage: 1, | currentPage: 1, | ||||
| pageSize: 8, | |||||
| pageSize: 10, | |||||
| pageSizes: [10, 20, 50], | |||||
| total: 0, | total: 0, | ||||
| layout: 'total, prev, pager, next, jumper', | |||||
| layout: 'total, sizes, prev, pager, next, jumper', | |||||
| }, | }, | ||||
| // Summary path column | // Summary path column | ||||
| dirPathList: ['summary_dir'], | dirPathList: ['summary_dir'], | ||||
| @@ -1882,7 +1885,14 @@ export default { | |||||
| this.queryLineagesData(params); | this.queryLineagesData(params); | ||||
| }, this.delayTime); | }, this.delayTime); | ||||
| }, | }, | ||||
| /** | |||||
| * Setting Table Data.Table flip | |||||
| * @param {Number} pageSize | |||||
| */ | |||||
| currentPagesizeChange(pageSize) { | |||||
| this.pagination.pageSize = pageSize; | |||||
| this.handleCurrentChange(this.pagination.currentPage); | |||||
| }, | |||||
| /** | /** | ||||
| * Setting Table Data.Table flip | * Setting Table Data.Table flip | ||||
| * @param {Number} val | * @param {Number} val | ||||
| @@ -2136,9 +2146,11 @@ export default { | |||||
| overflow-y: auto; | overflow-y: auto; | ||||
| position: relative; | position: relative; | ||||
| background: #fff; | background: #fff; | ||||
| .el-select > .el-input { | |||||
| width: 280px !important; | |||||
| max-width: 500px !important; | |||||
| .select-container { | |||||
| .el-select > .el-input { | |||||
| width: 280px !important; | |||||
| max-width: 500px !important; | |||||
| } | |||||
| } | } | ||||
| .el-table th.is-leaf { | .el-table th.is-leaf { | ||||
| background: #f5f7fa; | background: #f5f7fa; | ||||
| @@ -402,8 +402,10 @@ limitations under the License. | |||||
| </el-table> | </el-table> | ||||
| <div class="pagination-container"> | <div class="pagination-container"> | ||||
| <el-pagination @current-change="pagination.pageChange" | <el-pagination @current-change="pagination.pageChange" | ||||
| @size-change="pagination.currentPagesizeChange" | |||||
| :current-page="pagination.currentPage" | :current-page="pagination.currentPage" | ||||
| :page-size="pagination.pageSize" | :page-size="pagination.pageSize" | ||||
| :page-sizes="pagination.pageSizes" | |||||
| :layout="pagination.layout" | :layout="pagination.layout" | ||||
| :total="pagination.total"> | :total="pagination.total"> | ||||
| </el-pagination> | </el-pagination> | ||||
| @@ -625,10 +627,12 @@ export default { | |||||
| }, | }, | ||||
| pagination: { | pagination: { | ||||
| currentPage: 1, | currentPage: 1, | ||||
| pageSize: 8, | |||||
| pageSize: 10, | |||||
| pageSizes: [10, 20, 50], | |||||
| total: 0, | total: 0, | ||||
| layout: 'total, prev, pager, next, jumper', | |||||
| layout: 'total, sizes, prev, pager, next, jumper', | |||||
| pageChange: {}, | pageChange: {}, | ||||
| currentPagesizeChange: {}, | |||||
| }, | }, | ||||
| chartFilter: {}, // chart filter condition | chartFilter: {}, // chart filter condition | ||||
| tableFilter: {lineage_type: {in: ['model']}}, // table filter condition | tableFilter: {lineage_type: {in: ['model']}}, // table filter condition | ||||
| @@ -677,6 +681,10 @@ export default { | |||||
| this.pagination.currentPage = page; | this.pagination.currentPage = page; | ||||
| this.queryLineagesData(false); | this.queryLineagesData(false); | ||||
| }; | }; | ||||
| this.pagination.currentPagesizeChange = (pageSize) => { | |||||
| this.pagination.pageSize = pageSize; | |||||
| this.queryLineagesData(false); | |||||
| }; | |||||
| this.$nextTick(() => { | this.$nextTick(() => { | ||||
| this.init(); | this.init(); | ||||
| }); | }); | ||||
| @@ -2132,9 +2140,11 @@ export default { | |||||
| box-shadow: 0 1px 0 0 rgba(200, 200, 200, 0.5); | box-shadow: 0 1px 0 0 rgba(200, 200, 200, 0.5); | ||||
| overflow: hidden; | overflow: hidden; | ||||
| // select | // select | ||||
| .el-select > .el-input { | |||||
| min-width: 280px !important; | |||||
| max-width: 500px !important; | |||||
| .select-container { | |||||
| .el-select > .el-input { | |||||
| min-width: 280px !important; | |||||
| max-width: 500px !important; | |||||
| } | |||||
| } | } | ||||
| .top-area { | .top-area { | ||||
| margin: 0px 32px 6px; | margin: 0px 32px 6px; | ||||
| @@ -114,8 +114,10 @@ limitations under the License. | |||||
| <!-- outer Page --> | <!-- outer Page --> | ||||
| <div class="pagination-content"> | <div class="pagination-content"> | ||||
| <el-pagination @current-change="currentPageChange" | <el-pagination @current-change="currentPageChange" | ||||
| @size-change="currentPagesizeChange" | |||||
| :current-page="pagination.currentPage" | :current-page="pagination.currentPage" | ||||
| :page-size="pagination.pageSize" | :page-size="pagination.pageSize" | ||||
| :page-sizes="pagination.pageSizes" | |||||
| :layout="pagination.layout" | :layout="pagination.layout" | ||||
| :total="pagination.total" | :total="pagination.total" | ||||
| class="page"> | class="page"> | ||||
| @@ -208,9 +210,10 @@ export default { | |||||
| }, | }, | ||||
| pagination: { | pagination: { | ||||
| currentPage: 1, | currentPage: 1, | ||||
| pageSize: 16, | |||||
| pageSize: 20, | |||||
| pageSizes: [10, 20, 50], | |||||
| total: 0, | total: 0, | ||||
| layout: 'total, prev, pager, next, jumper', | |||||
| layout: 'total, sizes, prev, pager, next, jumper', | |||||
| }, | }, | ||||
| contextMenu: { | contextMenu: { | ||||
| show: false, | show: false, | ||||
| @@ -304,6 +307,14 @@ export default { | |||||
| this.loading = false; | this.loading = false; | ||||
| }); | }); | ||||
| }, | }, | ||||
| currentPagesizeChange(pageSize) { | |||||
| this.pagination.pageSize = pageSize; | |||||
| const params = { | |||||
| offset: this.pagination.currentPage - 1, | |||||
| limit: this.pagination.pageSize, | |||||
| }; | |||||
| this.querySummaryList(params); | |||||
| }, | |||||
| currentPageChange(currentPage) { | currentPageChange(currentPage) { | ||||
| this.pagination.currentPage = currentPage; | this.pagination.currentPage = currentPage; | ||||
| const params = { | const params = { | ||||