forked from jekip/naive-ui-admin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,532 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,3 +175,7 @@ img, video{ | |
margin-left: 5px; | ||
margin-right: 5px; | ||
} | ||
|
||
.ml-5{ | ||
margin-left:5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { requestForMock } from '@/utils/http/service'; | ||
const request = (req) => { | ||
return requestForMock(req); | ||
}; | ||
const apiPrefix = '/mock/EditableCell'; | ||
export function GetList(query: any) { | ||
return request({ | ||
url: apiPrefix + '/page', | ||
method: 'get', | ||
data: query, | ||
}); | ||
} | ||
|
||
export function AddObj(obj: any) { | ||
return request({ | ||
url: apiPrefix + '/add', | ||
method: 'post', | ||
data: obj, | ||
}); | ||
} | ||
|
||
export function UpdateObj(obj: any) { | ||
return request({ | ||
url: apiPrefix + '/update', | ||
method: 'post', | ||
data: obj, | ||
}); | ||
} | ||
|
||
export function DelObj(id: any) { | ||
return request({ | ||
url: apiPrefix + '/delete', | ||
method: 'post', | ||
params: { id }, | ||
}); | ||
} | ||
|
||
export function GetObj(id: any) { | ||
return request({ | ||
url: apiPrefix + '/get', | ||
method: 'get', | ||
params: { id }, | ||
}); | ||
} | ||
|
||
export function BatchDelete(ids: any) { | ||
return request({ | ||
url: apiPrefix + '/batchDelete', | ||
method: 'post', | ||
data: { ids }, | ||
}); | ||
} | ||
|
||
export function UpdateCell(id: number, key: string, value: any) { | ||
return request({ | ||
url: apiPrefix + '/cellUpdate', | ||
method: 'post', | ||
data: { id, key, value }, | ||
}); | ||
} | ||
export function UpdateColumn(data) { | ||
return request({ | ||
url: apiPrefix + '/columnUpdate', | ||
method: 'post', | ||
data, | ||
}); | ||
} |
Oops, something went wrong.