Forráskód Böngészése

自助检索修改

xiaoqiao 1 éve
szülő
commit
d840bebee4
2 módosított fájl, 3 hozzáadás és 23 törlés
  1. 1 1
      target/classes/generatorConfig.xml
  2. 2 22
      vue/src/views/login/index.vue

+ 1 - 1
target/classes/generatorConfig.xml

@@ -120,6 +120,6 @@
             <columnOverride column="StandardMajorID" javaType="java.lang.Integer" jdbcType="INTEGER" />
             <table schema="" tableName="Sys_Log"><property name="useActualColumnNames" value="true"/></table>
         </table>-->
-        <table schema="" tableName="sr_subjectfield"><property name="useActualColumnNames" value="true"/></table>
+        <table schema="" tableName="sr_tag"><property name="useActualColumnNames" value="true"/></table>
     </context>
 </generatorConfiguration>

+ 2 - 22
vue/src/views/login/index.vue

@@ -8,7 +8,7 @@
     <a-form layout="horizontal" :model="state.formInline" @submit.prevent="handleSubmit" style="border: 1px solid #f0f0f0;width: 600px;height: 400px;padding: 100px;">
       <div style="width: 400px;height: 400px; border-radius: 10px;">
       <a-form-item>
-        <a-input v-model:value="state.formInline.username" size="large" placeholder="请输入工号/学号">
+        <a-input v-model:value="state.formInline.username" size="large" placeholder="请输入登录账号">
           <template #prefix><user-outlined type="user" /></template>
         </a-input>
       </a-form-item>
@@ -23,23 +23,6 @@
           <template #prefix><lock-outlined type="user" /></template>
         </a-input>
       </a-form-item>
-<!--      <a-form-item>
-        <a-input
-          v-model:value="state.formInline.verifyCode"
-          placeholder="验证码"
-          :maxlength="4"
-          size="large"
-        >
-          <template #prefix><SafetyOutlined /></template>
-          <template #suffix>
-            <img
-              :src="state.captcha"
-              class="absolute right-0 h-full cursor-pointer"
-              @click="setCaptcha"
-            />
-          </template>
-        </a-input>
-      </a-form-item>-->
       <a-form-item>
         <a-button style="border-radius: 8px;" type="primary" html-type="submit" size="large" :loading="state.loading" block>
           登录
@@ -77,16 +60,13 @@
 
   const setCaptcha = async () => {
 
-    /*const { id, img } = await getImageCaptcha({ width: 100, height: 50 });
-    state.captcha = img;
-    state.formInline.captchaId = id;*/
   };
   setCaptcha();
 
   const handleSubmit = async () => {
     const { username, password, verifyCode } = state.formInline;
     if (username.trim() == '' || password.trim() == '') {
-      return message.warning('用户名或密码不能为空!');
+      return message.warning('账号或密码不能为空!');
     }
     /*if (!verifyCode) {
       return message.warning('请输入验证码!');