|
@@ -324,13 +324,14 @@ export default {
|
|
|
handleRemove(ids) {
|
|
handleRemove(ids) {
|
|
|
// return this.$message.warning('避免误删测试数据,联系开发删除')
|
|
// return this.$message.warning('避免误删测试数据,联系开发删除')
|
|
|
|
|
|
|
|
- removeStaffSchedule({ ids })
|
|
|
|
|
|
|
+ /* removeStaffSchedule({ ids })
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
ActionUtils.removeSuccessMessage()
|
|
ActionUtils.removeSuccessMessage()
|
|
|
this.search()
|
|
this.search()
|
|
|
})
|
|
})
|
|
|
.catch(() => {})
|
|
.catch(() => {})
|
|
|
- /*
|
|
|
|
|
|
|
+ */
|
|
|
|
|
+ //删除排班
|
|
|
removeFormData({
|
|
removeFormData({
|
|
|
formKey: 'scheduleForDelete',
|
|
formKey: 'scheduleForDelete',
|
|
|
ids: ids
|
|
ids: ids
|
|
@@ -338,8 +339,24 @@ export default {
|
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
ActionUtils.removeSuccessMessage()
|
|
ActionUtils.removeSuccessMessage()
|
|
|
this.search()
|
|
this.search()
|
|
|
|
|
+ //删除关联考勤
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ tableName: 't_attendance_detail',
|
|
|
|
|
+ paramWhere: {
|
|
|
|
|
+ pai_ban_id_: ids
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$common
|
|
|
|
|
+ .request('delete', params, 'post', true)
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ console.log('考勤删除成功')
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((err) => {
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
- .catch(() => {})*/
|
|
|
|
|
|
|
+ .catch(() => {})
|
|
|
},
|
|
},
|
|
|
handleRowDblclick(row) {
|
|
handleRowDblclick(row) {
|
|
|
this.handleEdit(row, 'detail')
|
|
this.handleEdit(row, 'detail')
|