@@ -53,7 +53,10 @@ const defaultColumnList = [
width:'150px',
type:"function",
useFunction:(data)=>{
- return `${data.accountName}(${data.accountUserName})`
+ if(data.accountName){
+ return `${data.accountName}(${data.accountUserName})`
+ }
+ return ''
}
},
{
@@ -73,7 +73,7 @@
<template slot-scope="scope">
<div>
<div v-if="scope.row.id && editMessage.id!=scope.row.id">
- {{ scope.row.accountName + '('+ scope.row.accountUserName +')' }}
+ <span v-if="scope.row.accountName">{{ scope.row.accountName + '('+ scope.row.accountUserName +')' }}</span>
</div>
<div v-else>
<el-select style="width:100%" v-model="scope.row.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(scope.row.accountName)"