-
Notifications
You must be signed in to change notification settings - Fork 12
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
9 changed files
with
246 additions
and
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,59 @@ | ||
import fetch from '@/utils/fetch' | ||
|
||
export function GetAttenListToday(params){ | ||
return fetch({ | ||
url: '/Attendance/PullPersonAttenListWithToday', | ||
method: 'post', | ||
params | ||
}) | ||
export function GetAttenListToday(params) { | ||
return fetch({ | ||
url: '/Attendance/PullPersonAttenListWithToday', | ||
method: 'post', | ||
params, | ||
}) | ||
} | ||
|
||
export function DeleteAtten(ID){ | ||
return fetch({ | ||
url: '/Attendance/DelAtten', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
export function DeleteAtten(ID) { | ||
return fetch({ | ||
url: '/Attendance/DelAtten', | ||
method: 'post', | ||
params: { ID }, | ||
}) | ||
} | ||
|
||
export function AttenDetailByPerson(ID){ | ||
return fetch({ | ||
url: '/Attendance/PullAttenDetailByPerson', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
export function AttenDetailByPerson(ID) { | ||
return fetch({ | ||
url: '/Attendance/PullAttenDetailByPerson', | ||
method: 'post', | ||
params: { ID }, | ||
}) | ||
} | ||
|
||
|
||
|
||
export function UpdateAtten(data){ | ||
return fetch({ | ||
url: '/Attendance/SaveAtten', | ||
method: 'post', | ||
data | ||
}) | ||
export function UpdateAtten(data) { | ||
return fetch({ | ||
url: '/Attendance/SaveAtten', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
||
|
||
export function SearchPersonByMonth(data){ | ||
return fetch({ | ||
url: '/Attendance/SearchPersonByMonth', | ||
method: 'post', | ||
params:{ | ||
name:data.name, | ||
month:data.month | ||
} | ||
export function SearchPersonByMonth(data) { | ||
return fetch({ | ||
url: '/Attendance/SearchPersonByMonth', | ||
method: 'post', | ||
params: { | ||
name: data.name, | ||
month: data.month, | ||
}, | ||
|
||
}) | ||
}) | ||
} | ||
|
||
|
||
export function SearchPersonByYear(data){ | ||
return fetch({ | ||
url: '/Attendance/SearchPersonByYear', | ||
method: 'post', | ||
params:{ | ||
name:data.name | ||
} | ||
export function SearchPersonByYear(data) { | ||
return fetch({ | ||
url: '/Attendance/SearchPersonByYear', | ||
method: 'post', | ||
params: { | ||
name: data.name, | ||
}, | ||
|
||
}) | ||
}) | ||
} | ||
|
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 |
---|---|---|
@@ -1,56 +1,57 @@ | ||
import fetch from '@/utils/fetch' | ||
export function GetUsers(data){ | ||
return fetch({ | ||
url: '/person/list', | ||
method: 'post', | ||
data | ||
}) | ||
|
||
export function GetUsers(data) { | ||
return fetch({ | ||
url: '/person/list', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
||
export function DeleteUser(id){ | ||
return fetch({ | ||
url: '/person/delete', | ||
method: 'post', | ||
params:{id} | ||
}) | ||
export function DeleteUser(id) { | ||
return fetch({ | ||
url: '/person/delete', | ||
method: 'post', | ||
params: { id }, | ||
}) | ||
} | ||
|
||
export function GetUsersDetail(id){ | ||
return fetch({ | ||
url: '/person/detail', | ||
method: 'post', | ||
params:{id} | ||
}) | ||
export function GetUsersDetail(id) { | ||
return fetch({ | ||
url: '/person/detail', | ||
method: 'post', | ||
params: { id }, | ||
}) | ||
} | ||
|
||
export function SaveNewUsers(data){ | ||
return fetch({ | ||
url: '/person/add', | ||
method: 'post', | ||
data | ||
}) | ||
export function SaveNewUsers(data) { | ||
return fetch({ | ||
url: '/person/add', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
||
export function UpdateUsers(data){ | ||
return fetch({ | ||
url: '/person/update', | ||
method: 'post', | ||
data | ||
}) | ||
export function UpdateUsers(data) { | ||
return fetch({ | ||
url: '/person/update', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
||
|
||
export function getKey(){ | ||
return fetch({ | ||
url: '/person/Getkey', | ||
method: 'post', | ||
}) | ||
export function getKey() { | ||
return fetch({ | ||
url: '/person/Getkey', | ||
method: 'post', | ||
}) | ||
} | ||
|
||
|
||
export function getObj(){ | ||
return fetch({ | ||
url: '/person/getObj', | ||
method: 'post', | ||
}) | ||
export function getObj() { | ||
return fetch({ | ||
url: '/person/getObj', | ||
method: 'post', | ||
}) | ||
} |
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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import fetch from '@/utils/fetch' | ||
export function getTables(){ | ||
return fetch({ | ||
url: '/form/getTables', | ||
method: 'post', | ||
|
||
}) | ||
export function getTables() { | ||
return fetch({ | ||
url: '/form/getTables', | ||
method: 'post', | ||
|
||
}) | ||
} | ||
|
||
export function getKeyBytableName(tablename){ | ||
return fetch({ | ||
url: '/form/getKey', | ||
method: 'post', | ||
params:{ | ||
tablename | ||
} | ||
export function getKeyBytableName(tablename) { | ||
return fetch({ | ||
url: '/form/getKey', | ||
method: 'post', | ||
params: { | ||
tablename, | ||
}, | ||
|
||
}) | ||
}) | ||
} | ||
|
||
export function GetFormDetail(tablename){ | ||
return fetch({ | ||
url: '/form/detail', | ||
method: 'post', | ||
export function GetFormDetail(tablename) { | ||
return fetch({ | ||
url: '/form/detail', | ||
method: 'post', | ||
|
||
params:{tablename} | ||
}) | ||
params: { tablename }, | ||
}) | ||
} | ||
|
||
export function AddForm(data){ | ||
return fetch({ | ||
url: '/form/add', | ||
method: 'post', | ||
data | ||
}) | ||
export function AddForm(data) { | ||
return fetch({ | ||
url: '/form/add', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
||
export function UpdateForm(data){ | ||
return fetch({ | ||
url: '/form/update', | ||
method: 'post', | ||
data | ||
}) | ||
export function UpdateForm(data) { | ||
return fetch({ | ||
url: '/form/update', | ||
method: 'post', | ||
data, | ||
}) | ||
} | ||
|
Oops, something went wrong.