fix:修改列表参数
This commit is contained in:
parent
59e8da73eb
commit
06dfa7c3a6
@ -25,4 +25,23 @@ export function reportDetail(id) {
|
|||||||
url: `/tc/report/${id}`,
|
url: `/tc/report/${id}`,
|
||||||
method: 'get'
|
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
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@ -7,7 +7,7 @@
|
|||||||
@keyup.enter="handleQuery" />
|
@keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联赛类型" prop="roleKey">
|
<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="请选择联赛类型">
|
placeholder="请选择联赛类型">
|
||||||
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
|
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
|
||||||
:value="item.value"></el-option>
|
:value="item.value"></el-option>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { bbInfo } from "@/api/tc/eventAnalysisReport"
|
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -82,15 +82,22 @@ const data = reactive({
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
roleName: undefined,
|
matchNumStr: undefined,
|
||||||
roleKey: undefined,
|
leagueAbbName: undefined,
|
||||||
status: undefined
|
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
|
||||||
|
/** 获取联赛类型 */
|
||||||
|
function getLeagueAbbNames() {
|
||||||
|
bbInfoSelectDistinctLeagueAbbNames().then(response => {
|
||||||
|
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 跳转链接 */
|
/** 跳转链接 */
|
||||||
function handleJumpLink(row) {
|
function handleJumpLink(row) {
|
||||||
jumpLink(row.matchId, 2)
|
jumpLink(row.matchId, 2)
|
||||||
@ -131,6 +138,9 @@ function resetQuery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
// 联赛类型
|
||||||
|
getLeagueAbbNames()
|
||||||
|
// 列表查询
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
||||||
@keyup.enter="handleQuery" />
|
@keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联赛类型" prop="roleKey">
|
<el-form-item label="联赛类型" prop="leagueAbbName">
|
||||||
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
|
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dataScopeOptions"
|
v-for="item in dataScopeOptions"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@ -64,7 +64,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { Info } from "@/api/tc/eventAnalysisReport"
|
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -76,28 +76,28 @@ const total = ref(0)
|
|||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
|
|
||||||
/** 数据范围选项*/
|
/** 数据范围选项*/
|
||||||
const dataScopeOptions = ref([
|
const dataScopeOptions = ref([])
|
||||||
{ value: "1", label: "全部数据权限" },
|
|
||||||
{ value: "2", label: "自定数据权限" },
|
|
||||||
{ value: "3", label: "本部门数据权限" },
|
|
||||||
{ value: "4", label: "本部门及以下数据权限" },
|
|
||||||
{ value: "5", label: "仅本人数据权限" }
|
|
||||||
])
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
roleName: undefined,
|
matchNumStr: undefined,
|
||||||
roleKey: undefined,
|
leagueAbbName: undefined,
|
||||||
status: undefined
|
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 获取联赛类型 */
|
||||||
|
function getLeagueAbbNames() {
|
||||||
|
infoSelectDistinctLeagueAbbNames().then(response => {
|
||||||
|
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 跳转链接 */
|
/** 跳转链接 */
|
||||||
function handleJumpLink(row) {
|
function handleJumpLink(row) {
|
||||||
jumpLink(row.matchId, 1)
|
jumpLink(row.matchId, 1)
|
||||||
@ -138,6 +138,9 @@ function resetQuery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
// 联赛类型
|
||||||
|
getLeagueAbbNames()
|
||||||
|
// 列表查询
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
||||||
@keyup.enter="handleQuery" />
|
@keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联赛类型" prop="roleKey">
|
<el-form-item label="联赛类型" prop="leagueAbbName">
|
||||||
<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="请选择联赛类型">
|
placeholder="请选择联赛类型">
|
||||||
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
|
<el-option v-for="item in dataScopeOptions" :key="item.value" :label="item.label"
|
||||||
:value="item.value"></el-option>
|
:value="item.value"></el-option>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { bbInfo } from "@/api/tc/eventAnalysisReport"
|
import { bbInfo, bbInfoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
import { onMounted } from "vue"
|
import { onMounted } from "vue"
|
||||||
|
|
||||||
@ -70,28 +70,28 @@ const total = ref(0)
|
|||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
|
|
||||||
/** 数据范围选项*/
|
/** 数据范围选项*/
|
||||||
const dataScopeOptions = ref([
|
const dataScopeOptions = ref([])
|
||||||
{ value: "1", label: "全部数据权限" },
|
|
||||||
{ value: "2", label: "自定数据权限" },
|
|
||||||
{ value: "3", label: "本部门数据权限" },
|
|
||||||
{ value: "4", label: "本部门及以下数据权限" },
|
|
||||||
{ value: "5", label: "仅本人数据权限" }
|
|
||||||
])
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
roleName: undefined,
|
matchNumStr: undefined,
|
||||||
roleKey: undefined,
|
leagueAbbName: undefined,
|
||||||
status: undefined
|
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 获取联赛类型 */
|
||||||
|
function getLeagueAbbNames() {
|
||||||
|
bbInfoSelectDistinctLeagueAbbNames().then(response => {
|
||||||
|
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 跳转链接 */
|
/** 跳转链接 */
|
||||||
function handleJumpLink(row) {
|
function handleJumpLink(row) {
|
||||||
jumpLink(row.matchId, 2)
|
jumpLink(row.matchId, 2)
|
||||||
@ -131,6 +131,9 @@ function resetQuery() {
|
|||||||
handleQuery()
|
handleQuery()
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
// 联赛类型
|
||||||
|
getLeagueAbbNames()
|
||||||
|
// 列表查询
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
<el-input v-model="queryParams.matchNumStr" placeholder="请输入赛事编号" clearable style="width: 240px"
|
||||||
@keyup.enter="handleQuery" />
|
@keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联赛类型" prop="roleKey">
|
<el-form-item label="联赛类型" prop="leagueAbbName">
|
||||||
<el-select v-model="queryParams.roleKey" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
|
<el-select v-model="queryParams.leagueAbbName" @change="handleQuery" style="width: 240px" clearable placeholder="请选择联赛类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dataScopeOptions"
|
v-for="item in dataScopeOptions"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@ -64,7 +64,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Role">
|
<script setup name="Role">
|
||||||
import { Info } from "@/api/tc/eventAnalysisReport"
|
import { Info, infoSelectDistinctLeagueAbbNames } from "@/api/tc/eventAnalysisReport"
|
||||||
import { jumpLink } from "@/utils/tc"
|
import { jumpLink } from "@/utils/tc"
|
||||||
import { onMounted } from "vue"
|
import { onMounted } from "vue"
|
||||||
|
|
||||||
@ -77,28 +77,28 @@ const total = ref(0)
|
|||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
|
|
||||||
/** 数据范围选项*/
|
/** 数据范围选项*/
|
||||||
const dataScopeOptions = ref([
|
const dataScopeOptions = ref([])
|
||||||
{ value: "1", label: "全部数据权限" },
|
|
||||||
{ value: "2", label: "自定数据权限" },
|
|
||||||
{ value: "3", label: "本部门数据权限" },
|
|
||||||
{ value: "4", label: "本部门及以下数据权限" },
|
|
||||||
{ value: "5", label: "仅本人数据权限" }
|
|
||||||
])
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
roleName: undefined,
|
matchNumStr: undefined,
|
||||||
roleKey: undefined,
|
leagueAbbName: undefined,
|
||||||
status: undefined
|
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
const { queryParams } = toRefs(data)
|
const { queryParams } = toRefs(data)
|
||||||
|
|
||||||
|
/** 获取联赛类型 */
|
||||||
|
function getLeagueAbbNames() {
|
||||||
|
infoSelectDistinctLeagueAbbNames().then(response => {
|
||||||
|
dataScopeOptions.value = response.rows ? response.rows.map(item => ({ value: item, label: item })) : []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 跳转链接 */
|
/** 跳转链接 */
|
||||||
function handleJumpLink(row) {
|
function handleJumpLink(row) {
|
||||||
jumpLink(row.matchId, 1)
|
jumpLink(row.matchId, 1)
|
||||||
@ -138,6 +138,9 @@ function resetQuery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
// 联赛类型
|
||||||
|
getLeagueAbbNames()
|
||||||
|
// 列表查询
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user