|
|
|
|
@ -450,7 +450,9 @@ var Config_SetPublic = function SetPublic(_ref) {
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/attachments/".concat(flies_id, ".json"), {
|
|
|
|
|
method: 'delete',
|
|
|
|
|
body: record
|
|
|
|
|
body: objectSpread2_default()(objectSpread2_default()({}, record), {}, {
|
|
|
|
|
is_all: 0
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
@ -539,7 +541,7 @@ var Config_SetPublic = function SetPublic(_ref) {
|
|
|
|
|
render: function render(text, item, i) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return deleteFlies(text === null || text === void 0 ? void 0 : text.id, i);
|
|
|
|
|
return deleteFlies(item === null || item === void 0 ? void 0 : item.id, i);
|
|
|
|
|
},
|
|
|
|
|
className: "c-red current",
|
|
|
|
|
children: "\u5220\u9664"
|
|
|
|
|
@ -863,12 +865,8 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/school_portals/remove_assets.json", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
asset_id: id,
|
|
|
|
|
school_id: school_id
|
|
|
|
|
}
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/attachments/".concat(id, ".json"), {
|
|
|
|
|
method: 'delete'
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
@ -968,7 +966,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
|
|
|
|
|
children: "\u8BBE\u7F6E"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
handleDelete(record.content, record.id);
|
|
|
|
|
handleDelete(record.title, record.id);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
cursor: 'pointer',
|