huangxw il y a 1 mois
Parent
commit
4a1c7a29a9
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 2 2
      src/views/skill/group/post/index.vue
  2. 2 1
      src/views/skill/group/post/input.vue

+ 2 - 2
src/views/skill/group/post/index.vue

@@ -114,12 +114,12 @@ const getList = async () => {
     loading.value = false;
 };
 const publishPost = async (row: any) => {
-    const res: any = await httpRequests.post(`/dgtmedicine/groupStandard/changeStatus/${row.id}`);
+    const res: any = await httpRequests.get(`/dgtmedicine/groupStandard/changeStatus/${row.id}`);
     getList();
     proxy.$modal.msgSuccess('操作成功');
 };
 const unpublishPost = async (row: any) => {
-    const res: any = await httpRequests.post(`/dgtmedicine/groupStandard/changeStatus/${row.id}`);
+    const res: any = await httpRequests.get(`/dgtmedicine/groupStandard/changeStatus/${row.id}`);
     getList();
     proxy.$modal.msgSuccess('操作成功');
 };

+ 2 - 1
src/views/skill/group/post/input.vue

@@ -136,6 +136,7 @@ const validStatus = ref<any>(true);
 const form = ref<any>({
     id: undefined,
     groupType: '1',
+    putawayFlag: '0',
     standard: null
 });
 const rules = reactive({});
@@ -146,7 +147,7 @@ const save = debounce(async (putawayFlag: string) => {
     const params = {
         ...form.value,
         standardText: form.value.standard?.url || '',
-        putawayFlag: form.value.putawayFlag || putawayFlag
+        putawayFlag: putawayFlag || form.value.putawayFlag
     }
     const res = form.value.id ? await httpRequests.post('/dgtmedicine/groupStandard/edit', params) : await httpRequests.post('/dgtmedicine/groupStandard/add', params);
     if (res && res.code === 200) {