Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent cb94de2417
commit ea708dc2ab

@ -9,6 +9,8 @@
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AY: function() { return /* binding */ purchases_review; },
/* harmony export */ B5: function() { return /* binding */ del_specialist; },
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
/* harmony export */ ER: function() { return /* binding */ tracks_info; },
/* harmony export */ EZ: function() { return /* binding */ receives_create; },
/* harmony export */ FA: function() { return /* binding */ substance_details_scrapped; },
@ -17,8 +19,10 @@
/* harmony export */ Gf: function() { return /* binding */ submit_substance_details; },
/* harmony export */ HM: function() { return /* binding */ substances_query; },
/* harmony export */ HX: function() { return /* binding */ substance_categories_delete; },
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
/* harmony export */ JQ: function() { return /* binding */ receives_cancel; },
/* harmony export */ K$: function() { return /* binding */ bills_create; },
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
/* harmony export */ M1: function() { return /* binding */ bills_delete; },
/* harmony export */ NP: function() { return /* binding */ new_substance_create_details; },
/* harmony export */ OV: function() { return /* binding */ me_substances_query; },
@ -42,6 +46,7 @@
/* harmony export */ pd: function() { return /* binding */ purchases_canceled; },
/* harmony export */ vH: function() { return /* binding */ receives_review; },
/* harmony export */ vR: function() { return /* binding */ scene_receives_create; },
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
/* harmony export */ xR: function() { return /* binding */ substances_update; },
/* harmony export */ xb: function() { return /* binding */ substance_categories_query; },
/* harmony export */ y_: function() { return /* binding */ substance_details_update; },
@ -49,7 +54,7 @@
/* harmony export */ zG: function() { return /* binding */ purchases_info; },
/* harmony export */ zO: function() { return /* binding */ me_receives_query; }
/* harmony export */ });
/* unused harmony exports substances_list, code_download, code_batch_download, receives_matches */
/* unused harmony exports substances_list, code_download, code_batch_download, receives_matches, add_or_cancel_duty */
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
@ -1003,6 +1008,8 @@ function _receives_update() {
function random_number(_x44) {
return _random_number.apply(this, arguments);
}
//添加专家
function _random_number() {
_random_number = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee44(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee44$(_context44) {
@ -1020,6 +1027,136 @@ function _random_number() {
}));
return _random_number.apply(this, arguments);
}
function add_specialists(_x45) {
return _add_specialists.apply(this, arguments);
}
//获取专家列表
function _add_specialists() {
_add_specialists = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee45(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee45$(_context45) {
while (1) switch (_context45.prev = _context45.next) {
case 0:
return _context45.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/add_specialists.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context45.stop();
}
}, _callee45);
}));
return _add_specialists.apply(this, arguments);
}
function getSpecialists(_x46) {
return _getSpecialists.apply(this, arguments);
}
// 删除专家
function _getSpecialists() {
_getSpecialists = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee46(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee46$(_context46) {
while (1) switch (_context46.prev = _context46.next) {
case 0:
return _context46.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialists.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context46.stop();
}
}, _callee46);
}));
return _getSpecialists.apply(this, arguments);
}
function del_specialist(_x47) {
return _del_specialist.apply(this, arguments);
}
//编辑专家
function _del_specialist() {
_del_specialist = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee47(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee47$(_context47) {
while (1) switch (_context47.prev = _context47.next) {
case 0:
return _context47.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/del_specialist.json", {
method: 'delete',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context47.stop();
}
}, _callee47);
}));
return _del_specialist.apply(this, arguments);
}
function edit_specialist(_x48) {
return _edit_specialist.apply(this, arguments);
}
//值班信息
function _edit_specialist() {
_edit_specialist = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee48(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee48$(_context48) {
while (1) switch (_context48.prev = _context48.next) {
case 0:
return _context48.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/edit_specialist.json", {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context48.stop();
}
}, _callee48);
}));
return _edit_specialist.apply(this, arguments);
}
function get_duty_info(_x49) {
return _get_duty_info.apply(this, arguments);
}
//添加或者取消值班
function _get_duty_info() {
_get_duty_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee49(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee49$(_context49) {
while (1) switch (_context49.prev = _context49.next) {
case 0:
return _context49.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/duty_info.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context49.stop();
}
}, _callee49);
}));
return _get_duty_info.apply(this, arguments);
}
function add_or_cancel_duty(_x50) {
return _add_or_cancel_duty.apply(this, arguments);
}
function _add_or_cancel_duty() {
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(data) {
return _regeneratorRuntime().wrap(function _callee50$(_context50) {
while (1) switch (_context50.prev = _context50.next) {
case 0:
return _context50.abrupt("return", Fetch("/api/online_consults/add_or_cancel_duty.json", {
method: 'post',
body: _objectSpread({}, data)
}));
case 1:
case "end":
return _context50.stop();
}
}, _callee50);
}));
return _add_or_cancel_duty.apply(this, arguments);
}
/***/ })

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

@ -690,12 +690,14 @@ var ReleaseTime = __webpack_require__(39811);
var TabPane = tabs/* default */.Z.TabPane;
var loadingData = false;
var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
var attachment = _ref.attachment,
loading = _ref.loading,
dispatch = _ref.dispatch;
dispatch = _ref.dispatch,
user = _ref.user;
var params = (0,_umi_production_exports.useParams)();
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
@ -732,7 +734,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
var groupIdsInitialValues = [];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res$object_list, res, _res$data;
var _res$object_list, _res, res, _res$data, _user$userInfo, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -744,7 +746,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
case 2:
loadingData = true;
if (!hasMore) {
_context.next = 19;
_context.next = 26;
break;
}
++query.page;
@ -760,26 +762,44 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
case 8:
res = _context.sent;
tabData = toConsumableArray_default()(tabData.concat(res.data.files));
_context.next = 16;
_context.next = 23;
break;
case 12:
_context.next = 14;
if (!(tabKey === 'myself')) {
_context.next = 19;
break;
}
_context.next = 15;
return dispatch({
type: 'attachment/mineAttachment',
payload: objectSpread2_default()({}, query)
});
case 14:
case 15:
res = _context.sent;
tabData = toConsumableArray_default()(tabData.concat((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.files));
case 16:
if (((_res$object_list = res.object_list) === null || _res$object_list === void 0 ? void 0 : _res$object_list.length) < query.page_size) {
_context.next = 23;
break;
case 19:
_context.next = 21;
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"), {
method: 'get',
params: {
page: query.page,
per_page: query.page_size
}
});
case 21:
res = _context.sent;
tabData = toConsumableArray_default()(tabData.concat((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.attachments));
case 23:
if (((_res$object_list = res.object_list) === null || _res$object_list === void 0 ? void 0 : _res$object_list.length) < query.page_size || ((_res = res) === null || _res === void 0 || (_res = _res.data) === null || _res === void 0 ? void 0 : _res.count) < query.page_size) {
setHasMore(false);
} else {
setHasMore(true);
}
loadingData = false;
setTabData(toConsumableArray_default()(tabData));
case 19:
case 26:
case "end":
return _context.stop();
}
@ -1032,10 +1052,12 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
};
/* harmony default export */ var SelectAttchment = ((0,_umi_production_exports.connect)(function (_ref5) {
var attachment = _ref5.attachment,
loading = _ref5.loading;
loading = _ref5.loading,
user = _ref5.user;
return {
attachment: attachment,
loading: loading
loading: loading,
user: user
};
})(CuttOffNowShixun));
function SimpleTable(_ref6) {
@ -1095,6 +1117,7 @@ function SimpleTable(_ref6) {
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
loading: loadingData,
pagination: false,
columns: columns,
className: SelectAttchmentmodules.table,

@ -1,6 +1,96 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[11020],{
/***/ 40578:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(1393);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
/***/ }),
/***/ 83148:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/RightOutlined.js
// This icon file is generated automatically.
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(1393);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/RightOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
if (false) {}
/* harmony default export */ var icons_RightOutlined = (RefIcon);
/***/ }),
/***/ 37098:
/*!*****************************************************************!*\
!*** ./src/pages/Counselling/DutySetting/index.tsx + 1 modules ***!
@ -41,14 +131,8 @@ var _umi_production_exports = __webpack_require__(80608);
var LeftOutlined = __webpack_require__(40578);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/RightOutlined.js + 1 modules
var RightOutlined = __webpack_require__(83148);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(51945);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(70974);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(32013);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Counselling/DutySetting/index.tsx
@ -64,10 +148,74 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var _scheduleData$reserva, _scheduleData$reserva2;
objectDestructuringEmpty_default()(_ref);
var _useState = (0,_react_17_0_2_react.useState)(getWeekNumber(new Date())),
_useState2 = slicedToArray_default()(_useState, 2),
currentWeek = _useState2[0],
setCurrentWeek = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
userList = _useState4[0],
setUserList = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
// 专家列表
(0,materials/* getSpecialists */.I_)({
page: 1,
limit: 500
}).then(function (res) {
var _res$data;
setUserList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [currentWeek]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,materials/* get_duty_info */.LI)({
cweek: currentWeek
});
case 2:
res = _context.sent;
console.log(res);
if (res.status === 0) {}
case 5:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
// 获取当前日期的周数
function getWeekNumber(date) {
// 创建一个新的日期对象设置为今年的1月1日
var startOfYear = new Date(date.getFullYear(), 0, 1);
// 将日期设置为今年的第一周的周一
var startOfWeek = new Date(startOfYear);
var dayOfWeek = startOfWeek.getDay();
var startDay = dayOfWeek === 0 ? 6 : dayOfWeek - 1;
startOfWeek.setDate(startOfYear.getDate() - startDay);
// 计算日期与开始周一的差异
var diff = date - startOfWeek;
var oneWeek = 1000 * 60 * 60 * 24 * 7;
// 计算周数
var weekNumber = Math.ceil(diff / oneWeek);
return weekNumber;
}
var scheduleData = {
"id": 1,
"title": "测试房间",
@ -792,7 +940,6 @@ var Navigation = function Navigation(_ref) {
}]
}]
};
var times = ['0:00—0:50', '1:00—1:50', '2:00—2:50', '3:00—3:50', '4:00—4:50', '5:00—5:50', '6:00—6:50', '7:00—7:50', '8:00—8:50', '9:00—9:50', '10:00—10:50', '11:00—11:50', '12:00—12:50', '13:00—13:50', '14:00—14:50', '15:00—15:50', '16:00—16:50', '17:00—17:50', '18:00—18:50', '19:00—19:50', '20:00—20:50', '21:00—21:50', '22:00—22:50', '23:00—23:50'];
var colorType = {
0: '#ADB2B8',
1: '#165DFF'
@ -814,175 +961,6 @@ var Navigation = function Navigation(_ref) {
6: '六',
7: '日'
};
var timeType = {
1: '第1节(00:00-00:50)',
2: '第2节(01:00-01:50)',
3: '第3节(02:00-02:50)',
4: '第4节(03:00-03:50)',
5: '第5节(04:00-04:50)',
6: '第6节(05:00-05:50)',
7: '第7节(06:00-06:50)',
8: '第8节(07:00-07:50)',
9: '第9节(08:00-08:50)',
10: '第10节(09:00-09:50)',
11: '第11节(10:00-10:50)',
12: '第12节(11:00-11:50)',
13: '第13节(12:00-12:50)',
14: '第14节(13:00-13:50)',
15: '第15节(14:00-14:50)',
16: '第16节(15:00-15:50)',
17: '第17节(16:00-16:50)',
18: '第18节(17:00-17:50)',
19: '第19节(18:00-18:50)',
20: '第20节(19:00-19:50)',
21: '第21节(20:00-20:50)',
22: '第22节(21:00-21:50)',
23: '第23节(22:00-22:50)',
24: '第24节(23:00-23:50)'
};
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
modalVisible = _useState2[0],
setModalVisible = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
tableData = _useState4[0],
setTableData = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isLoading = _useState6[0],
setIsLoading = _useState6[1];
var columns = [{
title: '预约人',
dataIndex: 'user_name',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '角色',
dataIndex: 'user_role',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text == 'student' ? '学生' : '教师',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text == 'student' ? '学生' : '教师'
})
});
}
}, {
title: '预约节次',
dataIndex: 'sections',
ellipsis: true,
width: 160,
render: function render(text, record) {
var _record$sections;
return record === null || record === void 0 || (_record$sections = record.sections) === null || _record$sections === void 0 ? void 0 : _record$sections.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: timeType[item === null || item === void 0 ? void 0 : item.section_id]
}, index);
});
}
}, {
title: '工位数量',
dataIndex: 'work_num',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '关联类型',
dataIndex: 'container_type',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text == 'Subject' ? '实践课程' : text == 'Shixun' ? '实践项目' : '教学课堂',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text == 'Subject' ? '实践课程' : text == 'Shixun' ? '实践项目' : '教学课堂'
})
});
}
}, {
title: '关联内容',
dataIndex: 'container_titile',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '学号/工位',
dataIndex: 'student_id',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '手机号',
dataIndex: 'user_phone',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '邮箱',
dataIndex: 'mail',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}, {
title: '备注',
dataIndex: 'description',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text ? "".concat(text) : '--'
})
});
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DutySettingmodules.header_div,
@ -1001,13 +979,13 @@ var Navigation = function Navigation(_ref) {
},
onClick: function onClick() {
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) > 1) {
// onChangeWeek(Number(scheduleData?.cweek) - 1)
setCurrentWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) - 1);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: DutySettingmodules.weekCount,
children: ["\u7B2C", scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek, "\u5468"]
children: ["\u7B2C", currentWeek, "\u5468"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DutySettingmodules.btn,
style: {
@ -1016,7 +994,7 @@ var Navigation = function Navigation(_ref) {
},
onClick: function onClick() {
if ((scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) < Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.system_cweek) + 1) {
// onChangeWeek(Number(scheduleData?.cweek) + 1)
setCurrentWeek(Number(scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.cweek) + 1);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
@ -1031,7 +1009,7 @@ var Navigation = function Navigation(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u65E5\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8BFE\u8282"
children: "\u4E13\u5BB6"
})]
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva = scheduleData.reservation_details) === null || _scheduleData$reserva === void 0 ? void 0 : _scheduleData$reserva.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -1051,14 +1029,12 @@ var Navigation = function Navigation(_ref) {
className: DutySettingmodules.timeSlotWarp,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DutySettingmodules.timeSlot,
children: times.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: userList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: DutySettingmodules.timeSlotItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: index + 1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item
})]
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.username
})
}, index);
})
}), scheduleData === null || scheduleData === void 0 || (_scheduleData$reserva2 = scheduleData.reservation_details) === null || _scheduleData$reserva2 === void 0 ? void 0 : _scheduleData$reserva2.map(function (item, index) {
@ -1074,34 +1050,14 @@ var Navigation = function Navigation(_ref) {
background: bgcolorType[item2 === null || item2 === void 0 ? void 0 : item2.status],
cursor: (item2 === null || item2 === void 0 ? void 0 : item2.status) == 1 ? 'pointer' : ''
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!((item2 === null || item2 === void 0 ? void 0 : item2.status) == 1)) {
_context.next = 5;
break;
}
setModalVisible(true);
setIsLoading(true);
_context.next = 5;
return (0,laboratory/* reservations_query */.bU)({
is_all: true,
classroom_room_id: scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.id,
section_ids: [item2 === null || item2 === void 0 ? void 0 : item2.id],
reservation_date: item === null || item === void 0 ? void 0 : item.date
}).then(function (res) {
if (res.status == 0) {
var _res$data;
setTableData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
}
setIsLoading(false);
});
case 5:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [nameType[item2 === null || item2 === void 0 ? void 0 : item2.status], " ", (item2 === null || item2 === void 0 ? void 0 : item2.status) == 1 && (item2 === null || item2 === void 0 ? void 0 : item2.num)]
@ -1112,34 +1068,12 @@ var Navigation = function Navigation(_ref) {
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: DutySettingmodules.my_modal,
open: modalVisible,
title: "\u9884\u7EA6\u8BE6\u60C5",
width: "1057px",
footer: null,
onCancel: function onCancel() {
return setModalVisible(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
scroll: {
y: 650
},
loading: isLoading,
pagination: false,
dataSource: tableData,
columns: columns
})
})]
});
};
/* harmony default export */ var DutySetting = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
engineeringNavigtion = _ref3.engineeringNavigtion;
/* harmony default export */ var DutySetting = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
engineeringNavigtion = _ref4.engineeringNavigtion;
return objectSpread2_default()({
loading: loading
}, engineeringNavigtion);

@ -1,313 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34044],{
/***/ 29614:
/*!******************************************************************!*\
!*** ./src/pages/Counselling/ExpertManage/index.tsx + 1 modules ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ ExpertManage; }
});
// 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/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(80608);
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertManage/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ExpertManagemodules = ({"header_div":"header_div___ukQaU","header_title":"header_title___vJbgn","search":"search___kW3Xl","searchIcon":"searchIcon___lHgvP","clear_Data":"clear_Data____5XhW"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
var input = __webpack_require__(92832);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(51945);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(32013);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertManage/index.tsx
var Navigation = function Navigation(_ref) {
var loading = _ref.loading;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
keyword = _useState2[0],
setkeyword = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(),
_useState4 = slicedToArray_default()(_useState3, 2),
typeId = _useState4[0],
setTypeId = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
openMyModal = _useState6[0],
setOpenMyModal = _useState6[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myForm = _Form$useForm2[0];
//分页
var _useState7 = (0,_react_17_0_2_react.useState)(0),
_useState8 = slicedToArray_default()(_useState7, 2),
total = _useState8[0],
setTotal = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(1),
_useState10 = slicedToArray_default()(_useState9, 2),
page = _useState10[0],
setPage = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(10),
_useState12 = slicedToArray_default()(_useState11, 2),
limit = _useState12[0],
setLimit = _useState12[1];
//预约数据
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
tableData = _useState14[0],
setTableData = _useState14[1];
(0,_react_17_0_2_react.useEffect)(function () {
getData(false);
}, [page]);
(0,_react_17_0_2_react.useEffect)(function () {
getData(true);
}, [keyword, limit]);
var getData = function getData(flag) {
if (flag) {
setPage(1);
}
(0,materials/* substance_categories_query */.xb)({
page: page,
limit: limit,
keyword: keyword
}).then(function (res) {
var _res$data, _res$data2;
setTableData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
});
};
var columns = [{
title: '专家名称',
dataIndex: 'title',
ellipsis: true,
width: 150
}, {
title: '职称',
dataIndex: 'risk',
ellipsis: true,
width: 150
}, {
title: '工号',
dataIndex: 'risk',
ellipsis: true,
width: 150
}, {
title: '简介',
dataIndex: 'created_at',
ellipsis: true
}, {
title: '操作',
width: 150,
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF",
cursor: "pointer"
},
onClick: function onClick() {
setTypeId(record === null || record === void 0 ? void 0 : record.id);
myForm.setFieldValue('neirong', record === null || record === void 0 ? void 0 : record.created_at);
setOpenMyModal(true);
},
children: "\u7F16\u8F91"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6367",
marginLeft: "10px",
cursor: "pointer"
},
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: "提示",
content: "删除后,该用户将不再专家列表中展示,同时该用户将失去专家权限,无法被其他用户进行提问并解答,请确认是否需要将该用户删除专家身份?",
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
},
children: "\u5220\u9664"
})]
});
}
}];
var onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ExpertManagemodules.header_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ExpertManagemodules.header_title,
children: "\u4E13\u5BB6\u7BA1\u7406"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u4E13\u5BB6\u540D\u79F0\u641C\u7D22",
size: "large",
className: ExpertManagemodules.search,
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
onSearch: function onSearch(value) {
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(ExpertManagemodules.searchIcon),
onClick: function onClick() {
setkeyword(keyword);
getData(true);
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ExpertManagemodules.clear_Data,
onClick: function onClick() {
// setOpenMyModal(true)
},
children: "\u6DFB\u52A0\u4E13\u5BB6"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ExpertManagemodules.search_params
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: tableData,
columns: columns
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 7px 20px 7px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showSizeChanger: true,
showQuickJumper: true,
onChange: onShowSizeChange,
defaultCurrent: 1,
pageSizeOptions: ['10', '20', '50', '100'],
current: page || 1,
pageSize: limit || 10,
defaultPageSize: 10,
total: total
})]
}) : ''
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ExpertManagemodules.my_modal,
open: openMyModal,
title: "\u7F16\u8F91\u7B80\u4ECB",
width: "600px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return myForm.validateFields();
case 2:
case "end":
return _context2.stop();
}
}, _callee2);
})),
onCancel: function onCancel() {
setOpenMyModal(false);
myForm.resetFields();
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
form: myForm,
layout: "vertical",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4E13\u5BB6\u63CF\u8FF0",
name: "neirong",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u4E13\u5BB6\u63CF\u8FF0",
rows: 6
})
})
})
})]
});
};
/* harmony default export */ var ExpertManage = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
engineeringNavigtion = _ref3.engineeringNavigtion;
return objectSpread2_default()({
loading: loading
}, engineeringNavigtion);
})(Navigation));
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -394,7 +394,7 @@ var Navigation = function Navigation(_ref) {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: "".concat(itemType == 1 ? '20px' : '0')
marginLeft: "".concat(itemType == 1 ? '20px' : '20px')
},
onClick: function onClick() {
// ${record?.id}
@ -650,6 +650,7 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ItemAssetsListmodules.add_Data,
onClick: function onClick() {
setWarehousingList([]);
setWarehousing(true);
},
children: "\u5165\u5E93"

@ -497,10 +497,10 @@ var Navigation = function Navigation(_ref) {
value: '',
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 1,
value: 2,
children: "\u5DF2\u5BFC\u51FA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 2,
value: 1,
children: "\u672A\u5BFC\u51FA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 3,

@ -282,7 +282,7 @@ var AddInventoryModal = function AddInventoryModal(_ref) {
loading = _ref.loading,
dispatch = _ref.dispatch,
visible = _ref.visible,
onCancel = _ref.onCancel,
_onCancel = _ref.onCancel,
onOk = _ref.onOk;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
@ -293,6 +293,7 @@ var AddInventoryModal = function AddInventoryModal(_ref) {
setWarehousingList = _useState2[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (visible) {
console.log("1111", 111);
showConfirm();
}
}, [visible]);
@ -429,7 +430,11 @@ var AddInventoryModal = function AddInventoryModal(_ref) {
return _onOk.apply(this, arguments);
}
return onOk;
}()
}(),
onCancel: function onCancel() {
myRuleForm.resetFields();
_onCancel();
}
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {});
@ -712,15 +717,18 @@ var Navigation = function Navigation(_ref) {
}, (searchParams.get('indexType') == '1' || searchParams.get('indexType') == '2') && {
title: '操作',
ellipsis: true,
width: searchParams.get('indexType') == '1' ? 250 : 100,
// width: searchParams.get('indexType') == '1' ? 250 : 100,
width: 250,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [searchParams.get('indexType') == '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [
/*#__PURE__*/
// searchParams.get('indexType') == '1' &&
(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
style: {
color: "#165DFF",
cursor: "pointer",
marginLeft: "10px"
cursor: "pointer"
},
href: "".concat(env/* default */.Z.API_SERVER, "/api/yn_classrooms/substance_details/").concat(record === null || record === void 0 ? void 0 : record.id, "/download.json"),
download: true,
@ -1451,6 +1459,9 @@ var Navigation = function Navigation(_ref) {
onOk: function onOk() {
getData(true);
setWarehousing(false);
},
onCancel: function onCancel() {
setWarehousing(false);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,

@ -116,7 +116,7 @@ var ExperimentDetail = function ExperimentDetail(_ref) {
dataIndex: 'ts_mem',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5185\u5B58\u6D88\u8017", text, "MB"]
children: ["\u5185\u5B58\u6D88\u8017", text || '--', "MB"]
});
}
}, {

@ -135,12 +135,24 @@ var SetPublic = function SetPublic(_ref) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过文件大小限制(500MB)'));
return Promise.reject();
}
var formData = new FormData();
formData.append('file', file);
formData.append('container_type', 'UserCenterResources');
// 返回修改后的 FormData
return {
url: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
data: formData
};
// if(fileTypes.indexOf(fileType)==-1){
// message.error(`${file.name} 文件无法上传,当前仅限支持pdf、word、excel、ppt、zip文件`)
// return Promise.reject()
// }
return true;
},
data: {
container_type: "UserCenterResources"
},
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
onChange: function onChange(data) {
var _data$file;
@ -160,8 +172,8 @@ var SetPublic = function SetPublic(_ref) {
destroyOnClose: true,
maskClosable: false,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo, _value$attachment_ids;
var value, res;
var _user$userInfo, _value;
var value, res, _attachment$actionTab;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -171,13 +183,14 @@ var SetPublic = function SetPublic(_ref) {
value = form.getFieldValue();
value = Object.assign({}, formValue, value);
_context.next = 6;
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/").concat((_value$attachment_ids = value.attachment_ids.map(function (v) {
return v.response.id;
})) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids[0], ".json"), {
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/upload.json"), {
method: 'post',
body: {
// new_attachment_id: value.attachment_ids.map((v:any) => v.response.id)?.[0], //value.attachment_ids.map(v => v.response.id)
description: value.description
description: value.description,
attachment_id: (_value = value) === null || _value === void 0 || (_value = _value.attachment_ids.map(function (v) {
return v.response.id;
})) === null || _value === void 0 ? void 0 : _value[0]
// course_id: params.id,
// course_second_category_id: params.categoryId * 1,
// is_public: !!value.is_public,
@ -195,16 +208,15 @@ var SetPublic = function SetPublic(_ref) {
type: 'attachment/setActionTabs',
payload: {}
});
dispatch({
type: 'classroomList/getAttachmentList',
payload: objectSpread2_default()({}, attachment.actionTabs.params)
});
dispatch({
type: 'classroomList/getClassroomLeftMenus',
payload: {
id: params.coursesId
}
});
// dispatch({
// type: 'classroomList/getAttachmentList',
// payload: { ...attachment.actionTabs.params },
// })
attachment === null || attachment === void 0 || (_attachment$actionTab = attachment.actionTabs) === null || _attachment$actionTab === void 0 || (_attachment$actionTab = _attachment$actionTab.params) === null || _attachment$actionTab === void 0 || _attachment$actionTab.getList();
// dispatch({
// type: 'classroomList/getClassroomLeftMenus',
// payload: { id: params.coursesId },
// })
}
setFileList([]);
case 9:
@ -317,10 +329,11 @@ var SetPublic = function SetPublic(_ref) {
user: user
};
})(SetPublic));
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(66999);
// EXTERNAL MODULE: ./src/service/attachment.ts
var service_attachment = __webpack_require__(81482);
;// CONCATENATED MODULE: ./src/pages/User/Detail/OtherResources/Config.tsx
@ -348,7 +361,8 @@ var Config_defaultFormValue = {
var Config_SetPublic = function SetPublic(_ref) {
var attachment = _ref.attachment,
dispatch = _ref.dispatch,
loading = _ref.loading;
loading = _ref.loading,
user = _ref.user;
var params = (0,_umi_production_exports.useParams)();
var detail = attachment.detail;
var _Form$useForm = es_form/* default */.Z.useForm(),
@ -369,26 +383,29 @@ var Config_SetPublic = function SetPublic(_ref) {
params['course_id'] = params['coursesId'];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo, _attachment$actionTab, _res$data;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'attachment/getDetail',
payload: objectSpread2_default()({}, params)
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/").concat((_attachment$actionTab = attachment.actionTabs.selectArrs) === null || _attachment$actionTab === void 0 ? void 0 : _attachment$actionTab["id"], ".json"), {
method: 'get',
params: {
page: 1,
per_page: 1000
}
});
case 2:
res = _context.sent;
res.delay_publish = res.delay_publish ? 1 : 0;
formValue["is_public"] = [res.is_public];
formValue["description"] = res.description;
formValue["delay_publish"] = res.delay_publish;
formValue["publish_time"] = res === null || res === void 0 ? void 0 : res.publish_time;
res.data.delay_publish = res.data.delay_publish ? 1 : 0;
formValue["is_public"] = [res.data.is_public];
formValue["description"] = res.data.description;
formValue["delay_publish"] = res.data.delay_publish;
formValue["publish_time"] = res === null || res === void 0 ? void 0 : res.data.publish_time;
form.setFieldsValue(formValue);
//先注释
// setHistories([{ ...res }, ...res?.attachment_histories])
case 9:
setHistories([objectSpread2_default()({}, res.data)].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.attachment_histories)));
case 10:
case "end":
return _context.stop();
}
@ -400,8 +417,8 @@ var Config_SetPublic = function SetPublic(_ref) {
}();
(0,_react_17_0_2_react.useEffect)(function () {
if (attachment.actionTabs.key === "资源设置") {
var _attachment$actionTab;
params.id = (_attachment$actionTab = attachment.actionTabs.selectArrs) === null || _attachment$actionTab === void 0 ? void 0 : _attachment$actionTab["id"];
var _attachment$actionTab2;
params.id = (_attachment$actionTab2 = attachment.actionTabs.selectArrs) === null || _attachment$actionTab2 === void 0 ? void 0 : _attachment$actionTab2["id"];
form.resetFields();
getData();
}
@ -429,7 +446,7 @@ var Config_SetPublic = function SetPublic(_ref) {
content: '删除资源后将无法恢复,请确认是否删除?',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var record, res, _attachment$actionTab2;
var record, res, _attachment$actionTab3;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
@ -444,7 +461,7 @@ var Config_SetPublic = function SetPublic(_ref) {
case 3:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
params.id = (_attachment$actionTab2 = attachment.actionTabs.selectArrs) === null || _attachment$actionTab2 === void 0 ? void 0 : _attachment$actionTab2["id"];
params.id = (_attachment$actionTab3 = attachment.actionTabs.selectArrs) === null || _attachment$actionTab3 === void 0 ? void 0 : _attachment$actionTab3["id"];
getData();
}
case 5:
@ -493,14 +510,14 @@ var Config_SetPublic = function SetPublic(_ref) {
key: 'id',
width: 307,
ellipsis: true,
render: function render(text) {
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text.title,
title: record.title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: env/* default */.Z.API_SERVER + text.url,
href: env/* default */.Z.API_SERVER + record.url,
target: "_blank",
className: "multi_ellipsis1 c-grey-333",
children: text.title
children: record.title
})
});
}
@ -555,8 +572,8 @@ var Config_SetPublic = function SetPublic(_ref) {
cancelText: "\u53D6\u6D88",
width: 600,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _value$is_public, _value$attachment_ids;
var value, res;
var _user$userInfo2, _attachment$actionTab4, _value$attachment_ids;
var value, res, _attachment$actionTab5;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
@ -565,19 +582,34 @@ var Config_SetPublic = function SetPublic(_ref) {
case 2:
value = form.getFieldValue();
value = Object.assign({}, formValue, value);
// const res = await updateFiles(
// {
// id: detail.id,
// course_id: params.id,
// course_second_category_id: params.categoryId || 0,
// is_public: value.is_public?.[0],
// delay_publish: value.delay_publish,
// description: value.description,
// publish_time: formValue.publish_time,
// new_attachment_id: value.attachment_ids?.map((v: any) => v.response?.id),
// })
_context3.next = 6;
return (0,service_attachment/* updateFiles */.Ot)({
id: detail.id,
course_id: params.id,
course_second_category_id: params.categoryId || 0,
is_public: (_value$is_public = value.is_public) === null || _value$is_public === void 0 ? void 0 : _value$is_public[0],
delay_publish: value.delay_publish,
description: value.description,
publish_time: formValue.publish_time,
new_attachment_id: (_value$attachment_ids = value.attachment_ids) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids.map(function (v) {
var _v$response;
return (_v$response = v.response) === null || _v$response === void 0 ? void 0 : _v$response.id;
})
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/upload.json"), {
method: 'post',
body: {
// new_attachment_id: value.attachment_ids.map((v:any) => v.response.id)?.[0], //value.attachment_ids.map(v => v.response.id)
description: value.description,
attachment_id: (_attachment$actionTab4 = attachment.actionTabs.selectArrs) === null || _attachment$actionTab4 === void 0 ? void 0 : _attachment$actionTab4["id"],
new_attachment_id: (_value$attachment_ids = value.attachment_ids) === null || _value$attachment_ids === void 0 || (_value$attachment_ids = _value$attachment_ids.map(function (v) {
return v.response.id;
})) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids[0]
// course_id: params.id,
// course_second_category_id: params.categoryId * 1,
// is_public: !!value.is_public,
// delay_publish: value.delay_publish,
// publish_time: value.publish_time
}
});
case 6:
res = _context3.sent;
@ -588,10 +620,11 @@ var Config_SetPublic = function SetPublic(_ref) {
type: 'attachment/setActionTabs',
payload: {}
});
dispatch({
type: 'classroomList/getAttachmentList',
payload: objectSpread2_default()({}, attachment.actionTabs.params)
});
attachment === null || attachment === void 0 || (_attachment$actionTab5 = attachment.actionTabs) === null || _attachment$actionTab5 === void 0 || (_attachment$actionTab5 = _attachment$actionTab5.params) === null || _attachment$actionTab5 === void 0 || _attachment$actionTab5.getList();
// dispatch({
// type: 'classroomList/getAttachmentList',
// payload: { ...attachment.actionTabs.params },
// })
}
setFileList([]);
case 9:
@ -715,10 +748,12 @@ var Config_SetPublic = function SetPublic(_ref) {
};
/* harmony default export */ var Config = ((0,_umi_production_exports.connect)(function (_ref5) {
var attachment = _ref5.attachment,
loading = _ref5.loading;
loading = _ref5.loading,
user = _ref5.user;
return {
attachment: attachment,
loading: loading
loading: loading,
user: user
};
})(Config_SetPublic));
;// CONCATENATED MODULE: ./src/pages/User/Detail/OtherResources/index.tsx
@ -780,9 +815,9 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
(0,_react_17_0_2_react.useEffect)(function () {
getList();
_getList2();
}, [page]);
function getList(_x) {
function _getList2(_x) {
return _getList.apply(this, arguments);
}
function _getList() {
@ -845,7 +880,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
res = _context.sent;
if (res.status === 0) {
newPage = (result === null || result === void 0 || (_result$attachments = result.attachments) === null || _result$attachments === void 0 ? void 0 : _result$attachments.length) === 1 && page > 1 ? page - 1 : page;
getList(newPage);
_getList2(newPage);
}
case 4:
case "end":
@ -923,7 +958,11 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
payload: {
key: '资源设置',
selectArrs: record,
params: {}
params: {
getList: function getList() {
return _getList2(1);
}
}
}
});
},
@ -973,7 +1012,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
case 3:
_res = _context2.sent;
if (_res.status === 0) {
getList();
_getList2();
modalCancel();
}
return _context2.abrupt("return");
@ -989,7 +1028,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
res = _context2.sent;
if (res.status === 0) {
setPage(1);
getList(1);
_getList2(1);
modalCancel();
}
case 10:
@ -1016,7 +1055,11 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
type: 'attachment/setActionTabs',
payload: {
key: '新建资源',
params: {}
params: {
getList: function getList() {
_getList2(1);
}
}
}
});
},

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