zhangwei
2025-08-29 06dd8d0b5614c39a50924046714c444cc75c21e9
企业管理添加角色显示
1个文件已修改
14 ■■■■■ 已修改文件
Web/src/views/Customer/fBS_CusExtend/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Web/src/views/Customer/fBS_CusExtend/index.vue
@@ -138,6 +138,15 @@
  dialogVisible.value = true
}
const changeExroles=(exRoles)=>{
  if(exRoles.length == 0) return ''
  let str = ''
  exRoles.forEach(item => {
    str += (str.length>0?',':'')+item.exRole?.name; // 累加当前元素到累加器
  })
  return str
}
handleQuery();
</script>
<template>
@@ -272,6 +281,11 @@
        </el-table-column>
        <el-table-column prop='enterpriseName' label='企业名称' show-overflow-tooltip width="180"/>
        <el-table-column prop='unifiedSocialCreditCode' label='统一社会信用代码' show-overflow-tooltip width="150"/>
        <el-table-column prop='exRoles' label='角色' show-overflow-tooltip width="180">
          <template #default="scope">
              {{ changeExroles(scope.row.exRoles) }}
            </template>
        </el-table-column>
        <el-table-column prop='registeredCapital' label='注册资金' show-overflow-tooltip />
        <el-table-column prop='enterprisePhone' label='联系电话' show-overflow-tooltip width="100"/>
        <el-table-column prop='establishmentTime' label='成立时间' show-overflow-tooltip >