Pārlūkot izejas kodu

复制本表状态修改

duy 2 gadi atpakaļ
vecāks
revīzija
cc296891ca

+ 1 - 1
src/views/tentative/detect/components/ListItem.vue

@@ -694,7 +694,7 @@ const hideClick = async ({pKeyId, isBussShow}) => {
             if (!error && code === 200) {
                 window?.$message?.success('操作成功')
                 renewData()
-                changeisHide(pKeyId,isBussShow)
+                changeisHide(pkeyIds,isBussShow)
             }
         } else {
             window?.$message?.warning('已上报的资料,不允许隐藏')

+ 4 - 2
src/views/tentative/detect/test-form.vue

@@ -355,7 +355,7 @@ const getSearchNodeTables = async () => {
   
 }
 const getSearchNodeTablesall = async (type) => {
-  
+   orgAlllistData.value=[]
         const { error, code, data } = await dataApi.searchNodeTables({
             id: dataId.length>0?dataId:nodeIdvalue.value,
             projectId: projectId.value,
@@ -423,9 +423,11 @@ const getTableDataAll = () => {
 const changeorinsdate=(pKeyId,isBussShow)=>{
     orgAlllistData.value.forEach((item)=>{
         if (item.pKeyId===pKeyId) {
-            item.isBussShow=isBussShow
+             const isBussShows = isBussShow === 2 ? 1 : 2 //状态(1显示 2隐藏)
+            item.isBussShow=isBussShows
         }
     })
+    console.log( orgAlllistData.value,' orgAlllistData.value');
 }
 //设置滚动条位置
 const ListItemScrollRef = ref(null)