|
|
|
@@ -199,7 +199,6 @@ import DropdownHeader from '@/components/DropdownHeader'; |
|
|
|
import BaseModal from '@/components/BaseModal'; |
|
|
|
import LabelGroupAction from './labelGroupAction'; |
|
|
|
import '@/views/dataset/style/list.scss'; |
|
|
|
import { algList } from '@/config'; |
|
|
|
|
|
|
|
const defaultForm = { |
|
|
|
id: null, |
|
|
|
@@ -282,14 +281,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
labelGroupTypeList() { |
|
|
|
// const data = JSON.parse(JSON.stringify(algList)); |
|
|
|
// data.forEach((item) => { |
|
|
|
// item.label = item.auxInfo; |
|
|
|
// item.value = item.id; |
|
|
|
// }); |
|
|
|
// return data; |
|
|
|
// return [{ label: '全部', value: null }].concat(data); |
|
|
|
// return [{ label: '全部', value: null }].concat(Object.values(labelGroupTypeMap)); |
|
|
|
return [{ label: '全部', value: null }].concat(this.$store.state.app.labelType); |
|
|
|
}, |
|
|
|
|
|
|
|
@@ -322,8 +313,9 @@ export default { |
|
|
|
|
|
|
|
// 根据值获取标签值 |
|
|
|
getLabelGroupLabel(value) { |
|
|
|
const algList = this.$store.state.app.labelType; |
|
|
|
// return (Object.values(labelGroupTypeMap).find((d) => d.value === value) || {}).label; |
|
|
|
return (Object.values(algList).find((d) => d.id === value) || {}).auxInfo; |
|
|
|
return (Object.values(algList).find((d) => d.value === value) || {}).label; |
|
|
|
}, |
|
|
|
|
|
|
|
onResetQuery() { |
|
|
|
|