|
@@ -21,6 +21,7 @@
|
|
<a-form-item label="登录名">
|
|
<a-form-item label="登录名">
|
|
<a-input
|
|
<a-input
|
|
v-model:value="query.loginName"
|
|
v-model:value="query.loginName"
|
|
|
|
+ maxlength="50"
|
|
placeholder="登录名"
|
|
placeholder="登录名"
|
|
></a-input>
|
|
></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -142,6 +143,7 @@
|
|
<a-form-item label="姓名" v-bind="validateInfos.name">
|
|
<a-form-item label="姓名" v-bind="validateInfos.name">
|
|
<a-input
|
|
<a-input
|
|
v-model:value="userInfo.name"
|
|
v-model:value="userInfo.name"
|
|
|
|
+ maxlength="50"
|
|
placeholder="请输入姓名"
|
|
placeholder="请输入姓名"
|
|
></a-input>
|
|
></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -381,15 +383,20 @@ const query = reactive<FetchUserListQuery>({
|
|
|
|
|
|
/** table配置 */
|
|
/** table配置 */
|
|
const columns: TableColumnType[] = [
|
|
const columns: TableColumnType[] = [
|
|
- { title: "序号", dataIndex: "index", align: "center" },
|
|
|
|
- { title: "ID", dataIndex: "id" },
|
|
|
|
- { title: "姓名", dataIndex: "name" },
|
|
|
|
- { title: "登录名", dataIndex: "loginName" },
|
|
|
|
- { title: "学校", dataIndex: "schoolName", align: "center" },
|
|
|
|
- { title: "角色", dataIndex: "roleName" },
|
|
|
|
- { title: "更新时间", dataIndex: "updateTime" },
|
|
|
|
- { title: "状态", dataIndex: "enable" },
|
|
|
|
- { title: "操作", dataIndex: "operation" },
|
|
|
|
|
|
+ { title: "序号", dataIndex: "index", align: "center", width: 60 },
|
|
|
|
+ { title: "ID", dataIndex: "id", width: 100, ellipsis: true },
|
|
|
|
+ { title: "姓名", dataIndex: "name", ellipsis: true },
|
|
|
|
+ { title: "登录名", dataIndex: "loginName", ellipsis: true },
|
|
|
|
+ {
|
|
|
|
+ title: "学校",
|
|
|
|
+ dataIndex: "schoolName",
|
|
|
|
+ align: "center",
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ },
|
|
|
|
+ { title: "角色", dataIndex: "roleName", align: "center", width: 120 },
|
|
|
|
+ { title: "更新时间", dataIndex: "updateTime", width: 200, ellipsis: true },
|
|
|
|
+ { title: "状态", dataIndex: "enable", align: "center", width: 80 },
|
|
|
|
+ { title: "操作", dataIndex: "operation", width: 240 },
|
|
];
|
|
];
|
|
|
|
|
|
/** 用户列表信息 */
|
|
/** 用户列表信息 */
|
|
@@ -539,10 +546,10 @@ const handleRemove: UploadProps["onRemove"] = (file) => {
|
|
};
|
|
};
|
|
|
|
|
|
const beforeUpload: UploadProps["beforeUpload"] = async (file) => {
|
|
const beforeUpload: UploadProps["beforeUpload"] = async (file) => {
|
|
- await fileTypeCheck(file,['xls','xlsx']).catch((error)=>{
|
|
|
|
- message.error('文件类型错误, 请使用导入模板编辑')
|
|
|
|
- return Promise.reject(error)
|
|
|
|
- })
|
|
|
|
|
|
+ await fileTypeCheck(file, ["xls", "xlsx"]).catch((error) => {
|
|
|
|
+ message.error("文件类型错误, 请使用导入模板编辑");
|
|
|
|
+ return Promise.reject(error);
|
|
|
|
+ });
|
|
importUserForm.fileList = [file];
|
|
importUserForm.fileList = [file];
|
|
return false;
|
|
return false;
|
|
};
|
|
};
|