|
|
|
|
@ -12537,43 +12537,45 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
onOK = _ref.onOK;
|
|
|
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
|
|
|
identifier = _useParams.identifier;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.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
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
title: '4566',
|
|
|
|
|
key: 3,
|
|
|
|
|
tag: 4567,
|
|
|
|
|
children: [{
|
|
|
|
|
title: '456-1',
|
|
|
|
|
key: 115
|
|
|
|
|
}, {
|
|
|
|
|
title: '456-3',
|
|
|
|
|
key: 116
|
|
|
|
|
}, {
|
|
|
|
|
title: '456-5',
|
|
|
|
|
key: 117
|
|
|
|
|
}]
|
|
|
|
|
}]),
|
|
|
|
|
// 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
|
|
|
|
|
// }]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title:'4566',
|
|
|
|
|
// key:3,
|
|
|
|
|
// tag:4567,
|
|
|
|
|
// children:[{
|
|
|
|
|
// title:'456-1',key:115
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title:'456-3',key:116
|
|
|
|
|
// },{
|
|
|
|
|
// title:'456-5',key:117
|
|
|
|
|
// }]
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// ]);
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
treeData = _useState2[0],
|
|
|
|
|
setTreeeData = _useState2[1];
|
|
|
|
|
@ -12595,17 +12597,15 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
params = _useState8[0],
|
|
|
|
|
setParams = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(3),
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
totalCount = _useState10[0],
|
|
|
|
|
setTotalCount = _useState10[1];
|
|
|
|
|
|
|
|
|
|
// useEffect(()=>{
|
|
|
|
|
// if(visible){
|
|
|
|
|
// getDataSetList()
|
|
|
|
|
// }
|
|
|
|
|
// },[visible])
|
|
|
|
|
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (visible) {
|
|
|
|
|
getDataSetList();
|
|
|
|
|
}
|
|
|
|
|
}, [visible]);
|
|
|
|
|
var getDataSetList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data, _res$data2, tempTreeData;
|
|
|
|
|
@ -14131,6 +14131,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_DataSetModal, {
|
|
|
|
|
visible: dataSetVis,
|
|
|
|
|
teamId: (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.team_id) || 48641,
|
|
|
|
|
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
|
|
|
|
|
onCancle: function onCancle() {
|
|
|
|
|
setDataSetVis(false);
|
|
|
|
|
},
|