2 Revīzijas

1 mainītis faili ar 25 papildinājumiem un 2 dzēšanām
Dalītais skats
  1. +25
    -2
      SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue

+ 25
- 2
SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue Parādīt failu

@@ -67,7 +67,7 @@
<el-col :span="10">
<ProTable
ref="chooseTable"
:columns="columns"
:columns="columns2"
maxHeight="480"
:tool-button="true"
:data="chooseDataTmp"
@@ -170,7 +170,30 @@ const columns: ColumnProps<SysUser.SysUserInfo>[] = [
{ prop: "dormitoryName", label: "寝室" },
];

const columns2: ColumnProps<SysUser.SysUserInfo>[] = [
{ type: "selection", fixed: "left", width: 50 },
{ prop: "operation", label: "操作", width: 80, fixed: "left" },
{
prop: "faceUrl",
label: "人脸",
render: scope => {
return (
<img src={scope.row.faces.length > 0 ? scope.row.faces[0].faceUrl : ''} onClick={() => viewHeadImage(scope)} style='width:30px;height:30px;' alt=''/>
);
}
},
{
prop: "personName",
label: "姓名",
render: row => {
return row.row.name;
},
search: { el: "input", span: 2 }
},
{ prop: "personSetName", label: "班级" },
// { prop: "dormitoryName", label: "寝室" },
];
/** 显示选择器 */
function showSelector(data: SysUser.SysUserInfo[] = []) {
visible.value = true;


Notiek ielāde…
Atcelt
Saglabāt