autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 78a0b1b8d6
commit 2564ba1a8f

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

@ -313,7 +313,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0B\u53D1\u6587\u4E66"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {

@ -312,7 +312,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), (studentWorkEditDefaultData === null || studentWorkEditDefaultData === void 0 ? void 0 : studentWorkEditDefaultData.start_group) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {

@ -328,7 +328,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
})
}), (studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.start_group) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C0F\u7EC4\u6210\u5458\uFF1A"

@ -275,7 +275,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
title: "\u4E0B\u53D1\u6587\u4E66"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {

@ -431,7 +431,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
})
}), studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C0F\u7EC4\u6210\u5458\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {

@ -286,7 +286,7 @@ var EditCommonHomework = function EditCommonHomework(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: isShow && /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
title: "\u4E0B\u53D1\u6587\u4E66"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {

@ -412,7 +412,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
title: "\u4E0A\u4F20\u6587\u4E66"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C0F\u7EC4\u6210\u5458\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {

@ -693,13 +693,17 @@ var Navigation = function Navigation(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flex: 1
flex: 1,
color: '#333',
fontSize: '20px'
},
children: detail === null || detail === void 0 ? void 0 : detail.title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
setaddmodal(true);
modifyForm.setFieldsValue(objectSpread2_default()({}, detail));
modifyForm.setFieldsValue(objectSpread2_default()(objectSpread2_default()({}, detail), {}, {
attachment_ids: (0,MultiUpload/* coverToFileList */.z)(detail === null || detail === void 0 ? void 0 : detail.attachments)
}));
},
className: "iconfont icon-bianji14"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -717,7 +721,7 @@ var Navigation = function Navigation(_ref) {
case 0:
_context.next = 2;
return (0,fetch/* default */.ZP)("/api/tools/".concat(detail === null || detail === void 0 ? void 0 : detail.id, ".json"), {
method: 'detele'
method: 'DELETE'
});
case 2:
res = _context.sent;
@ -814,13 +818,16 @@ var Navigation = function Navigation(_ref) {
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
});
_context3.next = 3;
return (0,fetch/* default */.ZP)("/api/tools.json", {
method: 'post',
return (0,fetch/* default */.ZP)("/api/tools/".concat(params.id, ".json"), {
method: 'put',
body: objectSpread2_default()({}, values)
});
case 3:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {}
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
getdetail();
setaddmodal(false);
}
case 5:
case "end":
return _context3.stop();

@ -58,6 +58,8 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
var ui_customization = __webpack_require__(1003);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(82710);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Counselling/ExpertList/index.tsx
@ -79,6 +81,7 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var _questionInfo$statis, _questionInfo$statis2;
var loading = _ref.loading,
@ -376,15 +379,36 @@ var Navigation = function Navigation(_ref) {
className: ExpertListmodules.btns,
children: [(questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.show_chat_entry) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ExpertListmodules.onlineChat,
onClick: function onClick() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo;
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(questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.id, "/onlineChat"));
// window.open(`https://192.168.0.210:8080/?info=true&roomId=${questionInfo?.id}&userName=${user?.userInfo?.username}`)
},
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!((user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) == "")) {
_context.next = 3;
break;
}
showLogin();
return _context.abrupt("return");
case 3:
_context.next = 5;
return (0,fetch/* default */.ZP)("/api/online_consults/start_chat_record.json", {
method: 'post',
body: {
specialist_id: questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.id
}
});
case 5:
res = _context.sent;
_umi_production_exports.history.push("/counselling/expertList/".concat(questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.id, "/onlineChat"));
// window.open(`https://192.168.0.210:8080/?info=true&roomId=${questionInfo?.id}&userName=${user?.userInfo?.username}`)
case 7:
case "end":
return _context.stop();
}
}, _callee);
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zaixianliaotian"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -492,11 +516,11 @@ var Navigation = function Navigation(_ref) {
visible: visible,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.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:
_context.next = 2;
_context2.next = 2;
return form.validateFields();
case 2:
(0,counselling/* specialist_question */.$D)(objectSpread2_default()({
@ -511,9 +535,9 @@ var Navigation = function Navigation(_ref) {
});
case 3:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
})),
onCancel: function onCancel() {
setVisible(false);
@ -541,11 +565,11 @@ 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,
dispatch = _ref3.dispatch;
/* harmony default export */ var ExpertList = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
engineeringNavigtion = _ref4.engineeringNavigtion,
user = _ref4.user,
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