浏览代码

报错提醒修改

duy 1 年之前
父节点
当前提交
c123b6fa05

+ 3 - 1
src/views/data-fill/collapse-form/formula.vue

@@ -91,7 +91,7 @@ const getPanel = async () => {
 }
 
 const panelSave = async () => {
-    const { error, code } = await wbsApi.savePanel({
+    const { error, code, msg } = await wbsApi.savePanel({
         parentId: formparent_id.value,
         key: key_name.value,
         contractId: contractId.value,
@@ -102,6 +102,8 @@ const panelSave = async () => {
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
+    } else {
+        window.$message.error(msg)
     }
 }
 

+ 4 - 2
src/views/data-fill/collapse-form/test-file.vue

@@ -17,7 +17,7 @@
                     :tenant-id="tenant_id"
                     :wbs-id="wbsTempId"
                     :wbs-type="wbs_type"
-                    @nodeTap="fileModalElTreeClick"
+                    @node-tap="fileModalElTreeClick"
                 />
                 <!-- 第三方树 -->
                 <ElTree
@@ -352,7 +352,7 @@ const savefileSubmit = async () => {
 
 //关联试验文件
 const savesubmitRelationFile = async (ids) => {
-    const { error, code, data } = await samplingApi.submitRelationFile({
+    const { error, code, data, msg } = await samplingApi.submitRelationFile({
         projectId: projectId.value,
         contractId: contractId.value,
         nodeId: isPrimaryKeyId.value,
@@ -361,6 +361,8 @@ const savesubmitRelationFile = async (ids) => {
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
+    } else {
+        window.$message.error(msg)
     }
 }
 

+ 3 - 1
src/views/data-fill/collapse-form/water.vue

@@ -61,7 +61,7 @@ watch(() => [
 
 
 const waterSave = async ()=>{
-    const { error, code, data } = await wbsApi.calculateWater({
+    const { error, code, data, msg } = await wbsApi.calculateWater({
         ...waterModal.value,
         key: key_name.value,
         contractId: contractId.value,
@@ -71,6 +71,8 @@ const waterSave = async ()=>{
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
         return data
+    } else {
+        window.$message.error(msg)
     }
 }
 

+ 23 - 9
src/views/data-fill/division.vue

@@ -955,7 +955,7 @@ const copyNodeClick = async () => {
 const copyContractTreeNode = async (type, form, table, classify) => {
     copyNodeLoading.value = true
     if (type === '1') {
-        const { error, code } = await wbsApi.copyContractTreeNode({
+        const { error, code, msg } = await wbsApi.copyContractTreeNode({
             copyType: type,
             needCopyNodeName: form?.title || '',
             partitionCode: form?.partitionCode || '',
@@ -971,9 +971,11 @@ const copyContractTreeNode = async (type, form, table, classify) => {
             window?.$message?.success('复制成功')
             copyNodeModal.value = false
             window?.location?.reload() //刷新页面
-        }
+        } else {
+        window.$message.error(msg)
+    }
     } else {
-        const { error, code } = await wbsApi.copyContractTreeNode({
+        const { error, code, msg } = await wbsApi.copyContractTreeNode({
             copyType: type,
             needCopyNodeName: form?.title || '',
             needCopyPrimaryKeyId: form?.primaryKeyId || '',
@@ -988,6 +990,8 @@ const copyContractTreeNode = async (type, form, table, classify) => {
             window?.$message?.success('复制成功')
             copyNodeModal.value = false
             window?.location?.reload() //刷新页面
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -995,7 +999,7 @@ const copyContractTreeNode = async (type, form, table, classify) => {
 //复制数据
 const copyContractNodeSubmitBusinessData = async (form, table, classify) => {
     copyNodeLoading.value = true
-    const { error, code } = await wbsApi.copyContractNodeSubmitBusinessData({
+    const { error, code, msg } = await wbsApi.copyContractNodeSubmitBusinessData({
         needCopyPrimaryKeyId: form?.primaryKeyId || '',
         copyBatchToPaths: table,
         classify: classify,
@@ -1006,7 +1010,9 @@ const copyContractNodeSubmitBusinessData = async (form, table, classify) => {
         window?.$message?.success('复制成功')
         copyNodeModal.value = false
         window?.location?.reload() //刷新页面
-    }
+    } else {
+            window.$message.error(msg)
+      }
 }
 
 //新增节点
@@ -1058,7 +1064,7 @@ const addNodeClick = async () => {
         //发起请求
         addNodeLoading.value = true
         const primaryKeyId = treeItemInfo.value?.primaryKeyId || ''
-        const { error, code } = await wbsApi.saveContractTreeNode({
+        const { error, code, msg } = await wbsApi.saveContractTreeNode({
             projectId: projectId.value,
             contractId: contractId.value,
             saveType: addTreeNodeType.value,
@@ -1072,13 +1078,15 @@ const addNodeClick = async () => {
             window?.$message?.success('新增成功')
             addNodeModal.value = false
             window?.location?.reload() //刷新页面
+        } else {
+            window.$message.error(msg)
         }
     }
 }
 const addNodeClickCur = async ()=>{
              //发起请求
              addNodeLoadingCus.value = true
-            const { error, code } = await wbsApi.saveCustomAddContractNode({
+            const { error, code, msg } = await wbsApi.saveCustomAddContractNode({
                 nodeName: nodeNameinput.value,
                 nodeType: treeItemInfo.value?.nodeType || '',
                 partitionCode: treeItemInfo.value?.partitionCode || '',
@@ -1090,6 +1098,8 @@ const addNodeClickCur = async ()=>{
                 window?.$message?.success('新增成功')
                 addNodeModalCus.value = false
                 window?.location?.reload() //刷新页面
+            } else {
+                window.$message.error(msg)
             }
 }
 //删除节点
@@ -1108,13 +1118,15 @@ const removeContractTreeNode = async () => {
         text: '删除节点中,请耐心等待...',
         background: 'rgba(0, 0, 0, 0.7)',
     })
-    const { error, code } = await wbsApi.removeContractTreeNode({
+    const { error, code, msg } = await wbsApi.removeContractTreeNode({
         ids: treeItemInfo.value?.primaryKeyId || '',
     })
     loadingInstance.close()
     if (!error && code === 200) {
         window?.$message?.success('删除成功')
         window?.location?.reload() //刷新页面
+    } else {
+        window.$message.error(msg)
     }
 }
 
@@ -1153,13 +1165,15 @@ const sortNodeClick = async () => {
     })
     //发起请求
     sortNodeLoading.value = true
-    const { error, code } = await wbsApi.diySortTreeNode({ sortList })
+    const { error, code, msg } = await wbsApi.diySortTreeNode({ sortList })
     sortNodeLoading.value = false
     //判断状态
     if (!error && code === 200) {
         window?.$message?.success('保存成功')
         sortNodeModal.value = false
         window?.location?.reload() //刷新页面
+    } else {
+        window.$message.error(msg)
     }
 }
 

+ 22 - 8
src/views/gauge/bezier.vue

@@ -442,21 +442,25 @@ const saveLineEleClick = async () => {
     form.partNo = partNo.value
     if (form.id === -1 || !form.id) {
         saveLoading.value = true
-        const { error, code } = await bezierApi.saveAddMileage(form)
+        const { error, code, msg } = await bezierApi.saveAddMileage(form)
         saveLoading.value = false
         if (!error && code === 200) {
             window?.$message?.success('保存成功')
             showLineEleModal.value = false
             getTableData()
+        } else {
+            window.$message.error(msg)
         }
     } else {
         saveLoading.value = true
-        const { error, code } = await bezierApi.saveUpdateMileage(form)
+        const { error, code, msg } = await bezierApi.saveUpdateMileage(form)
         saveLoading.value = false
         if (!error && code === 200) {
             window?.$message?.success('保存成功')
             showLineEleModal.value = false
             getTableData()
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -496,7 +500,7 @@ const showToModalClick = () => {
 }
 //转换坐标
 const queryPsChange = async () => {
-    const { error, code, data } = await bezierApi.queryPsChange({
+    const { error, code, data, msg } = await bezierApi.queryPsChange({
         ...formToValue.value,
         projectId: projectId.value,
         partId: searchForm.value.partId,
@@ -507,6 +511,8 @@ const queryPsChange = async () => {
         formToValue.value['x'] = res?.x + ''
         formToValue.value['y'] = res?.y + ''
         window?.$message?.success('转换成功')
+    } else {
+        window.$message.error(msg)
     }
 }
 
@@ -678,7 +684,7 @@ const savePartInfo = async () => {
     const validate = await formValidate(partFormRef.value)
     if (validate) {
         savePartLoading.value = true
-        const { error, code } = await bezierApi.savePartAdd({
+        const { error, code, msg } = await bezierApi.savePartAdd({
             ...partForm.value,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -688,6 +694,8 @@ const savePartInfo = async () => {
             window?.$message?.success('新增成功')
             showAddPartModal.value = false
             queryPartList()
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -715,7 +723,7 @@ const handleAdminPartSave = async (row) => {
     } else if (!reg.test(row.prefix) && row.name.indexOf('主线') < 0) {
         window?.$message?.warning('桩号前缀,只允许输入大写的英文字母')
     } else if (row.id) {
-        const { error, code } = await bezierApi.savePartUpdate({
+        const { error, code, msg } = await bezierApi.savePartUpdate({
             ...row,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -724,9 +732,11 @@ const handleAdminPartSave = async (row) => {
             window?.$message?.success('保存成功')
             row.isEdit = false
             queryPartList()
+        } else {
+            window.$message.error(msg)
         }
     } else if (!row.id) {
-        const { error, code, data } = await bezierApi.savePartAdd({
+        const { error, code, data, msg } = await bezierApi.savePartAdd({
             ...row,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -738,6 +748,8 @@ const handleAdminPartSave = async (row) => {
             row.id = data.id
             partData.value.push(data)
             //queryPartList()不要刷新
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -761,13 +773,15 @@ const handleAdminPartDelete = (row, index) => {
 }
 
 const handleAdminPartDeleteSub = async (row, index) => {
-    const { error, code } = await bezierApi.delPartData({
+    const { error, code, msg } = await bezierApi.delPartData({
         ids: row.id,
     })
     if (!error && code === 200) {
         window?.$message?.success('删除成功')
         queryPartList()
-    }
+    } else {
+            window.$message.error(msg)
+        }
 
 }
 </script>

+ 3 - 1
src/views/ledger/components/table-form.vue

@@ -730,7 +730,7 @@ const copyTimeSaveClick = () => {
 const copyTheLogBusinessData = async (ids) => {
     copyTimeLoading.value = true
     const { primaryKeyId } = menuItem.value
-    const { error, code } = await queryApi.copyTheLogBusinessData({
+    const { error, code, msg } = await queryApi.copyTheLogBusinessData({
         contractId: contractId.value || '',
         nodePrimaryKeyId: primaryKeyId,
         currentTime: recordTime.value,
@@ -747,6 +747,8 @@ const copyTheLogBusinessData = async (ids) => {
             setMountOnEventKey()
             getQueryData()
         }, 1000)
+    } else {
+            window.$message.error(msg)
     }
 }
 

+ 18 - 7
src/views/other/components/ListItem.vue

@@ -795,7 +795,7 @@ const saveExcelBussData = async (item, index, showTip = true) => {
         console.log(primaryKeyId, 'primaryKeyId')
         const linkIds = rowsToArr(tableFileData.value)
         console.log(formData.value[index], 'formData')
-        const { error, code, data } = await firstApi.saveBussData({
+        const { error, code, data, msg } = await firstApi.saveBussData({
             ...formData.value[index],
             projectId: projectId.value,
             contractId: contractId.value,
@@ -812,6 +812,9 @@ const saveExcelBussData = async (item, index, showTip = true) => {
             if (showTip) window?.$message?.success('保存成功')
             return data
         } else {
+            
+            window.$message.error(msg)
+        
             return false
         }
     } else {
@@ -850,13 +853,15 @@ const delClick = async (item) => {
     const pkeyIds = item.pkeyId ? item.pkeyId + '' : ''
     if (pkeyIds) {
         if (isStatus.value !== '3') {
-            const { error, code } = await wbsApi.removeBussTabInfo({
+            const { error, code, msg } = await wbsApi.removeBussTabInfo({
                 pkeyid: pkeyIds,
                 classify: classify.value,
             })
             if (!error && code === 200) {
                 window?.$message?.success('操作成功')
                 renewData()
+            } else {
+                window.$message.error(msg)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许删除')
@@ -997,13 +1002,15 @@ const copyModalTableCheck = async (item) => {
     console.log('复制本表', item)
 }
 const copeBussTab = async (pkeyIds) => {
-    const { error, code } = await wbsApi.copeBussTab({
+    const { error, code, msg } = await wbsApi.copeBussTab({
         pkeyId: pkeyIds,
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
         renewData()
-    }
+    } else {
+            window.$message.error(msg)
+     }
 }
 
 
@@ -1013,13 +1020,15 @@ const hideClick = async (item) => {
     if (pkeyIds) {
         if (isStatus.value !== '3') {
             const isBussShow = item['isBussShow'] === 2 ? 1 : 2 //状态(1显示 2隐藏)
-            const { error, code } = await wbsApi.showBussTab({
+            const { error, code, msg } = await wbsApi.showBussTab({
                 pkeyId: pkeyIds,
                 status: isBussShow,
             })
             if (!error && code === 200) {
                 window?.$message?.success('操作成功')
                 renewData()
+            } else {
+                window.$message.error(msg)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许隐藏')
@@ -1692,7 +1701,7 @@ const thirdtreeDatasElTreeClick = (data, node) => {
 //关联试验文件
 const savesubmitRelationFile = async (ids) => {
     console.log(isPrimaryKeyId.value, ' isPrimaryKeyId.value')
-    const { error, code, data } = await samplingApi.submitRelationFile({
+    const { error, code, data, msg } = await samplingApi.submitRelationFile({
         projectId: projectId.value,
         contractId: contractId.value,
         nodeId: isPrimaryKeyId.value,
@@ -1701,7 +1710,9 @@ const savesubmitRelationFile = async (ids) => {
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
-    }
+    } else {
+            window.$message.error(msg)
+      }
 }
 //设计值频率计算
 const IDVFModalSaveClick = async () => {

+ 12 - 4
src/views/patrol/add.vue

@@ -708,7 +708,7 @@ const saveInfo = async ()=>{
         addForm.value.contractId = contractId.value
         addForm.value.list = processDataList.value
         saveLoading.value = true
-        const { error, code } = await patrolApi.add(
+        const { error, code, msg } = await patrolApi.add(
           addForm.value,
         )
         saveLoading.value = false
@@ -716,6 +716,8 @@ const saveInfo = async ()=>{
             window?.$message?.success('操作成功')
 
             goList()
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -728,13 +730,15 @@ const updateInfo = async ()=>{
         addForm.value.projectId = projectId.value
         addForm.value.list = processDataList.value
         updateLoaing.value = true
-        const { error, code } = await patrolApi.update(
+        const { error, code, msg } = await patrolApi.update(
           addForm.value,
         )
         updateLoaing.value = false
         if (!error && code === 200) {
             window?.$message?.success('操作成功')
             goList()
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -754,7 +758,7 @@ const changeRowInfo = async ()=>{
         addForm.value.projectId = projectId.value
         addForm.value.list = processDataList.value
         changeRowLoaing.value = true
-        const { error, code } = await patrolApi.submitRectify(
+        const { error, code, msg } = await patrolApi.submitRectify(
           addForm.value,
         )
         changeRowLoaing.value = false
@@ -764,6 +768,8 @@ const changeRowInfo = async ()=>{
                 path: '/patrol/manage',
 
             })
+        } else {
+            window.$message.error(msg)
         }
     }
 }
@@ -777,7 +783,7 @@ const reviewInspect = async (type)=>{
         reviewInspectLoaing1.value = false
     }
 
-        const { error, code } = await patrolApi.reviewInspect(
+        const { error, code, msg } = await patrolApi.reviewInspect(
             { id:id.value,
             status:type },
         )
@@ -786,6 +792,8 @@ const reviewInspect = async (type)=>{
         if (!error && code === 200) {
             window?.$message?.success('操作成功')
             goList()
+        } else {
+            window.$message.error(msg)
         }
 
 }

+ 6 - 2
src/views/tasks/flow.vue

@@ -164,7 +164,7 @@ const saveFormClick = async () => {
     const form = flowFormData.value
     if (!form.id) {
         sevaLoading.value = true
-        const { error, code } = await tasksFlowApi.addFixedFlowData({
+        const { error, code, msg } = await tasksFlowApi.addFixedFlowData({
             ...form,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -175,10 +175,12 @@ const saveFormClick = async () => {
             showEditModal.value = false
             window?.$message?.success('保存成功')
             getTableData()
+        } else {
+            window.$message.error(msg)
         }
     } else {
         sevaLoading.value = true
-        const { error, code } = await tasksFlowApi.updateFixedFlowData({
+        const { error, code, msg } = await tasksFlowApi.updateFixedFlowData({
             ...form,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -189,6 +191,8 @@ const saveFormClick = async () => {
             showEditModal.value = false
             window?.$message?.success('保存成功')
             getTableData()
+        } else {
+            window.$message.error(msg)
         }
     }
 }

+ 4 - 2
src/views/tentative/collect/test.vue

@@ -360,14 +360,16 @@ const removeContractTreeNode = async () => {
         background: 'rgba(0, 0, 0, 0.7)',
     })
 
-    const { error, code } = await removeByIds({
+    const { error, code, msg } = await removeByIds({
         ids: arrToId( tableCheckedKeys.value),
     })
     loadingInstance.close()
     if (!error && code === 200) {
         window?.$message?.success('删除成功')
             getTableData()
-    }
+    } else {
+            window.$message.error(msg)
+     }
 }
 //左右拖动,改变树形结构宽度
 const leftWidth = ref(382)

+ 8 - 3
src/views/tentative/detect/collapse-form/src/index.vue

@@ -493,7 +493,7 @@ const delClick = async ({ pKeyId }, index) => {
     if (pKeyId) {
         if (isStatus.value !== 3) {
             tableFormDelLoading.value = true
-            const { error, code } = await wbsApi.removeBussTabInfo({
+            const { error, code, msg } = await wbsApi.removeBussTabInfo({
                 pKeyId: pKeyId,
                 classify: classifys.value,
             })
@@ -504,6 +504,8 @@ const delClick = async ({ pKeyId }, index) => {
                 delWindowRefs(pKeyId)
                 // renewData()
                 listDatas.value.splice(index, 1)
+            } else {
+                window.$message.error(msg)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许删除')
@@ -527,7 +529,7 @@ const hideClick = async ({ pKeyId, isBussShow }, index) => {
         if (isStatus.value !== 3) {
             tableFormHideLoading.value = true
             const bussShow = isBussShow === 2 ? 1 : 2 //状态(1显示 2隐藏)
-            const { error, code } = await wbsApi.showBussTab({
+            const { error, code, msg } = await wbsApi.showBussTab({
                 pKeyId: pKeyId,
                 status: bussShow,
                 classify: classifys.value,
@@ -546,6 +548,8 @@ const hideClick = async ({ pKeyId, isBussShow }, index) => {
                     delWindowRefs(pKeyId)
                 }
                 // renewData()
+            } else {
+                window.$message.error(msg)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许隐藏')
@@ -611,7 +615,7 @@ const saveExcelBussData = async ({ pKeyId }, dragItem = null, showTip = true) =>
     const isRegExp = await refs?.isFormRegExp()
     if (isRegExp) {
         const formData = refs?.getFormData()
-        const { error, code } = await wbsApi.saveExcelBussData(formData)
+        const { error, code, msg } = await wbsApi.saveExcelBussData(formData)
         setDragModalLoading(dragItem)
         if (!error && code === 200) {
             if (showTip) {
@@ -619,6 +623,7 @@ const saveExcelBussData = async ({ pKeyId }, dragItem = null, showTip = true) =>
             }
             return true
         } else {
+             window?.$message?.error(msg)
             return false
         }
     } else {

+ 8 - 4
src/views/tentative/detect/components/HcTreeData.vue

@@ -206,7 +206,7 @@ const nodeFormModalSave = async () => {
     const validate = await formValidate(nodeFormRef.value)
     if (validate) {
         //发起请求
-        const { error, code } = await submitTree({
+        const { error, code, msg } = await submitTree({
             ...nodeFormModel.value,
             projectId: projectId.value,
             contractId: contractId.value,
@@ -216,7 +216,9 @@ const nodeFormModalSave = async () => {
             window?.$message?.success('操作成功')
             nodeFormModal.value = false
             await getTreeDatas()
-        }
+        } else {
+                window.$message.error(msg)
+         }
     }
 }
 
@@ -227,7 +229,7 @@ const nodeFormModalClose = () => {
 
 //删除节点
 const treeRemoveData = async (id) => {
-    const { error, code } = await removeTree({
+    const { error, code, msg } = await removeTree({
         projectId: projectId.value,
         contractId: contractId.value,
         id: id,
@@ -236,7 +238,9 @@ const treeRemoveData = async (id) => {
     if (!error && code === 200) {
         window?.$message?.success('操作成功')
         await getTreeDatas()
-    }
+    } else {
+          window.$message.error(msg)
+     }
 }
 </script>
 

+ 2 - 1
src/views/tentative/detect/components/HcUpload.vue

@@ -139,7 +139,7 @@ const delUploadData = async ({ id }) => {
     loadingText.value = '删除中...'
     uploadDisabled.value = true
     if (id) {
-            const { error, code } = await wbsApi.removeBussFile1({
+            const { error, code, msg } = await wbsApi.removeBussFile1({
             ids: id,
             tableType: tableType.value,
             contractId: contractId.value,
@@ -150,6 +150,7 @@ const delUploadData = async ({ id }) => {
             window?.$message?.success('删除成功')
             return true
         } else {
+            window.$message.errInfo(msg)
             return false
         }
     } else {

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

@@ -796,7 +796,7 @@ const saveExcelBussData = async (item, index, showTip = true) => {
             baseData.value.id = newaddId.value
         }
 
-        const { error, code, data } = await dataApi.saveExcelBussData({
+        const { error, code, data, msg } = await dataApi.saveExcelBussData({
             ...baseData.value,
             isBatchSave: 0,
             dataInfo: {
@@ -811,6 +811,7 @@ const saveExcelBussData = async (item, index, showTip = true) => {
             newaddId.value = data
             return true
         } else {
+            window.$message.error(msg)
             return false
         }
     } else {
@@ -851,7 +852,7 @@ const delClick = async ({ pKeyId }, index) => {
     if (pkeyIds) {
         const { id } = baseData.value
         delClickLoading.value = true
-        const { error, code } = await dataApi.removeBussTabInfo({
+        const { error, code, msg } = await dataApi.removeBussTabInfo({
             // id: id,
             pKeyId: pkeyIds,
         })
@@ -863,6 +864,7 @@ const delClick = async ({ pKeyId }, index) => {
             chageOrinData()
             delClickLoading.value = false
         } else {
+             window.$message.error(msg)
             delClickLoading.value = false
         }
     } else {
@@ -911,7 +913,7 @@ const copyClick = async (item, index) => {
 const copeBussTab = async (pkeyIds) => {
     const { id, contractId } = baseData.value
     copyClickLoading.value = true
-    const { error, code } = await dataApi.copyBussTab({
+    const { error, code, msg } = await dataApi.copyBussTab({
         id: id || newaddId.value,
         pKeyId: pkeyIds,
         contractId: contractId,
@@ -921,6 +923,8 @@ const copeBussTab = async (pkeyIds) => {
         // renewData(id)
        chageOrinData()
         getNewList( )
+    } else {
+         window.$message.error(msg)
     }
     copyClickLoading.value = false
 }
@@ -946,7 +950,7 @@ const hideClick = async ({ pKeyId, isBussShow }, index) => {
         if (isStatus.value !== '3') {
             const { id } = baseData.value
             const isBussShows = isBussShow === 2 ? 1 : 2 //状态(1显示 2隐藏)
-            const { error, code } = await dataApi.showBussTab({
+            const { error, code, msg } = await dataApi.showBussTab({
                 id: id,
                 pKeyId: pkeyIds,
                 status: isBussShows,
@@ -957,6 +961,8 @@ const hideClick = async ({ pKeyId, isBussShow }, index) => {
                 listDatas.value[index].isBussShow = isBussShows
                 changeisHide(pkeyIds, isBussShow, id)
                 formData.value[index].isBussShow = isBussShows
+            } else {
+                window.$message.error(msg)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许隐藏')