lrf 11 月之前
父節點
當前提交
6bf1cf9d78
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/system/dept/index.vue

+ 2 - 2
src/views/system/dept/index.vue

@@ -85,7 +85,7 @@ const toSave = async () => {
 }
 provide('toSave', toSave)
 const toDelete = async (row) => {
-  const res = await store.del(row._id)
+  const res = await store.del(row.id)
   if ($checkRes(res, true)) {
     search()
     searchNextLevel()
@@ -93,7 +93,7 @@ const toDelete = async (row) => {
 }
 provide('toDelete', toDelete)
 const toChangeUse = async (data) => {
-  const udata = { _id: data._id, is_use: data.is_use === '0' ? '1' : '0' }
+  const udata = { id: data.id, is_use: data.is_use === '0' ? '1' : '0' }
   const res = await store.update(udata)
   if ($checkRes(res, true)) {
     searchNextLevel()