|
|
|
|
@ -76,7 +76,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
var _umi_production_exports = __webpack_require__(44742);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Materials/Entry/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Entrymodules = ({"header_div":"header_div___HMlol","header_title":"header_title___JUhMA","search":"search___j2_OT","searchIcon":"searchIcon___eX8nB","clear_Data":"clear_Data___Rb0QM","infoItem":"infoItem___ibpAn"});
|
|
|
|
|
/* harmony default export */ var Entrymodules = ({"header_div":"header_div___HMlol","header_title":"header_title___JUhMA","search":"search___j2_OT","searchIcon":"searchIcon___eX8nB","clear_Data":"clear_Data___Rb0QM","infoItem":"infoItem___ibpAn","file_list":"file_list___GDpfw","file_list_title":"file_list_title___Du77A","file_list_size":"file_list_size___nMJsO"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
|
|
var modal = __webpack_require__(43418);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
@ -161,7 +161,7 @@ var EditModal = function EditModal(_ref) {
|
|
|
|
|
title: '',
|
|
|
|
|
user_name: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.username,
|
|
|
|
|
phone: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.phone,
|
|
|
|
|
date: '',
|
|
|
|
|
date: dayjs_min_default()(),
|
|
|
|
|
description: '',
|
|
|
|
|
attachment: ''
|
|
|
|
|
};
|
|
|
|
|
@ -317,6 +317,14 @@ var EditModal = function EditModal(_ref) {
|
|
|
|
|
user: user
|
|
|
|
|
};
|
|
|
|
|
})(EditModal));
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
|
|
|
var util = __webpack_require__(63834);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
|
|
var env = __webpack_require__(33259);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
|
|
|
|
|
var PreviewAll = __webpack_require__(22524);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
|
|
|
|
|
var RenderHtml = __webpack_require__(28327);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Materials/Entry/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -333,7 +341,12 @@ var EditModal = function EditModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Navigation = function Navigation(_ref) {
|
|
|
|
|
var _viewData$attachments;
|
|
|
|
|
var loading = _ref.loading;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
@ -356,22 +369,29 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
tableData = _useState10[0],
|
|
|
|
|
setTableData = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
content: "",
|
|
|
|
|
type: ""
|
|
|
|
|
}),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
editVisible = _useState12[0],
|
|
|
|
|
setEditVisible = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
data = _useState12[0],
|
|
|
|
|
setData = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
centerId = _useState14[0],
|
|
|
|
|
setCenterId = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
editVisible = _useState14[0],
|
|
|
|
|
setEditVisible = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
|
|
viewVisible = _useState16[0],
|
|
|
|
|
setViewVisible = _useState16[1];
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
centerId = _useState16[0],
|
|
|
|
|
setCenterId = _useState16[1];
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
viewData = _useState18[0],
|
|
|
|
|
setViewData = _useState18[1];
|
|
|
|
|
viewVisible = _useState18[0],
|
|
|
|
|
setViewVisible = _useState18[1];
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
|
|
viewData = _useState20[0],
|
|
|
|
|
setViewData = _useState20[1];
|
|
|
|
|
var columns = [{
|
|
|
|
|
title: '序号',
|
|
|
|
|
render: function render(text, record, index) {
|
|
|
|
|
@ -510,7 +530,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u7533\u8D2D\u7F16\u53F7\u8FDB\u884C\u641C\u7D22",
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u91C7\u8D2D\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
|
|
|
|
|
size: "large",
|
|
|
|
|
className: Entrymodules.search,
|
|
|
|
|
value: keyword,
|
|
|
|
|
@ -583,7 +603,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
setEditVisible(false);
|
|
|
|
|
getData(true);
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
title: "\u8D26\u5355\u8BE6\u60C5",
|
|
|
|
|
centered: true,
|
|
|
|
|
@ -595,61 +615,139 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
return setViewVisible(false);
|
|
|
|
|
},
|
|
|
|
|
width: 600,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u540D\u79F0\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.title) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u4EBA\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.user_name) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u4EBA\u7535\u8BDD\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.phone) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u65F6\u95F4\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: viewData !== null && viewData !== void 0 && viewData.date ? dayjs_min_default()(viewData === null || viewData === void 0 ? void 0 : viewData.date).format('YYYY-MM-DD HH:mm') : '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
maxHeight: '500px',
|
|
|
|
|
overflowY: 'auto'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u540D\u79F0\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.title) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u4EBA\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.user_name) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u4EBA\u7535\u8BDD\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.phone) || '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u91C7\u8D2D\u65F6\u95F4\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: viewData !== null && viewData !== void 0 && viewData.date ? dayjs_min_default()(viewData === null || viewData === void 0 ? void 0 : viewData.date).format('YYYY-MM-DD HH:mm') : '--'
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.infoItem,
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
marginBottom: '20px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u5907\u6CE8\u8BF4\u660E\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '460px',
|
|
|
|
|
textAlign: "left"
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
children: "\u5907\u6CE8\u8BF4\u660E\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '460px',
|
|
|
|
|
textAlign: "left",
|
|
|
|
|
marginTop: '5px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
value: (viewData === null || viewData === void 0 ? void 0 : viewData.description) || ''
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), viewData === null || viewData === void 0 || (_viewData$attachments = viewData.attachments) === null || _viewData$attachments === void 0 ? void 0 : _viewData$attachments.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Entrymodules.file_list,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Entrymodules.file_list_title,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-fujian font12 mr5"
|
|
|
|
|
}), item === null || item === void 0 ? void 0 : item.title]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Entrymodules.file_list_size,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.filesize
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '20px',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
lineHeight: '24px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _item$url;
|
|
|
|
|
(0,util/* downLoadLink */.Nd)('', "".concat(env/* default */.Z.API_SERVER).concat(item === null || item === void 0 || (_item$url = item.url) === null || _item$url === void 0 ? void 0 : _item$url.replace('disposition=inline', '')));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-xiazai4 font12 mr5"
|
|
|
|
|
}), "\u4E0B\u8F7D"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '20px',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
lineHeight: '24px',
|
|
|
|
|
color: '#50A760'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setData({
|
|
|
|
|
type: item === null || item === void 0 ? void 0 : item.file_type,
|
|
|
|
|
content: env/* default */.Z.API_SERVER + (item === null || item === void 0 ? void 0 : item.url)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-yulan font12 mr5"
|
|
|
|
|
}), "\u9884\u89C8"]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
|
|
|
|
|
close: true,
|
|
|
|
|
data: data === null || data === void 0 ? void 0 : data.content,
|
|
|
|
|
type: data === null || data === void 0 ? void 0 : data.type,
|
|
|
|
|
hasMask: true,
|
|
|
|
|
monacoEditor: {
|
|
|
|
|
language: "txt",
|
|
|
|
|
onChange: function onChange() {},
|
|
|
|
|
options: {
|
|
|
|
|
readOnly: true,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
minimap: {
|
|
|
|
|
enabled: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: (viewData === null || viewData === void 0 ? void 0 : viewData.description) || '--'
|
|
|
|
|
onClose: function onClose() {
|
|
|
|
|
setData({
|
|
|
|
|
content: "",
|
|
|
|
|
type: ""
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|