| | |
| | | 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> |
| | |
| | | </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 > |