木星 1 miesiąc temu
rodzic
commit
c2c7dd4bd5
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/views/Authority/Role.vue

+ 4 - 1
src/views/Authority/Role.vue

@@ -207,7 +207,8 @@ const tianjia = async () => {
207
       let a1 = {
207
       let a1 = {
208
         label: item.name,
208
         label: item.name,
209
         id: item.id,
209
         id: item.id,
210
-        value: item.id
210
+        value: item.id,
211
+        childrenid: item.children[0].id
211
       }
212
       }
212
       transformedData.push(a1)
213
       transformedData.push(a1)
213
     } else {
214
     } else {
@@ -334,7 +335,9 @@ const send = (a, b) => {
334
   query.authorityList = []
335
   query.authorityList = []
335
   b.checkedNodes.map((item) => {
336
   b.checkedNodes.map((item) => {
336
     query.authorityList.push(item.value)
337
     query.authorityList.push(item.value)
338
+    query.authorityList.push(item.childrenid)
337
     query2.authorityList.push(item.value)
339
     query2.authorityList.push(item.value)
340
+    query2.authorityList.push(item.childrenid)
338
   })
341
   })
339
 }
342
 }
340
 
343