|
|
|
|
@ -1545,6 +1545,7 @@ var authority = __webpack_require__(58696);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Member_excluded = ["classroomList", "globalSetting", "virtualSpaces", "user", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1593,15 +1594,15 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
setparams = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([{
|
|
|
|
|
name: '已审核',
|
|
|
|
|
type: '0'
|
|
|
|
|
type: 'agreed'
|
|
|
|
|
}, {
|
|
|
|
|
name: '待审核',
|
|
|
|
|
type: '1'
|
|
|
|
|
type: 'pending'
|
|
|
|
|
}]),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
tabs = _useState10[0],
|
|
|
|
|
setTabs = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)('0'),
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)('agreed'),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
activeTabs = _useState12[0],
|
|
|
|
|
setActiveTabs = _useState12[1];
|
|
|
|
|
@ -1617,7 +1618,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
_context4.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/members.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params
|
|
|
|
|
params: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
status: activeTabs
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context4.sent;
|
|
|
|
|
@ -1657,11 +1660,11 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getDataSets();
|
|
|
|
|
}, []);
|
|
|
|
|
}, [activeTabs]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (classroomList.actionTabs.key === '刷新数据') {
|
|
|
|
|
getDataSets();
|
|
|
|
|
setactivity('1');
|
|
|
|
|
// setactivity('1')
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'virtualSpaces/getVirtualSpacesDetails',
|
|
|
|
|
payload: {
|
|
|
|
|
@ -1684,7 +1687,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
position: 'relative'
|
|
|
|
|
},
|
|
|
|
|
children: [item.name, "\uFF080\uFF09", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: [item.name, "\uFF08", item.name == '已审核' ? cousesList === null || cousesList === void 0 ? void 0 : cousesList.member_count : cousesList === null || cousesList === void 0 ? void 0 : cousesList.apply_total_count, "\uFF09", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "".concat(activeTabs == item.type ? Membermodules.active_line : '')
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -1733,7 +1736,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: [((item === null || item === void 0 ? void 0 : item.is_creator) && user.userInfo.user_id === item.user_id || (0,authority/* isSuperAdmins */.Ny)()) && index === 0 && activitykey === '1' && (item === null || item === void 0 ? void 0 : item.is_creator) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [((item === null || item === void 0 ? void 0 : item.is_creator) && user.userInfo.user_id === item.user_id || (0,authority/* isSuperAdmins */.Ny)()) && index === 0 && activeTabs === 'agreed' && (item === null || item === void 0 ? void 0 : item.is_creator) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
@ -1749,7 +1752,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-genghuanguanliyuan mr5 font14"
|
|
|
|
|
}), "\u66F4\u6362\u7BA1\u7406\u5458"]
|
|
|
|
|
}), (item === null || item === void 0 ? void 0 : item.can_remove) && activitykey === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
}), (item === null || item === void 0 ? void 0 : item.can_remove) && activeTabs === 'agreed' && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "font14",
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
@ -1800,7 +1803,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-piliangshanchubeifen mr5 font14"
|
|
|
|
|
}), "\u5220\u9664\u6210\u5458"]
|
|
|
|
|
}), !(item !== null && item !== void 0 && item.is_creator) && activitykey === '2' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), !(item !== null && item !== void 0 && item.is_creator) && activeTabs === 'pending' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
},
|
|
|
|
|
@ -1823,7 +1826,14 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
getappling_member_list();
|
|
|
|
|
// getappling_member_list()
|
|
|
|
|
getDataSets();
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'virtualSpaces/getVirtualSpacesDetails',
|
|
|
|
|
payload: {
|
|
|
|
|
id: query.virtual_spacesId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -1856,7 +1866,14 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
getappling_member_list();
|
|
|
|
|
// getappling_member_list()
|
|
|
|
|
getDataSets();
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'virtualSpaces/getVirtualSpacesDetails',
|
|
|
|
|
payload: {
|
|
|
|
|
id: query.virtual_spacesId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -1886,11 +1903,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
hideOnSinglePage: true,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
params.page = e;
|
|
|
|
|
if (activitykey === '1') {
|
|
|
|
|
getDataSets();
|
|
|
|
|
} else {
|
|
|
|
|
getappling_member_list();
|
|
|
|
|
}
|
|
|
|
|
getDataSets();
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
|