|
|
|
|
@ -1384,9 +1384,50 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
children: selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length
|
|
|
|
|
}), "\u9879"]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [urlData.type == 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(DropdownSearch/* default */.Z, {
|
|
|
|
|
onClick: ( /*#__PURE__*/function () {
|
|
|
|
|
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(id) {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context11.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "legalResources/putMember",
|
|
|
|
|
payload: {
|
|
|
|
|
legalId: params.legalId,
|
|
|
|
|
user_id: selectedRowKeys,
|
|
|
|
|
legal_course_group_id: id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
message/* default */.ZP.success("移动成功");
|
|
|
|
|
setSelectedRowKeys([]);
|
|
|
|
|
getMemberlist();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
return function (_x2) {
|
|
|
|
|
return _ref9.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}()),
|
|
|
|
|
dataSource: GroupAll === null || GroupAll === void 0 ? void 0 : GroupAll.list,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
|
|
|
className: "currenthover-primary",
|
|
|
|
|
children: ["\u79FB\u52A8\u5230", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-a-bianzu11 font12 ml5"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
type: "link",
|
|
|
|
|
className: "ml20",
|
|
|
|
|
danger: true,
|
|
|
|
|
style: {
|
|
|
|
|
padding: 0,
|
|
|
|
|
@ -1407,7 +1448,7 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: "\u6279\u91CF\u5220\u9664"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
|
|
rowKey: "id",
|
|
|
|
|
@ -1447,13 +1488,13 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
},
|
|
|
|
|
title: urlData.type === 1 ? "添加老师" : "添加学生",
|
|
|
|
|
OnOk: ( /*#__PURE__*/function () {
|
|
|
|
|
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(ids) {
|
|
|
|
|
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12(ids) {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
console.log(ids);
|
|
|
|
|
_context11.next = 3;
|
|
|
|
|
_context12.next = 3;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "legalResources/postAddMember",
|
|
|
|
|
payload: {
|
|
|
|
|
@ -1463,7 +1504,7 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
res = _context12.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
message/* default */.ZP.success("添加成功");
|
|
|
|
|
getMemberlist();
|
|
|
|
|
@ -1471,12 +1512,12 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}));
|
|
|
|
|
return function (_x2) {
|
|
|
|
|
return _ref9.apply(this, arguments);
|
|
|
|
|
return function (_x3) {
|
|
|
|
|
return _ref10.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}())
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_modal/* default */.Z, {
|
|
|
|
|
@ -1488,12 +1529,12 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
(0,utils/* handleCloseOrOpenModal */.MI)({}, dispatch);
|
|
|
|
|
},
|
|
|
|
|
confirmLoading: !!loading["legalResources/putTransferAdmin"],
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context12.next = 2;
|
|
|
|
|
_context13.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "legalResources/putTransferAdmin",
|
|
|
|
|
payload: {
|
|
|
|
|
@ -1502,7 +1543,7 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context12.sent;
|
|
|
|
|
res = _context13.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
message/* default */.ZP.success("转让成功");
|
|
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
|
|
@ -1513,9 +1554,9 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}, _callee13);
|
|
|
|
|
})),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -1556,16 +1597,16 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
formGroup.resetFields();
|
|
|
|
|
},
|
|
|
|
|
confirmLoading: !!loading["legalResources/putGroup"] || !!loading["legalResources/postGroup"],
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
formGroup.submit();
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}, _callee14);
|
|
|
|
|
})),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
|
|
form: formGroup,
|
|
|
|
|
@ -1573,12 +1614,12 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
size: "large",
|
|
|
|
|
colon: false,
|
|
|
|
|
onFinish: ( /*#__PURE__*/function () {
|
|
|
|
|
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(ValueAll) {
|
|
|
|
|
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15(ValueAll) {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
|
|
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context14.next = 2;
|
|
|
|
|
_context15.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: (activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "新建分班" ? "legalResources/postGroup" : "legalResources/putGroup",
|
|
|
|
|
payload: objectSpread2_default()({
|
|
|
|
|
@ -1586,7 +1627,7 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}, ValueAll)
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context14.sent;
|
|
|
|
|
res = _context15.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
message/* default */.ZP.success((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "新建分班" ? "创建成功" : "修改成功");
|
|
|
|
|
getGroupList();
|
|
|
|
|
@ -1595,12 +1636,12 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
return _context15.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee14);
|
|
|
|
|
}, _callee15);
|
|
|
|
|
}));
|
|
|
|
|
return function (_x3) {
|
|
|
|
|
return _ref12.apply(this, arguments);
|
|
|
|
|
return function (_x4) {
|
|
|
|
|
return _ref13.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}()),
|
|
|
|
|
children: [(activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "重命名" && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
@ -1628,11 +1669,11 @@ var Managements_Page = function Page(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Managements = ((0,_umi_production_exports.connect)(function (_ref13) {
|
|
|
|
|
var user = _ref13.user,
|
|
|
|
|
globalSetting = _ref13.globalSetting,
|
|
|
|
|
legalResources = _ref13.legalResources,
|
|
|
|
|
loading = _ref13.loading;
|
|
|
|
|
/* harmony default export */ var Managements = ((0,_umi_production_exports.connect)(function (_ref14) {
|
|
|
|
|
var user = _ref14.user,
|
|
|
|
|
globalSetting = _ref14.globalSetting,
|
|
|
|
|
legalResources = _ref14.legalResources,
|
|
|
|
|
loading = _ref14.loading;
|
|
|
|
|
return {
|
|
|
|
|
user: user,
|
|
|
|
|
globalSetting: globalSetting,
|