|
@@ -145,28 +145,9 @@ const editRole = async (data) => {
|
145
|
145
|
console.log('kankna===', res)
|
146
|
146
|
query2.authorityList = res.data.authorityList
|
147
|
147
|
res.data.authorityList.map((item) => {
|
148
|
|
- if (item == 1) {
|
149
|
|
- morenxz.push(1)
|
150
|
|
- }
|
151
|
|
- if (item == 3) {
|
152
|
|
- morenxz.push(2)
|
153
|
|
- }
|
154
|
|
- if (item == 5) {
|
155
|
|
- morenxz.push(3)
|
156
|
|
- }
|
157
|
|
- if (item == 10) {
|
158
|
|
- morenxz.push(7)
|
159
|
|
- }
|
160
|
|
- if (item == 10) {
|
161
|
|
- morenxz.push(7)
|
162
|
|
- }
|
163
|
|
- if (item == 8) {
|
164
|
|
- morenxz.push(5)
|
165
|
|
- }
|
166
|
|
- if (item == 9) {
|
167
|
|
- morenxz.push(6)
|
168
|
|
- }
|
|
148
|
+ morenxz.push(item)
|
169
|
149
|
})
|
|
150
|
+ console.log('sssssa', morenxz)
|
170
|
151
|
|
171
|
152
|
tianjia().then(async () => {
|
172
|
153
|
const formData = await getFormData()
|
|
@@ -225,8 +206,8 @@ const tianjia = async () => {
|
225
|
206
|
if (item.children.length == 1) {
|
226
|
207
|
let a1 = {
|
227
|
208
|
label: item.name,
|
228
|
|
- id: index,
|
229
|
|
- value: [item.id, item.children.id]
|
|
209
|
+ id: item.id,
|
|
210
|
+ value: item.id
|
230
|
211
|
}
|
231
|
212
|
transformedData.push(a1)
|
232
|
213
|
} else {
|
|
@@ -237,8 +218,8 @@ const tianjia = async () => {
|
237
|
218
|
children: item.children.map((item2, index) => {
|
238
|
219
|
let a2 = {
|
239
|
220
|
label: item2.name,
|
240
|
|
- id: index,
|
241
|
|
- value: [item2.id]
|
|
221
|
+ id: item2.id,
|
|
222
|
+ value: item2.id
|
242
|
223
|
}
|
243
|
224
|
return a2
|
244
|
225
|
})
|
|
@@ -247,6 +228,8 @@ const tianjia = async () => {
|
247
|
228
|
}
|
248
|
229
|
})
|
249
|
230
|
data = transformedData
|
|
231
|
+ console.log('sadas22d', data)
|
|
232
|
+
|
250
|
233
|
isshow.value = false
|
251
|
234
|
}
|
252
|
235
|
|