Commit d5b7e0d2 authored by zhengke's avatar zhengke

修改

parent e741641a
...@@ -62,9 +62,6 @@ ...@@ -62,9 +62,6 @@
<span class="drawer_Span" v-if="setingObj.type==3">调岗</span> <span class="drawer_Span" v-if="setingObj.type==3">调岗</span>
<span class="drawer_Span" v-if="setingObj.type==4">调部门</span> <span class="drawer_Span" v-if="setingObj.type==4">调部门</span>
</div> </div>
<div>
<i class="iconfont icon-guanbi" @click="closeShenheForm"></i>
</div>
</div> </div>
<div style="margin:20px;"> <div style="margin:20px;">
<div class="EmpLine_title"> <div class="EmpLine_title">
...@@ -77,7 +74,7 @@ ...@@ -77,7 +74,7 @@
<img :src="item.UserIcon" /> <img :src="item.UserIcon" />
</q-avatar> </q-avatar>
<q-avatar size="md" color="teal-10" text-color="white" v-if="!item.UserIcon"> <q-avatar size="md" color="teal-10" text-color="white" v-if="!item.UserIcon">
{{item.EmployeeName}}</q-avatar> {{GetFirst(item.EmployeeName)}}</q-avatar>
<div style="margin-top:6px;">{{item.EmployeeName}}</div> <div style="margin-top:6px;">{{item.EmployeeName}}</div>
</div> </div>
</div> </div>
...@@ -304,6 +301,11 @@ ...@@ -304,6 +301,11 @@
} }
}) })
} }
},
GetFirst(val) {
if (val) {
return val.substr(0, 1);
}
} }
}, },
} }
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<img :src="props.value" /> <img :src="props.value" />
</q-avatar> </q-avatar>
<q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value"> <q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value">
{{props.row.EmployeeName}}</q-avatar> {{GetFirst(props.row.EmployeeName)}}</q-avatar>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-EmployeeName="props"> <template v-slot:body-cell-EmployeeName="props">
...@@ -591,6 +591,11 @@ ...@@ -591,6 +591,11 @@
this.setObj.selected = []; this.setObj.selected = [];
this.setObj.selected.push(obj); this.setObj.selected.push(obj);
this.isShowEmployeeSet = true; this.isShowEmployeeSet = true;
},
GetFirst(val) {
if (val) {
return val.substr(0, 1);
}
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment