Browse Source

试验修改

duy 11 months ago
parent
commit
2724f005c7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/tentative/detect/test-form.vue

+ 3 - 1
src/views/tentative/detect/test-form.vue

@@ -945,7 +945,7 @@ const getrecordsamplegetData = async () => {
 }
 //获取关联工程部位key值
 const getpositiondata = async () => {
-    const { error, code, data } = await dataApi.recordprojectPositiongetData({
+    const { error, code, data, msg } = await dataApi.recordprojectPositiongetData({
         projectPositionIds:checkrelationString.value,
         nodePKeyId: routerQuery?.nodeId,
         contractId: contractId.value,
@@ -955,6 +955,8 @@ const getpositiondata = async () => {
 
         return data
 
+    } else {
+        window.$message?.error(msg || '操作失败')
     }
 
 }