Commit 6262cb00 by weix

修改bug

parent 4f10ff57
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
await this.$store.dispatch('user/PlatformCode') await this.$store.dispatch('user/PlatformCode')
await this.mustFun(); await this.mustFun();
/** 测试环境需要解注 */ /** 测试环境需要解注 */
// await this.getEnvironment(); await this.getEnvironment();
}, },
mounted () { mounted () {
console.log(process.env.VUE_APP_BASE_API5) console.log(process.env.VUE_APP_BASE_API5)
...@@ -143,4 +143,9 @@ export default { ...@@ -143,4 +143,9 @@ export default {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.pagination {
margin-top: 16px;
text-align: right;
}
</style> </style>
...@@ -147,6 +147,17 @@ ...@@ -147,6 +147,17 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination" v-if="total > 10">
<el-pagination
background
layout="prev, pager, next, jumper, total"
:current-page="page"
@current-change="current_change"
:total="total"
>
</el-pagination>
</div>
</el-card> </el-card>
</template> </template>
...@@ -196,6 +207,10 @@ export default { ...@@ -196,6 +207,10 @@ export default {
await this.getAllData(); await this.getAllData();
}, },
methods: { methods: {
current_change(page) {
this.page = page;
this.getAllData();
},
delRow(row) { delRow(row) {
this.$confirm('是否删除', "提示", { this.$confirm('是否删除', "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -262,7 +277,7 @@ export default { ...@@ -262,7 +277,7 @@ export default {
val = Number(val); val = Number(val);
switch (val) { switch (val) {
case 1: case 1:
return "无跳转" return "跳转链接"
case 2: case 2:
return "不跳转" return "不跳转"
case 3: case 3:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment