mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 07:01:26 +00:00
perf: Mobile phone is set as a required field
This commit is contained in:
parent
e4c7b1d8cf
commit
1e82ca3f66
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-input v-model="rawValue.phone" :placeholder="$tc('InputPhone')" @input="OnInputChange">
|
||||
<el-input v-model="rawValue.phone" required :placeholder="$tc('InputPhone')" @input="OnInputChange">
|
||||
<el-select
|
||||
slot="prepend"
|
||||
:placeholder="$tc('Select')"
|
||||
|
@ -5,6 +5,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { PhoneInput, UpdateToken } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'CMPP2',
|
||||
@ -57,6 +58,7 @@ export default {
|
||||
component: UpdateToken
|
||||
},
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
@ -64,12 +66,6 @@ export default {
|
||||
return 'patch'
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { PhoneInput, UpdateToken } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'SMSAlibaba',
|
||||
@ -64,6 +65,7 @@ export default {
|
||||
component: UpdateToken
|
||||
},
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
|
@ -5,6 +5,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { JsonEditor, PhoneInput } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'SMSCustom',
|
||||
@ -56,6 +57,7 @@ export default {
|
||||
helpText: this.$t('CustomParams')
|
||||
},
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
@ -63,12 +65,6 @@ export default {
|
||||
return 'patch'
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -8,6 +8,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { PhoneInput } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'SMSFileCustom',
|
||||
@ -49,6 +50,7 @@ export default {
|
||||
],
|
||||
fieldsMeta: {
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
@ -56,12 +58,6 @@ export default {
|
||||
return 'patch'
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { PhoneInput, UpdateToken } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'SMSHuawei',
|
||||
@ -72,6 +73,7 @@ export default {
|
||||
label: this.$t('AppEndpoint')
|
||||
},
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
@ -79,12 +81,6 @@ export default {
|
||||
return 'put'
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<script>
|
||||
import BaseSMS from './Base.vue'
|
||||
import { PhoneInput, UpdateToken } from '@/components/Form/FormFields'
|
||||
import { Required } from '@/components/Form/DataForm/rules'
|
||||
|
||||
export default {
|
||||
name: 'SMSTencent',
|
||||
@ -64,6 +65,7 @@ export default {
|
||||
component: UpdateToken
|
||||
},
|
||||
SMS_TEST_PHONE: {
|
||||
rules: [Required],
|
||||
component: PhoneInput
|
||||
}
|
||||
},
|
||||
@ -71,12 +73,6 @@ export default {
|
||||
return 'put'
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user