Skip to content

Commit

Permalink
格式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Dec 10, 2018
1 parent f010677 commit bbda9da
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 251 deletions.
84 changes: 41 additions & 43 deletions src/api/Archive/Attendance.js
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,
},

})
})
}

81 changes: 41 additions & 40 deletions src/api/Archive/person.js
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',
})
}
28 changes: 13 additions & 15 deletions src/api/Public/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,39 @@ export function upload(MasterID) {
return fetch({
url: '/file/Upload',
method: 'post',
contentType : false,
contentType: false,
params: {
MasterID
}
MasterID,
},
})
}

export function download(AffixID) {
return fetch({
url: '/file/download',
method: 'get',
params:{
AffixID
}
params: {
AffixID,
},
})
}
export function deletefile(AffixID) {
return fetch({
url: '/file/delete',
method: 'get',
params:{
AffixID
}
params: {
AffixID,
},
})
}

export function GetFileList(MasterID) {
return fetch({
url: '/file/list',
method: 'post',
params:{
MasterID
}

params: {
MasterID,
},
})
}


13 changes: 5 additions & 8 deletions src/api/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ export function login(username, password) {
method: 'post',
params: {
username,
password
}
password,
},
})
}

export function getInfo(token) {
export function getInfo() {
return fetch({
url: '/login/userinfo',
method: 'post',
// data: {
// auth:token
// }
})
}

export function logout() {
return fetch({
url: '/login/logout',
method: 'post'
method: 'post',
})
}

Expand All @@ -33,6 +30,6 @@ export function ChangePassword(data) {
return fetch({
url: '/login/changepassword',
method: 'post',
params: data
params: data,
})
}
64 changes: 32 additions & 32 deletions src/api/system/form.js
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,
})
}

Loading

0 comments on commit bbda9da

Please sign in to comment.