|
@@ -60,7 +60,9 @@ import {
|
|
|
import { scheduleType } from '@/views/constants/schedule'
|
|
import { scheduleType } from '@/views/constants/schedule'
|
|
|
import ActionUtils from '@/utils/action'
|
|
import ActionUtils from '@/utils/action'
|
|
|
import FixHeight from '@/mixins/height'
|
|
import FixHeight from '@/mixins/height'
|
|
|
-
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ removeFormData,
|
|
|
|
|
+} from '@/api/platform/data/dataTemplate'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
ScheduleEdit: () => import('./edit'),
|
|
ScheduleEdit: () => import('./edit'),
|
|
@@ -321,12 +323,23 @@ 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({
|
|
|
|
|
+ formKey: 'scheduleForDelete',
|
|
|
|
|
+ ids: ids
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((response) => {
|
|
|
|
|
+ ActionUtils.removeSuccessMessage()
|
|
|
|
|
+ this.search()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {})
|
|
|
},
|
|
},
|
|
|
handleRowDblclick(row) {
|
|
handleRowDblclick(row) {
|
|
|
this.handleEdit(row, 'detail')
|
|
this.handleEdit(row, 'detail')
|