From 7319ec49da9f1490ad35f47e0da62546d1cc7ff4 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 27 Jan 2026 18:05:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 applications/task-work-order/src/views/orderView/organizational/agenciesManagement/index.vue |   30 ++++++------------------------
 1 files changed, 6 insertions(+), 24 deletions(-)

diff --git a/applications/task-work-order/src/views/orderView/organizational/agenciesManagement/index.vue b/applications/task-work-order/src/views/orderView/organizational/agenciesManagement/index.vue
index 457e203..fc7452c 100644
--- a/applications/task-work-order/src/views/orderView/organizational/agenciesManagement/index.vue
+++ b/applications/task-work-order/src/views/orderView/organizational/agenciesManagement/index.vue
@@ -56,7 +56,7 @@
         <el-table class="gd-table" :data="list">
           <el-table-column label="序号" width="80">
             <template v-slot="{ $index }">
-              {{ ((searchParams.current - 1) * searchParams.size + $index + 1).toString().padStart(2, '0') }}
+              {{ $index + 1 }}
             </template>
           </el-table-column>
           <el-table-column prop="deptCode" show-overflow-tooltip label="机构编码" />
@@ -68,7 +68,7 @@
              {{ getDictLabel(row.status, dictObj.institutionStatus) }}
             </template>
           </el-table-column>
-          <el-table-column label="操作" class-name="operation-btns" width="310">
+          <el-table-column label="操作" class-name="operation-btns" width="400">
             <template v-slot="{ row }">
               <el-link type="primary" @click="openForm('view', row)">查看</el-link>
               <el-link type="primary"  @click="openForm('edit', row)">编辑</el-link>
@@ -197,8 +197,9 @@
 async function loadRegionNode(node, resolve) {
 
   try {
-    const parentCode = node.data?.id || '360800000000'
-    const res = await regionLazyTreeApi({ parentCode })
+    // 初始化加载时传递 code 参数,加载子节点时传递 parentCode 参数
+    const params = node.data?.id ? { parentCode: node.data.id } : { code: '360800000000' }
+    const res = await regionLazyTreeApi(params)
     const nodes = res?.data?.data || []
     
     // 处理返回的节点数据
@@ -217,25 +218,7 @@
   }
 }
 
-// 获取初始区域数据(根节点)
-async function getRegionList() {
-  try {
-    // 懒加载模式下,只需要初始化根节点
-    const res = await regionLazyTreeApi({ parentCode: '360800000000' })
-    const nodes = res?.data?.data || []
-    
-    // 处理根节点数据
-    regionOptions.value = nodes.map(item => {
-      return {
-        id: item.id || item.value,
-        name: item.name || item.title || item.label,
-        hasChildren: item.hasChildren || false
-      }
-    })
-  } catch (error) {
-    console.error('获取区域数据失败:', error)
-  }
-}
+
 
 // 获取列表
 async function getList() {
@@ -384,7 +367,6 @@
 
 onMounted(() => {
   getDictList()
-  getRegionList()
   getList()
 })
 </script>

--
Gitblit v1.9.3