zhonghuizhen 9 сар өмнө
parent
commit
0cd51b3d8c

+ 14 - 1
src/views/business/​scheduleManage/list.vue

@@ -60,7 +60,9 @@ import {
 import { scheduleType } from '@/views/constants/schedule'
 import ActionUtils from '@/utils/action'
 import FixHeight from '@/mixins/height'
-
+import {
+  removeFormData,
+} from '@/api/platform/data/dataTemplate'
 export default {
   components: {
     ScheduleEdit: () => import('./edit'),
@@ -321,12 +323,23 @@ export default {
      */
     handleRemove(ids) {
       // return this.$message.warning('避免误删测试数据,联系开发删除')
+      /*
       removeStaffSchedule({ ids })
         .then(() => {
           ActionUtils.removeSuccessMessage()
           this.search()
         })
         .catch(() => {})
+      */
+        removeFormData({
+        formKey: 'scheduleForDelete',
+        ids: ids
+      })
+        .then((response) => {
+            ActionUtils.removeSuccessMessage()
+            this.search()
+        })
+        .catch(() => {})
     },
     handleRowDblclick(row) {
       this.handleEdit(row, 'detail')