|
|
|
|
@ -133,6 +133,8 @@ var LeftOutlined = __webpack_require__(40578);
|
|
|
|
|
var RightOutlined = __webpack_require__(83148);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/counselling.ts
|
|
|
|
|
var counselling = __webpack_require__(66258);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
var message = __webpack_require__(8591);
|
|
|
|
|
// 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
|
|
|
|
|
@ -148,6 +150,7 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Navigation = function Navigation(_ref) {
|
|
|
|
|
var _scheduleData$details, _scheduleData$details2;
|
|
|
|
|
objectDestructuringEmpty_default()(_ref);
|
|
|
|
|
@ -316,9 +319,37 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: DutySettingmodules.timeSlotItem2,
|
|
|
|
|
style: {
|
|
|
|
|
background: (item2 === null || item2 === void 0 ? void 0 : item2.checked) && '#E7EFF9',
|
|
|
|
|
background: item2 !== null && item2 !== void 0 && item2.checked ? '#E7EFF9' : '',
|
|
|
|
|
cursor: (item2 === null || item2 === void 0 ? void 0 : item2.status) == 1 ? 'pointer' : 'not-allowed'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var _userList$index;
|
|
|
|
|
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)) {
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 2:
|
|
|
|
|
_context2.next = 4;
|
|
|
|
|
return (0,counselling/* add_or_cancel_duty */.NG)({
|
|
|
|
|
type: item2 !== null && item2 !== void 0 && item2.checked ? 'cancel' : 'add',
|
|
|
|
|
specialist_id: (_userList$index = userList[index2]) === null || _userList$index === void 0 ? void 0 : _userList$index.id,
|
|
|
|
|
duty_time: item === null || item === void 0 ? void 0 : item.date
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}))
|
|
|
|
|
}, "".concat(item.date, "_").concat(index2));
|
|
|
|
|
})
|
|
|
|
|
}, item === null || item === void 0 ? void 0 : item.date);
|
|
|
|
|
@ -328,9 +359,9 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* 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);
|
|
|
|
|
@ -349,10 +380,10 @@ 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 */ NG: function() { return /* binding */ add_or_cancel_duty; },
|
|
|
|
|
/* 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);
|
|
|
|
|
@ -482,13 +513,13 @@ function add_or_cancel_duty(_x6) {
|
|
|
|
|
|
|
|
|
|
//专家详情
|
|
|
|
|
function _add_or_cancel_duty() {
|
|
|
|
|
_add_or_cancel_duty = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
|
|
|
|
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
|
|
|
_add_or_cancel_duty = _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 _callee6(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 _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context6.abrupt("return", Fetch("/api/online_consults/add_or_cancel_duty.json", {
|
|
|
|
|
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/add_or_cancel_duty.json", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _objectSpread({}, data)
|
|
|
|
|
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":
|