diff --git a/src/api/model/ofm.js b/src/api/model/ofm.js
index 94b47f4e..06b6f15e 100644
--- a/src/api/model/ofm.js
+++ b/src/api/model/ofm.js
@@ -69,11 +69,10 @@ export default {
}
},
delete: {
- url: `${config.API_URL}/ofm/mroom/delete/`,
- name: "批量物理删除",
- req: async function(data){
- return await http.post(this.url, data);
- }
+ name: "删除",
+ req: async function (id) {
+ return await http.delete(`${config.API_URL}/ofm/mroom/${id}/`);
+ },
},
},
mroombooking: {
@@ -106,11 +105,10 @@ export default {
}
},
delete: {
- url: `${config.API_URL}/ofm/mroombooking/delete/`,
- name: "批量物理删除",
- req: async function(data){
- return await http.post(this.url, data);
- }
+ name: "删除",
+ req: async function (id) {
+ return await http.delete(`${config.API_URL}/ofm/mroombooking/${id}/`);
+ },
},
},
mroomslot: {
diff --git a/src/views/ofm/booking_form.vue b/src/views/ofm/booking_form.vue
index c4553ffd..c03b0a8e 100644
--- a/src/views/ofm/booking_form.vue
+++ b/src/views/ofm/booking_form.vue
@@ -1,117 +1,79 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item }}、
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.label }}
+
{{ item.label }}
+
+
+
+
+ {$emit('success')}"
+ :submit_b_func="submit_b_func"
+ ref="ticketd_b_start"
+ >
+ 取消
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ item.label }}
-
{{ item.label }}
-
-
-
-
- 取 消
- 确定
-
-