提交 9c9cacc6 authored 作者: zax's avatar zax

合并分支 'zax' 到 'master'

单位管理页面分页修改 查看合并请求 !9
......@@ -146,16 +146,9 @@ export default {
)
this.$store.commit('changeSidebar', val);
}
this.unit();
this.search('page')
},
methods: {
// 获取单位类别
unit() {
this.$server.getUnitFindAll().then(res => {
this.allData = res.data.data;
this.totalLength = res.data.data.length;
})
},
// 单位搜索
search(val) {
let message = {
......@@ -184,6 +177,7 @@ export default {
pageSize: this.pageSize,
t: message
}
console.log(data)
this.$server.postUnitSearch(data).then(res => {
this.allData = res.data.data.rows;
this.totalLength = this.allData.length;
......@@ -389,4 +383,12 @@ export default {
background-image: linear-gradient(to bottom, #7a9eeb,#274acf);
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>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论