|
|
|
|
@ -36,6 +36,8 @@ var breadcrumb = __webpack_require__(66104);
|
|
|
|
|
var modal = __webpack_require__(43418);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
var message = __webpack_require__(8591);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
|
|
|
var input = __webpack_require__(92832);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/Detail/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___TRuqs","flex_space_between":"flex_space_between___GJ7m2","flex_box_vertical_center":"flex_box_vertical_center___X4OJh","flex_box_center_end":"flex_box_center_end___Y1lhg","flex_box_column":"flex_box_column___xlTtC","bg":"bg____gL7X","wrap":"wrap___m8ZVD","topContent":"topContent___srGRt","leibie_style":"leibie_style___CqHhO","title":"title___EORnO","update_style":"update_style___St0N2","delete_style":"delete_style___Fh9Cs","publicStyle":"publicStyle___YT1qf","bottomContent":"bottomContent___xJyyM","user_img":"user_img___gTNcG","user_name":"user_name___o0wB3","time":"time___KELUH","buttonItem":"buttonItem___a4dIq","table_name":"table_name___cfk01","content":"content___b_HQJ","addTypeRadio":"addTypeRadio___ES0SK","addBtn":"addBtn___e1Qsq","shixunTooltip":"shixunTooltip___Q6p1X","pageStyle":"pageStyle___JsqHA","pageCan":"pageCan___lwzZB","pageUnCan":"pageUnCan___rLpaI","dropList":"dropList___any6V","dropName":"dropName___JSuV5"});
|
|
|
|
|
@ -729,6 +731,7 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
indexLoading = _useState4[0],
|
|
|
|
|
setIndexLoading = _useState4[1];
|
|
|
|
|
var score = (0,_react_17_0_2_react.useRef)('');
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
//获取提问详情
|
|
|
|
|
getInfo();
|
|
|
|
|
@ -866,6 +869,9 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
children: "\u5220\u9664"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.publicStyle,
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: '20px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
@ -902,6 +908,67 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: questionInfo !== null && questionInfo !== void 0 && questionInfo.is_public ? '取消公开' : '公开'
|
|
|
|
|
}), !(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_scoring) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.publicStyle,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
icon: null,
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5982\u679C\u60A8\u89C9\u5F97\u8BE5\u5B66\u751F\u7684\u63D0\u95EE\u5F88\u6709\u6C34\u5E73\u53EF\u4EE5\u5956\u52B1\u4E00\u5B9A\u7684\u79EF\u5206"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
height: '40px',
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginTop: '10px'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u5956\u52B1\u79EF\u5206", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
size: "large",
|
|
|
|
|
type: "number",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px',
|
|
|
|
|
width: '270px'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target;
|
|
|
|
|
score.current = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
(0,counselling/* specialist_scoring */.yK)({
|
|
|
|
|
score: score.current,
|
|
|
|
|
specialist_question_id: params === null || params === void 0 ? void 0 : params.questionId
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('给分成功');
|
|
|
|
|
getInfo();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee4);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk4.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
return onOk;
|
|
|
|
|
}()
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: "\u7ED9\u5206"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -962,6 +1029,7 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
/* harmony export */ t1: function() { return /* binding */ question_is_answered; },
|
|
|
|
|
/* harmony export */ wr: function() { return /* binding */ add_specialists; },
|
|
|
|
|
/* harmony export */ y7: function() { return /* binding */ specialist_detail; },
|
|
|
|
|
/* harmony export */ yK: function() { return /* binding */ specialist_scoring; },
|
|
|
|
|
/* harmony export */ zB: function() { return /* binding */ my_specialist_question; },
|
|
|
|
|
/* harmony export */ zR: function() { return /* binding */ public_specialist_question; }
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
@ -1244,6 +1312,7 @@ function _del_specialist_question() {
|
|
|
|
|
function my_specialist_question(_x13) {
|
|
|
|
|
return _my_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
//给分
|
|
|
|
|
function _my_specialist_question() {
|
|
|
|
|
_my_specialist_question = _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 _callee13(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 _callee13$(_context13) {
|
|
|
|
|
@ -1261,6 +1330,26 @@ function _my_specialist_question() {
|
|
|
|
|
}));
|
|
|
|
|
return _my_specialist_question.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function specialist_scoring(_x14) {
|
|
|
|
|
return _specialist_scoring.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _specialist_scoring() {
|
|
|
|
|
_specialist_scoring = _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 _callee14(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 _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context14.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/online_consults/specialist_scoring.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 _context14.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee14);
|
|
|
|
|
}));
|
|
|
|
|
return _specialist_scoring.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|