fix:添加标记
This commit is contained in:
parent
ff4dd7734b
commit
c4e688a944
@ -170,4 +170,11 @@
|
|||||||
background: #eaf2fe;
|
background: #eaf2fe;
|
||||||
color: #c0c4cc;
|
color: #c0c4cc;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#app .has-active{
|
||||||
|
background: #f56c6c;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
@ -16,6 +16,16 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="标记状态" prop="flagStatus">
|
||||||
|
<el-select v-model="queryParams.flagStatus" @change="handleQuery" style="width: 240px" clearable placeholder="请选择标记状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in flagStatusOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="时间">
|
<el-form-item label="时间">
|
||||||
<el-date-picker v-model="dateRange" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
<el-date-picker v-model="dateRange" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
||||||
@ -127,8 +137,22 @@
|
|||||||
</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-button v-if="showBtn(scope.row, 'FINYX_F')" link type="primary" icon="Edit" @click="openDialog(scope.row, 'FINYX_F')">finyx-AI</el-button>
|
<el-button
|
||||||
<el-button v-if="showBtn(scope.row, 'D3_F')" link type="primary" icon="Edit" @click="openDialog(scope.row, 'D3_F')">D3-index</el-button>
|
v-if="showBtn(scope.row, 'FINYX_F')"
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
icon="Edit"
|
||||||
|
@click="openDialog(scope.row, 'FINYX_F')"
|
||||||
|
:class="[matchIdType.id === scope.row.matchId && matchIdType.type === 'FINYX_F' ? 'has-active' : '']"
|
||||||
|
>finyx-AI</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="showBtn(scope.row, 'D3_F')"
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
icon="Edit"
|
||||||
|
@click="openDialog(scope.row, 'D3_F')"
|
||||||
|
:class="[matchIdType.id === scope.row.matchId && matchIdType.type === 'D3_F' ? 'has-active' : '']"
|
||||||
|
>D3-index</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -177,6 +201,7 @@ const total = ref(0)
|
|||||||
const dateRange = ref([])
|
const dateRange = ref([])
|
||||||
const editHadRef = ref(null)
|
const editHadRef = ref(null)
|
||||||
const activeName = ref('FINYX_F')
|
const activeName = ref('FINYX_F')
|
||||||
|
const matchIdType = ref({ id: '', type: '' })
|
||||||
|
|
||||||
const dialogOpen = ref(false)
|
const dialogOpen = ref(false)
|
||||||
const dialogTitle = ref('标记')
|
const dialogTitle = ref('标记')
|
||||||
@ -184,6 +209,10 @@ const dialogForm = ref({})
|
|||||||
|
|
||||||
/** 数据范围选项*/
|
/** 数据范围选项*/
|
||||||
const dataScopeOptions = ref([])
|
const dataScopeOptions = ref([])
|
||||||
|
const flagStatusOptions = ref([
|
||||||
|
{ value: 1, label: '已标记' },
|
||||||
|
{ value: 0, label: '未标记' },
|
||||||
|
])
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
@ -192,6 +221,7 @@ const data = reactive({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
matchNumStr: undefined,
|
matchNumStr: undefined,
|
||||||
leagueAbbName: undefined,
|
leagueAbbName: undefined,
|
||||||
|
flagStatus: undefined,
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
})
|
})
|
||||||
@ -243,7 +273,8 @@ function openDialog(row, type='') {
|
|||||||
if(row && row.reportResults && type){
|
if(row && row.reportResults && type){
|
||||||
dialogForm.value = row.reportResults.find(el => el.modelType === type)
|
dialogForm.value = row.reportResults.find(el => el.modelType === type)
|
||||||
dialogOpen.value = true
|
dialogOpen.value = true
|
||||||
dialogTitle.value = '标记' + type
|
dialogTitle.value = ' 标记 ' + row.matchNumStr + ' ' + type+ '模型'
|
||||||
|
matchIdType.value = { id: row.matchId, type: type }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,6 +372,7 @@ function resetQuery() {
|
|||||||
dateRange.value = []
|
dateRange.value = []
|
||||||
proxy.resetForm("queryRef")
|
proxy.resetForm("queryRef")
|
||||||
handleQuery()
|
handleQuery()
|
||||||
|
matchIdType.value = { id: '', type: '' }
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user