Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent a4f0a7a543
commit db98f55e0d

@ -348,20 +348,18 @@ var ReservationDialog = function ReservationDialog(_ref) {
// 提交表单
var onFinish = function onFinish(values) {
if (modalName == "开始预约" || modalName == "增加预约") {
var _values$date;
createReservation(objectSpread2_default()(objectSpread2_default()({}, formInfo), {}, {
description: values.description || "",
phone: values.phone || "",
time_ids: values.time_ids || "",
date: dayjs_min_default()(values === null || values === void 0 || (_values$date = values.date) === null || _values$date === void 0 ? void 0 : _values$date._d).format('YYYY-MM-DD')
date: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.date).format('YYYY-MM-DD')
}));
} else if (modalName == "修改预约" || modalName == "调整预约") {
var _values$date2;
updateReservation(objectSpread2_default()(objectSpread2_default()({}, formInfo), {}, {
description: values.description || "",
phone: values.phone || "",
time_ids: values.time_ids || "",
date: dayjs_min_default()(values === null || values === void 0 || (_values$date2 = values.date) === null || _values$date2 === void 0 ? void 0 : _values$date2._d).format('YYYY-MM-DD')
date: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.date).format('YYYY-MM-DD')
}));
}
};

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

@ -7410,7 +7410,7 @@ var qualityList = [{
gf: '超过50%'
}];
var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
var _shixunHomeworks$work2, _shixunHomeworks$work3, _shixunHomeworks$work4, _shixunHomeworks$work8, _shixunHomeworks$work9, _shixunHomeworks$work11, _shixunHomeworks$work12, _shixunHomeworks$work14, _workList$homework_st3;
var _shixunHomeworks$work2, _shixunHomeworks$work3, _shixunHomeworks$work4, _shixunHomeworks$work9, _shixunHomeworks$work10, _shixunHomeworks$work12, _shixunHomeworks$work13, _shixunHomeworks$work15, _workList$homework_st3;
var shixunHomeworks = _ref.shixunHomeworks,
classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
@ -7724,7 +7724,7 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
}), "\u91CD\u505A"]
}), ((_shixunHomeworks$work3 = shixunHomeworks.workList) === null || _shixunHomeworks$work3 === void 0 ? void 0 : _shixunHomeworks$work3.shixun_status) > 1 && ((_shixunHomeworks$work4 = shixunHomeworks.workList) === null || _shixunHomeworks$work4 === void 0 ? void 0 : _shixunHomeworks$work4.time_status) < 5 && (0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _shixunHomeworks$work5, _shixunHomeworks$work6, _shixunHomeworks$work7;
var _shixunHomeworks$work5, _shixunHomeworks$work6, _shixunHomeworks$work7, _shixunHomeworks$work8;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
@ -7734,17 +7734,25 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
}
return _context4.abrupt("return");
case 2:
if (!((_shixunHomeworks$work5 = shixunHomeworks.workList) !== null && _shixunHomeworks$work5 !== void 0 && _shixunHomeworks$work5.need_reservation)) {
_context4.next = 6;
break;
}
message/* default */.ZP.info('请先完成预约!');
_umi_production_exports.history.push("/shixuns/".concat(workList === null || workList === void 0 ? void 0 : workList.shixun_identifier, "/challenges"));
return _context4.abrupt("return");
case 6:
if (!(workList !== null && workList !== void 0 && workList.can_view_details)) {
_context4.next = 5;
_context4.next = 9;
break;
}
(0,util/* openNewWindow */.xg)("/shixuns/".concat(workList === null || workList === void 0 ? void 0 : workList.shixun_identifier, "/challenges"));
return _context4.abrupt("return");
case 5:
case 9:
// await updateShixunStudyNum({id: workList.shixun_identifier, enter_type: 2});
(_shixunHomeworks$work5 = shixunHomeworks.workList) !== null && _shixunHomeworks$work5 !== void 0 && (_shixunHomeworks$work5 = _shixunHomeworks$work5.task_operation) !== null && _shixunHomeworks$work5 !== void 0 && (_shixunHomeworks$work5 = _shixunHomeworks$work5[1]) !== null && _shixunHomeworks$work5 !== void 0 && _shixunHomeworks$work5.includes('/') ? handleStartShixun((_shixunHomeworks$work6 = shixunHomeworks.workList) === null || _shixunHomeworks$work6 === void 0 || (_shixunHomeworks$work6 = _shixunHomeworks$work6.task_operation) === null || _shixunHomeworks$work6 === void 0 ? void 0 : _shixunHomeworks$work6[1]) : (0,util/* openNewWindow */.xg)("/tasks/".concat((_shixunHomeworks$work7 = shixunHomeworks.workList) === null || _shixunHomeworks$work7 === void 0 || (_shixunHomeworks$work7 = _shixunHomeworks$work7.task_operation) === null || _shixunHomeworks$work7 === void 0 ? void 0 : _shixunHomeworks$work7[1]));
case 6:
(_shixunHomeworks$work6 = shixunHomeworks.workList) !== null && _shixunHomeworks$work6 !== void 0 && (_shixunHomeworks$work6 = _shixunHomeworks$work6.task_operation) !== null && _shixunHomeworks$work6 !== void 0 && (_shixunHomeworks$work6 = _shixunHomeworks$work6[1]) !== null && _shixunHomeworks$work6 !== void 0 && _shixunHomeworks$work6.includes('/') ? handleStartShixun((_shixunHomeworks$work7 = shixunHomeworks.workList) === null || _shixunHomeworks$work7 === void 0 || (_shixunHomeworks$work7 = _shixunHomeworks$work7.task_operation) === null || _shixunHomeworks$work7 === void 0 ? void 0 : _shixunHomeworks$work7[1]) : (0,util/* openNewWindow */.xg)("/tasks/".concat((_shixunHomeworks$work8 = shixunHomeworks.workList) === null || _shixunHomeworks$work8 === void 0 || (_shixunHomeworks$work8 = _shixunHomeworks$work8.task_operation) === null || _shixunHomeworks$work8 === void 0 ? void 0 : _shixunHomeworks$work8[1]));
case 10:
case "end":
return _context4.stop();
}
@ -7752,15 +7760,15 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-kaiqizhong"
}), (_shixunHomeworks$work8 = shixunHomeworks.workList) === null || _shixunHomeworks$work8 === void 0 || (_shixunHomeworks$work8 = _shixunHomeworks$work8.task_operation) === null || _shixunHomeworks$work8 === void 0 ? void 0 : _shixunHomeworks$work8[0]]
}), ((_shixunHomeworks$work9 = shixunHomeworks.workList) === null || _shixunHomeworks$work9 === void 0 ? void 0 : _shixunHomeworks$work9.commit_des) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
}), (_shixunHomeworks$work9 = shixunHomeworks.workList) === null || _shixunHomeworks$work9 === void 0 || (_shixunHomeworks$work9 = _shixunHomeworks$work9.task_operation) === null || _shixunHomeworks$work9 === void 0 ? void 0 : _shixunHomeworks$work9[0]]
}), ((_shixunHomeworks$work10 = shixunHomeworks.workList) === null || _shixunHomeworks$work10 === void 0 ? void 0 : _shixunHomeworks$work10.commit_des) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
onClick: function onClick() {
var _shixunHomeworks$work10;
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat((_shixunHomeworks$work10 = shixunHomeworks.workList) === null || _shixunHomeworks$work10 === void 0 ? void 0 : _shixunHomeworks$work10.id, "/commitsummary"));
var _shixunHomeworks$work11;
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat((_shixunHomeworks$work11 = shixunHomeworks.workList) === null || _shixunHomeworks$work11 === void 0 ? void 0 : _shixunHomeworks$work11.id, "/commitsummary"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-tijiaozongjie"
}), (_shixunHomeworks$work11 = shixunHomeworks.workList) === null || _shixunHomeworks$work11 === void 0 ? void 0 : _shixunHomeworks$work11.commit_des]
}), (_shixunHomeworks$work12 = shixunHomeworks.workList) === null || _shixunHomeworks$work12 === void 0 ? void 0 : _shixunHomeworks$work12.commit_des]
}), activeTabs == "1" && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
onClick: function onClick() {
var _classroomList$Assist;
@ -7796,23 +7804,23 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-yishezhifabushijian1 translateY1"
}), "\u7ACB\u5373\u53D1\u5E03"]
}), ((_shixunHomeworks$work12 = shixunHomeworks.workList) === null || _shixunHomeworks$work12 === void 0 ? void 0 : _shixunHomeworks$work12.show_analysis_detail) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
}), ((_shixunHomeworks$work13 = shixunHomeworks.workList) === null || _shixunHomeworks$work13 === void 0 ? void 0 : _shixunHomeworks$work13.show_analysis_detail) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
onClick: function onClick() {
var _shixunHomeworks$work13;
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/analysis/").concat((_shixunHomeworks$work13 = shixunHomeworks.workList) === null || _shixunHomeworks$work13 === void 0 ? void 0 : _shixunHomeworks$work13.analysis_id));
var _shixunHomeworks$work14;
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/analysis/").concat((_shixunHomeworks$work14 = shixunHomeworks.workList) === null || _shixunHomeworks$work14 === void 0 ? void 0 : _shixunHomeworks$work14.analysis_id));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-a-08zhiliang-xianxing font14 pr5"
}), "\u8D28\u91CF\u8BC4\u5206"]
}), ((_shixunHomeworks$work14 = shixunHomeworks.workList) === null || _shixunHomeworks$work14 === void 0 ? void 0 : _shixunHomeworks$work14.is_enter_shixun) && ((0,authority/* isStudent */.dE)() && (workList === null || workList === void 0 || (_workList$homework_st3 = workList.homework_status) === null || _workList$homework_st3 === void 0 ? void 0 : _workList$homework_st3.includes('已截止')) || !(0,authority/* isStudent */.dE)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
}), ((_shixunHomeworks$work15 = shixunHomeworks.workList) === null || _shixunHomeworks$work15 === void 0 ? void 0 : _shixunHomeworks$work15.is_enter_shixun) && ((0,authority/* isStudent */.dE)() && (workList === null || workList === void 0 || (_workList$homework_st3 = workList.homework_status) === null || _workList$homework_st3 === void 0 ? void 0 : _workList$homework_st3.includes('已截止')) || !(0,authority/* isStudent */.dE)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _shixunHomeworks$work15;
var _shixunHomeworks$work16;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if ((0,authority/* isStudent */.dE)()) {
// await updateShixunStudyNum({id: workList.shixun_identifier, enter_type: 2});
handleStartShixun((_shixunHomeworks$work15 = shixunHomeworks.workList) === null || _shixunHomeworks$work15 === void 0 || (_shixunHomeworks$work15 = _shixunHomeworks$work15.task_operation) === null || _shixunHomeworks$work15 === void 0 ? void 0 : _shixunHomeworks$work15[1]);
handleStartShixun((_shixunHomeworks$work16 = shixunHomeworks.workList) === null || _shixunHomeworks$work16 === void 0 || (_shixunHomeworks$work16 = _shixunHomeworks$work16.task_operation) === null || _shixunHomeworks$work16 === void 0 ? void 0 : _shixunHomeworks$work16[1]);
} else {
(0,util/* openNewWindow */.xg)("/shixuns/".concat(workList.shixun_identifier, "/challenges"));
}

@ -3897,13 +3897,21 @@ var ShixunList = function ShixunList(_ref) {
}
return _context2.abrupt("return");
case 3:
if (!v.need_reservation) {
_context2.next = 7;
break;
}
message/* default */.ZP.info('请先完成预约!');
_umi_production_exports.history.push("/shixuns/".concat(v.shixun_identifier, "/challenges"));
return _context2.abrupt("return");
case 7:
if (!v.can_view_details) {
_context2.next = 6;
_context2.next = 10;
break;
}
(0,util/* openNewWindow */.xg)("/shixuns/".concat(v.shixun_identifier, "/challenges"));
return _context2.abrupt("return");
case 6:
case 10:
case "end":
return _context2.stop();
}

@ -106,17 +106,7 @@ var ReservationDialog = function ReservationDialog(_ref) {
setDeviceTypes = _useState6[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (visible) {
//设备标签
(0,onlinedevice/* device_tags_table_query */.dh)({}).then(function (res) {
var _res$device_tags;
// if(res?.status == 0) {
setDeviceLabels(toConsumableArray_default()(res === null || res === void 0 || (_res$device_tags = res.device_tags) === null || _res$device_tags === void 0 ? void 0 : _res$device_tags.map(function (v) {
v.value = v === null || v === void 0 ? void 0 : v.id;
v.label = v === null || v === void 0 ? void 0 : v.name;
return v;
})));
// }
});
setDeviceLabels([]);
//设备类型
(0,onlinedevice/* device_type_table_query */.uz)({}).then(function (res) {
var _res$device_types;
@ -226,7 +216,36 @@ var ReservationDialog = function ReservationDialog(_ref) {
label: "\u8BBE\u5907\u7C7B\u578B",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
options: deviceTypes,
onChange: queryDevice,
onChange: ( /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
queryDevice();
//设备标签
_context2.next = 3;
return (0,onlinedevice/* device_tags_table_query */.dh)({
device_type_id: form.getFieldValue('type_id')
}).then(function (res) {
var _res$device_tags;
// if(res?.status == 0) {
setDeviceLabels(toConsumableArray_default()(res === null || res === void 0 || (_res$device_tags = res.device_tags) === null || _res$device_tags === void 0 ? void 0 : _res$device_tags.map(function (v) {
v.value = v === null || v === void 0 ? void 0 : v.id;
v.label = v === null || v === void 0 ? void 0 : v.name;
return v;
})));
// }
});
case 3:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x2) {
return _ref3.apply(this, arguments);
};
}()),
size: "large"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {

@ -531,7 +531,7 @@ var DeviceInfoPage = function DeviceInfoPage(_ref) {
setMessageList(res === null || res === void 0 ? void 0 : res.data);
setTotal(res === null || res === void 0 ? void 0 : res.count);
setreadcount(res === null || res === void 0 ? void 0 : res.un_read_count);
setallcount(res === null || res === void 0 ? void 0 : res.count);
setallcount(res === null || res === void 0 ? void 0 : res.all_count);
});
};
(0,_react_17_0_2_react.useEffect)(function () {

@ -901,7 +901,9 @@ function reducer(state, action) {
tab_type = _ref.tab_type,
instance_startup_type = _ref.instance_startup_type,
index_tab = _ref.index_tab,
tpi_type = _ref.tpi_type;
tpi_type = _ref.tpi_type,
device_id = _ref.device_id,
device_children_id = _ref.device_children_id;
var el = (0,_react_17_0_2_react.useRef)();
var guacaRef = (0,_react_17_0_2_react.useRef)();
var rfbRef = (0,_react_17_0_2_react.useRef)();
@ -1015,7 +1017,9 @@ function reducer(state, action) {
return (0,service/* startInit */.sA)((_taskData$myshixun = taskData.myshixun) === null || _taskData$myshixun === void 0 ? void 0 : _taskData$myshixun.identifier, objectSpread2_default()(objectSpread2_default()({}, params), {}, {
taskId: params.taskId,
shixun_environment_id: shixun_environment_id,
tab_type: tab_type
tab_type: tab_type,
device_id: device_id,
device_children_id: device_children_id
}));
case 2:
res = _context3.sent;
@ -1557,7 +1561,9 @@ var TimeTicket = 30000;
var shixun_environment_id = itemData.shixun_environment_id,
position = itemData.position,
tab_type = itemData.tab_type,
index_tab = itemData.index_tab;
index_tab = itemData.index_tab,
device_id = itemData.device_id,
device_children_id = itemData.device_children_id;
(0,_react_17_0_2_react.useEffect)(function () {
getInitData();
}, []);
@ -1617,7 +1623,9 @@ var TimeTicket = 30000;
return (0,service/* startInit */.sA)(myshixun === null || myshixun === void 0 ? void 0 : myshixun.identifier, {
shixun_environment_id: shixun_environment_id,
tab_type: tab_type,
game_id: game.id
game_id: game.id,
device_id: device_id,
device_children_id: device_children_id
});
case 2:
response = _context3.sent;

@ -13323,7 +13323,9 @@ var vnc_panel = __webpack_require__(41272);
tab_type = itemData.tab_type,
instance_startup_type = itemData.instance_startup_type,
index_tab = itemData.index_tab,
tpi_type = itemData.tpi_type;
tpi_type = itemData.tpi_type,
device_id = itemData.device_id,
device_children_id = itemData.device_children_id;
return /*#__PURE__*/(0,jsx_runtime.jsx)(vnc_panel/* default */.Z, {
shixun_environment_id: shixun_environment_id,
vnc_url: vnc_url,
@ -13334,7 +13336,9 @@ var vnc_panel = __webpack_require__(41272);
instance_startup_type: instance_startup_type,
taskData: taskData,
index_tab: index_tab,
tpi_type: tpi_type
tpi_type: tpi_type,
device_id: device_id,
device_children_id: device_children_id
});
});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
@ -17743,7 +17747,9 @@ function reducer(state, action) {
tab_type = _ref.tab_type,
instance_startup_type = _ref.instance_startup_type,
index_tab = _ref.index_tab,
tpi_type = _ref.tpi_type;
tpi_type = _ref.tpi_type,
device_id = _ref.device_id,
device_children_id = _ref.device_children_id;
var el = (0,_react_17_0_2_react.useRef)();
var guacaRef = (0,_react_17_0_2_react.useRef)();
var rfbRef = (0,_react_17_0_2_react.useRef)();
@ -17857,7 +17863,9 @@ function reducer(state, action) {
return (0,service/* startInit */.sA)((_taskData$myshixun = taskData.myshixun) === null || _taskData$myshixun === void 0 ? void 0 : _taskData$myshixun.identifier, objectSpread2_default()(objectSpread2_default()({}, params), {}, {
taskId: params.taskId,
shixun_environment_id: shixun_environment_id,
tab_type: tab_type
tab_type: tab_type,
device_id: device_id,
device_children_id: device_children_id
}));
case 2:
res = _context3.sent;
@ -18400,7 +18408,9 @@ var TimeTicket = 30000;
var shixun_environment_id = itemData.shixun_environment_id,
position = itemData.position,
tab_type = itemData.tab_type,
index_tab = itemData.index_tab;
index_tab = itemData.index_tab,
device_id = itemData.device_id,
device_children_id = itemData.device_children_id;
(0,_react_17_0_2_react.useEffect)(function () {
getInitData();
}, []);
@ -18460,7 +18470,9 @@ var TimeTicket = 30000;
return (0,service/* startInit */.sA)(myshixun === null || myshixun === void 0 ? void 0 : myshixun.identifier, {
shixun_environment_id: shixun_environment_id,
tab_type: tab_type,
game_id: game.id
game_id: game.id,
device_id: device_id,
device_children_id: device_children_id
});
case 2:
response = _context3.sent;

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