mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 08:57:10 +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 { addClient, getClient, updateClient } from '@/apis/system/client'
|
||||
import { type ColumnItem, GiForm } from '@/components/GiForm'
|
||||
import { DisEnableStatusList } from '@/constant/common'
|
||||
import { useResetReactive } from '@/hooks'
|
||||
import { useDict } from '@/hooks/app'
|
||||
|
||||
@@ -108,12 +107,14 @@ const columns: ColumnItem[] = reactive([
|
||||
{
|
||||
label: '状态',
|
||||
field: 'status',
|
||||
type: 'radio-group',
|
||||
required: true,
|
||||
type: 'switch',
|
||||
span: 24,
|
||||
props: {
|
||||
type: 'button',
|
||||
options: DisEnableStatusList,
|
||||
type: 'round',
|
||||
checkedValue: 1,
|
||||
uncheckedValue: 2,
|
||||
checkedText: '启用',
|
||||
uncheckedText: '禁用',
|
||||
},
|
||||
},
|
||||
])
|
||||
|
@@ -31,7 +31,7 @@ const visible = ref(false)
|
||||
const isUpdate = computed(() => !!dataId.value)
|
||||
const title = computed(() => (isUpdate.value ? '修改短信配置' : '新增短信配置'))
|
||||
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({
|
||||
status: 1,
|
||||
@@ -142,12 +142,14 @@ const columns: ColumnItem[] = reactive([
|
||||
{
|
||||
label: '状态',
|
||||
field: 'status',
|
||||
type: 'radio-group',
|
||||
required: true,
|
||||
type: 'switch',
|
||||
span: 24,
|
||||
props: {
|
||||
type: 'button',
|
||||
options: dis_enable_status_enum,
|
||||
type: 'round',
|
||||
checkedValue: 1,
|
||||
uncheckedValue: 2,
|
||||
checkedText: '启用',
|
||||
uncheckedText: '禁用',
|
||||
},
|
||||
},
|
||||
])
|
||||
|
Reference in New Issue
Block a user