added oldLogin.vue to modify Login.vue
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
// groupRepository.ts
|
||||
|
||||
// @ts-ignore
|
||||
import Repository from './Repository';
|
||||
|
||||
const recorderStateResource = '/state/recorder';
|
||||
|
||||
|
||||
export default {
|
||||
getRecordersStates() {
|
||||
return Repository.get(`${recorderStateResource}`);
|
||||
},
|
||||
|
||||
getRecorderState(recorderId: number) {
|
||||
return Repository.get(`${recorderStateResource}/${recorderId}`);
|
||||
},
|
||||
};
|
||||
// groupRepository.ts
|
||||
|
||||
// @ts-ignore
|
||||
import Repository from './Repository';
|
||||
|
||||
const recorderStateResource = '/state/recorder';
|
||||
|
||||
|
||||
export default {
|
||||
getRecordersStates() {
|
||||
return Repository.get(`${recorderStateResource}`);
|
||||
},
|
||||
|
||||
getRecorderState(recorderId: number) {
|
||||
return Repository.get(`${recorderStateResource}/${recorderId}`);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
// groupRepository.ts
|
||||
|
||||
// @ts-ignore
|
||||
import Repository from './Repository';
|
||||
|
||||
const virtualCommandResource = '/virtual_command';
|
||||
|
||||
import {dictEmptyValToNull} from '@/utils';
|
||||
|
||||
export default {
|
||||
|
||||
getVirtualCommands() {
|
||||
return Repository.get(`${virtualCommandResource}`);
|
||||
},
|
||||
|
||||
getVirtualCommand(virtualCommandId: number) {
|
||||
return Repository.get(`${virtualCommandResource}/${virtualCommandId}`);
|
||||
},
|
||||
|
||||
deleteVirtualCommand(virtualCommandId: number) {
|
||||
return Repository.delete(`${virtualCommandResource}/${virtualCommandId}`);
|
||||
},
|
||||
|
||||
createVirtualCommand(virtualCommandData: any) {
|
||||
return Repository.post(`${virtualCommandResource}`, dictEmptyValToNull(virtualCommandData));
|
||||
},
|
||||
|
||||
updateVirtualCommand(virtualCommandId: number, virtualCommandData: any) {
|
||||
return Repository.put(`${virtualCommandResource}/${virtualCommandId}`,
|
||||
dictEmptyValToNull(virtualCommandData));
|
||||
},
|
||||
};
|
||||
// groupRepository.ts
|
||||
|
||||
// @ts-ignore
|
||||
import Repository from './Repository';
|
||||
|
||||
const virtualCommandResource = '/virtual_command';
|
||||
|
||||
import {dictEmptyValToNull} from '@/utils';
|
||||
|
||||
export default {
|
||||
|
||||
getVirtualCommands() {
|
||||
return Repository.get(`${virtualCommandResource}`);
|
||||
},
|
||||
|
||||
getVirtualCommand(virtualCommandId: number) {
|
||||
return Repository.get(`${virtualCommandResource}/${virtualCommandId}`);
|
||||
},
|
||||
|
||||
deleteVirtualCommand(virtualCommandId: number) {
|
||||
return Repository.delete(`${virtualCommandResource}/${virtualCommandId}`);
|
||||
},
|
||||
|
||||
createVirtualCommand(virtualCommandData: any) {
|
||||
return Repository.post(`${virtualCommandResource}`, dictEmptyValToNull(virtualCommandData));
|
||||
},
|
||||
|
||||
updateVirtualCommand(virtualCommandId: number, virtualCommandData: any) {
|
||||
return Repository.put(`${virtualCommandResource}/${virtualCommandId}`,
|
||||
dictEmptyValToNull(virtualCommandData));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user