| | |
| | | <el-table-column v-if="columns[0].visible" key="userId" label="用户编号" align="center" prop="userId" /> |
| | | <el-table-column v-if="columns[1].visible" key="userName" label="用户名称" align="center" prop="userName" :show-overflow-tooltip="true" /> |
| | | <el-table-column v-if="columns[2].visible" key="nickName" label="用户昵称" align="center" prop="nickName" :show-overflow-tooltip="true" /> |
| | | <el-table-column |
| | | v-if="columns[3].visible" |
| | | key="deptName" |
| | | label="部门" |
| | | align="center" |
| | | prop="dept.deptName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column v-if="columns[3].visible" key="deptName" label="部门" align="center" prop="deptName" :show-overflow-tooltip="true" /> |
| | | <el-table-column v-if="columns[4].visible" key="phonenumber" label="手机号码" align="center" prop="phonenumber" width="120" /> |
| | | <el-table-column v-if="columns[5].visible" key="status" label="状态" align="center"> |
| | | <template #default="scope"> |
| | |
| | | max: 20, |
| | | message: '用户密码长度必须介于 5 和 20 之间', |
| | | trigger: 'blur' |
| | | } |
| | | }, |
| | | { pattern: /^[^<>"'|\\]+$/, message: "不能包含非法字符:< > \" ' \\\ |", trigger: "blur" } |
| | | ], |
| | | email: [ |
| | | { |
| | |
| | | cancelButtonText: '取消', |
| | | closeOnClickModal: false, |
| | | inputPattern: /^.{5,20}$/, |
| | | inputErrorMessage: '用户密码长度必须介于 5 和 20 之间' |
| | | inputErrorMessage: '用户密码长度必须介于 5 和 20 之间', |
| | | inputValidator: (value) => { |
| | | if (/<|>|"|'|\||\\/.test(value)) { |
| | | return "不能包含非法字符:< > \" ' \\\ |" |
| | | } |
| | | } |
| | | }) |
| | | ); |
| | | if (!err && res) { |