Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent c275c3c22a
commit e9ef056dfb

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

@ -163,11 +163,6 @@ var Navigation = function Navigation(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
scheduleData = _useState6[0],
setScheduleData = _useState6[1];
// 是否是编辑中状态
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
isEdit = _useState8[0],
setIsEdit = _useState8[1];
(0,_react_17_0_2_react.useEffect)(function () {
// 专家列表
(0,counselling/* getSpecialists */.I_)({
@ -354,7 +349,8 @@ var Navigation = function Navigation(_ref) {
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
/* harmony export */ wr: function() { return /* binding */ add_specialists; }
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
/* harmony export */ y7: function() { return /* binding */ specialist_detail; }
/* harmony export */ });
/* unused harmony export 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);
@ -483,6 +479,8 @@ function _get_duty_info() {
function add_or_cancel_duty(_x6) {
return _add_or_cancel_duty.apply(this, arguments);
}
//专家详情
function _add_or_cancel_duty() {
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
@ -500,6 +498,26 @@ function _add_or_cancel_duty() {
}));
return _add_or_cancel_duty.apply(this, arguments);
}
function specialist_detail(_x7) {
return _specialist_detail.apply(this, arguments);
}
function _specialist_detail() {
_specialist_detail = _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 _callee7(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 _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialist_detail.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 _context7.stop();
}
}, _callee7);
}));
return _specialist_detail.apply(this, arguments);
}
/***/ })

@ -91,6 +91,96 @@ if (false) {}
/***/ }),
/***/ 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);
/***/ }),
/***/ 76535:
/*!*********************************************************************!*\
!*** ./src/pages/Counselling/ExpertList/Info/index.tsx + 3 modules ***!
@ -128,8 +218,12 @@ var es_form = __webpack_require__(78241);
var tooltip = __webpack_require__(6848);
// 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/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./src/service/counselling.ts
var counselling = __webpack_require__(66258);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/Info/index.tsx
@ -143,6 +237,7 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var _ref2;
var loading = _ref.loading,
@ -160,6 +255,51 @@ var Navigation = function Navigation(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
//分页
var _useState3 = (0,_react_17_0_2_react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
total = _useState4[0],
setTotal = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(1),
_useState6 = slicedToArray_default()(_useState5, 2),
page = _useState6[0],
setPage = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(10),
_useState8 = slicedToArray_default()(_useState7, 2),
limit = _useState8[0],
setLimit = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(),
_useState10 = slicedToArray_default()(_useState9, 2),
keyword = _useState10[0],
setkeyword = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
questionList = _useState12[0],
setQuestionList = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)({}),
_useState14 = slicedToArray_default()(_useState13, 2),
questionInfo = _useState14[0],
setQuestionInfo = _useState14[1];
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [keyword, page, limit]);
var getData = function getData() {
(0,counselling/* specialist_detail */.y7)({
page: page,
limit: limit,
keyword: keyword,
specialist_id: params === null || params === void 0 ? void 0 : params.id
}).then(function (res) {
var _res$data, _res$data2;
setQuestionList(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 onShowSizeChange = function onShowSizeChange(page, size) {
setPage(page);
setLimit(size);
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Infomodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -207,21 +347,17 @@ var Navigation = function Navigation(_ref) {
className: Infomodules.list_title,
children: "\u88AB\u63D0\u95EE\u8BB0\u5F55"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u4E13\u5BB6\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
placeholder: "\u8BF7\u8F93\u5165\u95EE\u9898\u5185\u5BB9\u8FDB\u884C\u641C\u7D22",
size: "large",
className: Infomodules.search
// value={keyword}
,
onChange: function onChange(e) {
console.log(e.target.value);
},
className: Infomodules.search,
value: keyword,
onSearch: function onSearch(value) {
console.log(value);
setkeyword(value);
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9 font14 ".concat(Infomodules.searchIcon),
onClick: function onClick() {
// setkeyword(keyword)
getData();
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -264,6 +400,36 @@ var Navigation = function Navigation(_ref) {
})]
}, index);
})
}), /*#__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, {
centered: true,
@ -310,6 +476,189 @@ var Navigation = function Navigation(_ref) {
/***/ }),
/***/ 66258:
/*!************************************!*\
!*** ./src/service/counselling.ts ***!
\************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ B5: function() { return /* binding */ del_specialist; },
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
/* harmony export */ y7: function() { return /* binding */ specialist_detail; }
/* harmony export */ });
/* unused harmony export 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);
/* 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___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 25600);
//添加专家
function add_specialists(_x) {
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 _callee(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 _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.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 _context.stop();
}
}, _callee);
}));
return _add_specialists.apply(this, arguments);
}
function getSpecialists(_x2) {
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 _callee2(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 _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.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 _context2.stop();
}
}, _callee2);
}));
return _getSpecialists.apply(this, arguments);
}
function del_specialist(_x3) {
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 _callee3(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 _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.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 _context3.stop();
}
}, _callee3);
}));
return _del_specialist.apply(this, arguments);
}
function edit_specialist(_x4) {
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 _callee4(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 _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
return _context4.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 _context4.stop();
}
}, _callee4);
}));
return _edit_specialist.apply(this, arguments);
}
function get_duty_info(_x5) {
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 _callee5(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 _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
return _context5.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 _context5.stop();
}
}, _callee5);
}));
return _get_duty_info.apply(this, arguments);
}
function add_or_cancel_duty(_x6) {
return _add_or_cancel_duty.apply(this, arguments);
}
//专家详情
function _add_or_cancel_duty() {
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", Fetch("/api/online_consults/add_or_cancel_duty.json", {
method: 'post',
body: _objectSpread({}, data)
}));
case 1:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return _add_or_cancel_duty.apply(this, arguments);
}
function specialist_detail(_x7) {
return _specialist_detail.apply(this, arguments);
}
function _specialist_detail() {
_specialist_detail = _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 _callee7(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 _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialist_detail.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 _context7.stop();
}
}, _callee7);
}));
return _specialist_detail.apply(this, arguments);
}
/***/ }),
/***/ 92832:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules ***!

@ -350,10 +350,11 @@ var Navigation = function Navigation(_ref) {
placeholder: "\u8BF7\u8F93\u5165\u4E13\u5BB6\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
size: "large",
className: ExpertListmodules.search,
value: keyword,
onChange: function onChange(e) {
setkeyword(e.target.value);
},
value: keyword
// onChange={(e) => {
// setkeyword(e.target.value)
// }}
,
onSearch: function onSearch(value) {
setkeyword(value);
},
@ -464,7 +465,8 @@ var Navigation = function Navigation(_ref) {
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
/* harmony export */ wr: function() { return /* binding */ add_specialists; }
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
/* harmony export */ y7: function() { return /* binding */ specialist_detail; }
/* harmony export */ });
/* unused harmony export 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);
@ -593,6 +595,8 @@ function _get_duty_info() {
function add_or_cancel_duty(_x6) {
return _add_or_cancel_duty.apply(this, arguments);
}
//专家详情
function _add_or_cancel_duty() {
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
@ -610,6 +614,26 @@ function _add_or_cancel_duty() {
}));
return _add_or_cancel_duty.apply(this, arguments);
}
function specialist_detail(_x7) {
return _specialist_detail.apply(this, arguments);
}
function _specialist_detail() {
_specialist_detail = _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 _callee7(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 _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialist_detail.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 _context7.stop();
}
}, _callee7);
}));
return _specialist_detail.apply(this, arguments);
}
/***/ }),

@ -961,7 +961,8 @@ var Navigation = function Navigation(_ref) {
/* harmony export */ CV: function() { return /* binding */ edit_specialist; },
/* harmony export */ I_: function() { return /* binding */ getSpecialists; },
/* harmony export */ LI: function() { return /* binding */ get_duty_info; },
/* harmony export */ wr: function() { return /* binding */ add_specialists; }
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
/* harmony export */ y7: function() { return /* binding */ specialist_detail; }
/* harmony export */ });
/* unused harmony export 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);
@ -1090,6 +1091,8 @@ function _get_duty_info() {
function add_or_cancel_duty(_x6) {
return _add_or_cancel_duty.apply(this, arguments);
}
//专家详情
function _add_or_cancel_duty() {
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
@ -1107,6 +1110,26 @@ function _add_or_cancel_duty() {
}));
return _add_or_cancel_duty.apply(this, arguments);
}
function specialist_detail(_x7) {
return _specialist_detail.apply(this, arguments);
}
function _specialist_detail() {
_specialist_detail = _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 _callee7(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 _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialist_detail.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 _context7.stop();
}
}, _callee7);
}));
return _specialist_detail.apply(this, arguments);
}
/***/ }),

@ -253,8 +253,12 @@ var Navigation = function Navigation(_ref) {
cursor: "pointer",
marginLeft: "10px"
},
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,
onClick: function onClick() {
handleDownload("".concat(env/* default */.Z.API_SERVER, "/api/yn_classrooms/substance_details/").concat(record === null || record === void 0 ? void 0 : record.id, "/download.json"));
setTimeout(function () {
getData(false);
}, 500);
},
children: "\u5BFC\u51FA\u6761\u5F62\u7801"
})
@ -340,55 +344,6 @@ var Navigation = function Navigation(_ref) {
setItemAsssInfo(res === null || res === void 0 ? void 0 : res.data);
});
};
var handleDownload = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(apiUrl) {
var response, blob, url, a;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.prev = 0;
_context2.next = 3;
return fetch(apiUrl);
case 3:
response = _context2.sent;
if (response.ok) {
_context2.next = 6;
break;
}
throw new Error('下载失败');
case 6:
_context2.next = 8;
return response.blob();
case 8:
blob = _context2.sent;
url = URL.createObjectURL(blob); // 创建一个隐藏的 <a> 元素并模拟点击下载文件
a = document.createElement('a');
a.href = url;
a.download = 'batch_download.json'; // 可选:指定默认的文件名
a.click();
// 下载完成后清理 URL 对象
URL.revokeObjectURL(url);
// 调用 getData传入 true 参数
getData(true);
_context2.next = 21;
break;
case 18:
_context2.prev = 18;
_context2.t0 = _context2["catch"](0);
// 捕获并打印错误
console.error('错误:', _context2.t0);
case 21:
case "end":
return _context2.stop();
}
}, _callee2, null, [[0, 18]]);
}));
return function handleDownload(_x2) {
return _ref3.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -600,8 +555,12 @@ var Navigation = function Navigation(_ref) {
style: {
width: '138px'
},
href: "".concat(env/* default */.Z.API_SERVER, "/api/yn_classrooms/substance_details/batch_download.json?substance_id=").concat(itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.id, "&status=").concat(status, "&scrapped=0"),
download: true,
onClick: function onClick() {
handleDownload("".concat(env/* default */.Z.API_SERVER, "/api/yn_classrooms/substance_details/batch_download.json?substance_id=").concat(itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.id, "&status=").concat(status, "&scrapped=0"));
setTimeout(function () {
getData(false);
}, 500);
},
children: "\u6279\u91CF\u5BFC\u51FA\u6761\u5F62\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -694,15 +653,15 @@ var Navigation = function Navigation(_ref) {
open: openBox,
title: '添加',
width: "400px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
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:
_context3.next = 2;
_context2.next = 2;
return myForm.validateFields();
case 2:
setConfirmLoading(true);
_context3.next = 5;
_context2.next = 5;
return (0,materials/* new_substance_create_details */.NP)({
substance_detail: {
substance_id: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.id,
@ -720,9 +679,9 @@ var Navigation = function Navigation(_ref) {
setConfirmLoading(false);
case 6:
case "end":
return _context3.stop();
return _context2.stop();
}
}, _callee3);
}, _callee2);
})),
onCancel: function onCancel() {
setOpenBox(false);
@ -870,12 +829,12 @@ var Navigation = function Navigation(_ref) {
})]
});
};
/* harmony default export */ var InfoCode = ((0,_umi_production_exports.connect)(function (_ref5) {
var loading = _ref5.loading,
user = _ref5.user,
engineeringNavigtion = _ref5.engineeringNavigtion,
account = _ref5.account,
dispatch = _ref5.dispatch;
/* harmony default export */ var InfoCode = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
user = _ref4.user,
engineeringNavigtion = _ref4.engineeringNavigtion,
account = _ref4.account,
dispatch = _ref4.dispatch;
return objectSpread2_default()(objectSpread2_default()({
loading: loading,
user: user

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