2323 step-strictly
2424 />
2525 <span class =" ml-4" >{{
26- $t('views.applicationOverview.appInfo.LimitDialog.timesDays')
27- }}</span >
26+ $t('views.applicationOverview.appInfo.LimitDialog.timesDays')
27+ }}</span >
2828 </el-form-item >
2929 <!-- 身份验证 -->
3030 <el-form-item
7474 style =" margin : 0 4px 0 0 !important "
7575 >
7676 <el-icon >
77- <RefreshRight />
77+ <RefreshRight />
7878 </el-icon >
7979 </el-button >
8080 </el-tooltip >
111111 >
112112 <el-checkbox-group v-model =" form.authentication_value.login_value" >
113113 <template v-for =" t in auth_list " :key =" t .value " >
114- <el-checkbox :label =" t.label" :value =" t.value" />
114+ <el-checkbox :label =" t.label" :value =" t.value" />
115115 </template >
116116 </el-checkbox-group >
117117 </el-form-item >
118118 <el-form-item
119- v-if =" form.authentication_value.type === 'login' && form.authentication_value?.login_value?.includes('LOCAL')"
119+ class =" ml-24"
120+ v-if ="
121+ form.authentication_value.type === 'login' &&
122+ form.authentication_value?.login_value?.includes('LOCAL')
123+ "
120124 :label =" $t('views.system.display_code')"
121125 :rules =" [
122126 {
127131 ]"
128132 prop =" authentication_value.max_attempts"
129133 >
130- <span style =" font-size : 13px ; " >
131- {{ $t('views.system.loginFailed') }}
132- </span >
134+ <span style =" font-size : 13px " >
135+ {{ $t('views.system.loginFailed') }}
136+ </span >
133137 <el-input-number
134- style =" margin-left : 8px ; "
138+ style =" margin-left : 8px "
135139 v-model =" form.authentication_value.max_attempts"
136140 :min =" -1"
137141 :max =" 10"
138142 :step =" 1"
139143 controls-position =" right"
140144 />
141- <span style =" margin-left : 8px ; font-size : 13px ; " >
142- {{ $t('views.system.loginFailedMessage') }}
143- </span >
144- <span style =" margin-left : 8px ; color : #909399 ; font-size : 12px ; " >
145- ({{ $t('views.system.display_codeTip') }})
146- </span >
145+ <span style =" margin-left : 8px ; font-size : 13px " >
146+ {{ $t('views.system.loginFailedMessage') }}
147+ </span >
148+ <span style =" margin-left : 8px ; color : #909399 ; font-size : 12px " >
149+ ({{ $t('views.system.display_codeTip') }})
150+ </span >
147151 </el-form-item >
148152 </el-card >
149153 </el-radio-group >
174178 </el-drawer >
175179</template >
176180<script setup lang="ts">
177- import {ref , watch , computed } from ' vue'
178- import {useRoute , useRouter } from ' vue-router'
179- import type {FormInstance , FormRules } from ' element-plus'
180- import {MsgSuccess } from ' @/utils/message'
181- import {t } from ' @/locales'
182- import {copyClick } from ' @/utils/clipboard'
183- import {loadSharedApi } from ' @/utils/dynamics-api/shared-api'
181+ import { ref , watch , computed } from ' vue'
182+ import { useRoute , useRouter } from ' vue-router'
183+ import type { FormInstance , FormRules } from ' element-plus'
184+ import { MsgSuccess } from ' @/utils/message'
185+ import { t } from ' @/locales'
186+ import { copyClick } from ' @/utils/clipboard'
187+ import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
184188
185189const router = useRouter ()
186190const route = useRoute ()
187191const {
188- params : {id },
192+ params : { id },
189193} = route
190194
191195const apiType = computed (() => {
@@ -236,7 +240,7 @@ const open = (data: any) => {
236240 }
237241 form .value .authentication = data .authentication
238242 dialogVisible .value = true
239- loadSharedApi ({type: ' application' , systemType: apiType .value })
243+ loadSharedApi ({ type: ' application' , systemType: apiType .value })
240244 .getChatUserAuthType ()
241245 .then ((ok : any ) => {
242246 auth_list .value = ok .data
@@ -254,7 +258,7 @@ const submit = async (formEl: FormInstance | undefined) => {
254258 authentication: form .value .authentication ,
255259 authentication_value: form .value .authentication_value ,
256260 }
257- loadSharedApi ({type: ' application' , systemType: apiType .value })
261+ loadSharedApi ({ type: ' application' , systemType: apiType .value })
258262 .putAccessToken (id as string , obj , loading )
259263 .then (() => {
260264 emit (' refresh' )
@@ -290,7 +294,7 @@ function firstGeneration() {
290294 }
291295}
292296
293- defineExpose ({open })
297+ defineExpose ({ open })
294298 </script >
295299<style lang="scss" scoped>
296300.authentication-append-input {
0 commit comments