From 00d4082a1709e7c32e7fdefc815266a58d87bf8e Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期一, 01 八月 2022 10:26:48 +0800 Subject: [PATCH] 对接 --- src/views/facilityManagement/InstrumentationInformation/index.vue | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/facilityManagement/InstrumentationInformation/index.vue b/src/views/facilityManagement/InstrumentationInformation/index.vue index 3a43231..55bcddd 100644 --- a/src/views/facilityManagement/InstrumentationInformation/index.vue +++ b/src/views/facilityManagement/InstrumentationInformation/index.vue @@ -17,9 +17,8 @@ </el-form> <el-row> <el-col :span="4"> - <el-input v-model="filterText" style="height: 30px" placeholder="请输入关键字" /> + <el-input v-model="filterText" style="height: 30px" placeholder="请输入关键字" /> <div class="tree"> - <!-- <el-tree ref="treeRef" class="filter-tree" :data="data" :props="props" :filter-node-method="filterNode" /> --> <el-tree ref="treeRef" :data="data" :props="props" @node-click="handleNodeClick" :filter-node-method="filterNode" /> </div> @@ -38,7 +37,7 @@ </div> </div> <div style="padding-left: 10px"> - <el-table ref="multipleTableRef" :data="tableData" style="width: 100%"> + <el-table ref="multipleTableRef" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"> <el-table-column type="selection" align="center" width="55" /> <el-table-column type="expand"> <template #default="scope"> @@ -142,6 +141,7 @@ // 重置 const resetForm = () => { ruleForm.searchParams.qName = ''; + ruleForm.searchParams.positionNum = ''; listApi(); }; const listApi = () => { @@ -183,7 +183,7 @@ // 弹窗 const openAdd = ref(); const openD = (title: String, id: number) => { - openAdd.value.openDailog(title,false,id,0); + openAdd.value.openDailog(title, false, id, 0); }; // 删除 const onDelete = (id: number) => { @@ -226,13 +226,13 @@ } deletAll.value = arr.toString(); if (val.length == 1) { - // warning.value = false; + warning.value = false; danger.value = false; } else if (val.length == 0) { - // warning.value = true; + warning.value = true; danger.value = true; } else { - // warning.value = true; + warning.value = true; danger.value = false; } }; @@ -272,7 +272,7 @@ .getequipmentTypeMngTreeData() .then((res) => { if (res.data.code == 200) { - data.value= res.data.data; + data.value = res.data.data; } else { ElMessage({ showClose: true, @@ -286,7 +286,7 @@ label: 'typeName', children: 'childList', value: 'id', - } + }; watch(filterText, (val) => { treeRef.value!.filter(val); }); @@ -295,18 +295,18 @@ if (!value) return true; return data.typeName.includes(value); }; - const handleNodeClick=(data: Tree)=>{ - ruleForm.searchParams.positionNum=data.id + const handleNodeClick = (data: Tree) => { + ruleForm.searchParams.positionNum = data.id; listApi(); - } - const data=ref([]) + }; + const data = ref([]); onMounted(() => { listApiTree(); }); const handleClicks = (tab: TabsPaneContext, event: Event) => { console.log(tab, event); }; - + const activeName = ref('first'); // const Show=ref() // const openUp=()=>{ -- Gitblit v1.9.2