Auto Submit

dev_local_v9_test3
autosubmit 1 year ago
parent 7f7f63e403
commit 29385760fa

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.b9e9ce21.js"></script>
<script src="/react/build/umi.fa40fefb.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -218,7 +218,7 @@ ul.menu___UnLMr [class~='ant-dropdown-menu-item-disabled'] {
width: 100%;
top: 0;
bottom: 70px;
position: absolute;
position: absolute !important;
}
.loading___W3zy1 [class~='ant-spin-container'] {
position: static !important;

@ -49,3 +49,45 @@
color: red;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Innovation/Edit/components/WarehouseModal/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___ZASMX {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___kUpH1 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___gleEE {
align-items: center;
box-align: center;
}
.flex_box_center_end___y9Czq {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___FcQaX {
flex-direction: column;
box-orient: block-axis;
}
.bottomNameWrap___pxg5d {
cursor: pointer;
display: flex;
align-items: center;
overflow: hidden;
margin: 0;
}
.bottomNameWrap___pxg5d span:hover {
color: #165dff;
}

@ -551,9 +551,9 @@ var UploadFile = function UploadFile(_ref) {
/***/ }),
/***/ 50405:
/***/ 37889:
/*!*********************************************************!*\
!*** ./src/pages/Innovation/Edit/index.tsx + 7 modules ***!
!*** ./src/pages/Innovation/Edit/index.tsx + 9 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -565,12 +565,12 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Edit; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
@ -1200,8 +1200,292 @@ var DataSet = function DataSet(_ref) {
innovation: innovation
};
})(DataSet));
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
;// CONCATENATED MODULE: ./src/pages/Innovation/Edit/components/WarehouseModal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var WarehouseModalmodules = ({"flex_box_center":"flex_box_center___ZASMX","flex_space_between":"flex_space_between___kUpH1","flex_box_vertical_center":"flex_box_vertical_center___gleEE","flex_box_center_end":"flex_box_center_end___y9Czq","flex_box_column":"flex_box_column___FcQaX","bottomNameWrap":"bottomNameWrap___pxg5d"});
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(62480);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
;// CONCATENATED MODULE: ./src/pages/Innovation/Edit/components/WarehouseModal/index.tsx
var WarehouseModal = function WarehouseModal(_ref) {
var value = _ref.value,
onChange = _ref.onChange;
var userInfo = (0,_umi_production_exports.useSelector)(function (state) {
var _state$user;
return state === null || state === void 0 || (_state$user = state.user) === null || _state$user === void 0 ? void 0 : _state$user.userInfo;
});
var _useState = (0,_react_17_0_2_react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
loading = _useState2[0],
setLoading = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)({}),
_useState4 = slicedToArray_default()(_useState3, 2),
selectedRow = _useState4[0],
setSelectedRow = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(0),
_useState6 = slicedToArray_default()(_useState5, 2),
total = _useState6[0],
setTotal = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
list = _useState8[0],
setList = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
visible = _useState10[0],
setVisible = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)({
page: 1,
per_page: 20,
category: ''
}),
_useState12 = slicedToArray_default()(_useState11, 2),
params = _useState12[0],
setParams = _useState12[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (visible) {
if (value !== null && value !== void 0 && value.id) {
setSelectedRow(value);
} else {
setSelectedRow({});
}
getList(params);
}
}, [visible]);
var getList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/users/".concat(userInfo === null || userInfo === void 0 ? void 0 : userInfo.login, "/shixuns.json"), {
method: "get",
params: objectSpread2_default()({}, record)
});
case 3:
res = _context.sent;
if (res.shixuns) {
setList((res === null || res === void 0 ? void 0 : res.shixuns) || []);
setTotal(res === null || res === void 0 ? void 0 : res.count);
}
setLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getList(_x) {
return _ref2.apply(this, arguments);
};
}();
var tabs = [{
id: '',
name: '全部'
}, {
id: 'manage',
name: "\u6211\u7BA1\u7406\u7684"
}, {
id: 'study',
name: "\u6211\u5B66\u4E60\u7684"
}, {
id: 'collect',
name: "\u6211\u6536\u85CF\u7684"
}];
var handleChangeCategory = function handleChangeCategory(category) {
params.category = category;
params.status = '';
params.page = 1;
setParams(objectSpread2_default()({}, params));
getList(params);
};
var handleSearch = function handleSearch(v) {
params.search = v;
params.page = 1;
setParams(objectSpread2_default()({}, params));
getList(params);
};
var handleChangePage = function handleChangePage(param) {
params.page = param === null || param === void 0 ? void 0 : param.current;
params.per_page = param === null || param === void 0 ? void 0 : param.pageSize;
setParams(objectSpread2_default()({}, params));
getList(params);
};
var columns = [{
title: '实践项目名称',
dataIndex: 'name',
width: 236,
render: function render(text, item) {
var _item$schools;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: WarehouseModalmodules.bottomNameWrap,
children: [!!((_item$schools = item.schools) !== null && _item$schools !== void 0 && _item$schools.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zhidinggongkai1 mr5 c-orange translateY1 inline-block"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text || '实践项目名称-未填写',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '实践项目名称-未填写'
})
})]
});
}
}, {
title: '管理员',
dataIndex: 'owner',
width: 100,
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text || '--',
placement: "bottomLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '合作者',
dataIndex: 'members',
width: 110,
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text.join("、"),
placement: "bottomLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text.join("、")
})
});
}
}, {
title: '最近修改',
dataIndex: 'updated_at',
width: 106,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-666",
children: dayjs_min_default()(text).format("YYYY-MM-DD")
});
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
children: [value !== null && value !== void 0 && value.id ? /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "c-black",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (value === null || value === void 0 ? void 0 : value.name) || '实践项目名称-未填写'
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5220\u9664",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
return onChange(undefined);
},
className: "iconfont icon-shanchu15 c-red current font14 ml10"
})
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return setVisible(true);
},
children: "\u5BFC\u5165\u5B9E\u8BADgit\u4ED3\u5E93"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
centered: true,
destroyOnClose: true,
onCancel: function onCancel() {
return setVisible(false);
},
open: visible,
title: '选择实训弹窗',
width: 1000,
onOk: function onOk() {
if (selectedRow !== null && selectedRow !== void 0 && selectedRow.id) {
onChange(selectedRow);
}
setVisible(false);
},
afterClose: function afterClose() {
setParams({
page: 1,
per_page: 20,
category: ''
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
value: params.category,
onChange: handleChangeCategory,
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
style: {
width: 303
},
placeholder: "\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
value: params.search,
onChange: handleSearch
}),
className: "mb25",
dataSource: tabs
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
dataSource: list,
bordered: false,
rowKey: "id",
columns: columns,
loading: loading,
scroll: {
y: 500
},
onChange: handleChangePage,
rowSelection: {
columnWidth: 60,
columnTitle: '选择',
type: 'radio',
onSelect: function onSelect(row) {
console.log(row, 22);
setSelectedRow(row);
},
selectedRowKeys: selectedRow !== null && selectedRow !== void 0 && selectedRow.id ? [selectedRow === null || selectedRow === void 0 ? void 0 : selectedRow.id] : []
},
pagination: {
pageSize: params.per_page,
total: total,
current: params.page,
showQuickJumper: true,
showSizeChanger: true,
hideOnSinglePage: !total,
className: 'mb0',
size: "default",
pageSizeOptions: ['10', '20', '50', '100', '200'],
showTotal: util/* showTotal */.rU
}
})]
})]
});
};
/* harmony default export */ var components_WarehouseModal = (WarehouseModal);
;// CONCATENATED MODULE: ./src/pages/Innovation/Edit/index.tsx
@ -1218,6 +1502,7 @@ var util = __webpack_require__(95972);
var TextArea = input/* default */.Z.TextArea;
var layout = {
labelCol: {
@ -1295,7 +1580,7 @@ var CreatProject = function CreatProject() {
}, []);
var handleSave = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var formValues, res, _res;
var formValues, _formValues$shixun_id, res, _res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -1309,7 +1594,9 @@ var CreatProject = function CreatProject() {
break;
}
_context.next = 7;
return (0,innovation/* createProject */.$L)(formValues);
return (0,innovation/* createProject */.$L)(objectSpread2_default()(objectSpread2_default()({}, formValues), {}, {
shixun_id: (formValues === null || formValues === void 0 || (_formValues$shixun_id = formValues.shixun_id) === null || _formValues$shixun_id === void 0 ? void 0 : _formValues$shixun_id.id) || ''
}));
case 7:
res = _context.sent;
if (res.status === 0) {
@ -1424,6 +1711,10 @@ var CreatProject = function CreatProject() {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(components_DataSet, {
initValue: initValue
})
}), !id && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4EE3\u7801\u4ED3\u5E93",
name: "shixun_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(components_WarehouseModal, {})
})]
})), initValue && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "end",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save