fix:修改

This commit is contained in:
lz-ui 2025-09-28 11:53:00 +08:00
parent 4761553029
commit 327a176555
10 changed files with 120 additions and 44 deletions

View File

@ -147,3 +147,21 @@
color: var(--el-text-color-primary);
}
}
/* 体彩操作栏 */
.tc-view-time{
display: inline-block;
padding: 4px 10px;
line-height: 15px;
border-radius: 4px;
background: #fff3d9;
color: #c9993e;
font-size: 12px;
cursor: pointer;
width: 75px;
}
.tc-view-time-disabled{
background: #eaf2fe;
color: #c0c4cc;
cursor: not-allowed;
}

6
src/utils/timer.js Normal file
View File

@ -0,0 +1,6 @@
import dayjs from 'dayjs'
export function timerToStr(t = null, f = 'YYYY-MM-DD-HH-mm-ss') {
return dayjs(t).format(f)
}

View File

@ -77,9 +77,9 @@ const router = useRouter()
const { proxy } = getCurrentInstance()
const loginForm = ref({
username: "admin",
password: "admin123",
rememberMe: false,
username: "",
password: "",
rememberMe: true,
code: "",
uuid: ""
})

View File

@ -52,9 +52,13 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<span :class="['flex-row cursor-pointer tc-view-time', scope.row.reportSatus != 1 && 'tc-view-time-disabled']" @click="handleView(scope.row)">
分析结果<br/>
{{ scope.row.reportSatus === 1? timerToStr(scope.row.reportTime, 'HH-mm') : '待' }}更新
</span>
<!-- <el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<el-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
</el-tooltip>
</el-tooltip> -->
</template>
</el-table-column>
</el-table>
@ -72,6 +76,7 @@
<script setup name="Role">
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { timerToStr } from "@/utils/timer"
const router = useRouter()
const { proxy } = getCurrentInstance()
@ -113,12 +118,16 @@ function handleJumpLink(row) {
/** 查看详情 */
function handleView(row) {
router.push({
path: '/tc/eventAnalysisReport/detail',
query: {
id: row.matchId
if (row.reportSatus != 1) {
return
}
})
window.open(window.location.origin + '/#/tc/eventAnalysisReport/detail?id=' + row.matchId)
// router.push({
// path: '/tc/eventAnalysisReport/detail',
// query: {
// id: row.matchId
// }
// })
}
/** 查询角色列表 */

View File

@ -53,9 +53,13 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<span :class="['flex-row cursor-pointer tc-view-time', scope.row.reportSatus != 1 && 'tc-view-time-disabled']" @click="handleView(scope.row)">
分析结果<br/>
{{ scope.row.reportSatus === 1? timerToStr(scope.row.reportTime, 'HH-mm') : '待' }}更新
</span>
<!-- <el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<el-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
</el-tooltip>
</el-tooltip> -->
</template>
</el-table-column>
</el-table>
@ -77,6 +81,7 @@
<script setup name="Role">
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { timerToStr } from "@/utils/timer"
const router = useRouter()
const { proxy } = getCurrentInstance()
@ -116,12 +121,16 @@ function handleJumpLink(row) {
/** 查看详情 */
function handleView(row) {
router.push({
path: '/tc/eventAnalysisReport/detail',
query: {
id: row.matchId
if (row.reportSatus != 1) {
return
}
})
window.open(window.location.origin + '/#/tc/eventAnalysisReport/detail?id=' + row.matchId)
// router.push({
// path: '/tc/eventAnalysisReport/detail',
// query: {
// id: row.matchId
// }
// })
}
/** 查询角色列表 */

View File

@ -2,9 +2,9 @@
<div class="app-container" v-loading="loading">
<!--顶部-->
<div class="flex align-center mb-20">
<el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<!-- <el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<ArrowLeftBold />
</el-icon>
</el-icon> -->
{{ data && data.reportTime }}
</div>

View File

@ -8,13 +8,29 @@
</template>
<script setup name="EventAnalysisReport">
import { ref } from 'vue'
import { ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import soccer from './components/soccer.vue'
import basketball from './components/basketball.vue'
const activeName = ref('soccer')
const route = useRoute()
const router = useRouter()
// URLactiveName'soccer'
const activeName = ref(route.query.tab || 'soccer')
// activeNameURL
watch(activeName, (newVal) => {
router.replace({
query: {
...route.query,
tab: newVal
}
})
})
const handleClick = (tab, event) => {
console.log(tab, event)
console.log('点击标签页:', tab.props.name)
}
</script>

View File

@ -48,9 +48,13 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<span :class="['flex-row cursor-pointer tc-view-time', scope.row.reportSatus != 1 && 'tc-view-time-disabled']" @click="handleView(scope.row)">
分析结果<br/>
{{ scope.row.reportSatus === 1? timerToStr(scope.row.reportTime, 'HH-mm') : '待' }}更新
</span>
<!-- <el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<el-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
</el-tooltip>
</el-tooltip> -->
</template>
</el-table-column>
</el-table>
@ -68,6 +72,7 @@
<script setup name="Role">
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { timerToStr } from "@/utils/timer"
import { onMounted } from "vue"
const router = useRouter()
@ -108,12 +113,16 @@ function handleJumpLink(row) {
/** 查看详情 */
function handleView(row) {
router.push({
path: '/tc/videoScript/detail',
query: {
id: row.matchId
if (row.reportSatus != 1) {
return
}
})
window.open(`/#/tc/videoScript/detail?id=${row.matchId}`)
// router.push({
// path: '/tc/videoScript/detail',
// query: {
// id: row.matchId
// }
// })
}
/** 查询角色列表 */

View File

@ -51,9 +51,13 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<span :class="['flex-row cursor-pointer tc-view-time', scope.row.reportSatus != 1 && 'tc-view-time-disabled']" @click="handleView(scope.row)">
分析结果<br/>
{{ scope.row.reportSatus === 1? timerToStr(scope.row.reportTime, 'HH-mm') : '待' }}更新
</span>
<!-- <el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
<el-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
</el-tooltip>
</el-tooltip> -->
</template>
</el-table-column>
</el-table>
@ -75,6 +79,7 @@
<script setup name="Role">
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { timerToStr } from "@/utils/timer"
import { onMounted } from "vue"
const router = useRouter()
@ -115,12 +120,16 @@ function handleJumpLink(row) {
/** 查看详情 */
function handleView(row) {
router.push({
path: '/tc/videoScript/detail',
query: {
id: row.matchId
if (row.reportSatus != 1) {
return
}
})
window.open(`/#/tc/videoScript/detail?id=${row.matchId}`)
// router.push({
// path: '/tc/videoScript/detail',
// query: {
// id: row.matchId
// }
// })
}
/** 查询角色列表 */
function getList() {

View File

@ -2,9 +2,9 @@
<div class="app-container" v-loading="loading">
<!--顶部-->
<div class="flex align-center mb-20">
<el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<!-- <el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<ArrowLeftBold />
</el-icon>
</el-icon> -->
{{ data && data.scriptTime }}
</div>
<el-row :gutter="20" v-if="!loading && data && data.videoScript" >