src/views/salesManagement/opportunityManagement/index.vue
@@ -102,7 +102,7 @@
            {{ formatDate(row.updateTime) }}
          </template>
        </el-table-column>
        <el-table-column label="操作" fixed="right" width="220" align="center">
        <el-table-column label="操作" fixed="right" width="240" align="center">
          <template #default="{ row }">
            <el-button
              link
@@ -118,7 +118,7 @@
              size="small"
              @click="handleAddOperation(row)"
            >
              添加描述
              添加改造内容
            </el-button>
            <el-button
              link
@@ -439,6 +439,25 @@
const tableLoading = ref(false)
const userList = ref([])
const customerOption = ref([])
const DEFAULT_USER_QUERY = { postCode: 'Market_Sales' }
let userListPromise = null
const loadUserList = async (query = DEFAULT_USER_QUERY) => {
  if (userListPromise) return userListPromise
  userListPromise = (async () => {
    try {
      const res = await userListNoPage(query)
      userList.value = res?.data || []
      return userList.value
    } catch (err) {
      console.error('获取用户列表失败:', err)
      userList.value = []
      userListPromise = null
      throw err
    }
  })()
  return userListPromise
}
// 分页配置
const page = reactive({
@@ -652,8 +671,7 @@
  resetForm()
  
  // 加载用户列表和客户列表
  let userLists = await userListNoPage()
  userList.value = userLists.data
  await loadUserList()
  customerList().then((res) => {
    customerOption.value = res
  })
@@ -674,8 +692,7 @@
  operationType.value = 'addOperation'
  
  // 加载用户列表和客户列表
  let userLists = await userListNoPage()
  userList.value = userLists.data
  await loadUserList()
  customerList().then((res) => {
    customerOption.value = res
  })
@@ -697,8 +714,7 @@
  operationType.value = 'detail'
  
  // 加载用户列表和客户列表
  let userLists = await userListNoPage()
  userList.value = userLists.data
  await loadUserList()
  customerList().then((res) => {
    customerOption.value = res
  })
@@ -740,8 +756,7 @@
  operationType.value = 'edit'
  
  // 加载用户列表和客户列表
  let userLists = await userListNoPage()
  userList.value = userLists.data
  await loadUserList()
  customerList().then((res) => {
    customerOption.value = res
  })
@@ -999,8 +1014,7 @@
onMounted(async () => {
  // 加载用户列表供搜索使用
  const userLists = await userListNoPage()
  userList.value = userLists.data
  await loadUserList()
  getList()
})
</script>