mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
delete console.log
This commit is contained in:
@@ -64,7 +64,6 @@ export default {
|
|||||||
if (value) {
|
if (value) {
|
||||||
this.$emit('updatePasswd', passwdForm)
|
this.$emit('updatePasswd', passwdForm)
|
||||||
this.$refs.passwdForm.resetFields()
|
this.$refs.passwdForm.resetFields()
|
||||||
console.log('submit!')
|
|
||||||
} else {
|
} else {
|
||||||
console.log('fault!')
|
console.log('fault!')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,23 +94,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getFormData() {
|
getFormData() {
|
||||||
request
|
request.get('/user/department').then((response) => {
|
||||||
.get('/user/department')
|
|
||||||
.then((response) => {
|
|
||||||
console.log(response.data.data)
|
|
||||||
this.workers = response.data.data
|
this.workers = response.data.data
|
||||||
console.log(this.workers)
|
|
||||||
})
|
|
||||||
.catch((reportError) => {
|
|
||||||
console.log(reportError)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSubmit(form) {
|
onSubmit(form) {
|
||||||
// 表单校验
|
// 表单校验
|
||||||
this.$refs.ruleForm.validate((value) => {
|
this.$refs.ruleForm.validate((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
console.log(form.deadline)
|
|
||||||
console.log(typeof form.deadline)
|
|
||||||
form.publisherId = _.toString(1)
|
form.publisherId = _.toString(1)
|
||||||
if (this.editForm) {
|
if (this.editForm) {
|
||||||
this.$emit('updateWork', form)
|
this.$emit('updateWork', form)
|
||||||
@@ -119,7 +110,6 @@ export default {
|
|||||||
this.$emit('addWork', form)
|
this.$emit('addWork', form)
|
||||||
this.reset()
|
this.reset()
|
||||||
}
|
}
|
||||||
console.log('submit!')
|
|
||||||
} else {
|
} else {
|
||||||
console.log('fault!')
|
console.log('fault!')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,7 +203,6 @@ export default {
|
|||||||
this.form = _.cloneDeep(this.staff)
|
this.form = _.cloneDeep(this.staff)
|
||||||
},
|
},
|
||||||
updatePasswd(passwdForm) {
|
updatePasswd(passwdForm) {
|
||||||
console.log(passwdForm)
|
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
cancelPasswd() {
|
cancelPasswd() {
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatDate(time) {
|
formatDate(time) {
|
||||||
console.log(new Date(time).toLocaleString())
|
|
||||||
return new Date(time).toLocaleString()
|
return new Date(time).toLocaleString()
|
||||||
},
|
},
|
||||||
statusTag(row) {
|
statusTag(row) {
|
||||||
@@ -93,16 +92,13 @@ export default {
|
|||||||
userWork.status = 0
|
userWork.status = 0
|
||||||
this.setTaskStatus(userWork)
|
this.setTaskStatus(userWork)
|
||||||
},
|
},
|
||||||
todoCancelEvent() {
|
todoCancelEvent() {},
|
||||||
console.log('complete cancel!')
|
|
||||||
},
|
|
||||||
getTableData() {
|
getTableData() {
|
||||||
request.get('/work/complete').then((res) => {
|
request.get('/work/complete').then((res) => {
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_SELECT_OK) {
|
if (response.code === DATABASE_SELECT_OK) {
|
||||||
this.tableData = response.data
|
this.tableData = response.data
|
||||||
if (this.tableData) {
|
if (this.tableData) {
|
||||||
console.log(this.tableData)
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -114,7 +110,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTaskData(workId) {
|
getTaskData(workId) {
|
||||||
console.log(workId)
|
|
||||||
request.get('/work/' + workId).then((res) => {
|
request.get('/work/' + workId).then((res) => {
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_SELECT_OK) {
|
if (response.code === DATABASE_SELECT_OK) {
|
||||||
@@ -126,7 +121,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
setTaskStatus(userWork) {
|
setTaskStatus(userWork) {
|
||||||
console.log(userWork)
|
|
||||||
request.put('/work/set_status', userWork).then((res) => {
|
request.put('/work/set_status', userWork).then((res) => {
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_UPDATE_OK) {
|
if (response.code === DATABASE_UPDATE_OK) {
|
||||||
|
|||||||
@@ -117,21 +117,13 @@ export default {
|
|||||||
handleClick(row) {
|
handleClick(row) {
|
||||||
this.rowData = row
|
this.rowData = row
|
||||||
this.editVisible = true
|
this.editVisible = true
|
||||||
console.log('click')
|
|
||||||
},
|
},
|
||||||
deleteConfirmEvent(row) {
|
deleteConfirmEvent(row) {
|
||||||
this.deleteTableData(row)
|
this.deleteTableData(row)
|
||||||
console.log('delete confirm!')
|
|
||||||
},
|
|
||||||
deleteCancelEvent() {
|
|
||||||
console.log('delete cancel!')
|
|
||||||
},
|
|
||||||
completeConfirmEvent() {
|
|
||||||
console.log('complete confirm!')
|
|
||||||
},
|
|
||||||
completeCancelEvent() {
|
|
||||||
console.log('complete cancel!')
|
|
||||||
},
|
},
|
||||||
|
deleteCancelEvent() {},
|
||||||
|
completeConfirmEvent() {},
|
||||||
|
completeCancelEvent() {},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
request.get('/work').then((res) => {
|
request.get('/work').then((res) => {
|
||||||
const response = res.data
|
const response = res.data
|
||||||
@@ -149,9 +141,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteTableData(row) {
|
deleteTableData(row) {
|
||||||
request
|
request.delete('/work/' + row.id).then((res) => {
|
||||||
.delete('/work/' + row.id)
|
|
||||||
.then((res) => {
|
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_DELETE_OK) {
|
if (response.code === DATABASE_DELETE_OK) {
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
@@ -162,9 +152,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((reportError) => {
|
|
||||||
console.log(reportError)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
setDialogVisible(dialogVisible) {
|
setDialogVisible(dialogVisible) {
|
||||||
this.addVisible = dialogVisible
|
this.addVisible = dialogVisible
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ export default {
|
|||||||
const beforeTime = new Date(deadDate)
|
const beforeTime = new Date(deadDate)
|
||||||
const beforeDate = new Date(beforeTime.setDate(deadDate.getDate() - 3))
|
const beforeDate = new Date(beforeTime.setDate(deadDate.getDate() - 3))
|
||||||
const nowTime = new Date()
|
const nowTime = new Date()
|
||||||
console.log(scope)
|
|
||||||
if (nowTime <= beforeDate) {
|
if (nowTime <= beforeDate) {
|
||||||
scope.row.color1 = '#909399'
|
scope.row.color1 = '#909399'
|
||||||
} else if (nowTime > beforeDate && nowTime < deadDate) {
|
} else if (nowTime > beforeDate && nowTime < deadDate) {
|
||||||
@@ -81,15 +80,10 @@ export default {
|
|||||||
userWork.workId = row.id
|
userWork.workId = row.id
|
||||||
userWork.status = 1
|
userWork.status = 1
|
||||||
this.setTaskStatus(userWork)
|
this.setTaskStatus(userWork)
|
||||||
console.log('complete confirm!')
|
|
||||||
},
|
|
||||||
completeCancelEvent() {
|
|
||||||
console.log('complete cancel!')
|
|
||||||
},
|
},
|
||||||
|
completeCancelEvent() {},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
request
|
request.get('/work/todo').then((res) => {
|
||||||
.get('/work/todo')
|
|
||||||
.then((res) => {
|
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_SELECT_OK) {
|
if (response.code === DATABASE_SELECT_OK) {
|
||||||
this.tableData = response.data
|
this.tableData = response.data
|
||||||
@@ -103,35 +97,21 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((reportError) => {
|
|
||||||
console.log(reportError)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getTaskData(workId) {
|
getTaskData(workId) {
|
||||||
console.log(workId)
|
request.get('/work/' + workId).then((res) => {
|
||||||
request
|
|
||||||
.get('/work/' + workId)
|
|
||||||
.then((res) => {
|
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_SELECT_OK) {
|
if (response.code === DATABASE_SELECT_OK) {
|
||||||
this.taskData = response.data
|
this.taskData = response.data
|
||||||
console.log(this.tableData)
|
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((reportError) => {
|
|
||||||
console.log(reportError)
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
setTaskStatus(userWork) {
|
setTaskStatus(userWork) {
|
||||||
userWork.completeTime = new Date()
|
userWork.completeTime = new Date()
|
||||||
console.log(userWork)
|
request.put('/work/set_status', userWork).then((res) => {
|
||||||
request
|
|
||||||
.put('/work/set_status', userWork)
|
|
||||||
.then((res) => {
|
|
||||||
const response = res.data
|
const response = res.data
|
||||||
if (response.code === DATABASE_UPDATE_OK) {
|
if (response.code === DATABASE_UPDATE_OK) {
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
@@ -142,9 +122,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((reportError) => {
|
|
||||||
console.log(reportError)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
viewClick(workId) {
|
viewClick(workId) {
|
||||||
this.getTaskData(workId)
|
this.getTaskData(workId)
|
||||||
|
|||||||
Reference in New Issue
Block a user