@ -15,7 +15,16 @@
< / h3 >
< el -col :span ="24" style = "margin-left:30px;display:flex;flex-wrap: wrap;width:100%;" >
< div :class ="v.isSelected=='1'?'checkCopyButton':'copyButton'" v-for ="(v,valueIndex) in item.groupUsers" :key="valueIndex" @click="toggleSelected(index,valueIndex)" >
{ { v . username } }
< div class = "avatar-container" >
< div class = "avatar-wrapper" >
< img class = "user-avatar" :src ="getHeadimgurl(v.userid)" @error ="onImgError(v.userid,$event)" > < / img >
< span class = "username" > { { v . username } } < / span >
< / div >
< / div >
< / div >
< / e l - c o l >
< / e l - r o w >
@ -25,6 +34,7 @@
< script >
import util from '@/common/js/util' ; / / 全 局 公 共 库
import imgUtil from '@/api/imgUtil' ;
/ / i m p o r t S t i c k y f r o m ' @ / c o m p o n e n t s / S t i c k y ' / / 粘 性 h e a d e r 组 件
import { initSimpleDicts } from '@/api/mdp/meta/item' ; / / 下 拉 框 数 据 查 询
import { getGroups } from '@/api/xm/core/xmGroup' ;
@ -89,6 +99,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
}
} , / / e n d d a t a
methods : {
... imgUtil ,
toggleSelected ( index , valueIndex ) {
if ( this . isSelectSingleUser == '1' || this . isSelectMultiUser == '1' ) {
if ( this . xmGroupFormworkSels [ index ] . groupUsers [ valueIndex ] . isSelected == '1' ) {
@ -183,7 +194,9 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
}
< / script >
< style scoped >
< style lang = "scss" scoped >
@ import '@/components/Mdp/index.scss' ;
. group - name {
color : rgb ( 107 , 88 , 88 ) ;
}
@ -191,7 +204,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
margin - left : 10 px ;
margin - top : 2 px ;
border - radius : 20 px ;
padding : 10 px 1 px ;
padding : 2 px 2 px ;
border : 1 px solid rgb ( 220 , 223 , 230 ) ;
/* color:#039; */
}
@ -208,7 +221,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
margin - left : 10 px ;
margin - top : 2 px ;
border - radius : 20 px ;
padding : 10 px 1 px ;
padding : 2 px 2 px ;
border : 1 px solid # FFA00A ;
/*background-color: rgba(230, 162, 60, .1);*/
/* background-color: #f9f9f9; */