员工管理添加密码
This commit is contained in:
parent
e09b88f9b2
commit
772a51037c
|
|
@ -192,6 +192,12 @@
|
|||
<el-input v-model="form.postName" placeholder="请输入岗位名称" maxlength="30" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="员工密码:" prop="password">
|
||||
<el-input v-model="form.password" placeholder="请输入员工密码"
|
||||
type="password" maxlength="20" show-password/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<div style="font-size: 18px;font-weight: bold;border-left: 4px solid #1890FF;padding-left: 4px;margin-bottom: 20px;">
|
||||
人脸信息
|
||||
|
|
@ -417,6 +423,7 @@ import { systemAreaTreeApi,getCanteenByAreaApi } from "@/api/base/stall";
|
|||
import { getKitchenDeviceSelectApi } from "@/api/kitchen/devices";
|
||||
import { getStaffListApi,getStaffInfoApi,addKitchenStaffApi,editKitchenStaffApi,delStaffApi,editStaffFaceStateApi} from '@/api/kitchen/staff';
|
||||
import { imgUpLoadTwo } from '@/api/system/upload';
|
||||
import { validateNewPassword } from '@/utils/validate'
|
||||
export default {
|
||||
name: "",
|
||||
dicts: [],
|
||||
|
|
@ -497,6 +504,14 @@ export default {
|
|||
postName: [
|
||||
{ required: true, message: "员工岗位名称不能为空", trigger: "blur" }
|
||||
],
|
||||
password: [
|
||||
{
|
||||
required: true,
|
||||
message: '密码不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
{ validator: validateNewPassword, trigger: 'blur' },
|
||||
],
|
||||
faceUrl: [
|
||||
{ required: true, message: "人脸照片不能为空", trigger: "change" }
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue