Browse Source

修改新版本--告知新UI--第二版

plg 3 weeks ago
parent
commit
6952037093
4 changed files with 11 additions and 9 deletions
  1. 2 0
      README.md
  2. BIN
      src/assets/home/grouo_yuan.png
  3. 2 2
      src/views/Login.vue
  4. 7 7
      src/views/Register.vue

+ 2 - 0
README.md

@@ -1,3 +1,5 @@
+# 高知新UI第二版
+
 # cpdm_pc
 
 This template should help get you started developing with Vue 3 in Vite.

BIN
src/assets/home/grouo_yuan.png


+ 2 - 2
src/views/Login.vue

@@ -90,7 +90,7 @@ const loginFun = async () => {
     //先判断是否是字段都填写了
     if (account.value == '') {
         ElMessage({
-            message: '号不能为空',
+            message: '号不能为空',
             type: 'warning'
         })
         return
@@ -152,7 +152,7 @@ const loginFun = async () => {
 
                     <div style="margin-top:10px">
                         <div class="user_account">账号:</div>
-                        <div class="input_cus"> <el-input v-model="account" style="width: 100%" placeholder="请输入号" />
+                        <div class="input_cus"> <el-input v-model="account" style="width: 100%" placeholder="请输入号" />
                         </div>
                     </div>
                     <div style="margin-top:10px">

+ 7 - 7
src/views/Register.vue

@@ -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>