|
|
|
|
@ -13194,34 +13194,12 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var defaultValue = _ref.defaultValue,
|
|
|
|
|
visible = _ref.visible,
|
|
|
|
|
teamId = _ref.teamId,
|
|
|
|
|
_ref$binRatioTab = _ref.binRatioTab,
|
|
|
|
|
binRatioTab = _ref$binRatioTab === void 0 ? false : _ref$binRatioTab,
|
|
|
|
|
onCancle = _ref.onCancle,
|
|
|
|
|
onOK = _ref.onOK;
|
|
|
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
|
|
|
identifier = _useParams.identifier;
|
|
|
|
|
// const [treeData, setTreeeData] = useState([
|
|
|
|
|
// {
|
|
|
|
|
// title:'123',
|
|
|
|
|
// key:1,
|
|
|
|
|
// tag:123,
|
|
|
|
|
// children:[{
|
|
|
|
|
// title:'123-1',key:110
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title:'123-2',key:111
|
|
|
|
|
// }]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title:'456',
|
|
|
|
|
// key:2,
|
|
|
|
|
// tag:456,
|
|
|
|
|
// children:[{
|
|
|
|
|
// title:'456-1',key:112
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title:'456-2',key:113
|
|
|
|
|
// }]
|
|
|
|
|
// }
|
|
|
|
|
// ]);
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
treeData = _useState2[0],
|
|
|
|
|
@ -13238,7 +13216,7 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
keyword: '',
|
|
|
|
|
type: 1
|
|
|
|
|
type: binRatioTab ? 4 : 1
|
|
|
|
|
// cluster_type: cluster_type || '0'
|
|
|
|
|
}),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
@ -13248,11 +13226,38 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
totalCount = _useState10[0],
|
|
|
|
|
setTotalCount = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
radioTab = _useState12[0],
|
|
|
|
|
setRadioTab = _useState12[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (visible) {
|
|
|
|
|
if (binRatioTab) {
|
|
|
|
|
setRadioTab([{
|
|
|
|
|
label: '本项目',
|
|
|
|
|
value: 4
|
|
|
|
|
}]);
|
|
|
|
|
} else {
|
|
|
|
|
setRadioTab([{
|
|
|
|
|
label: '本项目',
|
|
|
|
|
value: 4
|
|
|
|
|
}, {
|
|
|
|
|
label: '我的模型',
|
|
|
|
|
value: 2
|
|
|
|
|
}, {
|
|
|
|
|
label: '公开模型',
|
|
|
|
|
value: 1
|
|
|
|
|
}, {
|
|
|
|
|
label: '我收藏的模型',
|
|
|
|
|
value: 3
|
|
|
|
|
}, {
|
|
|
|
|
label: '我迁移的模型',
|
|
|
|
|
value: 5
|
|
|
|
|
}]);
|
|
|
|
|
}
|
|
|
|
|
getDataSetList();
|
|
|
|
|
}
|
|
|
|
|
}, [visible]);
|
|
|
|
|
}, [visible, binRatioTab]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
var tempData = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.map(function (item) {
|
|
|
|
|
return {
|
|
|
|
|
@ -13415,22 +13420,7 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
|
|
|
|
|
className: PatternModalmodules.scoreByBlankRadio,
|
|
|
|
|
optionType: "button",
|
|
|
|
|
options: [{
|
|
|
|
|
label: '本项目',
|
|
|
|
|
value: 4
|
|
|
|
|
}, {
|
|
|
|
|
label: '我的模型',
|
|
|
|
|
value: 2
|
|
|
|
|
}, {
|
|
|
|
|
label: '公开模型',
|
|
|
|
|
value: 1
|
|
|
|
|
}, {
|
|
|
|
|
label: '我收藏的模型',
|
|
|
|
|
value: 3
|
|
|
|
|
}, {
|
|
|
|
|
label: '我迁移的模型',
|
|
|
|
|
value: 5
|
|
|
|
|
}],
|
|
|
|
|
options: radioTab,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
params.type = e.target.value;
|
|
|
|
|
params.keyword = '';
|
|
|
|
|
@ -14976,7 +14966,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
})) === null || _competitionStage$dat === void 0 ? void 0 : _competitionStage$dat.join('、'),
|
|
|
|
|
pattern: 'llama_model_7B'
|
|
|
|
|
},
|
|
|
|
|
children: [(competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
children: [(competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' && !(competitionStage !== null && competitionStage !== void 0 && competitionStage.used_section_datasets) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
className: Entrancemodules.form_item,
|
|
|
|
|
label: "\u955C\u50CF",
|
|
|
|
|
colon: false,
|
|
|
|
|
@ -15004,7 +14994,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
},
|
|
|
|
|
options: mirrorList
|
|
|
|
|
})
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu' && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu' && !(competitionStage !== null && competitionStage !== void 0 && competitionStage.used_section_datasets) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
@ -15142,7 +15132,8 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
onOK: function onOK(datasets, datasetsString) {
|
|
|
|
|
setModels(datasets);
|
|
|
|
|
form.setFieldValue('pattern', datasetsString);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
binRatioTab: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.used_section_datasets
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(MirrorModal, {
|
|
|
|
|
visible: mirrorModalVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.competition_team_id,
|