Commit 7ab86d65 authored by lizhichao's avatar lizhichao

优化样式

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