|
@@ -165,7 +165,7 @@
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { getDictionaryData, isNumberReg } from '~uti/tools'
|
|
|
-import { arrToKey, formValidate, getArrValue, getObjValue, isArray, isNullES } from 'js-fast-way'
|
|
|
+import { arrIndex, arrToKey, formValidate, getArrValue, getObjValue, isArray, isNullES } from 'js-fast-way'
|
|
|
import ChangeRequest from './changeRequest.vue'
|
|
|
import unitApi from '~api/project/debit/contract/unit'
|
|
|
import mainApi from '~api/alter/admin/order'
|
|
@@ -339,7 +339,8 @@ const rowChangeNodeClick = ({ row, index }) => {
|
|
|
if (!isArray(row.formList)) {
|
|
|
tableData.value[index].formList = []
|
|
|
}
|
|
|
- tableIndex.value = index
|
|
|
+ // tableIndex.value = index
|
|
|
+ tableIndex.value = arrIndex(tableData.value, 'id', row.id)
|
|
|
changeNodeItem.value = row
|
|
|
}
|
|
|
|