fix:修改列表接口
This commit is contained in:
parent
8a17ab6e51
commit
08f6fdba53
28
src/api/tc/eventAnalysisReport.js
Normal file
28
src/api/tc/eventAnalysisReport.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 篮球列表
|
||||||
|
export function bbInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/tc/bbInfo/list',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 足球列表
|
||||||
|
export function Info(data) {
|
||||||
|
return request({
|
||||||
|
url: '/tc/info/list',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 报告详情
|
||||||
|
export function reportDetail(id) {
|
||||||
|
return request({
|
||||||
|
url: `/tc/report/${id}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
9
src/api/tc/videoScript.js
Normal file
9
src/api/tc/videoScript.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 视频脚本报告详情
|
||||||
|
export function scriptDetail(id) {
|
||||||
|
return request({
|
||||||
|
url: `/tc/script/${id}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -117,6 +117,9 @@ service.interceptors.response.use(res => {
|
|||||||
} else if (message.includes("Request failed with status code")) {
|
} else if (message.includes("Request failed with status code")) {
|
||||||
message = "系统接口" + message.substr(message.length - 3) + "异常"
|
message = "系统接口" + message.substr(message.length - 3) + "异常"
|
||||||
}
|
}
|
||||||
|
else if (message === '数据正在处理,请勿重复提交'){
|
||||||
|
return Promise.reject(error)
|
||||||
|
}
|
||||||
ElMessage({ message: message, type: 'error', duration: 5 * 1000 })
|
ElMessage({ message: message, type: 'error', duration: 5 * 1000 })
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
|
|||||||
7
src/utils/tc.js
Normal file
7
src/utils/tc.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export function jumpLink(mid, matchType) {
|
||||||
|
/** matchType 1足球 2篮球 */
|
||||||
|
const url = matchType === 1 ?
|
||||||
|
`https://www.sporttery.cn/jc/zqdz/index.html?showType=3&mid=${mid}` :
|
||||||
|
`https://www.sporttery.cn/jc/lqdz/index.html?showType=3&mid=${mid}`
|
||||||
|
window.open(url)
|
||||||
|
}
|
||||||
@ -26,21 +26,21 @@
|
|||||||
|
|
||||||
<!-- 表格数据 -->
|
<!-- 表格数据 -->
|
||||||
<el-table v-loading="loading" :data="roleList">
|
<el-table v-loading="loading" :data="roleList">
|
||||||
<el-table-column label="赛事编号" prop="roleId" width="120" />
|
<el-table-column label="赛事编号" prop="awayTeamCode" width="120" />
|
||||||
<el-table-column label="联赛" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="联赛" prop="awayTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="主队" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="主队" prop="homeTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="客队" prop="roleSort" width="100" />
|
<el-table-column label="客队" prop="awayTeamAllName" width="100" />
|
||||||
<el-table-column label="固定奖金" prop="roleSort" width="80">
|
<el-table-column label="固定奖金" prop="matchId" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleView(scope.row)">查看</el-button>
|
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛开始时间" align="center" prop="createTime">
|
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.matchDateTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛状态" prop="roleSort" width="100" />
|
<el-table-column label="比赛状态" prop="matchStatus" width="100" />
|
||||||
<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">
|
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
|
||||||
@ -57,7 +57,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { listRole } from "@/api/system/role"
|
import { bbInfo } from "@/api/tc/eventAnalysisReport"
|
||||||
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
@ -85,21 +86,23 @@ const data = reactive({
|
|||||||
roleKey: undefined,
|
roleKey: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {},
|
||||||
roleName: [{ required: true, message: "角色名称不能为空", trigger: "blur" }],
|
|
||||||
roleKey: [{ required: true, message: "权限字符不能为空", trigger: "blur" }],
|
|
||||||
roleSort: [{ required: true, message: "角色顺序不能为空", trigger: "blur" }]
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams, form, rules } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 跳转链接 */
|
||||||
|
function handleJumpLink(row) {
|
||||||
|
jumpLink(row.matchId, 2)
|
||||||
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
bbInfo(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||||
roleList.value = response.rows
|
roleList.value = response.rows
|
||||||
total.value = response.total
|
total.value = response.total
|
||||||
|
}).finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,21 +29,21 @@
|
|||||||
|
|
||||||
<!-- 表格数据 -->
|
<!-- 表格数据 -->
|
||||||
<el-table v-loading="loading" :data="roleList">
|
<el-table v-loading="loading" :data="roleList">
|
||||||
<el-table-column label="赛事编号" prop="roleId" width="120" />
|
<el-table-column label="赛事编号" prop="awayTeamCode" width="120" />
|
||||||
<el-table-column label="联赛" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="联赛" prop="leagueAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="主队" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="主队" prop="homeTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="客队" prop="roleSort" width="100" />
|
<el-table-column label="客队" prop="awayTeamAbbName" width="100" />
|
||||||
<el-table-column label="固定奖金" prop="roleSort" width="80">
|
<el-table-column label="固定奖金" prop="matchId" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleView(scope.row)">查看</el-button>
|
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛开始时间" align="center" prop="createTime">
|
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.matchDateTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛状态" prop="roleSort" width="100" />
|
<el-table-column label="比赛状态" prop="matchStatus" width="100" />
|
||||||
<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">
|
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
|
||||||
@ -64,12 +64,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { listRole } from "@/api/system/role"
|
import { Info } from "@/api/tc/eventAnalysisReport"
|
||||||
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const roleList = ref([])
|
const roleList = ref([])
|
||||||
const loading = ref(true)
|
const loading = ref(false)
|
||||||
const showSearch = ref(true)
|
const showSearch = ref(true)
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
@ -92,21 +93,23 @@ const data = reactive({
|
|||||||
roleKey: undefined,
|
roleKey: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {},
|
||||||
roleName: [{ required: true, message: "角色名称不能为空", trigger: "blur" }],
|
|
||||||
roleKey: [{ required: true, message: "权限字符不能为空", trigger: "blur" }],
|
|
||||||
roleSort: [{ required: true, message: "角色顺序不能为空", trigger: "blur" }]
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams, form, rules } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 跳转链接 */
|
||||||
|
function handleJumpLink(row) {
|
||||||
|
jumpLink(row.matchId, 1)
|
||||||
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
Info(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||||
roleList.value = response.rows
|
roleList.value = response.rows
|
||||||
total.value = response.total
|
total.value = response.total
|
||||||
|
}).finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,21 +26,21 @@
|
|||||||
|
|
||||||
<!-- 表格数据 -->
|
<!-- 表格数据 -->
|
||||||
<el-table v-loading="loading" :data="roleList">
|
<el-table v-loading="loading" :data="roleList">
|
||||||
<el-table-column label="赛事编号" prop="roleId" width="120" />
|
<el-table-column label="赛事编号" prop="awayTeamCode" width="120" />
|
||||||
<el-table-column label="联赛" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="联赛" prop="awayTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="主队" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="主队" prop="homeTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="客队" prop="roleSort" width="100" />
|
<el-table-column label="客队" prop="awayTeamAllName" width="100" />
|
||||||
<el-table-column label="固定奖金" prop="roleSort" width="80">
|
<el-table-column label="固定奖金" prop="matchId" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleView(scope.row)">查看</el-button>
|
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛开始时间" align="center" prop="createTime">
|
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.matchDateTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛状态" prop="roleSort" width="100" />
|
<el-table-column label="比赛状态" prop="matchStatus" width="100" />
|
||||||
<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">
|
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
|
||||||
@ -57,7 +57,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { listRole } from "@/api/system/role"
|
import { bbInfo } from "@/api/tc/eventAnalysisReport"
|
||||||
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
@ -85,21 +86,23 @@ const data = reactive({
|
|||||||
roleKey: undefined,
|
roleKey: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {},
|
||||||
roleName: [{ required: true, message: "角色名称不能为空", trigger: "blur" }],
|
|
||||||
roleKey: [{ required: true, message: "权限字符不能为空", trigger: "blur" }],
|
|
||||||
roleSort: [{ required: true, message: "角色顺序不能为空", trigger: "blur" }]
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams, form, rules } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 跳转链接 */
|
||||||
|
function handleJumpLink(row) {
|
||||||
|
jumpLink(row.matchId, 2)
|
||||||
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
bbInfo(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||||
roleList.value = response.rows
|
roleList.value = response.rows
|
||||||
total.value = response.total
|
total.value = response.total
|
||||||
|
}).finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,21 +29,21 @@
|
|||||||
|
|
||||||
<!-- 表格数据 -->
|
<!-- 表格数据 -->
|
||||||
<el-table v-loading="loading" :data="roleList">
|
<el-table v-loading="loading" :data="roleList">
|
||||||
<el-table-column label="赛事编号" prop="roleId" width="120" />
|
<el-table-column label="赛事编号" prop="awayTeamCode" width="120" />
|
||||||
<el-table-column label="联赛" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="联赛" prop="leagueAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="主队" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="主队" prop="homeTeamAllName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="客队" prop="roleSort" width="100" />
|
<el-table-column label="客队" prop="awayTeamAbbName" width="100" />
|
||||||
<el-table-column label="固定奖金" prop="roleSort" width="80">
|
<el-table-column label="固定奖金" prop="matchId" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleView(scope.row)">查看</el-button>
|
<el-button link type="primary" @click="handleJumpLink(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛开始时间" align="center" prop="createTime">
|
<el-table-column label="比赛开始时间" align="center" prop="matchDateTime">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.matchDateTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="比赛状态" prop="roleSort" width="100" />
|
<el-table-column label="比赛状态" prop="matchStatus" width="100" />
|
||||||
<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">
|
<el-tooltip content="查看" placement="top" v-if="scope.row.roleId !== 1">
|
||||||
@ -64,12 +64,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { listRole } from "@/api/system/role"
|
import { Info } from "@/api/tc/eventAnalysisReport"
|
||||||
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const roleList = ref([])
|
const roleList = ref([])
|
||||||
const loading = ref(true)
|
const loading = ref(false)
|
||||||
const showSearch = ref(true)
|
const showSearch = ref(true)
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
@ -92,21 +93,23 @@ const data = reactive({
|
|||||||
roleKey: undefined,
|
roleKey: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {},
|
||||||
roleName: [{ required: true, message: "角色名称不能为空", trigger: "blur" }],
|
|
||||||
roleKey: [{ required: true, message: "权限字符不能为空", trigger: "blur" }],
|
|
||||||
roleSort: [{ required: true, message: "角色顺序不能为空", trigger: "blur" }]
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams, form, rules } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 跳转链接 */
|
||||||
|
function handleJumpLink(row) {
|
||||||
|
jumpLink(row.matchId, 1)
|
||||||
|
}
|
||||||
|
|
||||||
/** 查询角色列表 */
|
/** 查询角色列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
listRole(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
Info(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||||
roleList.value = response.rows
|
roleList.value = response.rows
|
||||||
total.value = response.total
|
total.value = response.total
|
||||||
|
}).finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user