|
@@ -15,7 +15,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="是否启用" prop="isEnabled">
|
|
<el-form-item label="是否启用" prop="isEnabled">
|
|
<el-select v-model="queryParams.isEnabled" placeholder="请选择是否启用" clearable >
|
|
<el-select v-model="queryParams.isEnabled" placeholder="请选择是否启用" clearable >
|
|
- <el-option v-for="dict in sys_yes_no" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
|
|
|
|
|
+ <el-option v-for="dict in game_yes_no" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="状态" prop="status">
|
|
<el-form-item label="状态" prop="status">
|
|
@@ -61,7 +61,7 @@
|
|
<el-table-column label="配置描述" align="center" prop="configDesc" />
|
|
<el-table-column label="配置描述" align="center" prop="configDesc" />
|
|
<el-table-column label="是否启用" align="center" prop="isEnabled">
|
|
<el-table-column label="是否启用" align="center" prop="isEnabled">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <dict-tag :options="sys_yes_no" :value="scope.row.isEnabled"/>
|
|
|
|
|
|
+ <dict-tag :options="game_yes_no" :value="scope.row.isEnabled"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
@@ -102,7 +102,7 @@
|
|
<el-form-item label="是否启用" prop="isEnabled">
|
|
<el-form-item label="是否启用" prop="isEnabled">
|
|
<el-radio-group v-model="form.isEnabled">
|
|
<el-radio-group v-model="form.isEnabled">
|
|
<el-radio
|
|
<el-radio
|
|
- v-for="dict in sys_yes_no"
|
|
|
|
|
|
+ v-for="dict in game_yes_no"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
:value="dict.value"
|
|
:value="dict.value"
|
|
>{{dict.label}}</el-radio>
|
|
>{{dict.label}}</el-radio>
|
|
@@ -136,7 +136,7 @@ import { listGameEventConfig, getGameEventConfig, delGameEventConfig, addGameEve
|
|
import { GameEventConfigVO, GameEventConfigQuery, GameEventConfigForm } from '@/api/system/gameEventConfig/types';
|
|
import { GameEventConfigVO, GameEventConfigQuery, GameEventConfigForm } from '@/api/system/gameEventConfig/types';
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
-const { game_event_status, sys_yes_no } = toRefs<any>(proxy?.useDict('game_event_status', 'sys_yes_no'));
|
|
|
|
|
|
+const { game_event_status, game_yes_no } = toRefs<any>(proxy?.useDict('game_event_status', 'game_yes_no'));
|
|
|
|
|
|
const gameEventConfigList = ref<GameEventConfigVO[]>([]);
|
|
const gameEventConfigList = ref<GameEventConfigVO[]>([]);
|
|
const buttonLoading = ref(false);
|
|
const buttonLoading = ref(false);
|
|
@@ -180,9 +180,15 @@ const data = reactive<PageData<GameEventConfigForm, GameEventConfigQuery>>({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
- configValue: [
|
|
|
|
- { required: true, message: "配置值不能为空", trigger: "blur" }
|
|
|
|
|
|
+ eventId: [
|
|
|
|
+ { required: true, message: "赛事ID不能为空", trigger: "blur" }
|
|
],
|
|
],
|
|
|
|
+ configKey: [
|
|
|
|
+ { required: true, message: "配置键不能为空", trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ // configValue: [
|
|
|
|
+ // { required: true, message: "配置值不能为空", trigger: "blur" }
|
|
|
|
+ // ],
|
|
configDesc: [
|
|
configDesc: [
|
|
{ required: true, message: "配置描述不能为空", trigger: "blur" }
|
|
{ required: true, message: "配置描述不能为空", trigger: "blur" }
|
|
],
|
|
],
|