fix:修改
This commit is contained in:
parent
4761553029
commit
327a176555
@ -147,3 +147,21 @@
|
|||||||
color: var(--el-text-color-primary);
|
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
6
src/utils/timer.js
Normal 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)
|
||||||
|
}
|
||||||
@ -77,9 +77,9 @@ const router = useRouter()
|
|||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
|
|
||||||
const loginForm = ref({
|
const loginForm = ref({
|
||||||
username: "admin",
|
username: "",
|
||||||
password: "admin123",
|
password: "",
|
||||||
rememberMe: false,
|
rememberMe: true,
|
||||||
code: "",
|
code: "",
|
||||||
uuid: ""
|
uuid: ""
|
||||||
})
|
})
|
||||||
|
|||||||
@ -52,9 +52,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<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-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -72,6 +76,7 @@
|
|||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
import { timerToStr } from "@/utils/timer"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
@ -113,12 +118,16 @@ function handleJumpLink(row) {
|
|||||||
|
|
||||||
/** 查看详情 */
|
/** 查看详情 */
|
||||||
function handleView(row) {
|
function handleView(row) {
|
||||||
router.push({
|
if (row.reportSatus != 1) {
|
||||||
path: '/tc/eventAnalysisReport/detail',
|
return
|
||||||
query: {
|
}
|
||||||
id: row.matchId
|
window.open(window.location.origin + '/#/tc/eventAnalysisReport/detail?id=' + row.matchId)
|
||||||
}
|
// router.push({
|
||||||
})
|
// path: '/tc/eventAnalysisReport/detail',
|
||||||
|
// query: {
|
||||||
|
// id: row.matchId
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
|
|||||||
@ -53,9 +53,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<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-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -77,6 +81,7 @@
|
|||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
import { timerToStr } from "@/utils/timer"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
@ -116,12 +121,16 @@ function handleJumpLink(row) {
|
|||||||
|
|
||||||
/** 查看详情 */
|
/** 查看详情 */
|
||||||
function handleView(row) {
|
function handleView(row) {
|
||||||
router.push({
|
if (row.reportSatus != 1) {
|
||||||
path: '/tc/eventAnalysisReport/detail',
|
return
|
||||||
query: {
|
}
|
||||||
id: row.matchId
|
window.open(window.location.origin + '/#/tc/eventAnalysisReport/detail?id=' + row.matchId)
|
||||||
}
|
// router.push({
|
||||||
})
|
// path: '/tc/eventAnalysisReport/detail',
|
||||||
|
// query: {
|
||||||
|
// id: row.matchId
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
<div class="app-container" v-loading="loading">
|
<div class="app-container" v-loading="loading">
|
||||||
<!--顶部-->
|
<!--顶部-->
|
||||||
<div class="flex align-center mb-20">
|
<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 />
|
<ArrowLeftBold />
|
||||||
</el-icon>
|
</el-icon> -->
|
||||||
{{ data && data.reportTime }}
|
{{ data && data.reportTime }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -8,13 +8,29 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="EventAnalysisReport">
|
<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 soccer from './components/soccer.vue'
|
||||||
import basketball from './components/basketball.vue'
|
import basketball from './components/basketball.vue'
|
||||||
|
|
||||||
const activeName = ref('soccer')
|
const route = useRoute()
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
|
// 从URL参数获取activeName,如果没有则默认为'soccer'
|
||||||
|
const activeName = ref(route.query.tab || 'soccer')
|
||||||
|
|
||||||
|
// 监听activeName变化,更新URL参数
|
||||||
|
watch(activeName, (newVal) => {
|
||||||
|
router.replace({
|
||||||
|
query: {
|
||||||
|
...route.query,
|
||||||
|
tab: newVal
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
const handleClick = (tab, event) => {
|
const handleClick = (tab, event) => {
|
||||||
console.log(tab, event)
|
console.log('点击标签页:', tab.props.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -48,9 +48,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<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-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -68,6 +72,7 @@
|
|||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
import { timerToStr } from "@/utils/timer"
|
||||||
import { onMounted } from "vue"
|
import { onMounted } from "vue"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -108,12 +113,16 @@ function handleJumpLink(row) {
|
|||||||
|
|
||||||
/** 查看详情 */
|
/** 查看详情 */
|
||||||
function handleView(row) {
|
function handleView(row) {
|
||||||
router.push({
|
if (row.reportSatus != 1) {
|
||||||
path: '/tc/videoScript/detail',
|
return
|
||||||
query: {
|
}
|
||||||
id: row.matchId
|
window.open(`/#/tc/videoScript/detail?id=${row.matchId}`)
|
||||||
}
|
// router.push({
|
||||||
})
|
// path: '/tc/videoScript/detail',
|
||||||
|
// query: {
|
||||||
|
// id: row.matchId
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
|
|||||||
@ -51,9 +51,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<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-button link type="primary" icon="view" @click="handleView(scope.row)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -75,6 +79,7 @@
|
|||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
import { timerToStr } from "@/utils/timer"
|
||||||
import { onMounted } from "vue"
|
import { onMounted } from "vue"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -115,12 +120,16 @@ function handleJumpLink(row) {
|
|||||||
|
|
||||||
/** 查看详情 */
|
/** 查看详情 */
|
||||||
function handleView(row) {
|
function handleView(row) {
|
||||||
router.push({
|
if (row.reportSatus != 1) {
|
||||||
path: '/tc/videoScript/detail',
|
return
|
||||||
query: {
|
}
|
||||||
id: row.matchId
|
window.open(`/#/tc/videoScript/detail?id=${row.matchId}`)
|
||||||
}
|
// router.push({
|
||||||
})
|
// path: '/tc/videoScript/detail',
|
||||||
|
// query: {
|
||||||
|
// id: row.matchId
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
<div class="app-container" v-loading="loading">
|
<div class="app-container" v-loading="loading">
|
||||||
<!--顶部-->
|
<!--顶部-->
|
||||||
<div class="flex align-center mb-20">
|
<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 />
|
<ArrowLeftBold />
|
||||||
</el-icon>
|
</el-icon> -->
|
||||||
{{ data && data.scriptTime }}
|
{{ data && data.scriptTime }}
|
||||||
</div>
|
</div>
|
||||||
<el-row :gutter="20" v-if="!loading && data && data.videoScript" >
|
<el-row :gutter="20" v-if="!loading && data && data.videoScript" >
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user