CzRger пре 5 месеци
родитељ
комит
68e9f24ba5
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/api/modules/manage/service.ts
  2. 1 1
      src/views/manage/service/index.vue

+ 1 - 1
src/api/modules/manage/service.ts

@@ -27,7 +27,7 @@ export const outsideServiceFindByPage = (params: any) => handle({
 // 启用|停用
 // 启用|停用
 export const outsideServiceStatusUpdate = (params: any) => handle({
 export const outsideServiceStatusUpdate = (params: any) => handle({
   url: `/${suffix}/api/outsideService/statusUpdate`,
   url: `/${suffix}/api/outsideService/statusUpdate`,
-  method: 'post',
+  method: 'get',
   params
   params
 })
 })
 // 详情
 // 详情

+ 1 - 1
src/views/manage/service/index.vue

@@ -199,7 +199,7 @@ const onStatus = (row, status) => {
     type: "warning",
     type: "warning",
   } as any).then(() => {
   } as any).then(() => {
     state.query.loading = true
     state.query.loading = true
-    outsideServiceStatusUpdate({id: row.id, status}).then(res => {
+    outsideServiceStatusUpdate(proxy.$util.formatGetParam({id: row.id, status})).then(res => {
       ElMessage.success(status == 1 ? '启用成功!' : '禁用成功!')
       ElMessage.success(status == 1 ? '启用成功!' : '禁用成功!')
       state.query.loading = false
       state.query.loading = false
       onSearch()
       onSearch()