fix:添加标记
This commit is contained in:
parent
ff4dd7734b
commit
c4e688a944
@ -171,3 +171,10 @@
|
||||
color: #c0c4cc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#app .has-active{
|
||||
background: #f56c6c;
|
||||
color: #fff;
|
||||
}
|
||||
@ -16,6 +16,16 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</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-date-picker v-model="dateRange" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
||||
@ -127,8 +137,22 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="结果标记" align="center" class-name="small-padding fixed-width">
|
||||
<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 v-if="showBtn(scope.row, 'D3_F')" link type="primary" icon="Edit" @click="openDialog(scope.row, 'D3_F')">D3-index</el-button>
|
||||
<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>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -177,6 +201,7 @@ const total = ref(0)
|
||||
const dateRange = ref([])
|
||||
const editHadRef = ref(null)
|
||||
const activeName = ref('FINYX_F')
|
||||
const matchIdType = ref({ id: '', type: '' })
|
||||
|
||||
const dialogOpen = ref(false)
|
||||
const dialogTitle = ref('标记')
|
||||
@ -184,6 +209,10 @@ const dialogForm = ref({})
|
||||
|
||||
/** 数据范围选项*/
|
||||
const dataScopeOptions = ref([])
|
||||
const flagStatusOptions = ref([
|
||||
{ value: 1, label: '已标记' },
|
||||
{ value: 0, label: '未标记' },
|
||||
])
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
@ -192,6 +221,7 @@ const data = reactive({
|
||||
pageSize: 10,
|
||||
matchNumStr: undefined,
|
||||
leagueAbbName: undefined,
|
||||
flagStatus: undefined,
|
||||
},
|
||||
rules: {},
|
||||
})
|
||||
@ -243,7 +273,8 @@ function openDialog(row, type='') {
|
||||
if(row && row.reportResults && type){
|
||||
dialogForm.value = row.reportResults.find(el => el.modelType === type)
|
||||
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 = []
|
||||
proxy.resetForm("queryRef")
|
||||
handleQuery()
|
||||
matchIdType.value = { id: '', type: '' }
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user