Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent eafbd3128b
commit e6ec5435f8

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

@ -147,7 +147,7 @@ var SetPublic = function SetPublic(_ref) {
// }
return true;
},
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json?container_type=User"),
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
onChange: function onChange(data) {
var _data$file;
console.log("data--", data);
@ -810,14 +810,17 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
(0,_react_17_0_2_react.useEffect)(function () {
_getList2();
}, [page]);
var _user$userInfo;
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.user_id) {
_getList2();
}
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
function _getList2(_x) {
return _getList.apply(this, arguments);
}
function _getList() {
_getList = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(num) {
var _user$userInfo;
var _user$userInfo2;
var newPage, result;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
@ -825,7 +828,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
setTableLoading(true);
newPage = num || page;
_context3.next = 4;
return (0,fetch/* default */.ZP)("/api/users/".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id, "/user_center_resources.json"), {
return (0,fetch/* default */.ZP)("/api/users/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id, "/user_center_resources.json"), {
method: 'get',
params: {
page: newPage,
@ -1073,6 +1076,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
position: ["bottomCenter"],
onChange: function onChange(page, pagesize) {
setPage(page);
_getList2(page);
},
total: result === null || result === void 0 ? void 0 : result.count
}

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