Skip to content

Commit

Permalink
[fix]: 统一主页表格分页居中
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-zhoukang committed Jul 25, 2024
1 parent fba10b9 commit 3f99a14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/chemical/ChemicalTableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ defineExpose({
</script>

<template>
<div style="margin: 10px">
<div style="margin: 10px; display: flex; justify-content: center;">
<el-pagination
background
layout="prev, pager, next ,total, sizes"
Expand Down
2 changes: 1 addition & 1 deletion src/components/formula/FormulaTableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const handleSelectAdd = (rowNo, rowData) => {
</script>

<template>
<div style="margin: 10px">
<div style="margin: 10px ; display: flex; justify-content: center;">
<el-pagination
background
layout="prev, pager, next ,total, sizes"
Expand Down
2 changes: 1 addition & 1 deletion src/components/protein/ProteinTableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const handleSelectAdd = (rowNo, rowData) => {
</script>

<template>
<div style="margin: 10px">
<div style="margin: 10px; display: flex; justify-content: center;">
<el-pagination
background
layout="prev, pager, next ,total, sizes"
Expand Down
10 changes: 5 additions & 5 deletions src/components/views/ResultPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,27 +82,27 @@ const download = (staticPath) => {
</div>

<div class="result-download-container">
<h1 v-if="data.resultReq.length > 0">结果下载</h1>
<h1 v-if="data.resultReq.length > 5">结果下载</h1>
<el-button
v-if="data.resultReq.length > 0"
v-if="data.resultReq.length > 5"
@click="download(data.resultReq)">
Results
</el-button>

<el-button
v-if="data.echartReq.length > 0"
v-if="data.echartReq.length > 5"
@click="download(data.echartReq)">
EChart (html)
</el-button>

<el-button
v-if="data.cytoReq.length > 0"
v-if="data.cytoReq.length > 5"
@click="download(data.cytoReq)">
Network (CSV For Cytoscape)
</el-button>

<el-button
v-if="data.cytoReq.length > 0"
v-if="data.cytoReq.length > 5"
@click="download(data.cytoTypeReq)">
Type (CSV For Cytoscape)
</el-button>
Expand Down

0 comments on commit 3f99a14

Please sign in to comment.