mirror of
https://github.com/himool/HimoolERP.git
synced 2025-12-29 05:38:36 +08:00
feat: 调整
This commit is contained in:
parent
24cbd7219c
commit
b1ea8febee
2 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,7 @@
|
|||
list() {
|
||||
this.loading = true;
|
||||
deviceList(this.searchForm).then(response => {
|
||||
console.log(response);
|
||||
this.pagination.total = response.data.count;
|
||||
this.items = response.data.results;
|
||||
}).finally(() => {
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ class TeamViewSet(ModelViewSet):
|
|||
|
||||
class DeviceViewSet(ModelViewSet):
|
||||
serializer_class = DeviceSerializer
|
||||
pagination_class = LimitedPagination
|
||||
permission_classes = [IsSuperUser]
|
||||
search_fields = ['number', 'name', 'serial_number']
|
||||
ordering_fields = ['id', 'number', 'name', 'serial_number']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue