|
@@ -14,7 +14,7 @@ import { useRoute, useRouter } from 'vue-router'
|
|
|
// 加一个锁表示不能重复点击
|
|
|
const isLock = ref<boolean>(false)
|
|
|
//账号角色
|
|
|
-const roleType = ref<string>('1')
|
|
|
+const roleType = ref<string>('2')
|
|
|
//定义账号
|
|
|
const account = ref<string>('')
|
|
|
//定义密码
|
|
@@ -101,7 +101,7 @@ const registerFun = async () => {
|
|
|
|
|
|
if (account.value == '') {
|
|
|
ElMessage({
|
|
|
- message: '请输入学号/编号',
|
|
|
+ message: '请输入工号',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
isLock.value = false
|
|
@@ -109,7 +109,7 @@ const registerFun = async () => {
|
|
|
}
|
|
|
if (!/^[A-Za-z0-9]{3,18}$/.test(account.value)) {
|
|
|
ElMessage({
|
|
|
- message: '学号/编号只允许输入数字和英文且长度为3到18位',
|
|
|
+ message: '工号只允许输入数字和英文且长度为3到18位',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
isLock.value = false
|
|
@@ -351,7 +351,7 @@ const roleTypeChange = (val: string) => {
|
|
|
<span class="des">用户注册</span>
|
|
|
</div>
|
|
|
<div style="padding: 10px 50px;">
|
|
|
- <div style="margin-top:20px;display: flex;">
|
|
|
+ <!-- <div style="margin-top:20px;display: flex;">
|
|
|
|
|
|
|
|
|
<div style="flex: 1;">
|
|
@@ -364,7 +364,7 @@ const roleTypeChange = (val: string) => {
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div style="margin-top:20px">
|
|
|
<div class="user_account">所属组织架构:</div>
|
|
|
<div class="input_cus">
|
|
@@ -386,10 +386,10 @@ const roleTypeChange = (val: string) => {
|
|
|
<div style="flex: 1;display: flex;flex-direction: column;justify-content: end;">
|
|
|
<div class="user_account"
|
|
|
:style="{ width: roleType == '1' ? '90%' : '100%', marginLeft: roleType == '1' ? '10%' : '0%' }">
|
|
|
- 学号/编号:</div>
|
|
|
+ 工号:</div>
|
|
|
<div class="input_cus"> <el-input v-model="account"
|
|
|
:style="{ width: roleType == '1' ? '90%' : '100%', marginLeft: roleType == '1' ? '10%' : '0%' }"
|
|
|
- placeholder="请输入学号/编号" />
|
|
|
+ placeholder="请输入工号" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|