Auto Submit

dev_local_v9_test2
autosubmit 2 years ago
parent ffa38f8e65
commit 0cb7d3f660

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

@ -801,13 +801,27 @@ var Navigation = function Navigation(_ref) {
};
},
onChange: function onChange(id, info) {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
if ((id === null || id === void 0 ? void 0 : id.length) == 0) {
var idArr = tableData.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
});
var tData = tableData.filter(function (obj) {
return idArr.includes(obj.id);
});
setModalTableData(tData);
var rkeys = rowKeys.filter(function (x) {
return !idArr.includes(x);
});
setRowKeys(rkeys);
} else {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
}
},
onSelect: function onSelect(record, selected) {
if (selected) {

@ -1100,13 +1100,27 @@ var Navigation = function Navigation(_ref) {
};
},
onChange: function onChange(id, info) {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
if ((id === null || id === void 0 ? void 0 : id.length) == 0) {
var idArr = tableData.map(function (item) {
return item === null || item === void 0 ? void 0 : item.id;
});
var tData = tableData.filter(function (obj) {
return idArr.includes(obj.id);
});
setModalTableData(tData);
var rkeys = rowKeys.filter(function (x) {
return !idArr.includes(x);
});
setRowKeys(rkeys);
} else {
var updatedInfoArr = [].concat(toConsumableArray_default()(modalTableData), toConsumableArray_default()(info)).filter(function (item, index, arr) {
return arr.findIndex(function (item2) {
return (item2 === null || item2 === void 0 ? void 0 : item2.id) === item.id;
}) === index;
});
setModalTableData(updatedInfoArr);
setRowKeys(Array.from(new Set([].concat(toConsumableArray_default()(rowKeys), toConsumableArray_default()(id)))));
}
},
onSelect: function onSelect(record, selected) {
if (selected) {

@ -489,6 +489,8 @@ var tooltip = __webpack_require__(6848);
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(90508);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
@ -499,6 +501,8 @@ var util = __webpack_require__(73400);
var PreviewAll = __webpack_require__(51141);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(70917);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(11934);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/Procure/ViewModal/index.tsx
@ -512,6 +516,7 @@ var jsx_runtime = __webpack_require__(37712);
var unitType = {
1: '个',
2: '套',
@ -589,7 +594,15 @@ var ViewModal = function ViewModal(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return _onCancel();
(0,materials/* purchases_review */.AY)({
id: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.id,
type: 2
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
}
});
_onCancel();
},
children: "\u540C\u610F"
})]

@ -359,7 +359,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '申请实验室',
dataIndex: 'classroom_place_title',
dataIndex: 'classroom_title',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -410,7 +410,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '使用实验室',
dataIndex: 'classroom_title',
dataIndex: 'classroom_place_title',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {

@ -27,6 +27,8 @@ var tooltip = __webpack_require__(6848);
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(90508);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
@ -37,6 +39,8 @@ var util = __webpack_require__(73400);
var PreviewAll = __webpack_require__(51141);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(70917);
// EXTERNAL MODULE: ./src/service/materials.ts
var materials = __webpack_require__(11934);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/Procure/ViewModal/index.tsx
@ -50,6 +54,7 @@ var jsx_runtime = __webpack_require__(37712);
var unitType = {
1: '个',
2: '套',
@ -127,7 +132,15 @@ var ViewModal = function ViewModal(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return _onCancel();
(0,materials/* purchases_review */.AY)({
id: viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.id,
type: 2
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
}
});
_onCancel();
},
children: "\u540C\u610F"
})]
@ -685,7 +698,7 @@ var Navigation = function Navigation(_ref) {
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottomLeft",
title: text,
title: statusType[text],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: statusType[text]
})
@ -931,7 +944,8 @@ var Navigation = function Navigation(_ref) {
openViewModal: openViewModal,
viewInfo: viewData,
onCancel: function onCancel() {
return setOpenViewModal(false);
setOpenViewModal(false);
getData(false);
},
onReject: function onReject() {
setOpenViewModal(false);

@ -660,7 +660,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '申请实验室',
dataIndex: 'classroom_place_title',
dataIndex: 'classroom_title',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -711,7 +711,7 @@ var Navigation = function Navigation(_ref) {
}
}, {
title: '使用实验室',
dataIndex: 'classroom_title',
dataIndex: 'classroom_place_title',
ellipsis: true
}, {
title: '使用实验室房间',

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