Selaa lähdekoodia

变更令修改

duy 1 vuosi sitten
vanhempi
commit
ce39eceeed
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      src/views/alter/admin/components/order/addModal.vue

+ 3 - 2
src/views/alter/admin/components/order/addModal.vue

@@ -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
 }