|
|
|
|
@ -84,8 +84,6 @@ var spin = __webpack_require__(71418);
|
|
|
|
|
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-number/index.js + 14 modules
|
|
|
|
|
var input_number = __webpack_require__(5871);
|
|
|
|
|
// 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
|
|
|
|
|
@ -838,7 +836,7 @@ var HeaderNav = __webpack_require__(79624);
|
|
|
|
|
|
|
|
|
|
var logo = __webpack_require__(/*! @/../public/images/cloudHotLine/logo.png */ 62110);
|
|
|
|
|
var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
var _questionInfo$special, _questionInfo$special2, _questionInfo$special3, _questionInfo$special4, _questionInfo$special5, _questionInfo$special6, _user$userInfo, _questionInfo$special7, _user$userInfo2, _user$userInfo3, _questionInfo$special8, _user$userInfo4, _questionInfo$special9, _user$userInfo5, _questionInfo$special10, _user$userInfo6, _questionInfo$special11, _user$userInfo7, _questionInfo$special12;
|
|
|
|
|
var _questionInfo$special, _questionInfo$special2, _questionInfo$special3, _questionInfo$special4, _questionInfo$special5, _questionInfo$special6, _user$userInfo, _questionInfo$special7, _user$userInfo2, _user$userInfo3, _questionInfo$special8, _user$userInfo4, _questionInfo$special9, _user$userInfo5, _questionInfo$special10, _user$userInfo6, _questionInfo$special11;
|
|
|
|
|
var polls = _ref.polls,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -1171,75 +1169,6 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
fontSize: '16rem'
|
|
|
|
|
}
|
|
|
|
|
}), questionInfo !== null && questionInfo !== void 0 && questionInfo.is_public ? '取消公开' : '公开']
|
|
|
|
|
}), !(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_scoring) && ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special12 = questionInfo.specialist) === null || _questionInfo$special12 === void 0 ? void 0 : _questionInfo$special12.id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("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\u5458\u7684\u63D0\u95EE\u5F88\u6709\u6C34\u5E73\u53EF\u4EE5\u5956\u52B1\u4E00\u5B9A\u7684\u79EF\u5206"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
height: '40rem',
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginTop: '10rem'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u5956\u52B1\u79EF\u5206", /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
|
|
size: "large",
|
|
|
|
|
precision: 0,
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 100,
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10rem',
|
|
|
|
|
width: '270rem'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
score.current = e;
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}),
|
|
|
|
|
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: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "icon-zzxy-geifen",
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: '2rem',
|
|
|
|
|
marginRight: '10rem',
|
|
|
|
|
fontSize: '16rem'
|
|
|
|
|
}
|
|
|
|
|
}), "\u7ED9\u5206"]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -1282,11 +1211,11 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
visible: visible,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context5.next = 2;
|
|
|
|
|
_context4.next = 2;
|
|
|
|
|
return form.validateFields();
|
|
|
|
|
case 2:
|
|
|
|
|
(0,counselling/* edit_specialist_question */.UO)(objectSpread2_default()({
|
|
|
|
|
@ -1301,9 +1230,9 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context5.stop();
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee5);
|
|
|
|
|
}, _callee4);
|
|
|
|
|
})),
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setVisible(false);
|