ZaiZai 1 год назад
Родитель
Сommit
10995d0402
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/views/tentative/detect/commission.vue

+ 4 - 2
src/views/tentative/detect/commission.vue

@@ -318,10 +318,12 @@ const delegateContractChange = async () => {
 
 //获取委托html
 const getDelegateExcelHtml = async () => {
+    const { primaryKeyId } = nodeDataInfo.value
     const { error, code, msg, data } = await samplingApi.getExcelHtml({
         primaryKeyId: nodeErTreeId.value,
         projectId: projectId.value,
         contractId: delegateContractId.value,
+        nodeId: primaryKeyId,
     })
     if (!error && code === 200) {
         delegateHtml.value = isString(data) ? data : ''
@@ -333,15 +335,15 @@ const getDelegateExcelHtml = async () => {
 
 //获取委托数据
 const getDelegateDataInfo = async (editId) => {
+    const { primaryKeyId } = nodeDataInfo.value
     const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
         id: editId,
         pkeyId: nodeErTreeId.value,
         projectId: projectId.value,
         contractId: delegateContractId.value,
+        nodeId: primaryKeyId,
     })
-
     if (!error && code === 200) {
-        console.log('--------', data)
         delegateHtmlForm.value = getObjValue(data[0])
     } else {
         delegateHtmlForm.value = {}