parent
41538e715d
commit
f33cde4e5f
File diff suppressed because it is too large
Load Diff
@ -1,436 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[6613],{
|
||||
|
||||
/***/ 19595:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/pages/Laboratory/LaboratoryCenter/index.tsx + 1 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ LaboratoryCenter; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(44742);
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/LaboratoryCenter/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var LaboratoryCentermodules = ({"header_div":"header_div___lqrir","header_title":"header_title___ETFY5","search":"search___UdFBf","searchIcon":"searchIcon___wON1S","add_Data":"add_Data___mYJOK","clear_Data":"clear_Data___giiZX"});
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(60231);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
||||
var table = __webpack_require__(17341);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(42288);
|
||||
// EXTERNAL MODULE: ./src/service/laboratory.ts
|
||||
var laboratory = __webpack_require__(66754);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/LaboratoryCenter/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Navigation = function Navigation(_ref) {
|
||||
var loading = _ref.loading;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
keyword = _useState2[0],
|
||||
setkeyword = _useState2[1];
|
||||
|
||||
//预约数据
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
tableData = _useState4[0],
|
||||
setTableData = _useState4[1];
|
||||
|
||||
//分页
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(100),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
total = _useState6[0],
|
||||
setTotal = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
page = _useState8[0],
|
||||
setPage = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(10),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
limit = _useState10[0],
|
||||
setLimit = _useState10[1];
|
||||
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState12 = slicedToArray_default()(_useState11, 2),
|
||||
isLoading = _useState12[0],
|
||||
setIsLoading = _useState12[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getData();
|
||||
}, [page, limit, keyword]);
|
||||
var getData = function getData() {
|
||||
(0,laboratory/* classroom_centers_query */.Jv)({
|
||||
page: page,
|
||||
limit: limit,
|
||||
keyword: keyword
|
||||
}).then(function (res) {
|
||||
var _res$data, _res$data2;
|
||||
setTableData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
|
||||
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
|
||||
});
|
||||
};
|
||||
var columns = [{
|
||||
title: '编号',
|
||||
dataIndex: 'number',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '实验室中心名称',
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '负责人',
|
||||
dataIndex: 'directors',
|
||||
ellipsis: true,
|
||||
render: function render(text, record) {
|
||||
var _record$directors, _record$directors2;
|
||||
return (record === null || record === void 0 || (_record$directors = record.directors) === null || _record$directors === void 0 ? void 0 : _record$directors.length) > 0 ? record === null || record === void 0 || (_record$directors2 = record.directors) === null || _record$directors2 === void 0 ? void 0 : _record$directors2.map(function (item, index) {
|
||||
var _record$directors3;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
padding: "0 10px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px'
|
||||
},
|
||||
children: ["\u8D1F\u8D23\u4EBA", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: (item === null || item === void 0 ? void 0 : item.name) || '--'
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px'
|
||||
},
|
||||
children: ["\u624B\u673A\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: (item === null || item === void 0 ? void 0 : item.phone) || '--'
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px',
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: ["\u90AE\u7BB1\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: (item === null || item === void 0 ? void 0 : item.email) || '--'
|
||||
})]
|
||||
})]
|
||||
}, index),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: (item === null || item === void 0 ? void 0 : item.name) + (index == (record === null || record === void 0 || (_record$directors3 = record.directors) === null || _record$directors3 === void 0 ? void 0 : _record$directors3.length) - 1 ? '' : '、')
|
||||
}, index)
|
||||
});
|
||||
}) : '--';
|
||||
}
|
||||
}, {
|
||||
title: '所属学院',
|
||||
dataIndex: 'department_name',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '操作',
|
||||
dataIndex: 'student_number9',
|
||||
ellipsis: true,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF",
|
||||
cursor: "pointer"
|
||||
},
|
||||
children: "\u7F16\u8F91"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#5F6367",
|
||||
marginLeft: "10px",
|
||||
cursor: "pointer"
|
||||
},
|
||||
children: "\u5220\u9664"
|
||||
})]
|
||||
});
|
||||
}
|
||||
}];
|
||||
var onShowSizeChange = function onShowSizeChange(page, size) {
|
||||
setPage(page);
|
||||
setLimit(size);
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: LaboratoryCentermodules.header_div,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: LaboratoryCentermodules.header_title,
|
||||
children: "\u5B9E\u9A8C\u5BA4\u4E2D\u5FC3"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u5B9E\u9A8C\u5BA4\u4E2D\u5FC3\u540D\u79F0/\u8D1F\u8D23\u4EBA\u59D3\u540D\u641C\u7D22",
|
||||
size: "large",
|
||||
className: LaboratoryCentermodules.search,
|
||||
value: keyword,
|
||||
onChange: function onChange(e) {
|
||||
setkeyword(e.target.value);
|
||||
},
|
||||
onSearch: function onSearch(value) {
|
||||
setkeyword(value);
|
||||
},
|
||||
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-sousuo9 font14 ".concat(LaboratoryCentermodules.searchIcon),
|
||||
onClick: function onClick() {
|
||||
return setkeyword(keyword);
|
||||
}
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: LaboratoryCentermodules.add_Data,
|
||||
children: "\u65B0\u5EFA\u5B9E\u9A8C\u5BA4\u4E2D\u5FC3"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: LaboratoryCentermodules.clear_Data,
|
||||
children: "\u6279\u91CF\u5BFC\u5165"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: LaboratoryCentermodules.clear_Data,
|
||||
children: "\u6279\u91CF\u5BFC\u51FA"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
style: {
|
||||
marginTop: '30px'
|
||||
},
|
||||
loading: isLoading,
|
||||
pagination: false,
|
||||
dataSource: tableData,
|
||||
columns: columns
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
||||
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
padding: '10px 7px 20px 7px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
style: {
|
||||
color: '#656F87'
|
||||
},
|
||||
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-light-primary",
|
||||
children: total
|
||||
}), "\u6761\u6570\u636E"]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
onChange: onShowSizeChange,
|
||||
defaultCurrent: 1,
|
||||
pageSizeOptions: ['10', '20', '50', '100'],
|
||||
current: page || 1,
|
||||
pageSize: limit || 10,
|
||||
defaultPageSize: 10,
|
||||
total: total
|
||||
})]
|
||||
}) : ''
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var LaboratoryCenter = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var loading = _ref2.loading,
|
||||
engineeringNavigtion = _ref2.engineeringNavigtion;
|
||||
return objectSpread2_default()({
|
||||
loading: loading
|
||||
}, engineeringNavigtion);
|
||||
})(Navigation));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66754:
|
||||
/*!***********************************!*\
|
||||
!*** ./src/service/laboratory.ts ***!
|
||||
\***********************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Ig: function() { return /* binding */ classroom_categories_update; },
|
||||
/* harmony export */ Jv: function() { return /* binding */ classroom_centers_query; },
|
||||
/* harmony export */ Mf: function() { return /* binding */ classroom_categories_create; },
|
||||
/* harmony export */ ZC: function() { return /* binding */ classroom_categories_delete; },
|
||||
/* harmony export */ mU: function() { return /* binding */ classroom_categories_query; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 14735);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//创建实验室分类
|
||||
function classroom_categories_create(_x) {
|
||||
return _classroom_categories_create.apply(this, arguments);
|
||||
}
|
||||
|
||||
//查看实验室分类
|
||||
function _classroom_categories_create() {
|
||||
_classroom_categories_create = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(data) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)('/api/yn_classrooms/classroom_categories.json', {
|
||||
method: 'post',
|
||||
body: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
|
||||
}));
|
||||
case 1:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return _classroom_categories_create.apply(this, arguments);
|
||||
}
|
||||
function classroom_categories_query(_x2) {
|
||||
return _classroom_categories_query.apply(this, arguments);
|
||||
}
|
||||
|
||||
//编辑实验室分类
|
||||
function _classroom_categories_query() {
|
||||
_classroom_categories_query = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)('/api/yn_classrooms/classroom_categories.json', {
|
||||
method: 'get',
|
||||
params: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
|
||||
}));
|
||||
case 1:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return _classroom_categories_query.apply(this, arguments);
|
||||
}
|
||||
function classroom_categories_update(_x3) {
|
||||
return _classroom_categories_update.apply(this, arguments);
|
||||
}
|
||||
//删除实验室分类
|
||||
function _classroom_categories_update() {
|
||||
_classroom_categories_update = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(data) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/classroom_categories/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
|
||||
method: 'put',
|
||||
body: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
|
||||
}));
|
||||
case 1:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee3);
|
||||
}));
|
||||
return _classroom_categories_update.apply(this, arguments);
|
||||
}
|
||||
function classroom_categories_delete(_x4) {
|
||||
return _classroom_categories_delete.apply(this, arguments);
|
||||
}
|
||||
|
||||
//查看实验室中心列表
|
||||
function _classroom_categories_delete() {
|
||||
_classroom_categories_delete = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(data) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
|
||||
while (1) switch (_context4.prev = _context4.next) {
|
||||
case 0:
|
||||
return _context4.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/yn_classrooms/classroom_categories/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
|
||||
method: 'delete',
|
||||
body: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
|
||||
}));
|
||||
case 1:
|
||||
case "end":
|
||||
return _context4.stop();
|
||||
}
|
||||
}, _callee4);
|
||||
}));
|
||||
return _classroom_categories_delete.apply(this, arguments);
|
||||
}
|
||||
function classroom_centers_query(_x5) {
|
||||
return _classroom_centers_query.apply(this, arguments);
|
||||
}
|
||||
function _classroom_centers_query() {
|
||||
_classroom_centers_query = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(params) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
|
||||
while (1) switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
return _context5.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)('/api/yn_classrooms/classroom_centers.json', {
|
||||
method: 'get',
|
||||
params: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
|
||||
}));
|
||||
case 1:
|
||||
case "end":
|
||||
return _context5.stop();
|
||||
}
|
||||
}, _callee5);
|
||||
}));
|
||||
return _classroom_centers_query.apply(this, arguments);
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,176 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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/Laboratory/MyLaboratory/index.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.header_div___LVX8g {
|
||||
display: flex;
|
||||
}
|
||||
.header_div___LVX8g .header_title___Do4wf {
|
||||
height: 38px;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 38px;
|
||||
}
|
||||
.search___ko4yU {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 19px;
|
||||
height: 38px;
|
||||
width: 418px;
|
||||
padding-left: 8px;
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
margin-left: auto;
|
||||
}
|
||||
.search___ko4yU span[class~='ant-input-search-icon'] {
|
||||
display: none;
|
||||
}
|
||||
.search___ko4yU [class~='ant-input-affix-wrapper'] {
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
}
|
||||
.search___ko4yU [class~='ant-input-affix-wrapper'] {
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.search___ko4yU span[class~='ant-input-group-addon'] {
|
||||
display: none;
|
||||
}
|
||||
.search___ko4yU .searchIcon___yBH7g {
|
||||
margin-right: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.search___ko4yU input {
|
||||
background-color: #f6f7f9;
|
||||
}
|
||||
.add_Data___KK34L {
|
||||
width: 110px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 3px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.clear_Data___ZIIz9 {
|
||||
width: 88px;
|
||||
height: 32px;
|
||||
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #3061D0;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 3px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.upload_modal___ubHlR .modal_moban___XbOLn {
|
||||
width: 450px;
|
||||
height: 114px;
|
||||
background: #F6F7F9;
|
||||
border-radius: 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.upload_modal___ubHlR .xiazai___IZfWx {
|
||||
width: 146px;
|
||||
height: 32px;
|
||||
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%), #F6F7F9;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #3061D0;
|
||||
line-height: 32px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.upload_modal___ubHlR .modal_shangchuan___QZNSG {
|
||||
width: 450px;
|
||||
padding-bottom: 20px;
|
||||
background: #F6F7F9;
|
||||
border-radius: 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.upload_modal___ubHlR .modal_shangchuan___QZNSG [class~='ant-upload-drag'] {
|
||||
height: 100px !important;
|
||||
width: 410px !important;
|
||||
margin: auto !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
.upload_modal___ubHlR .modal_shangchuan___QZNSG .shangchuan___wmbUM {
|
||||
width: 96px;
|
||||
height: 32px;
|
||||
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%), #F6F7F9;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #3061D0;
|
||||
line-height: 32px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin: auto;
|
||||
}
|
||||
.upload_modal___ubHlR .modal_shangchuan___QZNSG .geshi___EkfuA {
|
||||
width: 391px;
|
||||
height: 20px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
margin: 10px auto 0 auto;
|
||||
}
|
||||
.formWrap___MYHHs [class~='ant-input'] {
|
||||
height: 36px !important;
|
||||
line-height: 36px !important;
|
||||
}
|
||||
.formWrap___MYHHs [class~='ant-select-selector'] {
|
||||
min-height: 36px !important;
|
||||
line-height: 36px !important;
|
||||
}
|
||||
.formWrap___MYHHs [class~='ant-select-selection-item'] {
|
||||
min-height: 36px !important;
|
||||
line-height: 36px !important;
|
||||
}
|
||||
.formWrap___MYHHs [class~='ant-form-item'] [class~='ant-form-item-label'] label {
|
||||
height: 36px !important;
|
||||
line-height: 36px !important;
|
||||
}
|
||||
.tag_style___H4cnt {
|
||||
height: 28px ;
|
||||
line-height: 28px ;
|
||||
background: #F5F5F5;
|
||||
border-radius: 2px ;
|
||||
}
|
||||
.fuzeren___f4nsv:hover {
|
||||
color: #165DFF;
|
||||
}
|
||||
|
||||
@ -1,397 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98936],{
|
||||
|
||||
/***/ 94944:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./src/pages/Laboratory/MyLaboratory/index.tsx + 1 modules ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ MyLaboratory; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(44742);
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/MyLaboratory/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var MyLaboratorymodules = ({"header_div":"header_div___LVX8g","header_title":"header_title___Do4wf","search":"search___ko4yU","searchIcon":"searchIcon___yBH7g","search_params":"search_params___HAstr","clear_Data":"clear_Data___ZIIz9"});
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(60231);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
||||
var es_form = __webpack_require__(78241);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
||||
var es_select = __webpack_require__(57809);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
||||
var table = __webpack_require__(17341);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(42288);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Laboratory/MyLaboratory/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Navigation = function Navigation(_ref) {
|
||||
var loading = _ref.loading;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
inputValue = _useState2[0],
|
||||
setInputValue = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
keyword = _useState4[0],
|
||||
setkeyword = _useState4[1];
|
||||
|
||||
//预约数据
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)([{}]),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
tableData = _useState6[0],
|
||||
setTableData = _useState6[1];
|
||||
var columns = [{
|
||||
title: '实验室名称',
|
||||
dataIndex: 'student_number1',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '所属实验室中心',
|
||||
dataIndex: 'student_number2',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '实验室分类',
|
||||
dataIndex: 'student_number3',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '实验室性质',
|
||||
dataIndex: 'student_number4',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '使用总面积',
|
||||
dataIndex: 'student_number5',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '工位总数量',
|
||||
dataIndex: 'student_number6',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '房间名称',
|
||||
dataIndex: 'student_number7',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '负责人',
|
||||
dataIndex: 'student_number13',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
padding: "0 10px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px'
|
||||
},
|
||||
children: ["\u8D1F\u8D23\u4EBA", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: "\u65B9\u5B5D\u5B7A"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px'
|
||||
},
|
||||
children: ["\u624B\u673A\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: "13812341234"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: '10px',
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: ["\u90AE\u7BB1\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '10px'
|
||||
},
|
||||
children: "xixixi@qq.com"
|
||||
})]
|
||||
})]
|
||||
}),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '建立时间',
|
||||
dataIndex: 'student_number14',
|
||||
ellipsis: true,
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: text,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: text || '--'
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '操作',
|
||||
dataIndex: 'student_number9',
|
||||
ellipsis: true,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF",
|
||||
cursor: "pointer"
|
||||
},
|
||||
children: "\u7F16\u8F91"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF",
|
||||
marginLeft: "10px",
|
||||
cursor: "pointer"
|
||||
},
|
||||
children: "\u5220\u9664"
|
||||
})]
|
||||
});
|
||||
}
|
||||
}];
|
||||
|
||||
//分页
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(100),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
total = _useState8[0],
|
||||
setTotal = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
page = _useState10[0],
|
||||
setPage = _useState10[1];
|
||||
var _useState11 = (0,_react_17_0_2_react.useState)(10),
|
||||
_useState12 = slicedToArray_default()(_useState11, 2),
|
||||
limit = _useState12[0],
|
||||
setLimit = _useState12[1];
|
||||
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState14 = slicedToArray_default()(_useState13, 2),
|
||||
isLoading = _useState14[0],
|
||||
setIsLoading = _useState14[1];
|
||||
|
||||
//实验室中心
|
||||
var _useState15 = (0,_react_17_0_2_react.useState)([{
|
||||
label: '全部',
|
||||
value: ''
|
||||
}, {
|
||||
label: '中心1',
|
||||
value: '1'
|
||||
}, {
|
||||
label: '中心2',
|
||||
value: '2'
|
||||
}]),
|
||||
_useState16 = slicedToArray_default()(_useState15, 2),
|
||||
laboratoryCenters = _useState16[0],
|
||||
setLaboratoryCenters = _useState16[1];
|
||||
var _useState17 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState18 = slicedToArray_default()(_useState17, 2),
|
||||
laboratoryCenter = _useState18[0],
|
||||
setLaboratoryCenter = _useState18[1];
|
||||
var onShowSizeChange = function onShowSizeChange(page, size) {
|
||||
setPage(page);
|
||||
setLimit(size);
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: MyLaboratorymodules.header_div,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: MyLaboratorymodules.header_title,
|
||||
children: "\u6211\u7684\u5B9E\u9A8C\u5BA4"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u5B9E\u9A8C\u5BA4\u540D\u79F0/\u8D1F\u8D23\u4EBA\u59D3\u540D\u641C\u7D22",
|
||||
size: "large",
|
||||
className: MyLaboratorymodules.search,
|
||||
value: inputValue,
|
||||
onChange: function onChange(e) {
|
||||
if (e.target.value) {
|
||||
setInputValue(e.target.value);
|
||||
} else {
|
||||
setkeyword(e.target.value);
|
||||
setInputValue(e.target.value);
|
||||
}
|
||||
},
|
||||
onSearch: function onSearch(value) {
|
||||
setkeyword(value);
|
||||
},
|
||||
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-sousuo9 font14 ".concat(MyLaboratorymodules.searchIcon),
|
||||
onClick: function onClick() {
|
||||
return setkeyword(inputValue);
|
||||
}
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: MyLaboratorymodules.search_params,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u5B9E\u9A8C\u5BA4\u4E2D\u5FC3",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
||||
style: {
|
||||
width: 160
|
||||
},
|
||||
defaultValue: laboratoryCenter,
|
||||
value: laboratoryCenter,
|
||||
onChange: function onChange(e) {
|
||||
setLaboratoryCenter(e);
|
||||
},
|
||||
children: laboratoryCenters === null || laboratoryCenters === void 0 ? void 0 : laboratoryCenters.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
||||
value: item === null || item === void 0 ? void 0 : item.value,
|
||||
children: item === null || item === void 0 ? void 0 : item.label
|
||||
}, index);
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: MyLaboratorymodules.clear_Data,
|
||||
style: {
|
||||
marginLeft: "auto"
|
||||
},
|
||||
children: "\u65B0\u5EFA\u5B9E\u9A8C\u5BA4"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: MyLaboratorymodules.clear_Data,
|
||||
children: "\u6279\u91CF\u5BFC\u5165"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: MyLaboratorymodules.clear_Data,
|
||||
children: "\u6279\u91CF\u5BFC\u51FA"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
loading: isLoading,
|
||||
pagination: false,
|
||||
dataSource: tableData,
|
||||
columns: columns
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
||||
children: total > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
padding: '10px 7px 20px 7px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
style: {
|
||||
color: '#656F87'
|
||||
},
|
||||
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-light-primary",
|
||||
children: total
|
||||
}), "\u6761\u6570\u636E"]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
onChange: onShowSizeChange,
|
||||
defaultCurrent: 1,
|
||||
pageSizeOptions: ['10', '20', '50', '100'],
|
||||
current: page || 1,
|
||||
pageSize: limit || 10,
|
||||
defaultPageSize: 10,
|
||||
total: total
|
||||
})]
|
||||
}) : ''
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var MyLaboratory = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var loading = _ref2.loading,
|
||||
engineeringNavigtion = _ref2.engineeringNavigtion;
|
||||
return objectSpread2_default()({
|
||||
loading: loading
|
||||
}, engineeringNavigtion);
|
||||
})(Navigation));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,70 +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/Laboratory/MyLaboratory/index.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.header_div___LVX8g {
|
||||
display: flex;
|
||||
}
|
||||
.header_div___LVX8g .header_title___Do4wf {
|
||||
height: 38px;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 38px;
|
||||
}
|
||||
.search___ko4yU {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 19px;
|
||||
height: 38px;
|
||||
width: 418px;
|
||||
padding-left: 8px;
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
margin-left: auto;
|
||||
}
|
||||
.search___ko4yU span[class~='ant-input-search-icon'] {
|
||||
display: none;
|
||||
}
|
||||
.search___ko4yU [class~='ant-input-affix-wrapper'] {
|
||||
background-color: #f6f7f9;
|
||||
border: none;
|
||||
}
|
||||
.search___ko4yU [class~='ant-input-affix-wrapper'] {
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.search___ko4yU span[class~='ant-input-group-addon'] {
|
||||
display: none;
|
||||
}
|
||||
.search___ko4yU .searchIcon___yBH7g {
|
||||
margin-right: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.search___ko4yU input {
|
||||
background-color: #f6f7f9;
|
||||
}
|
||||
.search_params___HAstr {
|
||||
display: flex;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.search_params___HAstr .clear_Data___ZIIz9 {
|
||||
padding: 0px 10px;
|
||||
height: 32px;
|
||||
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #BACFFE;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #3061D0;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin-top: 3px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue