中文:收口权限与中心/立项配置改造
This commit is contained in:
@@ -97,19 +97,19 @@
|
||||
<span v-if="errors.full_name" class="error-text">{{ errors.full_name }}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">{{ TEXT.modules.auth.departmentLabel }}</label>
|
||||
<label class="form-label">{{ TEXT.modules.auth.clinicalDepartmentLabel }}</label>
|
||||
<div class="input-wrapper">
|
||||
<div class="input-glass"></div>
|
||||
<div class="input-overlay"></div>
|
||||
<div class="input-border"></div>
|
||||
<input
|
||||
v-model="form.department"
|
||||
v-model="form.clinical_department"
|
||||
type="text"
|
||||
class="glass-input"
|
||||
:placeholder="TEXT.modules.auth.departmentPlaceholder"
|
||||
:placeholder="TEXT.modules.auth.clinicalDepartmentPlaceholder"
|
||||
/>
|
||||
</div>
|
||||
<span v-if="errors.department" class="error-text">{{ errors.department }}</span>
|
||||
<span v-if="errors.clinical_department" class="error-text">{{ errors.clinical_department }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -227,7 +227,7 @@
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<span class="summary-label">部门</span>
|
||||
<span class="summary-value">{{ form.department || '-' }}</span>
|
||||
<span class="summary-value">{{ form.clinical_department || '-' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -313,7 +313,7 @@ const form = reactive({
|
||||
password: "",
|
||||
confirmPassword: "",
|
||||
full_name: "",
|
||||
department: "",
|
||||
clinical_department: "",
|
||||
agreeTerms: false,
|
||||
});
|
||||
|
||||
@@ -366,8 +366,8 @@ const validateStep1 = (): boolean => {
|
||||
newErrors.full_name = requiredMessage(TEXT.modules.auth.fullNameLabel);
|
||||
}
|
||||
|
||||
if (!form.department) {
|
||||
newErrors.department = requiredMessage(TEXT.modules.auth.departmentLabel);
|
||||
if (!form.clinical_department) {
|
||||
newErrors.clinical_department = requiredMessage(TEXT.modules.auth.clinicalDepartmentLabel);
|
||||
}
|
||||
|
||||
Object.assign(errors, newErrors);
|
||||
@@ -452,7 +452,7 @@ const handleSubmit = async () => {
|
||||
password: form.password,
|
||||
full_name: form.full_name,
|
||||
role: defaultRole,
|
||||
department: form.department,
|
||||
clinical_department: form.clinical_department,
|
||||
});
|
||||
ElMessage.success(TEXT.modules.auth.registerSuccess);
|
||||
setTimeout(() => {
|
||||
@@ -464,7 +464,7 @@ const handleSubmit = async () => {
|
||||
password: "",
|
||||
confirmPassword: "",
|
||||
full_name: "",
|
||||
department: "",
|
||||
clinical_department: "",
|
||||
agreeTerms: false,
|
||||
});
|
||||
currentStep.value = 1;
|
||||
|
||||
Reference in New Issue
Block a user