feat: 优化和风导航栏UI/UX,LOGO左菜单右,圆角阴影纯CSS实现,结构与样式彻底重构

This commit is contained in:
Mars 2025-06-24 15:44:29 +08:00
parent 988586da84
commit 715b2ea85b
10 changed files with 623 additions and 316 deletions

View File

@ -1,111 +1,40 @@
<template> <template>
<el-container class="layout-container"> <div>
<el-header> <div class="nav-bar">
<div class="header-container"> <div class="nav-logo">好运早餐铺</div>
<div class="logo"> <ul class="nav-menu">
<h1>彩票数据分析系统</h1> <li class="nav-item" :class="{active: $route.path === '/'}" @click="handleNav('/')">早点摊</li>
</div> <li class="nav-item" :class="{active: $route.path === '/ssq'}" @click="handleNav('/ssq')">红蓝球煎饼</li>
<el-menu <li class="nav-item" :class="{active: $route.path === '/dlt'}" @click="handleNav('/dlt')">大乐斗豆浆</li>
:default-active="activeIndex" <li class="nav-item" :class="{active: $route.path === '/statistics'}" @click="handleNav('/statistics')">数据小菜</li>
class="nav-menu" <li class="nav-item" :class="{active: $route.path === '/advanced-analysis'}" @click="handleNav('/advanced-analysis')">老板推荐</li>
mode="horizontal" <li class="nav-item" :class="{active: $route.path === '/prediction'}" @click="handleNav('/prediction')">灵感早点</li>
router <li class="nav-item" :class="{active: $route.path === '/number-generator'}" @click="handleNav('/number-generator')">一键下单</li>
background-color="#409EFF" </ul>
text-color="#fff" </div>
active-text-color="#fff" <router-view />
@select="handleSelect" </div>
>
<el-menu-item index="/">首页</el-menu-item>
<el-menu-item index="/ssq">双色球</el-menu-item>
<el-menu-item index="/dlt">大乐透</el-menu-item>
<el-menu-item index="/statistics">统计分析</el-menu-item>
<el-menu-item index="/advanced-analysis">高级分析</el-menu-item>
<el-menu-item index="/prediction">智能预测</el-menu-item>
<el-menu-item index="/number-generator">智能选号</el-menu-item>
</el-menu>
</div>
</el-header>
<el-main>
<router-view></router-view>
</el-main>
<el-footer>
<div class="footer-content">
<p>彩票数据分析系统 &copy; 2024</p>
</div>
</el-footer>
</el-container>
</template> </template>
<script setup> <script>
import { computed } from 'vue' export default {
import { useRoute, useRouter } from 'vue-router' name: 'App',
methods: {
const router = useRouter() handleNav(route) {
const route = useRoute() this.$router.push(route)
const activeIndex = computed(() => route.path) }
}
const handleSelect = (key) => {
router.push(key)
} }
</script> </script>
<style> <style>
/* 只保留必要的全局样式去除旧的el-menu等样式 */
.layout-container { .layout-container {
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.header-container {
height: 60px;
display: flex;
align-items: center;
padding: 0 20px;
}
.logo {
margin-right: 40px;
}
.logo h1 {
color: #fff;
margin: 0;
font-size: 20px;
font-weight: bold;
}
.nav-menu {
flex: 1;
border: none !important;
}
.el-menu--horizontal {
border-bottom: none !important;
}
.el-menu--horizontal > .el-menu-item {
height: 60px;
line-height: 60px;
font-size: 16px;
padding: 0 20px;
border-bottom: none !important;
}
.el-header {
padding: 0;
background-color: #409EFF;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.el-menu--horizontal > .el-menu-item:hover,
.el-menu--horizontal > .el-menu-item:focus,
.el-menu--horizontal > .el-menu-item.is-active {
background-color: rgba(255, 255, 255, 0.1) !important;
border-bottom: 2px solid #fff !important;
}
.el-main { .el-main {
padding: 20px; padding: 20px;
flex: 1; flex: 1;
@ -123,23 +52,27 @@ const handleSelect = (key) => {
color: #909399; color: #909399;
} }
/* 响应式布局 */
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.header-container { .nav-bar {
padding: 0 10px; flex-direction: column;
padding: 0 8px;
margin-top: 16px;
margin-bottom: 16px;
} }
.nav-logo {
.logo { font-size: 22px;
margin-right: 20px; margin-bottom: 8px;
} }
.nav-menu {
.logo h1 { min-width: 0;
font-size: 16px; max-width: 100%;
padding: 0 8px;
height: 48px;
} }
.nav-item {
.el-menu--horizontal > .el-menu-item { min-width: 60px;
padding: 0 10px; font-size: 15px;
font-size: 14px; padding: 0 8px;
} }
} }
</style> </style>

View File

@ -3,9 +3,9 @@ html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-family: 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
background: #f6f8fa; background: #FAF3E3;
color: #222; color: #6B4F2B;
font-size: 16px; font-size: 16px;
} }
@ -13,80 +13,180 @@ html, body {
height: 100%; height: 100%;
} }
/* 滚动条样式 */ .layout-container {
::-webkit-scrollbar { min-height: 100vh;
width: 8px; display: flex;
height: 8px; flex-direction: column;
background: #FAF3E3;
} }
::-webkit-scrollbar-track { .header-container {
background: #f1f1f1; background: transparent !important;
border-radius: 4px; display: flex;
align-items: center;
height: 80px;
padding: 0 32px;
border-bottom: none !important;
justify-content: center;
position: relative;
margin-top: 36px !important;
z-index: 10;
} }
::-webkit-scrollbar-thumb { .logo {
background: #c1c1c1; display: flex;
border-radius: 4px; justify-content: center;
align-items: center;
width: 100%;
margin-top: 24px;
margin-bottom: 0;
} }
::-webkit-scrollbar-thumb:hover { .logo h1 {
background: #a8a8a8; color: #6B4F2B;
font-size: 32px;
font-weight: bold;
margin: 0;
letter-spacing: 2px;
line-height: 48px;
} }
/* Element Plus 主题覆盖 */ .nav-menu {
.el-header { flex: 1;
background-color: #fff; border: none !important;
border-bottom: 1px solid #dcdfe6; background: #E9D8A6;
padding: 0 20px; font-weight: bold;
}
.el-menu--horizontal, .nav-menu {
background: #fff !important;
border-radius: 18px 18px 0 0 !important;
box-shadow: 0 2px 12px 0 rgba(139, 110, 74, 0.06);
width: 80%;
min-width: 800px;
border-bottom: none !important;
margin: 32px auto 0 auto !important;
overflow: hidden !important;
display: flex;
justify-content: center;
}
.el-menu--horizontal > .el-menu-item {
border-radius: 16px 16px 0 0 !important;
margin: 0 !important;
padding: 0 32px !important;
height: 56px !important;
line-height: 56px !important;
background: #f7f3ec !important;
color: #6B4F2B !important;
font-size: 18px;
font-weight: 500;
box-shadow: 0 2px 6px 0 rgba(139, 110, 74, 0.03);
transition: background 0.2s, color 0.2s, font-weight 0.2s, box-shadow 0.2s;
border: none !important;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.el-menu--horizontal > .el-menu-item.is-active,
.el-menu--horizontal > .el-menu-item:hover {
background: linear-gradient(180deg, #F9E3E3 80%, #fff 100%) !important;
color: #4B2E13 !important;
font-weight: bold !important;
box-shadow: 0 4px 16px 0 rgba(249, 227, 227, 0.12);
z-index: 2;
} }
.el-main { .el-main {
background-color: #f5f7fa; padding: 24px;
flex: 1;
background-color: #FAF3E3;
}
.el-footer {
padding: 20px; padding: 20px;
background-color: #F9F5EC;
border-top: 1px solid #E9D8A6;
}
.footer-content {
text-align: center;
color: #bfa76a;
} }
.el-card { .el-card {
border-radius: 14px; border-radius: 24px;
box-shadow: 0 4px 24px 0 rgba(64,158,255,0.08); box-shadow: 0 4px 24px 0 rgba(233, 216, 166, 0.10);
border: none; border: 1.5px solid #E9D8A6;
margin-bottom: 20px; margin-bottom: 24px;
background: #fff;
} }
.el-card__header { .el-card__header {
padding: 18px 24px; padding: 20px 28px;
font-size: 18px; font-size: 19px;
font-weight: 600; font-weight: 600;
background: #f8fbff; background: #FAF3E3;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #E9D8A6;
} }
.el-button { .el-button {
border-radius: 8px; border-radius: 24px;
font-size: 16px; font-size: 17px;
padding: 10px 24px; padding: 12px 36px;
min-width: 120px; min-width: 120px;
font-weight: 500; font-weight: 600;
letter-spacing: 1px;
transition: background 0.2s, color 0.2s;
} }
.el-button--primary { .el-button--primary {
background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%); background: linear-gradient(90deg, #A7C957 0%, #264653 100%);
border: none; border: none;
color: #fff;
} }
.el-button--primary:hover { .el-button--primary:hover {
background-color: #66b1ff; background: #A7C957;
border-color: #66b1ff; color: #fff;
}
.el-button--success {
background: #A7C957;
color: #fff;
border: none;
}
.el-button--success:hover {
background: #6B4F2B;
color: #fff;
}
.el-button--warning {
background: #F9C5D1;
color: #6B4F2B;
border: none;
}
.el-button--warning:hover {
background: #E9D8A6;
color: #6B4F2B;
} }
.el-table { .el-table {
border-radius: 12px; border-radius: 20px;
overflow: hidden; overflow: hidden;
font-size: 15px; font-size: 15px;
background: #fff;
border: 1px solid #E9D8A6;
} }
.el-table th { .el-table th {
background: #f8fbff; background: #FAF3E3;
font-weight: 600; font-weight: 600;
color: #6B4F2B;
} }
.el-pagination { .el-pagination {
@ -100,12 +200,13 @@ html, body {
} }
.el-input, .el-input-number { .el-input, .el-input-number {
border-radius: 8px; border-radius: 16px;
font-size: 16px; font-size: 16px;
border: 1.5px solid #E9D8A6;
} }
.el-dialog { .el-dialog {
border-radius: 16px; border-radius: 24px;
} }
/* 动画效果 */ /* 动画效果 */
@ -121,39 +222,19 @@ html, body {
/* 响应式布局 */ /* 响应式布局 */
@media screen and (max-width: 900px) { @media screen and (max-width: 900px) {
.el-row { .el-menu--horizontal > .el-menu-item {
flex-direction: column !important;
}
.el-col {
width: 100% !important;
max-width: 100% !important;
margin-bottom: 16px;
}
.el-card {
margin-bottom: 16px;
}
.el-button {
min-width: 90px;
font-size: 15px; font-size: 15px;
padding: 10px 0; padding: 0 10px;
}
.header-container {
padding: 0 6px;
} }
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
body, html { .el-menu--horizontal > .el-menu-item {
font-size: 15px; font-size: 13px;
} padding: 0 4px;
.el-header h1 {
font-size: 15px !important;
}
.el-card__header {
font-size: 16px;
padding: 12px 10px;
}
.el-button {
font-size: 14px;
padding: 8px 0;
min-width: 70px;
} }
} }
@ -172,4 +253,299 @@ html, body {
.el-form-item__content { .el-form-item__content {
margin-left: 0 !important; margin-left: 0 !important;
} }
}
/* 柔和木色+米色+淡粉+棕色主题,菜单栏更整洁 */
html, body, #app, .layout-container, .el-main, .el-footer {
background: #FAF3E3 !important;
color: #6B4F2B !important;
}
.header-container, .el-menu--horizontal, .nav-menu {
background: linear-gradient(180deg, #E6D3B3 80%, #F5E9DA 100%) !important;
box-shadow: 0 2px 8px 0 rgba(139, 110, 74, 0.04);
border-bottom: 1.5px solid #D8C3A5;
border-radius: 18px 18px 0 0 !important;
overflow: hidden !important;
padding: 0 !important;
}
.el-menu--horizontal > .el-menu-item {
border-radius: 0 !important;
margin: 0 !important;
padding: 0 28px !important;
height: 48px !important;
line-height: 48px !important;
background: transparent !important;
color: #6B4F2B !important;
position: relative;
transition: background 0.2s, color 0.2s;
}
.el-menu--horizontal > .el-menu-item.is-active {
background: #F9E3E3 !important;
color: #6B4F2B !important;
box-shadow: 0 2px 8px 0 rgba(249, 227, 227, 0.18);
font-weight: bold !important;
border-bottom: 2.5px solid #C1A177 !important;
}
.el-menu--horizontal > .el-menu-item:hover {
background: #F5E9DA !important;
color: #6B4F2B !important;
}
.el-menu--horizontal > .el-menu-item:not(:last-child)::after {
content: '';
position: absolute;
right: -3px;
top: 12px;
height: 24px;
width: 1px;
background: #E6D3B3;
opacity: 0.5;
}
.el-card, .el-dialog, .el-table {
border-radius: 20px !important;
background: #FFFDF8 !important;
border: 1.5px solid #E6D3B3 !important;
box-shadow: 0 4px 24px 0 rgba(230, 211, 179, 0.08) !important;
}
.el-card__header, .el-table th {
background: #FAF3E3 !important;
color: #6B4F2B !important;
border-bottom: 1px solid #E6D3B3 !important;
}
.el-button, .el-button--primary, .el-button--success, .el-button--warning {
background: linear-gradient(90deg, #E6D3B3 0%, #F9E3E3 100%) !important;
color: #6B4F2B !important;
border: none !important;
border-radius: 16px !important;
font-weight: 600 !important;
box-shadow: 0 2px 8px 0 rgba(230, 211, 179, 0.10) !important;
}
.el-button:hover, .el-button--primary:hover, .el-button--success:hover, .el-button--warning:hover {
background: #D8C3A5 !important;
color: #6B4F2B !important;
}
.el-input, .el-input-number, .el-select, .el-textarea {
border-radius: 12px !important;
font-size: 16px !important;
border: 1.5px solid #E6D3B3 !important;
background: #FFFDF8 !important;
color: #6B4F2B !important;
}
.el-tabs__item {
font-size: 17px !important;
font-weight: 500 !important;
color: #6B4F2B !important;
border-radius: 0 !important;
}
.el-tabs__item.is-active {
color: #6B4F2B !important;
border-bottom: 2px solid #6B4F2B !important;
}
.el-table th, .el-table td {
background: #FFFDF8 !important;
color: #6B4F2B !important;
}
.el-pagination {
background: transparent !important;
color: #6B4F2B !important;
}
.el-dialog__header, .el-dialog__title {
color: #6B4F2B !important;
background: #FAF3E3 !important;
}
.el-card, .el-dialog, .el-table, .el-input, .el-select, .el-textarea {
border-radius: 20px !important;
box-shadow: 0 4px 24px 0 rgba(230, 211, 179, 0.08) !important;
}
/* 顶部菜单栏彻底无底色露出,按钮完整显示 */
body, #app, .header-container, .el-header, .el-menu--horizontal, .nav-menu {
background: #E6D3B3 !important;
border-radius: 0 !important;
overflow: visible !important;
min-width: 100vw !important;
margin: 0 !important;
padding: 0 !important;
box-shadow: none !important;
border: none !important;
}
.el-menu--horizontal {
width: 100% !important;
}
/* 按钮组优化,按钮完整显示 */
.button-group, .el-table__row .cell {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 8px;
flex-wrap: wrap;
min-width: 120px;
}
.button-group .el-button, .el-table__row .el-button {
min-width: 60px;
border-radius: 16px !important;
overflow: hidden;
white-space: nowrap;
flex: none;
margin: 0 !important;
}
/* 响应式和风细节可继续补充 */
/* 操作按钮横向并排显示,绝不换行 */
.el-table__row .cell {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
min-width: 120px;
max-width: 160px;
gap: 8px;
white-space: nowrap;
overflow: visible;
}
.el-table__row .el-button {
flex: none;
min-width: 60px;
max-width: 80px;
margin: 0 !important;
border-radius: 16px !important;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline-block;
}
.el-table__row .el-button:last-child {
margin-right: 0 !important;
}
/* 去除横向滚动条 */
body, #app {
background: #FAF3E3 !important;
overflow-x: hidden !important;
}
/* 让"出锅号码"列自动换行,避免撑宽表格 */
.el-table .el-table__body td:nth-child(3) {
white-space: normal !important;
word-break: break-all;
font-size: 15px;
}
/* 操作列按钮横向完整展示,靠左 */
.el-table__row td:last-child, .el-table__row .cell:last-child {
min-width: 120px !important;
max-width: 160px !important;
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
align-items: center !important;
gap: 8px !important;
white-space: nowrap !important;
overflow: visible !important;
justify-content: flex-start !important;
text-align: left !important;
}
.el-table__row .el-button {
flex: none !important;
min-width: 48px !important;
max-width: 70px !important;
margin-right: 4px !important;
border-radius: 16px !important;
overflow: hidden !important;
white-space: nowrap !important;
text-overflow: ellipsis !important;
display: inline-block !important;
font-size: 14px !important;
padding: 4px 8px !important;
}
.el-table__row .el-button:last-child {
margin-right: 0 !important;
}
/* 表格内容自动换行,避免撑宽 */
.el-table .el-table__body td {
white-space: normal !important;
word-break: break-all;
font-size: 15px;
}
/* 自定义和风导航栏样式 */
.nav-bar {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
margin-top: 36px;
margin-bottom: 32px;
padding: 0 32px;
box-sizing: border-box;
}
.nav-logo {
font-family: 'Noto Serif JP', 'PingFang SC', 'Microsoft YaHei', serif;
font-size: 32px;
font-weight: bold;
color: #6B4F2B;
letter-spacing: 2px;
white-space: nowrap;
margin-right: 40px;
flex-shrink: 0;
}
.nav-menu {
display: flex;
align-items: center;
background: #fff;
border-radius: 24px;
box-shadow: 0 4px 24px 0 rgba(139, 110, 74, 0.10);
padding: 0 24px;
height: 64px;
min-width: 700px;
max-width: 1200px;
flex: 1;
}
.nav-item {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
min-width: 80px;
padding: 0 18px;
margin: 0 8px;
border-radius: 16px 16px 0 0;
font-size: 18px;
color: #6B4F2B;
font-weight: 500;
background: transparent;
cursor: pointer;
transition: background 0.18s, color 0.18s, font-weight 0.18s, box-shadow 0.18s;
box-shadow: none;
border: none;
outline: none;
}
.nav-item:hover,
.nav-item.active {
background: rgba(249, 227, 227, 0.7);
color: #4B2E13;
font-weight: bold;
box-shadow: 0 2px 8px 0 rgba(249,227,227,0.08);
} }

View File

@ -5,6 +5,7 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import './assets/main.css'
// 创建应用实例 // 创建应用实例
const app = createApp(App) const app = createApp(App)
@ -20,4 +21,6 @@ app.use(createPinia())
app.use(router) app.use(router)
// 挂载应用 // 挂载应用
app.mount('#app') app.mount('#app')
document.title = '好运早餐铺'

View File

@ -2,24 +2,24 @@
<el-card class="advanced-analysis"> <el-card class="advanced-analysis">
<template #header> <template #header>
<el-form :inline="true" class="analysis-form" label-width="80px"> <el-form :inline="true" class="analysis-form" label-width="80px">
<el-form-item label="彩票类型"> <el-form-item label="早点类型">
<el-select v-model="lotteryType" placeholder="请选择" @change="loadAnalysis" style="width: 120px"> <el-select v-model="lotteryType" placeholder="请选择" @change="loadAnalysis" style="width: 120px">
<el-option label="双色球" value="ssq"></el-option> <el-option label="红蓝球煎饼" value="ssq"></el-option>
<el-option label="大乐" value="dlt"></el-option> <el-option label="大乐斗豆浆" value="dlt"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="分析类型"> <el-form-item label="小菜类型">
<el-select v-model="analysisType" placeholder="请选择" @change="loadAnalysis" style="width: 140px"> <el-select v-model="analysisType" placeholder="请选择" @change="loadAnalysis" style="width: 140px">
<el-option label="遗漏值分析" value="missing"></el-option> <el-option label="遗漏值小菜" value="missing"></el-option>
<el-option label="和值分析" value="sum"></el-option> <el-option label="和值小菜" value="sum"></el-option>
<el-option label="AC值分析" value="ac"></el-option> <el-option label="AC值小菜" value="ac"></el-option>
<el-option label="质合比分析" value="prime"></el-option> <el-option label="质合比小菜" value="prime"></el-option>
<el-option label="012路分析" value="road"></el-option> <el-option label="012路小菜" value="road"></el-option>
<el-option label="跨度分析" value="span"></el-option> <el-option label="跨度小菜" value="span"></el-option>
<el-option label="综合分析" value="comprehensive"></el-option> <el-option label="综合小菜" value="comprehensive"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="分析期数"> <el-form-item label="复盘天数">
<el-input-number <el-input-number
v-model="periods" v-model="periods"
:min="10" :min="10"
@ -30,7 +30,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="loadAnalysis" :loading="loading"> <el-button type="primary" @click="loadAnalysis" :loading="loading">
分析 上菜
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -42,7 +42,7 @@
</div> </div>
<div v-else-if="analysisData" class="analysis-content"> <div v-else-if="analysisData" class="analysis-content">
<div class="chart-title"> <div class="chart-title">
<h3>{{ analysisTypeLabelMap[analysisType] || '分析结果' }}</h3> <h3>{{ analysisTypeLabelMap[analysisType] || '小菜上桌' }}</h3>
</div> </div>
<div v-if="analysisType !== 'comprehensive'" class="chart-container"> <div v-if="analysisType !== 'comprehensive'" class="chart-container">
<div ref="missingChart" v-show="analysisType === 'missing'" style="width: 100%; height: 400px;"></div> <div ref="missingChart" v-show="analysisType === 'missing'" style="width: 100%; height: 400px;"></div>

View File

@ -3,15 +3,15 @@
<el-card class="filter-card"> <el-card class="filter-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>查询条件</span> <span>点单条件</span>
<el-button type="primary" @click="handleImport">导入数据</el-button> <el-button type="primary" @click="handleImport">补货入库</el-button>
</div> </div>
</template> </template>
<el-form :inline="true" :model="queryForm" class="filter-form"> <el-form :inline="true" :model="queryForm" class="filter-form">
<el-form-item label="号"> <el-form-item label="早点编号">
<el-input v-model="queryForm.issue" placeholder="请输入号"></el-input> <el-input v-model="queryForm.issue" placeholder="请输入早点编号"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开奖日期"> <el-form-item label="出锅日期">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="daterange" type="daterange"
@ -22,9 +22,9 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleQuery">查询</el-button> <el-button type="primary" @click="handleQuery">点单</el-button>
<el-button @click="handleReset">重置</el-button> <el-button @click="handleReset">清空</el-button>
<el-button type="success" @click="handleExport">导出</el-button> <el-button type="success" @click="handleExport">打包带走</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -32,14 +32,14 @@
<el-card class="table-card"> <el-card class="table-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>开奖记录</span> <span>出锅记录</span>
<el-button type="primary" @click="handleAdd">添加记录</el-button> <el-button type="primary" @click="handleAdd">加菜</el-button>
</div> </div>
</template> </template>
<el-table :data="tableData" style="width: 100%" v-loading="loading"> <el-table :data="tableData" style="width: 100%" v-loading="loading">
<el-table-column prop="issue" label="期号" width="120"></el-table-column> <el-table-column prop="issue" label="早点编号" width="100"></el-table-column>
<el-table-column prop="open_time" label="开奖日期" width="120"></el-table-column> <el-table-column prop="open_date" label="出锅日期" width="120"></el-table-column>
<el-table-column label="开奖号码"> <el-table-column label="出锅号码">
<template #default="{ row }"> <template #default="{ row }">
<div class="lottery-numbers"> <div class="lottery-numbers">
<span v-for="i in 5" :key="i" class="front-ball">{{ row[`front_ball_${i}`] }}</span> <span v-for="i in 5" :key="i" class="front-ball">{{ row[`front_ball_${i}`] }}</span>
@ -49,8 +49,8 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="handleEdit(row)">编辑</el-button> <el-button type="text" @click="handleEdit(row)">加料</el-button>
<el-button type="danger" link @click="handleDelete(row)">删除</el-button> <el-button type="text" @click="handleDelete(row)">撤单</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -74,12 +74,12 @@
width="500px" width="500px"
> >
<el-form :model="form" label-width="100px"> <el-form :model="form" label-width="100px">
<el-form-item label="号"> <el-form-item label="早点编号">
<el-input v-model="form.issue"></el-input> <el-input v-model="form.issue"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开奖日期"> <el-form-item label="出锅日期">
<el-date-picker <el-date-picker
v-model="form.open_time" v-model="form.open_date"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
@ -179,7 +179,7 @@ const dialogVisible = ref(false)
const dialogType = ref('add') const dialogType = ref('add')
const form = reactive({ const form = reactive({
issue: '', issue: '',
open_time: '', open_date: '',
front_ball_1: 1, front_ball_1: 1,
front_ball_2: 1, front_ball_2: 1,
front_ball_3: 1, front_ball_3: 1,
@ -265,8 +265,8 @@ const handleDelete = (row) => {
'确定要删除这条记录吗?', '确定要删除这条记录吗?',
'警告', '警告',
{ {
confirmButtonText: '确定', confirmButtonText: '下单!',
cancelButtonText: '取消', cancelButtonText: '不吃了',
type: 'warning', type: 'warning',
} }
).then(async () => { ).then(async () => {

View File

@ -6,7 +6,7 @@
<el-card class="update-card"> <el-card class="update-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>数据更新</span> <span>早点补货</span>
<div class="update-buttons"> <div class="update-buttons">
<el-button <el-button
type="primary" type="primary"
@ -15,7 +15,7 @@
:disabled="updatingAll" :disabled="updatingAll"
> >
<el-icon><Refresh /></el-icon> <el-icon><Refresh /></el-icon>
更新双色球 补红蓝球煎饼
</el-button> </el-button>
<el-button <el-button
type="success" type="success"
@ -24,7 +24,7 @@
:disabled="updatingAll" :disabled="updatingAll"
> >
<el-icon><Refresh /></el-icon> <el-icon><Refresh /></el-icon>
更新大乐透 补大乐斗豆浆
</el-button> </el-button>
<el-button <el-button
type="warning" type="warning"
@ -33,7 +33,7 @@
:disabled="updatingSSQ || updatingDLT" :disabled="updatingSSQ || updatingDLT"
> >
<el-icon><Refresh /></el-icon> <el-icon><Refresh /></el-icon>
更新全部 补全场早点
</el-button> </el-button>
</div> </div>
</div> </div>
@ -55,17 +55,17 @@
<el-card class="data-card"> <el-card class="data-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>双色球最新开奖</span> <span>红蓝球煎饼新鲜出锅</span>
<el-button type="primary" link @click="refreshSSQData">刷新</el-button> <el-button type="primary" link @click="refreshSSQData">再来一份</el-button>
</div> </div>
</template> </template>
<div v-if="ssqLatest" class="lottery-info"> <div v-if="ssqLatest" class="lottery-info">
<div class="issue-info"> <div class="issue-info">
<span class="label"></span> <span class="label">早点编</span>
<span class="value">{{ ssqLatest.issue }}</span> <span class="value">{{ ssqLatest.issue }}</span>
</div> </div>
<div class="draw-time"> <div class="draw-time">
<span class="label">开奖时间</span> <span class="label">出锅时间</span>
<span class="value">{{ formatDate(ssqLatest.open_time) }}</span> <span class="value">{{ formatDate(ssqLatest.open_time) }}</span>
</div> </div>
<div class="numbers"> <div class="numbers">
@ -87,17 +87,17 @@
<el-card class="data-card"> <el-card class="data-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>大乐透最新开奖</span> <span>大乐斗豆浆新鲜出锅</span>
<el-button type="primary" link @click="refreshDLTData">刷新</el-button> <el-button type="primary" link @click="refreshDLTData">再来一份</el-button>
</div> </div>
</template> </template>
<div v-if="dltLatest" class="lottery-info"> <div v-if="dltLatest" class="lottery-info">
<div class="issue-info"> <div class="issue-info">
<span class="label"></span> <span class="label">早点编</span>
<span class="value">{{ dltLatest.issue }}</span> <span class="value">{{ dltLatest.issue }}</span>
</div> </div>
<div class="draw-time"> <div class="draw-time">
<span class="label">开奖时间</span> <span class="label">出锅时间</span>
<span class="value">{{ formatDate(dltLatest.open_time) }}</span> <span class="value">{{ formatDate(dltLatest.open_time) }}</span>
</div> </div>
<div class="numbers"> <div class="numbers">
@ -255,9 +255,9 @@ const updateAllData = async () => {
} }
} catch (error) { } catch (error) {
console.error('更新所有数据失败:', error) console.error('更新所有数据失败:', error)
updateMessage.value = `更新所有数据失败: ${error.message}` updateMessage.value = `补货失败: ${error.message}`
updateMessageType.value = 'error' updateMessageType.value = 'error'
ElMessage.error(`更新所有数据失败: ${error.message}`) ElMessage.error(`补货失败: ${error.message}`)
} finally { } finally {
updatingAll.value = false updatingAll.value = false
} }
@ -275,10 +275,10 @@ const navigateTo = (route) => {
} }
const quickActions = [ const quickActions = [
{ label: '双色球数据', route: 'ssq', icon: Document }, { label: '红蓝球煎饼', route: 'ssq', icon: Document },
{ label: '大乐透数据', route: 'dlt', icon: Document }, { label: '大乐斗豆浆', route: 'dlt', icon: Document },
{ label: '统计分析', route: 'statistics', icon: TrendCharts }, { label: '数据小菜', route: 'statistics', icon: TrendCharts },
{ label: '智能选号', route: 'generator', icon: MagicStick } { label: '一键下单', route: 'generator', icon: MagicStick }
] ]
onMounted(() => { onMounted(() => {

View File

@ -1,18 +1,18 @@
<template> <template>
<div class="number-generator-container"> <div class="number-generator-container">
<el-tabs v-model="activeTab"> <el-tabs v-model="activeTab">
<el-tab-pane label="双色球" name="ssq"> <el-tab-pane label="红蓝球煎饼" name="ssq">
<el-form :model="ssqForm" label-width="120px"> <el-form :model="ssqForm" label-width="120px">
<el-form-item label="选号策略"> <el-form-item label="下单口味">
<el-radio-group v-model="ssqForm.strategy"> <el-radio-group v-model="ssqForm.strategy">
<el-radio label="balanced">均衡策略</el-radio> <el-radio label="balanced">均衡口味</el-radio>
<el-radio label="hot">门号码</el-radio> <el-radio label="hot">销早点</el-radio>
<el-radio label="cold">冷门号码</el-radio> <el-radio label="cold">冷门早点</el-radio>
<el-radio label="missing">遗漏值策略</el-radio> <el-radio label="missing">遗漏小菜</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="分析周期"> <el-form-item label="复盘天数">
<el-select v-model="ssqForm.periods"> <el-select v-model="ssqForm.periods">
<el-option label="最近50期" :value="50" /> <el-option label="最近50期" :value="50" />
<el-option label="最近100期" :value="100" /> <el-option label="最近100期" :value="100" />
@ -20,13 +20,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="生成注数"> <el-form-item label="下单份数">
<el-input-number v-model="ssqForm.count" :min="1" :max="10" /> <el-input-number v-model="ssqForm.count" :min="1" :max="10" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="generateSSQNumbers">生成号码</el-button> <el-button type="primary" @click="generateSSQNumbers">一键下单</el-button>
<el-button @click="showSSQAnalysis">查看分析</el-button> <el-button @click="showSSQAnalysis">尝一口</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -84,18 +84,18 @@
</el-dialog> </el-dialog>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="大乐" name="dlt"> <el-tab-pane label="大乐斗豆浆" name="dlt">
<el-form :model="dltForm" label-width="120px"> <el-form :model="dltForm" label-width="120px">
<el-form-item label="选号策略"> <el-form-item label="下单口味">
<el-radio-group v-model="dltForm.strategy"> <el-radio-group v-model="dltForm.strategy">
<el-radio label="balanced">均衡策略</el-radio> <el-radio label="balanced">均衡口味</el-radio>
<el-radio label="hot">门号码</el-radio> <el-radio label="hot">销早点</el-radio>
<el-radio label="cold">冷门号码</el-radio> <el-radio label="cold">冷门早点</el-radio>
<el-radio label="missing">遗漏值策略</el-radio> <el-radio label="missing">遗漏小菜</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="分析周期"> <el-form-item label="复盘天数">
<el-select v-model="dltForm.periods"> <el-select v-model="dltForm.periods">
<el-option label="最近50期" :value="50" /> <el-option label="最近50期" :value="50" />
<el-option label="最近100期" :value="100" /> <el-option label="最近100期" :value="100" />
@ -103,13 +103,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="生成注数"> <el-form-item label="下单份数">
<el-input-number v-model="dltForm.count" :min="1" :max="10" /> <el-input-number v-model="dltForm.count" :min="1" :max="10" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="generateDLTNumbers">生成号码</el-button> <el-button type="primary" @click="generateDLTNumbers">一键下单</el-button>
<el-button @click="showDLTAnalysis">查看分析</el-button> <el-button @click="showDLTAnalysis">尝一口</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -2,24 +2,19 @@
<div class="prediction"> <div class="prediction">
<el-card class="prediction-card"> <el-card class="prediction-card">
<template #header> <template #header>
<el-form :inline="true" class="prediction-form" label-width="80px"> <el-form :inline="true" class="prediction-form">
<el-form-item label="彩票类型"> <el-form-item label="早点类型">
<el-select v-model="lotteryType" placeholder="请选择" @change="resetPrediction" style="width: 120px"> <el-select v-model="lotteryType">
<el-option label="双色球" value="ssq"></el-option> <el-option label="红蓝球煎饼" value="ssq" />
<el-option label="大乐透" value="dlt"></el-option> <el-option label="大乐斗豆浆" value="dlt" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="训练期数"> <el-form-item label="和面天数">
<el-input-number <el-input-number v-model="trainingPeriods" :min="10" :max="500" />
v-model="trainingPeriods"
:min="50"
:max="500"
style="width: 120px"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="trainModel" :loading="training"> <el-button type="primary" @click="trainModel" :loading="training">
训练模型 AI和面中
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -28,13 +23,13 @@
<div class="prediction-content"> <div class="prediction-content">
<!-- 预测结果优先展示 --> <!-- 预测结果优先展示 -->
<div v-if="predictionResults.length > 0" class="prediction-results"> <div v-if="predictionResults.length > 0" class="prediction-results">
<h3>预测结果</h3> <h3>今日菜单</h3>
<el-tabs v-model="activeTab" type="border-card"> <el-tabs v-model="activeTab" type="border-card">
<el-tab-pane label="机器学习预测" name="ml"> <el-tab-pane label="AI灵感煎饼" name="ml">
<div v-if="mlPrediction" class="prediction-item"> <div v-if="mlPrediction" class="prediction-item">
<div class="prediction-header"> <div class="prediction-header">
<h4>机器学习预测</h4> <h4>AI灵感煎饼</h4>
<el-tag type="success">置信度: </el-tag> <el-tag type="success">靠谱口感: </el-tag>
</div> </div>
<div class="prediction-numbers flex-balls"> <div class="prediction-numbers flex-balls">
<div class="red-balls"> <div class="red-balls">
@ -55,14 +50,14 @@
<p>{{ mlPrediction.confidence }}</p> <p>{{ mlPrediction.confidence }}</p>
</div> </div>
</div> </div>
<div v-else class="no-prediction">暂无机器学习预测结果</div> <div v-else class="no-prediction">AI今天没灵感早点卖完了</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="模式预测" name="pattern"> <el-tab-pane label="老板经验豆浆" name="pattern">
<div v-if="patternPrediction" class="prediction-item"> <div v-if="patternPrediction" class="prediction-item">
<div class="prediction-header"> <div class="prediction-header">
<h4>模式分析预测</h4> <h4>老板经验豆浆</h4>
<el-tag type="warning">置信度: </el-tag> <el-tag type="warning">靠谱口感: </el-tag>
</div> </div>
<div class="prediction-numbers flex-balls" v-if="patternPrediction.predicted_numbers"> <div class="prediction-numbers flex-balls" v-if="patternPrediction.predicted_numbers">
<div class="red-balls"> <div class="red-balls">
@ -80,14 +75,14 @@
</div> </div>
</div> </div>
<div class="pattern-criteria"> <div class="pattern-criteria">
<el-descriptions title="推荐选号标准" :column="2" border> <el-descriptions title="中奖小配方" :column="2" border>
<el-descriptions-item label="和值范围"> <el-descriptions-item label="口味区间">
{{ patternPrediction.suggested_criteria.sum_range.join(' - ') }} {{ patternPrediction.suggested_criteria.sum_range.join(' - ') }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="奇偶比"> <el-descriptions-item label="冷热搭配">
{{ patternPrediction.suggested_criteria.odd_even_ratio }} {{ patternPrediction.suggested_criteria.odd_even_ratio }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="分区数量"> <el-descriptions-item label="配料数量">
{{ patternPrediction.suggested_criteria.zone_distribution }} {{ patternPrediction.suggested_criteria.zone_distribution }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="连号数量"> <el-descriptions-item label="连号数量">
@ -96,14 +91,14 @@
</el-descriptions> </el-descriptions>
</div> </div>
</div> </div>
<div v-else class="no-prediction">暂无模式预测结果</div> <div v-else class="no-prediction">老板今天没灵感早点卖完了</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="集成预测" name="ensemble"> <el-tab-pane label="拼盘早点" name="ensemble">
<div v-if="ensemblePrediction" class="prediction-item"> <div v-if="ensemblePrediction" class="prediction-item">
<div class="prediction-header"> <div class="prediction-header">
<h4>集成预测结果</h4> <h4>拼盘早点</h4>
<el-tag type="info">多方法综合</el-tag> <el-tag type="info">早点花样拼盘</el-tag>
</div> </div>
<div class="ensemble-recommendations"> <div class="ensemble-recommendations">
<div v-for="(rec, index) in ensemblePrediction.recommendations" :key="index" class="recommendation"> <div v-for="(rec, index) in ensemblePrediction.recommendations" :key="index" class="recommendation">
@ -148,7 +143,7 @@
</el-descriptions> </el-descriptions>
</div> </div>
</div> </div>
<div v-else class="no-prediction">暂无集成预测结果</div> <div v-else class="no-prediction">拼盘早点卖完了明天早点来</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -174,7 +169,7 @@
:loading="predicting" :loading="predicting"
block block
> >
{{ modelStatus && modelStatus.type !== 'error' ? '机器学习预测' : '训练并预测' }} {{ modelStatus && modelStatus.type !== 'error' ? 'AI灵感煎饼' : 'AI和面中' }}
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -184,7 +179,7 @@
:loading="predicting" :loading="predicting"
block block
> >
模式预测 老板经验豆浆
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -194,7 +189,7 @@
:loading="predicting" :loading="predicting"
block block
> >
{{ modelStatus && modelStatus.type !== 'error' ? '集成预测' : '训练并预测' }} {{ modelStatus && modelStatus.type !== 'error' ? '拼盘早点' : 'AI和面中' }}
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -202,12 +197,12 @@
<!-- 历史预测记录 --> <!-- 历史预测记录 -->
<div v-if="predictionHistory.length > 0" class="prediction-history"> <div v-if="predictionHistory.length > 0" class="prediction-history">
<h3>历史预测记录</h3> <h3>昨日菜单</h3>
<el-table :data="predictionHistory" stripe> <el-table :data="predictionHistory" stripe>
<el-table-column prop="timestamp" label="预测时间" width="180" /> <el-table-column prop="timestamp" label="点单时间" width="180" />
<el-table-column prop="lotteryType" label="彩票类型" width="100" /> <el-table-column prop="lotteryType" label="早点类型" width="100" />
<el-table-column prop="method" label="预测方法" width="120" /> <el-table-column prop="method" label="出锅方式" width="120" />
<el-table-column prop="numbers" label="预测号码"> <el-table-column prop="numbers" label="菜单号码">
<template #default="scope"> <template #default="scope">
<div class="prediction-numbers flex-balls"> <div class="prediction-numbers flex-balls">
<div class="red-balls"> <div class="red-balls">
@ -226,7 +221,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="confidence" label="置信度" width="100"> <el-table-column prop="confidence" label="靠谱口感" width="100">
<template #default="scope"> <template #default="scope">
<el-tag :type="scope.row.confidence === '高' ? 'success' : scope.row.confidence === '中' ? 'warning' : 'info'"> <el-tag :type="scope.row.confidence === '高' ? 'success' : scope.row.confidence === '中' ? 'warning' : 'info'">
{{ scope.row.confidence }} {{ scope.row.confidence }}

View File

@ -3,15 +3,15 @@
<el-card class="filter-card"> <el-card class="filter-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>查询条件</span> <span>点单条件</span>
<el-button type="primary" @click="handleImport">导入数据</el-button> <el-button type="primary" @click="handleImport">补货入库</el-button>
</div> </div>
</template> </template>
<el-form :inline="true" :model="queryForm" class="filter-form"> <el-form :inline="true" :model="queryForm" class="filter-form">
<el-form-item label="号"> <el-form-item label="早点编号">
<el-input v-model="queryForm.issue" placeholder="请输入号"></el-input> <el-input v-model="queryForm.issue" placeholder="请输入早点编号"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开奖日期"> <el-form-item label="出锅日期">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="daterange" type="daterange"
@ -22,9 +22,9 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleQuery">查询</el-button> <el-button type="primary" @click="handleQuery">点单</el-button>
<el-button @click="handleReset">重置</el-button> <el-button @click="handleReset">清空</el-button>
<el-button type="success" @click="handleExport">导出</el-button> <el-button type="success" @click="handleExport">打包带走</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -32,14 +32,14 @@
<el-card class="table-card"> <el-card class="table-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>开奖记录</span> <span>出锅记录</span>
<el-button type="primary" @click="handleAdd">添加记录</el-button> <el-button type="primary" @click="handleAdd">加菜</el-button>
</div> </div>
</template> </template>
<el-table :data="tableData" style="width: 100%" v-loading="loading"> <el-table :data="tableData" style="width: 100%" v-loading="loading">
<el-table-column prop="issue" label="期号" width="120"></el-table-column> <el-table-column prop="issue" label="早点编号" width="100"></el-table-column>
<el-table-column prop="open_time" label="开奖日期" width="120"></el-table-column> <el-table-column prop="open_date" label="出锅日期" width="120"></el-table-column>
<el-table-column label="开奖号码"> <el-table-column prop="numbers" label="出锅号码">
<template #default="{ row }"> <template #default="{ row }">
<div class="lottery-numbers"> <div class="lottery-numbers">
<span v-for="i in 6" :key="i" class="red-ball">{{ row[`red_ball_${i}`] }}</span> <span v-for="i in 6" :key="i" class="red-ball">{{ row[`red_ball_${i}`] }}</span>
@ -49,8 +49,8 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="handleEdit(row)">编辑</el-button> <el-button type="text" @click="handleEdit(row)">加料</el-button>
<el-button type="danger" link @click="handleDelete(row)">删除</el-button> <el-button type="text" @click="handleDelete(row)">撤单</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -74,12 +74,12 @@
width="500px" width="500px"
> >
<el-form :model="form" label-width="100px"> <el-form :model="form" label-width="100px">
<el-form-item label="号"> <el-form-item label="早点编号">
<el-input v-model="form.issue"></el-input> <el-input v-model="form.issue"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开奖日期"> <el-form-item label="出锅日期">
<el-date-picker <el-date-picker
v-model="form.open_time" v-model="form.open_date"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
@ -177,7 +177,7 @@ const dialogVisible = ref(false)
const dialogType = ref('add') const dialogType = ref('add')
const form = reactive({ const form = reactive({
issue: '', issue: '',
open_time: '', open_date: '',
red_ball_1: 1, red_ball_1: 1,
red_ball_2: 1, red_ball_2: 1,
red_ball_3: 1, red_ball_3: 1,
@ -263,8 +263,8 @@ const handleDelete = (row) => {
'确定要删除这条记录吗?', '确定要删除这条记录吗?',
'警告', '警告',
{ {
confirmButtonText: '确定', confirmButtonText: '下单!',
cancelButtonText: '取消', cancelButtonText: '不吃了',
type: 'warning', type: 'warning',
} }
).then(async () => { ).then(async () => {

View File

@ -1,13 +1,13 @@
<template> <template>
<div class="statistics-container"> <div class="statistics-container">
<el-tabs v-model="activeTab"> <el-tabs v-model="activeTab">
<el-tab-pane label="双色球" name="ssq"> <el-tab-pane label="红蓝球煎饼" name="ssq">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-card class="chart-card"> <el-card class="chart-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>红球出现频率</span> <span>红球煎饼出锅频率</span>
</div> </div>
</template> </template>
<div ref="ssqRedChart" class="chart"></div> <div ref="ssqRedChart" class="chart"></div>
@ -17,7 +17,7 @@
<el-card class="chart-card"> <el-card class="chart-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>蓝球出现频率</span> <span>蓝球豆浆出锅频率</span>
</div> </div>
</template> </template>
<div ref="ssqBlueChart" class="chart"></div> <div ref="ssqBlueChart" class="chart"></div>
@ -26,13 +26,13 @@
</el-row> </el-row>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="大乐" name="dlt"> <el-tab-pane label="大乐斗豆浆" name="dlt">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-card class="chart-card"> <el-card class="chart-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>前区号码出现频率</span> <span>前区煎饼出锅频率</span>
</div> </div>
</template> </template>
<div ref="dltFrontChart" class="chart"></div> <div ref="dltFrontChart" class="chart"></div>
@ -42,7 +42,7 @@
<el-card class="chart-card"> <el-card class="chart-card">
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>后区号码出现频率</span> <span>后区豆浆出锅频率</span>
</div> </div>
</template> </template>
<div ref="dltBackChart" class="chart"></div> <div ref="dltBackChart" class="chart"></div>