提交 9c007ef9 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 78cffc87
...@@ -102,7 +102,7 @@ export function useAppConfig() { ...@@ -102,7 +102,7 @@ export function useAppConfig() {
return item.hosts.find(host => location.host.includes(host)) return item.hosts.find(host => location.host.includes(host))
}) })
const appConfig = found || appConfigList[5] const appConfig = found || appConfigList[0]
return { ...appConfig } return { ...appConfig }
} }
...@@ -43,6 +43,7 @@ const formRef = $ref<FormInstance>() ...@@ -43,6 +43,7 @@ const formRef = $ref<FormInstance>()
const form = reactive({ const form = reactive({
id: '', id: '',
name: '', name: '',
client_id: '',
host_unit_id: '', host_unit_id: '',
organizer_ids: [], organizer_ids: [],
technical_support_unit_id: '', technical_support_unit_id: '',
...@@ -244,11 +245,21 @@ function handleDateRangeChange(value: any) { ...@@ -244,11 +245,21 @@ function handleDateRangeChange(value: any) {
form.date = secondDate form.date = secondDate
} }
} }
const clientList = [
{ label: '商务数据分析师赛项', value: 'business_data_analyst' },
{ label: '全媒体运营师赛项', value: 'all_media_operator' }
]
</script> </script>
<template> <template>
<el-dialog :title="title" :close-on-click-modal="false" align-center width="600px" @update:modelValue="value => $emit('update:modelValue', value)"> <el-dialog :title="title" :close-on-click-modal="false" align-center width="600px" @update:modelValue="value => $emit('update:modelValue', value)">
<el-form ref="formRef" :model="form" :rules="rules" label-width="110px"> <el-form ref="formRef" :model="form" :rules="rules" label-width="110px">
<el-form-item label="客户端标识" prop="client_id">
<el-select v-model="form.client_id" style="width: 100%" clearable>
<el-option v-for="item in clientList" :key="item.id" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="赛项名称" prop="name"> <el-form-item label="赛项名称" prop="name">
<el-input v-model="form.name" :disabled="isUpdate" /> <el-input v-model="form.name" :disabled="isUpdate" />
</el-form-item> </el-form-item>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论