fix:修改列表参数

This commit is contained in:
lz-ui 2025-09-23 10:27:36 +08:00
parent 59e8da73eb
commit 06dfa7c3a6
5 changed files with 82 additions and 44 deletions

View File

@ -25,4 +25,23 @@ export function reportDetail(id) {
url: `/tc/report/${id}`,
method: 'get'
})
}
// 联赛类型-足球
export function infoSelectDistinctLeagueAbbNames(data) {
return request({
url: '/tc/info/selectDistinctLeagueAbbNames',
method: 'post',
data: data
})
}
// 联赛类型-篮球
export function bbInfoSelectDistinctLeagueAbbNames(data) {
return request({
url: '/tc/bbInfo/selectDistinctLeagueAbbNames',
method: 'post',
data: data
})
}

View File

@ -7,7 +7,7 @@
@keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="联赛类型" prop="roleKey">
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable
placeholder="请选择联赛类型">
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
:value="item.value"></el-option>
@ -57,7 +57,7 @@
</template>
<script setup name="Role">
import { bbInfo } from "@/api/tc/eventAnalysisReport"
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
const router = useRouter()
@ -82,15 +82,22 @@ const data = reactive({
queryParams: {
pageNum: 1,
pageSize: 10,
roleName: undefined,
roleKey: undefined,
status: undefined
matchNumStr: undefined,
leagueAbbName: undefined,
},
rules: {},
})
const { queryParams } = toRefs(data)
/** 获取联赛类型 */
function getLeagueAbbNames() {
bbInfoSelectDistinctLeagueAbbNames().then(response => {
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
})
}
/** 跳转链接 */
function handleJumpLink(row) {
jumpLink(row.matchId, 2)
@ -131,6 +138,9 @@ function resetQuery() {
}
onMounted(() => {
//
getLeagueAbbNames()
//
getList()
})

View File

@ -6,8 +6,8 @@
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
@keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="联赛类型" prop="roleKey">
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
<el-form-item label="联赛类型" prop="leagueAbbName">
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
<el-option
v-for="item in dataScopeOptions"
:key="item.value"
@ -64,7 +64,7 @@
</template>
<script setup name="Role">
import { Info } from "@/api/tc/eventAnalysisReport"
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
const router = useRouter()
@ -76,28 +76,28 @@ const total = ref(0)
const dateRange = ref([])
/** 数据范围选项*/
const dataScopeOptions = ref([
{ value: "1", label: "全部数据权限" },
{ value: "2", label: "自定数据权限" },
{ value: "3", label: "本部门数据权限" },
{ value: "4", label: "本部门及以下数据权限" },
{ value: "5", label: "仅本人数据权限" }
])
const dataScopeOptions = ref([])
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 10,
roleName: undefined,
roleKey: undefined,
status: undefined
matchNumStr: undefined,
leagueAbbName: undefined,
},
rules: {},
})
const { queryParams } = toRefs(data)
/** 获取联赛类型 */
function getLeagueAbbNames() {
infoSelectDistinctLeagueAbbNames().then(response => {
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
})
}
/** 跳转链接 */
function handleJumpLink(row) {
jumpLink(row.matchId, 1)
@ -138,6 +138,9 @@ function resetQuery() {
}
onMounted(() => {
//
getLeagueAbbNames()
//
getList()
})
</script>

View File

@ -6,8 +6,8 @@
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
@keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="联赛类型" prop="roleKey">
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable
<el-form-item label="联赛类型" prop="leagueAbbName">
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable
placeholder="请选择联赛类型">
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
:value="item.value"></el-option>
@ -57,7 +57,7 @@
</template>
<script setup name="Role">
import { bbInfo } from "@/api/tc/eventAnalysisReport"
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { onMounted } from "vue"
@ -70,28 +70,28 @@ const total = ref(0)
const dateRange = ref([])
/** 数据范围选项*/
const dataScopeOptions = ref([
{ value: "1", label: "全部数据权限" },
{ value: "2", label: "自定数据权限" },
{ value: "3", label: "本部门数据权限" },
{ value: "4", label: "本部门及以下数据权限" },
{ value: "5", label: "仅本人数据权限" }
])
const dataScopeOptions = ref([])
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 10,
roleName: undefined,
roleKey: undefined,
status: undefined
matchNumStr: undefined,
leagueAbbName: undefined,
},
rules: {},
})
const { queryParams } = toRefs(data)
/** 获取联赛类型 */
function getLeagueAbbNames() {
bbInfoSelectDistinctLeagueAbbNames().then(response => {
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
})
}
/** 跳转链接 */
function handleJumpLink(row) {
jumpLink(row.matchId, 2)
@ -131,6 +131,9 @@ function resetQuery() {
handleQuery()
}
onMounted(() => {
//
getLeagueAbbNames()
//
getList()
})
</script>

View File

@ -6,8 +6,8 @@
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
@keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="联赛类型" prop="roleKey">
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
<el-form-item label="联赛类型" prop="leagueAbbName">
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
<el-option
v-for="item in dataScopeOptions"
:key="item.value"
@ -64,7 +64,7 @@
</template>
<script setup name="Role">
import { Info } from "@/api/tc/eventAnalysisReport"
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
import { jumpLink } from "@/utils/tc"
import { onMounted } from "vue"
@ -77,28 +77,28 @@ const total = ref(0)
const dateRange = ref([])
/** 数据范围选项*/
const dataScopeOptions = ref([
{ value: "1", label: "全部数据权限" },
{ value: "2", label: "自定数据权限" },
{ value: "3", label: "本部门数据权限" },
{ value: "4", label: "本部门及以下数据权限" },
{ value: "5", label: "仅本人数据权限" }
])
const dataScopeOptions = ref([])
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 10,
roleName: undefined,
roleKey: undefined,
status: undefined
matchNumStr: undefined,
leagueAbbName: undefined,
},
rules: {},
})
const { queryParams } = toRefs(data)
/** 获取联赛类型 */
function getLeagueAbbNames() {
infoSelectDistinctLeagueAbbNames().then(response => {
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
})
}
/** 跳转链接 */
function handleJumpLink(row) {
jumpLink(row.matchId, 1)
@ -138,6 +138,9 @@ function resetQuery() {
}
onMounted(() => {
//
getLeagueAbbNames()
//
getList()
})
</script>