feat: 添加分页组件 用户表格的编辑框的正确打开

This commit is contained in:
zhangyu
2021-06-11 16:59:16 +08:00
parent 0e715f090f
commit ffc7652fc5
10 changed files with 360 additions and 9 deletions

View File

@@ -2,8 +2,11 @@ import { tableSort } from '@/utils/tools'
import { defaultPageSize, fromRoute, position } from '@/utils/constants'
import { get, del } from '@/utils/http'
import { ref } from 'vue'
import pagination from '@/components/common/pagination'
export default {
components:{
pagination
},
data () {
return {
fromRoute: fromRoute,
@@ -120,7 +123,7 @@ export default {
edit (u) {
get(`${this.url}/${u.id}`).then(response => {
if (response.code === 200) {
this.object = response.data
this.object = response.user
this.rightBox.show = true
}
})