|
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[247],{
|
|
|
|
|
|
/***/ "1ZF9":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/Authorize.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
module.exports = __webpack_require__.p + "static/Authorize.cc9c212f.png";
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "BU3w":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: injectCSS, updateCSS */
|
|
|
/*! exports used: updateCSS */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* unused harmony export injectCSS */
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateCSS; });
|
|
|
/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ "MNnm");
|
|
|
|
|
|
var MARK_KEY = "rc-util-key";
|
|
|
|
|
|
function getContainer(option) {
|
|
|
if (option.attachTo) {
|
|
|
return option.attachTo;
|
|
|
}
|
|
|
|
|
|
var head = document.querySelector('head');
|
|
|
return head || document.body;
|
|
|
}
|
|
|
|
|
|
function injectCSS(css) {
|
|
|
var _option$csp;
|
|
|
|
|
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
|
|
|
if (!Object(_canUseDom__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])()) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var styleNode = document.createElement('style');
|
|
|
|
|
|
if ((_option$csp = option.csp) === null || _option$csp === void 0 ? void 0 : _option$csp.nonce) {
|
|
|
var _option$csp2;
|
|
|
|
|
|
styleNode.nonce = (_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce;
|
|
|
}
|
|
|
|
|
|
styleNode.innerHTML = css;
|
|
|
var container = getContainer(option);
|
|
|
var firstChild = container.firstChild;
|
|
|
|
|
|
if (option.prepend && container.prepend) {
|
|
|
// Use `prepend` first
|
|
|
container.prepend(styleNode);
|
|
|
} else if (option.prepend && firstChild) {
|
|
|
// Fallback to `insertBefore` like IE not support `prepend`
|
|
|
container.insertBefore(styleNode, firstChild);
|
|
|
} else {
|
|
|
container.appendChild(styleNode);
|
|
|
}
|
|
|
|
|
|
return styleNode;
|
|
|
}
|
|
|
var containerCache = new Map();
|
|
|
function updateCSS(css, key) {
|
|
|
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
|
var container = getContainer(option); // Get real parent
|
|
|
|
|
|
if (!containerCache.has(container)) {
|
|
|
var placeholderStyle = injectCSS('', option);
|
|
|
var parentNode = placeholderStyle.parentNode;
|
|
|
containerCache.set(container, parentNode);
|
|
|
parentNode.removeChild(placeholderStyle);
|
|
|
}
|
|
|
|
|
|
var existNode = Array.from(containerCache.get(container).children).find(function (node) {
|
|
|
return node.tagName === 'STYLE' && node[MARK_KEY] === key;
|
|
|
});
|
|
|
|
|
|
if (existNode) {
|
|
|
var _option$csp3, _option$csp4;
|
|
|
|
|
|
if (((_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce) && existNode.nonce !== ((_option$csp4 = option.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) {
|
|
|
var _option$csp5;
|
|
|
|
|
|
existNode.nonce = (_option$csp5 = option.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce;
|
|
|
}
|
|
|
|
|
|
if (existNode.innerHTML !== css) {
|
|
|
existNode.innerHTML = css;
|
|
|
}
|
|
|
|
|
|
return existNode;
|
|
|
}
|
|
|
|
|
|
var newNode = injectCSS(css, option);
|
|
|
newNode[MARK_KEY] = key;
|
|
|
return newNode;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "NLgs":
|
|
|
/*!***********************************!*\
|
|
|
!*** ./src/utils/verifyLogin.tsx ***!
|
|
|
\***********************************/
|
|
|
/*! exports provided: handleVerify, handleVerifyLogin, handleProfleCompletedModal, handleProfessionalCertificationModal, handleCanShixunAddModal, AuthorizeModel, ShixunStatusModel */
|
|
|
/*! exports used: AuthorizeModel, ShixunStatusModel, handleCanShixunAddModal, handleProfessionalCertificationModal, handleVerify, handleVerifyLogin */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return handleVerify; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return handleVerifyLogin; });
|
|
|
/* unused harmony export handleProfleCompletedModal */
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return handleProfessionalCertificationModal; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return handleCanShixunAddModal; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AuthorizeModel; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ShixunStatusModel; });
|
|
|
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/message/style */ "miYZ");
|
|
|
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/message */ "tsqr");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ "9og8");
|
|
|
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/modal/style */ "2qtc");
|
|
|
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/modal */ "kLXV");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */ "WmNS");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "cDcd");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! umi */ "9kvl");
|
|
|
/* harmony import */ var _authority__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./authority */ "xKgJ");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "1vsH");
|
|
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ "RCxd");
|
|
|
/* harmony import */ var _assets_images_403Qrcode_png__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/assets/images/403Qrcode.png */ "mOS8");
|
|
|
/* harmony import */ var _assets_images_403Qrcode_png__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_assets_images_403Qrcode_png__WEBPACK_IMPORTED_MODULE_11__);
|
|
|
/* harmony import */ var _assets_images_Authorize_png__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/assets/images/Authorize.png */ "1ZF9");
|
|
|
/* harmony import */ var _assets_images_Authorize_png__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_assets_images_Authorize_png__WEBPACK_IMPORTED_MODULE_12__);
|
|
|
/* harmony import */ var _assets_images_user_newqrcode_png__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/assets/images/user/newqrcode.png */ "NoGO");
|
|
|
/* harmony import */ var _assets_images_user_newqrcode_png__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_assets_images_user_newqrcode_png__WEBPACK_IMPORTED_MODULE_13__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// import Studnetqun from '@/assets/images/studnetqun.png';
|
|
|
// import qrCodeImg from '@/assets/images/user/qrcode.png'
|
|
|
|
|
|
// import ENV from './env';
|
|
|
|
|
|
var handleVerify = function handleVerify(dispatch) {
|
|
|
var isShixun = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
|
|
|
if (handleVerifyLogin(dispatch) && handleProfleCompletedModal(isShixun)) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
};
|
|
|
var handleVerifyLogin = function handleVerifyLogin(dispatch) {
|
|
|
if (!Object(_authority__WEBPACK_IMPORTED_MODULE_8__[/* isLogin */ "p"])()) {
|
|
|
dispatch({
|
|
|
type: 'user/showPopLogin',
|
|
|
payload: {
|
|
|
showPopLogin: true,
|
|
|
showClosable: true
|
|
|
}
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
var handleProfleCompletedModal = function handleProfleCompletedModal() {
|
|
|
var _user$userInfo;
|
|
|
|
|
|
var isShixun = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
|
|
|
|
var _getDvaApp$_store$get = Object(umi__WEBPACK_IMPORTED_MODULE_7__[/* getDvaApp */ "c"])()._store.getState(),
|
|
|
user = _getDvaApp$_store$get.user;
|
|
|
|
|
|
if (!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.profile_completed)) {
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].confirm({
|
|
|
title: '提示',
|
|
|
width: 530,
|
|
|
centered: true,
|
|
|
content: isShixun ? '按照有关政策规定,特殊实验需要先绑定手机号才能使用,请先绑定手机号码' : '您需要去完善您的个人资料,才能使用此功能',
|
|
|
okText: "\u7ACB\u5373\u5B8C\u5584",
|
|
|
cancelText: "稍后完善",
|
|
|
onOk: function onOk() {
|
|
|
umi__WEBPACK_IMPORTED_MODULE_7__[/* history */ "d"].push('/account/profile/edit');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
var handleProfessionalCertificationModal = function handleProfessionalCertificationModal() {
|
|
|
var _user$userInfo2;
|
|
|
|
|
|
var _getDvaApp$_store$get2 = Object(umi__WEBPACK_IMPORTED_MODULE_7__[/* getDvaApp */ "c"])()._store.getState(),
|
|
|
user = _getDvaApp$_store$get2.user;
|
|
|
|
|
|
if (!((_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.professional_certification)) {
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].confirm({
|
|
|
title: '提示',
|
|
|
centered: true,
|
|
|
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
className: "tc"
|
|
|
}, "\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),
|
|
|
okText: "\u7ACB\u5373\u5B8C\u5584",
|
|
|
cancelText: "稍后完善",
|
|
|
onOk: function onOk() {
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_9__[/* openNewWindow */ "U"])('/account/certification');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
var handleCanShixunAddModal = function handleCanShixunAddModal() {
|
|
|
if (Object(_authority__WEBPACK_IMPORTED_MODULE_8__[/* canShixunAdd */ "a"])()) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].warning({
|
|
|
centered: true,
|
|
|
width: 530,
|
|
|
title: '提示',
|
|
|
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
className: "tc",
|
|
|
style: {
|
|
|
marginLeft: -38
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("p", null, "\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img", {
|
|
|
src: _assets_images_user_newqrcode_png__WEBPACK_IMPORTED_MODULE_13___default.a,
|
|
|
width: 200
|
|
|
})),
|
|
|
okText: "\u6211\u77E5\u9053\u4E86",
|
|
|
maskClosable: true
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
};
|
|
|
var AuthorizeModel = function AuthorizeModel(type, text) {
|
|
|
if (type) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].confirm({
|
|
|
centered: true,
|
|
|
zIndex: 10000,
|
|
|
width: 530,
|
|
|
title: '提示',
|
|
|
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("p", null, text || '该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
style: {
|
|
|
marginLeft: '110px'
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img", {
|
|
|
src: _assets_images_Authorize_png__WEBPACK_IMPORTED_MODULE_12___default.a,
|
|
|
width: 200
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
style: {
|
|
|
marginLeft: '35px'
|
|
|
}
|
|
|
}, "\u7FA4\u53F7\uFF1A", '714336072'))),
|
|
|
okText: "\u7ACB\u5373\u8054\u7CFB",
|
|
|
cancelText: '取消',
|
|
|
onOk: function onOk() {
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_9__[/* openNewWindow */ "U"])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi");
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
};
|
|
|
var ShixunStatusModel = function ShixunStatusModel(dispatch) {
|
|
|
var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
|
|
|
|
var _getDvaApp$_store$get3 = Object(umi__WEBPACK_IMPORTED_MODULE_7__[/* getDvaApp */ "c"])()._store.getState(),
|
|
|
detail = _getDvaApp$_store$get3.shixunsDetail.detail;
|
|
|
|
|
|
if ((detail === null || detail === void 0 ? void 0 : detail.public) === 2 || (detail === null || detail === void 0 ? void 0 : detail.public) === 1 || (detail === null || detail === void 0 ? void 0 : detail.shixun_status) === 3) {
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].info({
|
|
|
centered: true,
|
|
|
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"], {
|
|
|
style: {
|
|
|
color: '#faad14'
|
|
|
}
|
|
|
}),
|
|
|
width: 460,
|
|
|
title: '提示',
|
|
|
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
className: "tc",
|
|
|
style: {
|
|
|
marginLeft: -38
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
|
alignItems: 'flex-start',
|
|
|
paddingLeft: 38,
|
|
|
margin: '12px 0'
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", null, "\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A", (detail === null || detail === void 0 ? void 0 : detail.public) === 2 ? '已公开' : (detail === null || detail === void 0 ? void 0 : detail.public) === 1 ? '待审核' : '已关闭', "\uFF0C", text, "\u3002"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("p", null, "\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img", {
|
|
|
style: {
|
|
|
border: '4px solid #0152d9',
|
|
|
borderRadius: '4px'
|
|
|
},
|
|
|
src: _assets_images_403Qrcode_png__WEBPACK_IMPORTED_MODULE_11___default.a,
|
|
|
alt: "\u4E8C\u7EF4\u7801",
|
|
|
width: 160
|
|
|
})),
|
|
|
okText: '我知道了'
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if ((detail === null || detail === void 0 ? void 0 : detail.shixun_status) === 2) {
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].confirm({
|
|
|
centered: true,
|
|
|
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"], null),
|
|
|
title: '提示',
|
|
|
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", null, "\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C", text, "\u3002"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("br", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", null, "\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),
|
|
|
okText: "\u64A4\u9500\u53D1\u5E03",
|
|
|
cancelText: '取消',
|
|
|
onOk: function onOk() {
|
|
|
antd_es_modal__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].confirm({
|
|
|
width: 440,
|
|
|
centered: true,
|
|
|
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"], {
|
|
|
style: {
|
|
|
color: '#faad14'
|
|
|
}
|
|
|
}),
|
|
|
title: '提示',
|
|
|
content: '撤销发布后,学员将无法进行练习。是否确认撤销发布?',
|
|
|
okText: "\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",
|
|
|
cancelText: '取消',
|
|
|
onOk: function () {
|
|
|
var _onOk = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee() {
|
|
|
var res;
|
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
_context.next = 2;
|
|
|
return dispatch({
|
|
|
type: 'shixunsDetail/cancelRelease',
|
|
|
payload: {
|
|
|
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
|
|
}
|
|
|
});
|
|
|
|
|
|
case 2:
|
|
|
res = _context.sent;
|
|
|
|
|
|
if (res.status !== 401) {
|
|
|
antd_es_message__WEBPACK_IMPORTED_MODULE_1__[/* default */ "b"].success('撤销发布成功。实训回到未发布的状态。');
|
|
|
|
|
|
dispatch({
|
|
|
type: 'shixunsDetail/getShixunsDetail',
|
|
|
payload: {
|
|
|
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
|
|
}
|
|
|
});
|
|
|
dispatch({
|
|
|
type: 'practiceSetting/getCommonData',
|
|
|
payload: {
|
|
|
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
|
|
|
function onOk() {
|
|
|
return _onOk.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
return onOk;
|
|
|
}()
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "NoGO":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./src/assets/images/user/newqrcode.png ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
module.exports = __webpack_require__.p + "static/newqrcode.9bae6615.png";
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "VgI9":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Index/index.tsx ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/row/style */ "14J3");
|
|
|
/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/row */ "BMrR");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "k1fw");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "oBTY");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ "9og8");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "tJVT");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */ "WmNS");
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "cDcd");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var _img_illustration_png__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./img/illustration.png */ "hJE4");
|
|
|
/* harmony import */ var _img_illustration_png__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_img_illustration_png__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var _service_shixuns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/service/shixuns */ "HBuW");
|
|
|
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/components/ui-customization */ "Nf5h");
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! umi */ "9kvl");
|
|
|
/* harmony import */ var _utils_verifyLogin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils/verifyLogin */ "NLgs");
|
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/util */ "1vsH");
|
|
|
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./index.less?modules */ "aOuo");
|
|
|
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_14__);
|
|
|
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/utils/env */ "m3rI");
|
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/utils/fetch */ "ErOA");
|
|
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! lodash */ "LvDl");
|
|
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_17__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Page = function Page(_ref) {
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(null),
|
|
|
_useState2 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState, 2),
|
|
|
id = _useState2[0],
|
|
|
setId = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])({
|
|
|
// tag_id: '',
|
|
|
sort: 'desc',
|
|
|
// order_by: 'new',
|
|
|
page: 1,
|
|
|
limit: 16,
|
|
|
keyword: '',
|
|
|
// status: 0,
|
|
|
// diff: 0,
|
|
|
// hideme: false,
|
|
|
order: 'new',
|
|
|
shixun_type: 'all',
|
|
|
discipline_id: 'all',
|
|
|
sub_discipline_id: 'all'
|
|
|
}),
|
|
|
_useState4 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState3, 2),
|
|
|
params = _useState4[0],
|
|
|
setParams = _useState4[1]; //方向
|
|
|
|
|
|
|
|
|
var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])([]),
|
|
|
_useState6 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState5, 2),
|
|
|
directionData = _useState6[0],
|
|
|
setDirectionData = _useState6[1]; //子类
|
|
|
|
|
|
|
|
|
var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])([]),
|
|
|
_useState8 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState7, 2),
|
|
|
subclassData = _useState8[0],
|
|
|
setSubclassData = _useState8[1]; //所有子类
|
|
|
|
|
|
|
|
|
var allSubclassData = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])([{
|
|
|
id: 'all',
|
|
|
name: '全部'
|
|
|
}]);
|
|
|
|
|
|
var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])([]),
|
|
|
_useState10 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState9, 2),
|
|
|
list = _useState10[0],
|
|
|
setList = _useState10[1];
|
|
|
|
|
|
var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(0),
|
|
|
_useState12 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState11, 2),
|
|
|
total = _useState12[0],
|
|
|
setTotal = _useState12[1];
|
|
|
|
|
|
var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(true),
|
|
|
_useState14 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_useState13, 2),
|
|
|
loading = _useState14[0],
|
|
|
setLoading = _useState14[1];
|
|
|
|
|
|
var tabsMenu = [{
|
|
|
id: 'new',
|
|
|
name: '最新'
|
|
|
}, {
|
|
|
id: 'hot',
|
|
|
name: '最热'
|
|
|
}, {
|
|
|
id: 'mine',
|
|
|
name: '我的'
|
|
|
}];
|
|
|
var dropMenu = [{
|
|
|
id: 'all',
|
|
|
name: '全部项目'
|
|
|
}, {
|
|
|
id: 'vnc',
|
|
|
name: '图形化'
|
|
|
}, {
|
|
|
id: 'web_ssh',
|
|
|
name: '命令行'
|
|
|
}, {
|
|
|
id: 'jupyter',
|
|
|
name: 'Jupyter'
|
|
|
}, {
|
|
|
id: 'jupyterlab',
|
|
|
name: 'JupyterLab'
|
|
|
}, {
|
|
|
id: 'unity_3d',
|
|
|
name: '虚拟仿真'
|
|
|
}]; //出现页面右侧悬浮按钮
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
|
|
|
dispatch({
|
|
|
type: 'globalSetting/onlyShowBackTopToggle',
|
|
|
payload: false
|
|
|
});
|
|
|
return function () {
|
|
|
dispatch({
|
|
|
type: 'globalSetting/onlyShowBackTopToggle',
|
|
|
payload: true
|
|
|
});
|
|
|
};
|
|
|
}, []);
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
|
|
|
getData();
|
|
|
getList(params);
|
|
|
}, []);
|
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
var _ref2 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() {
|
|
|
var res, _res$introductions, param, result, _result$disciplines;
|
|
|
|
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
_context.next = 2;
|
|
|
return Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])("/api/introductions.json", {
|
|
|
method: 'get'
|
|
|
});
|
|
|
|
|
|
case 2:
|
|
|
res = _context.sent;
|
|
|
|
|
|
if (res !== null && res !== void 0 && res.introductions) {
|
|
|
param = (_res$introductions = res.introductions) === null || _res$introductions === void 0 ? void 0 : _res$introductions.find(function (e) {
|
|
|
return e.clazz === "teacher" && e.page_type === 'shixun';
|
|
|
});
|
|
|
setId(param === null || param === void 0 ? void 0 : param.attachment_id);
|
|
|
}
|
|
|
|
|
|
_context.next = 6;
|
|
|
return Object(_service_shixuns__WEBPACK_IMPORTED_MODULE_9__[/* getShixunsMenus */ "pb"])({});
|
|
|
|
|
|
case 6:
|
|
|
result = _context.sent;
|
|
|
|
|
|
if (result.status !== -1) {
|
|
|
setDirectionData([{
|
|
|
id: 'all',
|
|
|
name: '全部'
|
|
|
}].concat(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])((result === null || result === void 0 ? void 0 : result.disciplines) || [])));
|
|
|
result === null || result === void 0 ? void 0 : (_result$disciplines = result.disciplines) === null || _result$disciplines === void 0 ? void 0 : _result$disciplines.forEach(function (e) {
|
|
|
var _allSubclassData$curr;
|
|
|
|
|
|
allSubclassData.current = (_allSubclassData$curr = allSubclassData.current) === null || _allSubclassData$curr === void 0 ? void 0 : _allSubclassData$curr.concat(e.sub_disciplines || []);
|
|
|
});
|
|
|
setSubclassData(allSubclassData.current);
|
|
|
}
|
|
|
|
|
|
case 8:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
|
|
|
return function getData() {
|
|
|
return _ref2.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
var getList = /*#__PURE__*/function () {
|
|
|
var _ref3 = Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee2(parameter) {
|
|
|
var record, res;
|
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee2$(_context2) {
|
|
|
while (1) {
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
setLoading(true);
|
|
|
parameter.keyword = encodeURIComponent(parameter.keyword);
|
|
|
record = lodash__WEBPACK_IMPORTED_MODULE_17___default.a.pickBy(parameter, function (e) {
|
|
|
return e !== 'all';
|
|
|
});
|
|
|
_context2.next = 5;
|
|
|
return Object(_service_shixuns__WEBPACK_IMPORTED_MODULE_9__[/* getShixunsList */ "ob"])(record);
|
|
|
|
|
|
case 5:
|
|
|
res = _context2.sent;
|
|
|
|
|
|
if (res.status !== -1) {
|
|
|
setList((res === null || res === void 0 ? void 0 : res.shixuns) || []);
|
|
|
setTotal((res === null || res === void 0 ? void 0 : res.total_count) || 0);
|
|
|
}
|
|
|
|
|
|
setLoading(false);
|
|
|
|
|
|
case 8:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}));
|
|
|
|
|
|
return function getList(_x) {
|
|
|
return _ref3.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
var handleOk = function handleOk() {
|
|
|
if (!Object(_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_12__[/* handleVerify */ "e"])(dispatch)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (Object(_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_12__[/* handleCanShixunAddModal */ "c"])()) {
|
|
|
Object(_utils_util__WEBPACK_IMPORTED_MODULE_13__[/* trackEvent */ "eb"])(['实践项目', '首页', '新建项目']);
|
|
|
umi__WEBPACK_IMPORTED_MODULE_11__[/* history */ "d"].push("/shixuns/new");
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var download = function download() {
|
|
|
Object(_utils_util__WEBPACK_IMPORTED_MODULE_13__[/* openNewWindow */ "U"])("".concat(_utils_env__WEBPACK_IMPORTED_MODULE_15__[/* default */ "a"].API_SERVER, "/api/attachments/").concat(id, "?disposition=inline"));
|
|
|
};
|
|
|
|
|
|
var handleDirection = function handleDirection(id) {
|
|
|
params.page = 1;
|
|
|
params.discipline_id = id;
|
|
|
params.sub_discipline_id = 'all';
|
|
|
var param = directionData.find(function (e) {
|
|
|
return e.id === id;
|
|
|
});
|
|
|
var item = id === 'all' ? allSubclassData.current : [{
|
|
|
id: 'all',
|
|
|
name: '全部'
|
|
|
}].concat(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])((param === null || param === void 0 ? void 0 : param.sub_disciplines) || []));
|
|
|
setParams(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, params));
|
|
|
setSubclassData(item);
|
|
|
getList(params);
|
|
|
};
|
|
|
|
|
|
var handleSubclass = function handleSubclass(id) {
|
|
|
params.page = 1;
|
|
|
params.sub_discipline_id = id;
|
|
|
setParams(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, params));
|
|
|
getList(params);
|
|
|
};
|
|
|
|
|
|
var handleTabs = function handleTabs(id) {
|
|
|
params.page = 1;
|
|
|
params.order = id;
|
|
|
setParams(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, params));
|
|
|
getList(params);
|
|
|
};
|
|
|
|
|
|
var handleFilter = function handleFilter(v, k) {
|
|
|
params.page = 1;
|
|
|
params.keyword = v;
|
|
|
params.shixun_type = k;
|
|
|
setParams(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, params));
|
|
|
getList(params);
|
|
|
};
|
|
|
|
|
|
var handlePage = function handlePage(v, type) {
|
|
|
params.page = v;
|
|
|
setParams(Object(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, params));
|
|
|
getList(params);
|
|
|
Object(_utils_util__WEBPACK_IMPORTED_MODULE_13__[/* trackEvent */ "eb"])(['实践项目', '首页', type === 'next' ? "下一页" : "上一页"]);
|
|
|
};
|
|
|
|
|
|
var bannerBtns = [{
|
|
|
name: '新建项目',
|
|
|
click: handleOk
|
|
|
}, {
|
|
|
name: '新手指引',
|
|
|
click: download,
|
|
|
sign: true
|
|
|
}];
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("section", {
|
|
|
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14___default.a.page
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
|
|
|
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14___default.a.center
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* Banner */ "a"], {
|
|
|
dataSource: bannerBtns,
|
|
|
title: "\u5B9E\u8DF5\u9879\u76EE",
|
|
|
sunTitle: "\u8BA9\u60A8\u4FBF\u6377\u5730\u5F00\u53D1\u8BFE\u7A0B",
|
|
|
img: _img_illustration_png__WEBPACK_IMPORTED_MODULE_8___default.a,
|
|
|
imgWidth: 346
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* CustomTags */ "h"], {
|
|
|
dataSource: directionData,
|
|
|
className: "mt30",
|
|
|
title: "\u65B9\u5411",
|
|
|
value: params === null || params === void 0 ? void 0 : params.discipline_id,
|
|
|
onChange: handleDirection,
|
|
|
fontColor: "#000000"
|
|
|
}), subclassData.length > 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* CustomTags */ "h"], {
|
|
|
dataSource: subclassData,
|
|
|
title: "\u5B50\u7C7B",
|
|
|
value: params === null || params === void 0 ? void 0 : params.sub_discipline_id,
|
|
|
onChange: handleSubclass,
|
|
|
fontColor: "#000000"
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(antd_es_row__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
|
|
|
align: "middle",
|
|
|
justify: "space-between",
|
|
|
className: "mt30 mb30"
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* SuperiorTabs */ "l"], {
|
|
|
dataSource: tabsMenu,
|
|
|
value: params === null || params === void 0 ? void 0 : params.order,
|
|
|
onChange: handleTabs
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* CustomInput */ "e"], {
|
|
|
style: {
|
|
|
width: 507
|
|
|
},
|
|
|
dataSource: dropMenu,
|
|
|
value: {
|
|
|
id: params.shixun_type,
|
|
|
value: params.keyword
|
|
|
},
|
|
|
onChange: handleFilter,
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22"
|
|
|
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* ShixunList */ "j"], {
|
|
|
dataSource: list,
|
|
|
right: 23,
|
|
|
col: 4,
|
|
|
precision: 1,
|
|
|
loading: loading,
|
|
|
trackEventItems: ['实践项目', '首页', '实训列表查看详情']
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_components_ui_customization__WEBPACK_IMPORTED_MODULE_10__[/* QuickPager */ "i"], {
|
|
|
style: {
|
|
|
marginTop: 7
|
|
|
},
|
|
|
total: total,
|
|
|
value: params.page,
|
|
|
pageSize: params.limit,
|
|
|
onChange: handlePage
|
|
|
})));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Object(umi__WEBPACK_IMPORTED_MODULE_11__[/* connect */ "a"])(function (_ref4) {
|
|
|
var globalSetting = _ref4.globalSetting;
|
|
|
return {
|
|
|
globalSetting: globalSetting
|
|
|
};
|
|
|
})(Page));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "aOuo":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Index/index.less?modules ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
module.exports = {"flex_box_center":"flex_box_center___bqQI_","flex_space_between":"flex_space_between___3rQaL","flex_box_vertical_center":"flex_box_vertical_center___UYXpP","flex_box_center_end":"flex_box_center_end___2Kcas","flex_box_column":"flex_box_column___1FW9O","page":"page___2xQvL","center":"center___QU5oD"};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "hJE4":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Index/img/illustration.png ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
module.exports = __webpack_require__.p + "static/illustration.ef89cbb1.png";
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "mOS8":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/403Qrcode.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
module.exports = __webpack_require__.p + "static/403Qrcode.6c17b6f4.png";
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |