mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-14 20:59:28 +08:00
style: 短信配置、客户端配置状态表单项调整为统一风格
This commit is contained in:
@@ -18,7 +18,6 @@ import { Message } from '@arco-design/web-vue'
|
|||||||
import { useWindowSize } from '@vueuse/core'
|
import { useWindowSize } from '@vueuse/core'
|
||||||
import { addClient, getClient, updateClient } from '@/apis/system/client'
|
import { addClient, getClient, updateClient } from '@/apis/system/client'
|
||||||
import { type ColumnItem, GiForm } from '@/components/GiForm'
|
import { type ColumnItem, GiForm } from '@/components/GiForm'
|
||||||
import { DisEnableStatusList } from '@/constant/common'
|
|
||||||
import { useResetReactive } from '@/hooks'
|
import { useResetReactive } from '@/hooks'
|
||||||
import { useDict } from '@/hooks/app'
|
import { useDict } from '@/hooks/app'
|
||||||
|
|
||||||
@@ -108,12 +107,14 @@ const columns: ColumnItem[] = reactive([
|
|||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
field: 'status',
|
field: 'status',
|
||||||
type: 'radio-group',
|
type: 'switch',
|
||||||
required: true,
|
|
||||||
span: 24,
|
span: 24,
|
||||||
props: {
|
props: {
|
||||||
type: 'button',
|
type: 'round',
|
||||||
options: DisEnableStatusList,
|
checkedValue: 1,
|
||||||
|
uncheckedValue: 2,
|
||||||
|
checkedText: '启用',
|
||||||
|
uncheckedText: '禁用',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
@@ -31,7 +31,7 @@ const visible = ref(false)
|
|||||||
const isUpdate = computed(() => !!dataId.value)
|
const isUpdate = computed(() => !!dataId.value)
|
||||||
const title = computed(() => (isUpdate.value ? '修改短信配置' : '新增短信配置'))
|
const title = computed(() => (isUpdate.value ? '修改短信配置' : '新增短信配置'))
|
||||||
const formRef = ref<InstanceType<typeof GiForm>>()
|
const formRef = ref<InstanceType<typeof GiForm>>()
|
||||||
const { dis_enable_status_enum, sms_supplier_type } = useDict('dis_enable_status_enum', 'sms_supplier_type')
|
const { sms_supplier_type } = useDict('sms_supplier_type')
|
||||||
|
|
||||||
const [form, resetForm] = useResetReactive({
|
const [form, resetForm] = useResetReactive({
|
||||||
status: 1,
|
status: 1,
|
||||||
@@ -142,12 +142,14 @@ const columns: ColumnItem[] = reactive([
|
|||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
field: 'status',
|
field: 'status',
|
||||||
type: 'radio-group',
|
type: 'switch',
|
||||||
required: true,
|
|
||||||
span: 24,
|
span: 24,
|
||||||
props: {
|
props: {
|
||||||
type: 'button',
|
type: 'round',
|
||||||
options: dis_enable_status_enum,
|
checkedValue: 1,
|
||||||
|
uncheckedValue: 2,
|
||||||
|
checkedText: '启用',
|
||||||
|
uncheckedText: '禁用',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user