Ver Fonte

修改启动或禁用

zs há 8 meses atrás
pai
commit
5734c0558c

+ 1 - 1
src/views/achievement/index.vue

@@ -289,7 +289,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/demand/demand/index.vue

@@ -276,7 +276,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/demand/supply/index.vue

@@ -269,7 +269,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/footplate/index.vue

@@ -236,7 +236,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/journal/index.vue

@@ -194,7 +194,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/journal/notes.vue

@@ -196,7 +196,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/match/info/index.vue

@@ -345,7 +345,7 @@ const toUse = async (data, is_use) => {
     type: 'warning'
   })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/platform/news/index.vue

@@ -220,7 +220,7 @@ const toUse = async (data, is_use) => {
     type: 'warning'
   })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/platform/policy/index.vue

@@ -220,7 +220,7 @@ const toUse = async (data, is_use) => {
     type: 'warning'
   })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/platform/trends/index.vue

@@ -220,7 +220,7 @@ const toUse = async (data, is_use) => {
     type: 'warning'
   })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/project/index.vue

@@ -282,7 +282,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/support/index.vue

@@ -233,7 +233,7 @@ const toExamSave = async () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.name}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/system/sector/index.vue

@@ -193,7 +193,7 @@ const toClose = () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.title}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }

+ 1 - 1
src/views/system/tags/index.vue

@@ -142,7 +142,7 @@ const toClose = () => {
 const toUse = async (data, is_use) => {
   ElMessageBox.confirm(`确定修改【${data.title}】数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
     .then(async () => {
-      let res = await store.update({ id: get(data, 'id'), is_use })
+      let res = await store.update({ id: get(data, 'id'), is_use, status: get(data, 'status') })
       if ($checkRes(res, true)) {
         search({ skip, limit })
       }