浏览代码

待测样品

ZaiZai 1 年之前
父节点
当前提交
93165d47e2
共有 1 个文件被更改,包括 2 次插入29 次删除
  1. 2 29
      src/views/tentative/detect/test.vue

+ 2 - 29
src/views/tentative/detect/test.vue

@@ -22,12 +22,6 @@
                         :wbs-type="2"
                         @node-tap="wbsElTreeClick"
                     />
-                    <!-- <HcLazyTree
-                                :isType="false"
-                                :autoExpandKeys="treeAutoExpandKeys"
-                                @load="treeLoadNode"
-                                @nodeTap="wbsElTreeClick"
-                        /> -->
                 </el-scrollbar>
             </div>
             <!-- 左右拖动 -->
@@ -297,9 +291,6 @@ import { getErtractInfo } from '~api/other'
 import wbsApi from '~api/data-fill/wbs'
 import samplingApi from '~api/tentative/material/sampling'
 import { arrToId, getArrValue, getObjValue, isString } from 'js-fast-way'
-
-import { Loading } from 'element-plus/es/components/loading/src/service'
-import notableform from '~src/assets/view/notableform.svg'
 import { HcDelMsg } from 'hc-vue3-ui'
 import { toPdfPage } from '~uti/btn-auth'
 
@@ -339,6 +330,7 @@ onMounted(() => {
     getCategoryData()
     getContractData()
 })
+
 //缓存被激活时,重新获取表格数据
 onActivated(() => {
     // setMountOnEventKey()
@@ -371,25 +363,6 @@ const setWbsTreeShow = () => {
     isWbsTreeShow.value = !isWbsTreeShow.value
 }
 
-//加载树形结构数据
-const treeLoadNode = async ({ node, item, level }, resolve) => {
-    let contractIdRelation = '', parentId = '0', primaryKeyId = ''
-    if (level !== 0) {
-        const nodeData = getObjValue(item)
-        contractIdRelation = nodeData?.contractIdRelation || ''
-        parentId = nodeData?.id
-        primaryKeyId = nodeData?.id || ''
-    }
-    //获取数据
-    const { data } = await samplingApi.queryLazyTree({
-        wbsId: projectInfo.value?.referenceWbsTemplateIdTrial,
-        tenantId: userInfo.value?.tenant_id,
-        projectId: projectId.value,
-        parentId,
-        wbsType: 2,
-    })
-    resolve(getArrValue(data))
-}
 //获取检测类别类型
 const categoryData = ref([])
 const getCategoryData = async () => {
@@ -448,7 +421,7 @@ const authBtnTabClick = (item) => {
         tableData.value = [{}]
     }
 }
-//contractType,  1施工,2监理
+//contractType,  1施工,2监理, 3业主
 const setContractType = (contractType) => {
     let typeValue = '1'
     if (contractType > 0) {