Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent 9c21c9da71
commit 7c8687f2a4

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

@ -187,16 +187,43 @@ var Page = function Page(_ref) {
var PreviewClick = (0,_react_17_0_2_react.useRef)(null);
var params = (0,_umi_production_exports.useParams)();
(0,_react_17_0_2_react.useEffect)(function () {
PreviewClick.current = (0,lodash.throttle)(function () {
var _data$attachment;
(0,utils/* handleCloseOrOpenModal */.MI)({
title: "文件预览",
data: {
id: data === null || data === void 0 || (_data$attachment = data.attachment) === null || _data$attachment === void 0 ? void 0 : _data$attachment.id,
legalDocId: data === null || data === void 0 ? void 0 : data.id
}
}, dispatch);
}, 2000, {
PreviewClick.current = (0,lodash.throttle)( /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(data) {
var _data$attachment;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(data !== null && data !== void 0 && data.is_link)) {
_context.next = 6;
break;
}
_context.next = 3;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: data === null || data === void 0 ? void 0 : data.id,
type: 1
});
case 3:
(0,util/* openNewWindow */.xg)(data === null || data === void 0 ? void 0 : data.link);
_context.next = 7;
break;
case 6:
(0,utils/* handleCloseOrOpenModal */.MI)({
title: "文件预览",
data: {
id: data === null || data === void 0 || (_data$attachment = data.attachment) === null || _data$attachment === void 0 ? void 0 : _data$attachment.id,
legalDocId: data === null || data === void 0 ? void 0 : data.id
}
}, dispatch);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}(), 2000, {
leading: true,
trailing: false
});
@ -206,7 +233,9 @@ var Page = function Page(_ref) {
className: "bg-white ".concat(LegalDocItemmodules.LegalDocItem),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LegalDocItemmodules.Top,
onClick: PreviewClick.current,
onClick: function onClick() {
PreviewClick.current(data);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick(e) {
e.stopPropagation();
@ -312,19 +341,19 @@ var Page = function Page(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
children: [!(data !== null && data !== void 0 && data.is_link) && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
className: LegalDocItemmodules.EditDiv,
type: "link",
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiazai6 font14"
}),
openLoading: true,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _data$attachment3;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context.next = 2;
_context2.next = 2;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: data === null || data === void 0 ? void 0 : data.id,
type: 2
@ -333,9 +362,9 @@ var Page = function Page(_ref) {
(0,util/* downLoadFile */.FH)("", env/* default */.Z.API_SERVER + (data === null || data === void 0 || (_data$attachment3 = data.attachment) === null || _data$attachment3 === void 0 ? void 0 : _data$attachment3.url));
case 3:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
})),
children: "\u4E0B\u8F7D"
}), (0,utils/* isAdminOrTeacher */.G5)() && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -344,9 +373,9 @@ var Page = function Page(_ref) {
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji7 font14"
}),
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
(0,utils/* handleCloseOrOpenModal */.MI)({
title: data !== null && data !== void 0 && data.link ? "编辑外链资源" : "编辑资源",
@ -357,9 +386,9 @@ var Page = function Page(_ref) {
}, dispatch);
case 1:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
})),
children: "\u7F16\u8F91"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
@ -1110,7 +1139,7 @@ var LegalDocDetailModal_excluded = ["legalResources", "loading", "dispatch"];
var LegalDocDetailModal_Page = function Page(_ref) {
var _LegalDocDetail$attac3, _LegalDocDetail$user;
var _LegalDocDetail$user;
var legalResources = _ref.legalResources,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -1184,6 +1213,21 @@ var LegalDocDetailModal_Page = function Page(_ref) {
}
return columns;
};
var dataSource = [{
id: 1,
name: "\u57FA\u7840\u4FE1\u606F",
isShow: true
}, {
id: 2,
name: "\u4E0B\u8F7D\u8BB0\u5F55",
isShow: !LegalDocDetail.is_link
}, {
id: 3,
name: "\u67E5\u770B\u8BB0\u5F55",
isShow: true
}].filter(function (item) {
return item.isShow;
});
(0,_react_17_0_2_react.useEffect)(function () {
if (ModalProps !== null && ModalProps !== void 0 && ModalProps.open) {
getLegalDocDetail();
@ -1194,16 +1238,7 @@ var LegalDocDetailModal_Page = function Page(_ref) {
spinning: !!loading['legalResources/getLegalDocDetail'],
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
className: "mb20",
dataSource: [{
id: 1,
name: "\u57FA\u7840\u4FE1\u606F"
}, {
id: 2,
name: "\u4E0B\u8F7D\u8BB0\u5F55"
}, {
id: 3,
name: "\u67E5\u770B\u8BB0\u5F55"
}],
dataSource: dataSource,
value: urlData.type,
onChange: function onChange(type) {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
@ -1222,20 +1257,34 @@ var LegalDocDetailModal_Page = function Page(_ref) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
if (!(LegalDocDetail !== null && LegalDocDetail !== void 0 && LegalDocDetail.is_link)) {
_context.next = 6;
break;
}
_context.next = 3;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.id,
type: 1
});
case 3:
(0,util/* openNewWindow */.xg)(LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.link);
_context.next = 9;
break;
case 6:
_context.next = 8;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.id,
type: 2
});
case 2:
case 8:
(0,util/* downLoadFile */.FH)(LegalDocDetail === null || LegalDocDetail === void 0 || (_LegalDocDetail$attac = LegalDocDetail.attachment) === null || _LegalDocDetail$attac === void 0 ? void 0 : _LegalDocDetail$attac.title, env/* default */.Z.API_SERVER + (LegalDocDetail === null || LegalDocDetail === void 0 || (_LegalDocDetail$attac2 = LegalDocDetail.attachment) === null || _LegalDocDetail$attac2 === void 0 ? void 0 : _LegalDocDetail$attac2.url));
case 3:
case 9:
case "end":
return _context.stop();
}
}, _callee);
})),
children: LegalDocDetail === null || LegalDocDetail === void 0 || (_LegalDocDetail$attac3 = LegalDocDetail.attachment) === null || _LegalDocDetail$attac3 === void 0 ? void 0 : _LegalDocDetail$attac3.title
children: LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.name
})
}, {
key: 1,
@ -2283,6 +2332,9 @@ var Page = function Page(_ref) {
rowKey: "id",
rowSelection: rowSelection,
loading: !!loading['legalResources/getSelectFile'],
scroll: {
y: 400
},
dataSource: (SelectFiles === null || SelectFiles === void 0 ? void 0 : SelectFiles.list) || [],
columns: columns,
locale: {

@ -1,40 +0,0 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/components/LeftMenus/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.LeftMenusItem___YxtRI {
display: flex;
align-items: center;
transition: all 0.3s;
line-height: 14px;
cursor: pointer;
}
.LeftMenusItem___YxtRI .ArrowIcon___WycT1 {
display: block;
transition: all 0.3s;
}
.LeftMenusItem___YxtRI .ArrowIconActive___vhJuw {
transform: rotate(-180deg);
}
.LeftMenusItemActive___u2JjY,
.LeftMenusItem___YxtRI:hover {
background-color: #F8F9FA;
}
.LeftMenusItemActive___u2JjY .LeftMenusTitle___Fnbuc,
.LeftMenusItem___YxtRI:hover .LeftMenusTitle___Fnbuc {
color: #165DFF;
}
.LeftMenusItemActive___u2JjY .DropdownIcon___oMDn0,
.LeftMenusItem___YxtRI:hover .DropdownIcon___oMDn0 {
display: block;
}
.LeftMenusItem___YxtRI .DropdownIcon___oMDn0 {
transition: all 0.3s;
display: none;
}
.open___W4xwd {
display: block;
}
.close___f0JOu {
display: none;
}

@ -0,0 +1,69 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/components/LeftMenus/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.LeftMenusItem___YxtRI {
display: flex;
align-items: center;
transition: all 0.3s;
line-height: 14px;
cursor: pointer;
}
.LeftMenusItem___YxtRI .ArrowIcon___WycT1 {
display: block;
transition: all 0.3s;
}
.LeftMenusItem___YxtRI .ArrowIconActive___vhJuw {
transform: rotate(-180deg);
}
.LeftMenusItemActive___u2JjY,
.LeftMenusItem___YxtRI:hover {
background-color: #F8F9FA;
}
.LeftMenusItemActive___u2JjY .LeftMenusTitle___Fnbuc,
.LeftMenusItem___YxtRI:hover .LeftMenusTitle___Fnbuc {
color: #165DFF;
}
.LeftMenusItemActive___u2JjY .DropdownIcon___oMDn0,
.LeftMenusItem___YxtRI:hover .DropdownIcon___oMDn0 {
display: block;
}
.LeftMenusItem___YxtRI .DropdownIcon___oMDn0 {
transition: all 0.3s;
display: none;
}
.open___W4xwd {
display: block;
}
.close___f0JOu {
display: none;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/components/AddOrEditDir/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.folderWrapper___GXPxx span[class~='ant-select-tree-switcher-line-icon'] svg {
transform: scale(1.2);
color: #d2ddf5;
}
.folderWrapper___GXPxx span[class="ant-select-tree-node-content-wrapper"] {
position: relative;
}
.folderWrapper___GXPxx div[class~='ant-select-tree-treenode'] {
padding: 10px 0 10px 0px;
}
.folderWrapper___GXPxx span[class~='ant-select-tree-switcher-leaf-line']::after {
border-bottom: 1px dotted #d9d9d9 !important;
}
.folderWrapper___GXPxx span[class~='ant-select-tree-switcher-leaf-line']::before {
border-left: 1px dotted #d9d9d9 !important;
}
.folderWrapper___GXPxx span[class~='ant-select-tree-indent-unit']::after {
border-right: 1px dotted #d9d9d9 !important;
}
.folderWrapper___GXPxx span[class~='ant-select-tree-indent-unit']::before {
border-right: 1px dotted #d9d9d9 !important;
}
.folderWrapper___GXPxx span[class~='ant-select-tree-iconEle'] {
margin-right: 4px;
}

@ -1,9 +1,9 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18654],{
/***/ 83353:
/***/ 68760:
/*!********************************************************************!*\
!*** ./src/pages/LegalResources/Lists/Index/index.tsx + 3 modules ***!
!*** ./src/pages/LegalResources/Lists/Index/index.tsx + 4 modules ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -248,6 +248,11 @@ var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectW
var input = __webpack_require__(20008);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 17 modules
var tree_select = __webpack_require__(98228);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/AddOrEditDir/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddOrEditDirmodules = ({"folderWrapper":"folderWrapper___GXPxx"});
// EXTERNAL MODULE: ./src/pages/LegalResources/utils/index.tsx + 2 modules
var utils = __webpack_require__(38561);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/AddOrEditDir/index.tsx
@ -261,6 +266,8 @@ var _excluded = ["formProps", "legalResources", "loading", "dispatch"];
var AddOrEditDir = function AddOrEditDir(_ref) {
var formProps = _ref.formProps,
legalResources = _ref.legalResources,
@ -274,19 +281,11 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
treeData = _useState2[0],
setTreeData = _useState2[1];
var handleTreeData = function handleTreeData(data) {
var list = [];
if ((data === null || data === void 0 ? void 0 : data.length) != 0) {
return data === null || data === void 0 ? void 0 : data.map(function (item) {
return {
title: item.name,
value: item.id,
children: handleTreeData(item.children)
};
});
}
return list;
};
var TreeSelectDom = (0,_react_17_0_2_react.useRef)();
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
expandedKeys = _useState4[0],
setExpandedKeys = _useState4[1];
var ModalProps = objectSpread2_default()({
centered: true,
destroyOnClose: true,
@ -298,7 +297,7 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
(0,_react_17_0_2_react.useEffect)(function () {
var _LegalMenus$list;
if ((LegalMenus === null || LegalMenus === void 0 || (_LegalMenus$list = LegalMenus.list) === null || _LegalMenus$list === void 0 ? void 0 : _LegalMenus$list.length) > 0) {
setTreeData(handleTreeData(LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list));
setTreeData((0,utils/* handleTreeData */._l)(LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list));
}
}, [LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, ModalProps), {}, {
@ -371,8 +370,25 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
name: "parent_id",
label: "\u4E0A\u7EA7\u76EE\u5F55",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tree_select/* default */.Z, {
placeholder: "\u8BF7\u9009\u62E9\u4E0A\u7EA7\u76EE\u5F55",
treeData: treeData
getPopupContainer: function getPopupContainer() {
return TreeSelectDom.current;
},
placeholder: "\u8BF7\u9009\u62E9\u6240\u5C5E\u76EE\u5F55",
treeData: treeData,
treeIcon: true,
treeExpandedKeys: expandedKeys,
onTreeExpand: function onTreeExpand(keys) {
setExpandedKeys(keys);
},
treeLine: {
showLeafIcon: false
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: TreeSelectDom,
className: AddOrEditDirmodules.folderWrapper
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
htmlFor: null,
@ -400,8 +416,6 @@ var AddOrEditDir = function AddOrEditDir(_ref) {
loading: loading.effects
};
})(AddOrEditDir));
// EXTERNAL MODULE: ./src/pages/LegalResources/utils/index.tsx + 2 modules
var utils = __webpack_require__(38561);
;// CONCATENATED MODULE: ./src/pages/LegalResources/Lists/Index/index.tsx

@ -5460,6 +5460,9 @@ var Page = function Page(_ref) {
rowKey: "id",
rowSelection: rowSelection,
loading: !!loading['legalResources/getSelectFile'],
scroll: {
y: 400
},
dataSource: (SelectFiles === null || SelectFiles === void 0 ? void 0 : SelectFiles.list) || [],
columns: columns,
locale: {

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