ZaiZai před 1 rokem
rodič
revize
ce54c12678

+ 4 - 9
src/views/tentative/detect/components/ListItem.vue

@@ -670,7 +670,7 @@ const changePositionInput = (infodata) => {
 }
 
 //获取已填写的数据
-const getBussDataInfo = async (item, index, loadDataId = null) => {
+const getBussDataInfo = async (item, index) => {
     const pkeyIds = getValString(item.pKeyId)
     const { contractId } = baseData.value
     if (pkeyIds) {
@@ -679,7 +679,6 @@ const getBussDataInfo = async (item, index, loadDataId = null) => {
             id: id || nodeIdvaluedata.value || newaddId.value,
             pkeyId: pkeyIds,
             contractId: contractId,
-            loadDataId: loadDataId,
         }, false)
         emit('changesingSaveId', pkeyIds)
         if (item.oper) {
@@ -687,7 +686,6 @@ const getBussDataInfo = async (item, index, loadDataId = null) => {
             formData.value[index] = {
                 ...item,
                 isCollapseLoad: true,
-                loadDataId: loadDataId,
             }
             getsampleData()
             getPositionData()
@@ -700,7 +698,6 @@ const getBussDataInfo = async (item, index, loadDataId = null) => {
                     formData.value[index] = {
                         ...resData, ...InitObj,
                         isCollapseLoad: true,
-                        loadDataId: loadDataId,
                     }
                     getsampleData()
                     getPositionData()
@@ -708,7 +705,6 @@ const getBussDataInfo = async (item, index, loadDataId = null) => {
                     formData.value[index] = {
                         ...getFormDataInit(item),
                         isCollapseLoad: true,
-                        loadDataId: loadDataId,
                     }
                     getsampleData()
                     getPositionData()
@@ -716,7 +712,6 @@ const getBussDataInfo = async (item, index, loadDataId = null) => {
             })
         }
         chartKey.value = formData.value[index].formchartKeyShow
-        console.log(formData.value[index])
     } else {
         window?.$message?.warning('pkeyId为空')
     }
@@ -1732,9 +1727,9 @@ const linksAcquisitionClick = async () => {
     const item = linkAcquisitionRow.value
     const index = linkAcquisitionIndex.value
     const dataId = linkAcquisitionLoadDataId.value
-    await getBussDataInfo(item, index, dataId)
-    //listDatas.value[index].loadDataId = id
-    //formData.value[index].loadDataId = id
+    listDatas.value[index].loadDataId = dataId
+    formData.value[index].loadDataId = dataId
+    await tableFormSaveClick(item, index)
     linksAcquisitionClose()
 }