Commit 7ab86d65 authored by lizhichao's avatar lizhichao

优化样式

parent 17a17653
......@@ -256,7 +256,7 @@
float: right;
}
$--color-primary:#1890ff;
// dialog
.el-dialog {
padding: 0 20px !important;
......@@ -268,29 +268,29 @@
}
.el-dialog__header {
border: 1px solid rgba(222, 222, 222, 0.53);
border-bottom: 1px solid rgba(222, 222, 222, 1);
position: relative;
padding: 15px 0 10px !important;
// &:before {
// content: "";
// width: 16px;
// height: 3px;
// position: absolute;
// background-color: $--color-primary;
// left: 0;
// bottom: -2px;
// }
// &:after {
// content: "";
// width: 16px;
// height: 3px;
// position: absolute;
// background-color: $--color-primary;
// right: 0;
// bottom: -2px;
// }
&:before {
content: "";
width: 16px;
height: 3px;
position: absolute;
background-color: $--color-primary;
left: 0;
bottom: -2px;
}
&:after {
content: "";
width: 16px;
height: 3px;
position: absolute;
background-color: $--color-primary;
right: 0;
bottom: -2px;
}
.el-dialog__title {
font-size: 16px;
color: #333333;
......@@ -323,4 +323,4 @@
.flex{
display: flex;
}
\ No newline at end of file
}
<template>
<div :class="{ hidden: hidden }" class="pagination-container flex">
<div class="flex">
<div
class="myBtn"
:class="{ active: active===index }"
v-for="item,index in pageSizes"
:key="item"
@click="handleSizeChange(index)"
>
{{ item }}
</div>
</div>
<div>
<!-- <div class="flex">-->
<!-- <div-->
<!-- class="myBtn"-->
<!-- :class="{ active: active===index }"-->
<!-- v-for="item,index in pageSizes"-->
<!-- :key="item"-->
<!-- @click="handleSizeChange(index)"-->
<!-- >-->
<!-- {{ item }}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<el-pagination
:background="background"
:current-page.sync="currentPage"
......@@ -25,7 +25,7 @@
<!-- @size-change="handleSizeChange" -->
</div>
</div>
<!-- </div>-->
</template>
<script>
......@@ -54,8 +54,8 @@ export default {
},
layout: {
type: String,
// default: 'total, sizes, prev, pager, next, jumper'
default: "prev, pager, next",
default: 'total, sizes, prev, pager, next, jumper'
// default: "prev, pager, next",
},
background: {
type: Boolean,
......@@ -94,13 +94,13 @@ export default {
methods: {
handleSizeChange(val) {
this.active =val;
this.$emit("pagination", { page: this.currentPage, limit: this.pageSizes[val] });
this.$emit("pagination", { page: this.currentPage, limit: this.pageSize });
if (this.autoScroll) {
scrollTo(0, 800);
}
},
handleCurrentChange(val) {
this.$emit("pagination", { page: val, limit: this.pageSizes[active] });
this.$emit("pagination", { page: val, limit: this.pageSize });
if (this.autoScroll) {
scrollTo(0, 800);
}
......
......@@ -427,7 +427,7 @@ export default {
this.loading = true;
selectTTradeProjectListByRoles({
...this.queryParams,
pageSize: value?.limit ? value.limit : this.queryParams.pageSize,
// pageSize: value?.limit ? value.limit : this.queryParams.pageSize,
}).then((response) => {
this.projectList = response.rows;
this.total = response.total;
......
......@@ -34,7 +34,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://192.168.1.5:8668/precisionEffect`,
target: `http://localhost:8668/precisionEffect`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
......
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