提交 22f5f277 authored 作者: zax's avatar zax

单位管理页面分页修改

上级 88512966
...@@ -146,16 +146,9 @@ export default { ...@@ -146,16 +146,9 @@ export default {
) )
this.$store.commit('changeSidebar', val); this.$store.commit('changeSidebar', val);
} }
this.unit(); this.search('page')
}, },
methods: { methods: {
// 获取单位类别
unit() {
this.$server.getUnitFindAll().then(res => {
this.allData = res.data.data;
this.totalLength = res.data.data.length;
})
},
// 单位搜索 // 单位搜索
search(val) { search(val) {
let message = { let message = {
...@@ -184,6 +177,7 @@ export default { ...@@ -184,6 +177,7 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
t: message t: message
} }
console.log(data)
this.$server.postUnitSearch(data).then(res => { this.$server.postUnitSearch(data).then(res => {
this.allData = res.data.data.rows; this.allData = res.data.data.rows;
this.totalLength = this.allData.length; this.totalLength = this.allData.length;
...@@ -389,4 +383,12 @@ export default { ...@@ -389,4 +383,12 @@ export default {
background-image: linear-gradient(to bottom, #7a9eeb,#274acf); background-image: linear-gradient(to bottom, #7a9eeb,#274acf);
color: #fff; color: #fff;
} }
.role .content .common-table {
box-shadow: rgba(72, 119, 230, 0.1) 4px 4px 5px;
border-width: 0.5px;
border-style: solid;
border-color: transparent;
border-image: initial;
border-radius: 10px;
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论