autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 086fdc2d90
commit 7b4b0827eb

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

@ -837,7 +837,7 @@ var XazyHeader = __webpack_require__(90720);
var PollDetail = function PollDetail(_ref) {
var _questionInfo$special, _questionInfo$special2, _questionInfo$special3, _questionInfo$special4, _questionInfo$special5, _questionInfo$special6, _user$userInfo, _user$userInfo2, _user$userInfo3;
var _questionInfo$special, _questionInfo$special2, _questionInfo$special3, _questionInfo$special4, _questionInfo$special5, _questionInfo$special6, _user$userInfo, _user$userInfo2, _questionInfo$special7, _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,
@ -1009,7 +1009,7 @@ var PollDetail = function PollDetail(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,
children: [!(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_answered) && (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) == (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.user_id) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [!(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_answered) && ((user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) == (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.user_id) || (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special7 = questionInfo.specialist) === null || _questionInfo$special7 === void 0 ? void 0 : _questionInfo$special7.id) || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.publicStyle,
style: {
marginRight: '20rem'
@ -1055,7 +1055,7 @@ var PollDetail = function PollDetail(_ref) {
fontSize: '16rem'
}
}), "\u5DF2\u89E3\u7B54"]
}), (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id) == (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.user_id) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special8 = questionInfo.specialist) === null || _questionInfo$special8 === void 0 ? void 0 : _questionInfo$special8.id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.publicStyle,
style: {
marginRight: '20rem'
@ -1101,7 +1101,7 @@ var PollDetail = function PollDetail(_ref) {
fontSize: '16rem'
}
}), "\u5220\u9664"]
}), ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id) == (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.user_id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special9 = questionInfo.specialist) === null || _questionInfo$special9 === void 0 ? void 0 : _questionInfo$special9.id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.publicStyle,
style: {
marginRight: '20rem'
@ -1118,7 +1118,7 @@ var PollDetail = function PollDetail(_ref) {
fontSize: '16rem'
}
}), "\u7F16\u8F91"]
}), (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.has_public_auth) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special10 = questionInfo.specialist) === null || _questionInfo$special10 === void 0 ? void 0 : _questionInfo$special10.id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.publicStyle,
style: {
marginRight: '20rem'
@ -1166,7 +1166,7 @@ var PollDetail = function PollDetail(_ref) {
fontSize: '16rem'
}
}), questionInfo !== null && questionInfo !== void 0 && questionInfo.is_public ? '取消公开' : '公开']
}), !(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_scoring) && (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.has_public_auth) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !(questionInfo !== null && questionInfo !== void 0 && questionInfo.is_scoring) && ((0,authority/* isSuperAdmins */.Ny)() || (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.user_id) == (questionInfo === null || questionInfo === void 0 || (_questionInfo$special11 = questionInfo.specialist) === null || _questionInfo$special11 === void 0 ? void 0 : _questionInfo$special11.id)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.publicStyle,
onClick: function onClick() {
modal/* default */.Z.confirm({

@ -82,7 +82,8 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var _questionInfo$statis, _questionInfo$statis2;
var loading = _ref.loading,
user = _ref.user;
user = _ref.user,
dispatch = _ref.dispatch;
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
@ -110,43 +111,63 @@ var Navigation = function Navigation(_ref) {
_useState12 = slicedToArray_default()(_useState11, 2),
tableData = _useState12[0],
setTableData = _useState12[1];
//分页
var _useState13 = (0,_react_17_0_2_react.useState)(0),
var _useState13 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 10,
keyword: ''
}),
_useState14 = slicedToArray_default()(_useState13, 2),
total = _useState14[0],
setTotal = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(1),
params = _useState14[0],
setParams = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 10,
keyword: ''
}),
_useState16 = slicedToArray_default()(_useState15, 2),
page = _useState16[0],
setPage = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(10),
params1 = _useState16[0],
setParams1 = _useState16[1];
//分页
var _useState17 = (0,_react_17_0_2_react.useState)(0),
_useState18 = slicedToArray_default()(_useState17, 2),
limit = _useState18[0],
setLimit = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)({}),
total = _useState18[0],
setTotal = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(0),
_useState20 = slicedToArray_default()(_useState19, 2),
questionInfo = _useState20[0],
setQuestionInfo = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)([]),
total1 = _useState20[0],
setTotal1 = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(1),
_useState22 = slicedToArray_default()(_useState21, 2),
messageList = _useState22[0],
setMessageList = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)('hot'),
page = _useState22[0],
setPage = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(1000),
_useState24 = slicedToArray_default()(_useState23, 2),
activeKey1 = _useState24[0],
setActiveKey1 = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(''),
limit = _useState24[0],
setLimit = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)({}),
_useState26 = slicedToArray_default()(_useState25, 2),
selectedExpertId = _useState26[0],
setSelectedExpertId = _useState26[1];
questionInfo = _useState26[0],
setQuestionInfo = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
messageList = _useState28[0],
setMessageList = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)('hot'),
_useState30 = slicedToArray_default()(_useState29, 2),
activeKey1 = _useState30[0],
setActiveKey1 = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(''),
_useState32 = slicedToArray_default()(_useState31, 2),
selectedExpertId = _useState32[0],
setSelectedExpertId = _useState32[1];
//弹窗
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState27 = (0,_react_17_0_2_react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
visible = _useState28[0],
setVisible = _useState28[1];
var _useState33 = (0,_react_17_0_2_react.useState)(false),
_useState34 = slicedToArray_default()(_useState33, 2),
visible = _useState34[0],
setVisible = _useState34[1];
var tabsMenu = [{
name: '值班专家',
id: '1'
@ -172,7 +193,7 @@ var Navigation = function Navigation(_ref) {
page: page,
limit: limit,
keyword: keyword,
duty_time: itemType == '1' ? dutyTime : '',
duty_time: itemType == '1' ? 'all' : null,
sort: 'desc'
}).then(function (res) {
var _res$data, _res$data2;
@ -193,7 +214,7 @@ var Navigation = function Navigation(_ref) {
var info = (0,lodash.cloneDeep)(res === null || res === void 0 ? void 0 : res.data);
setQuestionInfo(objectSpread2_default()({}, info));
setMessageList(toConsumableArray_default()(info === null || info === void 0 ? void 0 : info.specialist_question_records));
setTotal(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.count);
setTotal1(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.count);
setIsLoading(false);
});
};
@ -515,11 +536,14 @@ var Navigation = function Navigation(_ref) {
/* harmony default export */ var ExpertList = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
engineeringNavigtion = _ref3.engineeringNavigtion,
user = _ref3.user;
return objectSpread2_default()({
user = _ref3.user,
dispatch = _ref3.dispatch;
return objectSpread2_default()(objectSpread2_default()({
loading: loading,
user: user
}, engineeringNavigtion);
}, engineeringNavigtion), {}, {
dispatch: dispatch
});
})(Navigation));
/***/ }),

@ -212,6 +212,12 @@ var ExpertManage = function ExpertManage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setSelectArrs([]);
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
case 2:
case "end":
return _context2.stop();
}
@ -510,7 +516,7 @@ var ExpertSchedule = function ExpertSchedule(_ref) {
page: page,
limit: limit,
keyword: keyword,
duty_time: activeKey == '1' ? dutyTime : ''
duty_time: activeKey == '1' ? 'all' : null
}).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);

@ -431,7 +431,7 @@ var HotQuestions = function HotQuestions(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginBottom: '30rem',
marginBottom: '25rem',
padding: '0 20rem 0 30rem'
},
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -558,7 +558,7 @@ var HotQuestions = function HotQuestions(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginBottom: '30rem',
marginBottom: '25rem',
padding: '0 20rem 0 30rem'
},
children: total1 > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {

@ -32,6 +32,8 @@ var menu = __webpack_require__(20834);
var _umi_production_exports = __webpack_require__(88271);
// EXTERNAL MODULE: ./src/pages/Counselling/XazyHeader/index.tsx + 1 modules
var XazyHeader = __webpack_require__(90720);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(64118);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Counselling/Index/index.tsx
@ -45,8 +47,10 @@ var SubMenu = menu/* default */.Z.SubMenu;
var Engineering = function Engineering(_ref) {
var _user$userInfo, _user$userInfo2;
var _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4;
var user = _ref.user,
globalSetting = _ref.globalSetting,
engineering = _ref.engineering,
@ -127,7 +131,7 @@ var Engineering = function Engineering(_ref) {
className: Indexmodules.left,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "block_1 flex-col",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [!(user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.specialist_id) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(location.pathname.indexOf("/counselling/myConsultation") > -1 ? "section_7" : "section_8", " flex-row"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/counselling/myConsultation",
@ -138,7 +142,7 @@ var Engineering = function Engineering(_ref) {
children: "\u4E0E\u6211\u76F8\u5173"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
}), (user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.specialist_id) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(location.pathname.indexOf("/counselling/myAnswer") > -1 ? "section_7" : "section_8", " flex-row"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/counselling/myAnswer",
@ -171,23 +175,25 @@ var Engineering = function Engineering(_ref) {
children: "\u70ED\u95E8\u95EE\u9898"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "text_8",
children: "\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DE5\u4F5C\u53F0\u2026\u2026\u2026\u2026\u2026\u2026\u2026"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(location.pathname.indexOf("/counselling/expertSchedule") > -1 ? "section_7" : "section_8", " flex-row"),
style: {
marginBottom: 10
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/counselling/expertSchedule",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zzxy-zhuanjiapaibanguanli"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "text_5",
children: "\u4E13\u5BB6\u6392\u73ED\u7BA1\u7406"
})]
})
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "text_8",
children: "\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DE5\u4F5C\u53F0\u2026\u2026\u2026\u2026\u2026\u2026\u2026"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(location.pathname.indexOf("/counselling/expertSchedule") > -1 ? "section_7" : "section_8", " flex-row"),
style: {
marginBottom: 10
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/counselling/expertSchedule",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zzxy-zhuanjiapaibanguanli"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "text_5",
children: "\u4E13\u5BB6\u6392\u73ED\u7BA1\u7406"
})]
})
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

@ -142,6 +142,7 @@
box-shadow: inset 0rem 1rem 3rem 0rem rgba(255, 255, 255, 0.5);
border-radius: 16rem;
border: 1rem solid #3662C7;
cursor: pointer;
}
.container____quqI .rili___xjD2z .riliDate___D7LN8 .dateRender___oCalM {
width: 60rem;

@ -108,27 +108,31 @@ var MyAnswer = function MyAnswer(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
dutyTime = _useState6[0],
setDutyTime = _useState6[1];
//分页
var _useState7 = (0,_react_17_0_2_react.useState)(0),
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
total = _useState8[0],
setTotal = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(1),
isMyDuty = _useState8[0],
setIsMyDuty = _useState8[1];
//分页
var _useState9 = (0,_react_17_0_2_react.useState)(0),
_useState10 = slicedToArray_default()(_useState9, 2),
page = _useState10[0],
setPage = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(10),
total = _useState10[0],
setTotal = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(1),
_useState12 = slicedToArray_default()(_useState11, 2),
limit = _useState12[0],
setLimit = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
page = _useState12[0],
setPage = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(10),
_useState14 = slicedToArray_default()(_useState13, 2),
tableData = _useState14[0],
setTableData = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(),
limit = _useState14[0],
setLimit = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)([]),
_useState16 = slicedToArray_default()(_useState15, 2),
keyword = _useState16[0],
setkeyword = _useState16[1];
tableData = _useState16[0],
setTableData = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(),
_useState18 = slicedToArray_default()(_useState17, 2),
keyword = _useState18[0],
setkeyword = _useState18[1];
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [page, limit, activeKey]);
@ -153,8 +157,11 @@ var MyAnswer = function MyAnswer(_ref) {
(0,counselling/* get_duty_time */.j6)({
date: date
}).then(function (res) {
var _res$data3;
setDutyTime(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.my_duty_dates);
var _res$data3, _res$data4;
if (res !== null && res !== void 0 && (_res$data3 = res.data) !== null && _res$data3 !== void 0 && (_res$data3 = _res$data3.my_duty_dates) !== null && _res$data3 !== void 0 && _res$data3.includes(dayjs_min_default()().format('YYYY-MM-DD'))) {
setIsMyDuty(true);
}
setDutyTime(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.my_duty_dates);
});
};
var onChangeTabs = function onChangeTabs(key) {
@ -164,6 +171,15 @@ var MyAnswer = function MyAnswer(_ref) {
setPage(page);
setLimit(size);
};
var showLogin = function showLogin() {
dispatch({
type: 'user/showPopLogin',
payload: {
showPopLogin: true,
showClosable: true
}
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MyAnswermodules.container,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -297,8 +313,16 @@ var MyAnswer = function MyAnswer(_ref) {
},
children: "\u6211\u7684\u503C\u73ED\u65E5\u671F"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
}), isMyDuty && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MyAnswermodules.btn,
onClick: function onClick() {
var _user$userInfo, _user$userInfo2;
if ((user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) == "") {
showLogin();
return;
}
_umi_production_exports.history.push("/counselling/expertList/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.specialist_id, "/onlineChat"));
},
children: "\u8FDB\u5165\u5728\u7EBF\u804A\u5929"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

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