Просмотр исходного кода

通过参数判断非内部人员签到权限

cyy 1 год назад
Родитель
Сommit
9d620d322c
2 измененных файлов с 25 добавлено и 22 удалено
  1. 3 1
      .env.development
  2. 22 21
      src/views/system/login/index.vue

+ 3 - 1
.env.development

@@ -23,6 +23,8 @@ VUE_APP_API_DOMAIN_NAME=a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a
 # ---开发环境
 VUE_APP_BASE_API_0_0_DEV = ${VUE_APP_BASE_API}
 VUE_APP_BASE_API_2_0_DEV2 = http://dev2.local/ibps
+VUE_APP_BASE_API_2_0_DEMO1 = http://demo1.local/ibps
+VUE_APP_BASE_API_2_0_DEMO2 = http://demo2.local/ibps
 # ---本地环境1
 VUE_APP_BASE_API_1_0_134WY = http://192.168.2.134:5100/ibps
 # ---本地环境2
@@ -32,7 +34,7 @@ VUE_APP_BASE_API_2_0_9LY = http://192.168.2.9:5100/ibps
 # ---测试环境
 VUE_APP_BASE_API_2_0_TEST = http://test1.local/ibps
 # ---演示环境
-VUE_APP_BASE_API_2_0_DEMO = https://www.szjyxt.com/ibps
+VUE_APP_BASE_API_2_0_SZJYXT = https://www.szjyxt.com/ibps
 
 # # ---测试环境
 # VUE_APP_BASE_API_0_0_TEST=http://dev1.local/ibps

+ 22 - 21
src/views/system/login/index.vue

@@ -12,33 +12,33 @@
       <div class="ibps-p">
         <van-form ref="form" @submit="handleLogin" @failed="onFailed">
           <van-field
-v-model="loginForm.username"
-:placeholder="$t('system.login.usernamePlaceholder')"
+            v-model="loginForm.username"
+            :placeholder="$t('system.login.usernamePlaceholder')"
             :rules="usernameRules"
-name="username"
-icon-prefix="ibps-icon"
-left-icon="user-circle-o"
-clearable />
+            name="username"
+            icon-prefix="ibps-icon"
+            left-icon="user-circle-o"
+            clearable />
           <van-field
-v-model="loginForm.password"
-:type="passwordType"
+            v-model="loginForm.password"
+            :type="passwordType"
             :placeholder="$t('system.login.passwordPlaceholder')"
-:rules="[{ required: true, message: ' ' }]"
+            :rules="[{ required: true, message: ' ' }]"
             :right-icon="passwordType==='password'?'eye-slash':'eye'"
-name="password"
-icon-prefix="ibps-icon"
+            name="password"
+            icon-prefix="ibps-icon"
             left-icon="lock"
-clearable
-@click-right-icon="showPassword" />
+            clearable
+            @click-right-icon="showPassword" />
           <van-field
-v-if="enabledValidCode"
-v-model="loginForm.captcha"
+            v-if="enabledValidCode"
+            v-model="loginForm.captcha"
             :placeholder="$t('system.login.codePlaceholder')"
-:rules="[{ required: true, message: ' ' }]"
-name="captcha"
+            :rules="[{ required: true, message: ' ' }]"
+            name="captcha"
             icon-prefix="ibps-icon"
-left-icon="qrcode"
-clearable>
+            left-icon="qrcode"
+            clearable>
             <template #button>
               <img :src="code.src" class="login-code-img" @click="refreshCode">
             </template>
@@ -51,7 +51,7 @@ clearable>
         </van-form>
         <switch-environment v-if="$nodeEnv === 'development'" class="ibps-mt ibps-text-center" type="link" />
         <div v-if="outSideSingInShow" class="outSideSingInClass">
-          <!-- <span @click="goOutSideSingIn()">非内部人员签到</span> -->
+          <span @click="goOutSideSingIn()">非内部人员签到</span>
         </div>
       </div>
       <div class="copyright">
@@ -110,7 +110,8 @@ export default {
         // this.redirect = `${route.path}?codeId=${route.query.codeId}`;
         // } else {
         this.redirect = route.query && route.query.redirect
-        if (this.redirect && this.redirect.indexOf('/bpmn/siginin/index?codeId=') !== -1) {
+        // console.log(this.redirect)
+        if (this.redirect && this.redirect.indexOf('/bpmn/siginin/index?codeId=') !== -1 && this.redirect.indexOf('type=reveal') !== -1) {
           this.outSideSingInShow = true
         }
         // }