|
|
@@ -113,7 +113,6 @@ const handleDel = (item, index) => {
|
|
|
// 编辑
|
|
|
let editIndex = ref(0)
|
|
|
const initEditData = (data, index, id, arr = []) => {
|
|
|
-console.log("🚀 ~ initEditData ~ data:", data)
|
|
|
|
|
|
editIndex.value = index
|
|
|
const setList = (list) => {
|
|
|
@@ -124,14 +123,10 @@ console.log("🚀 ~ initEditData ~ data:", data)
|
|
|
})
|
|
|
}
|
|
|
JYXList.value = list
|
|
|
- // if (list && Array.isArray(list)) {
|
|
|
- // selectedList.value = JSON.parse(JSON.stringify(list))
|
|
|
- // selectedKeys.value = selectedList.value.map(a => a.drivingIntentionId)
|
|
|
- // }
|
|
|
- }
|
|
|
- if (arr.length) {
|
|
|
selectedList.value = data
|
|
|
selectedKeys.value = data.map(a => a.drivingIntentionId)
|
|
|
+ }
|
|
|
+ if (arr.length) {
|
|
|
setList(arr)
|
|
|
return
|
|
|
}
|