|
|
@@ -38,7 +38,7 @@
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:config:add']">新增投放方案</el-button>
|
|
|
</el-col>
|
|
|
- <router-link to="/business/tournamentsTemplate">
|
|
|
+ <router-link to="/tournament/tournamentsTemplate">
|
|
|
<el-button type="success" plain icon="Edit">自动比赛模版</el-button>
|
|
|
</router-link>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
@@ -146,6 +146,19 @@
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip content="生成" placement="top">
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="success"
|
|
|
+ size="small"
|
|
|
+ @click="handleGenerateMatchesForNextSevenDays(scope.row)"
|
|
|
+ v-hasPermi="['system:config:remove']"
|
|
|
+ >
|
|
|
+ <el-icon><VideoPlay /></el-icon>
|
|
|
+ 生成
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -232,7 +245,7 @@ import {
|
|
|
updateScheduleConfig,
|
|
|
deleteScheduleConfig,
|
|
|
stopScheduleConfig,
|
|
|
- startScheduleConfig
|
|
|
+ startScheduleConfig, generateMatchesForNextSevenDays
|
|
|
} from '@/api/system/business/config';
|
|
|
import { selectAllCreationSchemesAllList } from '@/api/system/business/scheme';
|
|
|
import { ConfigVO, ConfigQuery, ConfigForm } from '@/api/system/business/config/types';
|
|
|
@@ -400,6 +413,15 @@ const handleDelete = async (row?: ConfigVO) => {
|
|
|
await getList();
|
|
|
};
|
|
|
|
|
|
+/** 删除按钮操作 */
|
|
|
+const handleGenerateMatchesForNextSevenDays = async (row?: ConfigVO) => {
|
|
|
+ const _ids = row?.id || ids.value;
|
|
|
+ await proxy?.$modal.confirm('是否确认生成对应赛事数据项?').finally(() => (loading.value = false));
|
|
|
+ await generateMatchesForNextSevenDays(null);
|
|
|
+ proxy?.$modal.msgSuccess('生成成功');
|
|
|
+ await getList();
|
|
|
+};
|
|
|
+
|
|
|
//停止操作
|
|
|
const handleStop = async (row?: ConfigVO) => {
|
|
|
const _ids = row?.id || ids.value;
|