autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 28eafc9e97
commit d3a1a3ff82

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

@ -13,6 +13,12 @@ __webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ MyReceive_ViewModal; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// 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);
@ -29,8 +35,10 @@ var es_button = __webpack_require__(3113);
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(2595);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(28872);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(82710);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/MyReceive/ViewModal/index.tsx
@ -42,6 +50,9 @@ var jsx_runtime = __webpack_require__(37712);
var unitType = {
1: '个',
2: '套',
@ -64,8 +75,9 @@ var ViewModal = function ViewModal(_ref) {
type: ""
}),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
previewData = _useState2[0],
setPreviewData = _useState2[1];
var monacoValueRef = (0,_react_17_0_2_react.useRef)();
var columns = [{
title: '物资编码',
dataIndex: 'number',
@ -100,148 +112,218 @@ var ViewModal = function ViewModal(_ref) {
dataIndex: 'apply_num',
ellipsis: true
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ViewModalmodules.my_modal,
open: openViewModal,
title: "\u7533\u8BF7\u5185\u5BB9",
width: "1000px",
footer: showButton ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
var preview = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(item) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!((item === null || item === void 0 ? void 0 : item.file_type) === "txt")) {
_context.next = 5;
break;
}
_context.next = 3;
return (0,fetch/* default */.ZP)(item === null || item === void 0 ? void 0 : item.url, {
method: "get",
headers: {
"Content-Type": "application/xml"
}
});
case 3:
res = _context.sent;
monacoValueRef.current = res;
case 5:
setPreviewData({
type: item === null || item === void 0 ? void 0 : item.file_type,
content: item === null || item === void 0 ? void 0 : item.url
});
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function preview(_x) {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ViewModalmodules.my_modal,
open: openViewModal,
title: "\u7533\u8BF7\u5185\u5BB9",
width: "1000px",
footer: showButton ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
buttonMethod('驳回', viewInfo);
},
children: "\u9A73\u56DE"
}, "cancel"), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
buttonMethod('同意', viewInfo);
},
children: "\u540C\u610F"
}, "ok")]
}) : null,
onCancel: function onCancel(e) {
_onCancel();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
buttonMethod('驳回', viewInfo);
type: "link",
style: {
position: 'absolute',
right: '70px',
top: '18px'
},
children: "\u9A73\u56DE"
}, "cancel"), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
buttonMethod('同意', viewInfo);
},
children: "\u540C\u610F"
}, "ok")]
}) : null,
onCancel: function onCancel(e) {
_onCancel();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "link",
style: {
position: 'absolute',
right: '70px',
top: '18px'
},
onClick: function onClick() {
var _viewInfo$prove_files;
modal/* default */.Z.confirm({
title: '使用人证明',
icon: null,
width: 500,
closable: true,
centered: true,
footer: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10 mb20",
children: viewInfo === null || viewInfo === void 0 || (_viewInfo$prove_files = viewInfo.prove_files) === null || _viewInfo$prove_files === void 0 || (_viewInfo$prove_files = _viewInfo$prove_files.prove_files) === null || _viewInfo$prove_files === void 0 ? void 0 : _viewInfo$prove_files.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "align-center current mt10",
style: {
backgroundColor: "#F6F7F9",
justifyContent: 'space-between',
padding: '0 10px'
},
onClick: function onClick() {
(0,util/* downLoadLink */.Nd)(item === null || item === void 0 ? void 0 : item.title, item === null || item === void 0 ? void 0 : item.url);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian3 font14",
style: {
color: '#000',
marginRight: '6px'
var _viewInfo$prove_files;
modal/* default */.Z.confirm({
title: '使用人证明',
icon: null,
width: 500,
closable: true,
centered: true,
footer: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10 mb20",
children: viewInfo === null || viewInfo === void 0 || (_viewInfo$prove_files = viewInfo.prove_files) === null || _viewInfo$prove_files === void 0 || (_viewInfo$prove_files = _viewInfo$prove_files.prove_files) === null || _viewInfo$prove_files === void 0 ? void 0 : _viewInfo$prove_files.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "align-center current mt10",
style: {
backgroundColor: "#F6F7F9",
justifyContent: 'space-between',
padding: '0 10px'
},
onClick: function onClick() {
if (item !== null && item !== void 0 && item.url) {
preview({
file_type: item === null || item === void 0 ? void 0 : item.file_type,
url: item === null || item === void 0 ? void 0 : item.url
});
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
// downLoadLink(item?.title,item?.url)
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian3 font14",
style: {
color: '#000',
marginRight: '6px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#3061D0",
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#3061D0",
color: '#ADB2B8',
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.title
children: item === null || item === void 0 ? void 0 : item.filesize
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#ADB2B8',
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.filesize
})]
}, index);
}, index);
})
})
})
});
},
children: "\u4F7F\u7528\u4EBA\u8BC1\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
});
},
children: "\u4F7F\u7528\u4EBA\u8BC1\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px"
},
className: ViewModalmodules.content_div,
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4"
}), viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d = viewInfo.classroom_directors) === null || _viewInfo$classroom_d === void 0 ? void 0 : _viewInfo$classroom_d.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d2 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d2 === void 0 ? void 0 : _viewInfo$classroom_d2.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : '')]
});
}) : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px",
marginLeft: '40px'
maxWidth: "400px"
},
className: ViewModalmodules.content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u5B9E\u9A8C\u5BA4\u8D1F\u8D23\u4EBA"
}), (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d3 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d3 === void 0 ? void 0 : _viewInfo$classroom_d3.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d4 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d4 === void 0 ? void 0 : _viewInfo$classroom_d4.map(function (item, key) {
var _viewInfo$classroom_d5;
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4"
}), viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d = viewInfo.classroom_directors) === null || _viewInfo$classroom_d === void 0 ? void 0 : _viewInfo$classroom_d.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d2 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d2 === void 0 ? void 0 : _viewInfo$classroom_d2.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : ''), key == (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d5 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d5 === void 0 ? void 0 : _viewInfo$classroom_d5.length) - 1 ? '' : '、']
}, key);
}) : '--']
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : '')]
});
}) : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px",
marginLeft: '40px'
},
className: ViewModalmodules.content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u5B9E\u9A8C\u5BA4\u8D1F\u8D23\u4EBA"
}), (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d3 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d3 === void 0 ? void 0 : _viewInfo$classroom_d3.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d4 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d4 === void 0 ? void 0 : _viewInfo$classroom_d4.map(function (item, key) {
var _viewInfo$classroom_d5;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : ''), key == (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d5 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d5 === void 0 ? void 0 : _viewInfo$classroom_d5.length) - 1 ? '' : '、']
}, key);
}) : '--']
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 949,
marginBottom: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.substances) || [],
columns: columns,
scroll: {
y: 400
},
rowKey: "id"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 949,
marginBottom: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.substances) || [],
columns: columns,
scroll: {
y: 400
},
rowKey: "id"
})
})]
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: previewData === null || previewData === void 0 ? void 0 : previewData.content,
type: previewData === null || previewData === void 0 ? void 0 : previewData.type,
style: {
zIndex: 99999
},
hasMask: true,
monacoEditor: {
value: monacoValueRef.current,
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onImgDimensions: null,
onClose: function onClose() {
setPreviewData({
content: "",
type: ""
});
}
})]
});
};

@ -58,6 +58,12 @@ __webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ MyReceive_ViewModal; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// 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);
@ -74,8 +80,10 @@ var es_button = __webpack_require__(3113);
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(2595);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(28872);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(82710);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/MyReceive/ViewModal/index.tsx
@ -87,6 +95,9 @@ var jsx_runtime = __webpack_require__(37712);
var unitType = {
1: '个',
2: '套',
@ -109,8 +120,9 @@ var ViewModal = function ViewModal(_ref) {
type: ""
}),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
previewData = _useState2[0],
setPreviewData = _useState2[1];
var monacoValueRef = (0,_react_17_0_2_react.useRef)();
var columns = [{
title: '物资编码',
dataIndex: 'number',
@ -145,148 +157,218 @@ var ViewModal = function ViewModal(_ref) {
dataIndex: 'apply_num',
ellipsis: true
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ViewModalmodules.my_modal,
open: openViewModal,
title: "\u7533\u8BF7\u5185\u5BB9",
width: "1000px",
footer: showButton ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
var preview = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(item) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!((item === null || item === void 0 ? void 0 : item.file_type) === "txt")) {
_context.next = 5;
break;
}
_context.next = 3;
return (0,fetch/* default */.ZP)(item === null || item === void 0 ? void 0 : item.url, {
method: "get",
headers: {
"Content-Type": "application/xml"
}
});
case 3:
res = _context.sent;
monacoValueRef.current = res;
case 5:
setPreviewData({
type: item === null || item === void 0 ? void 0 : item.file_type,
content: item === null || item === void 0 ? void 0 : item.url
});
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function preview(_x) {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
maskClosable: false,
centered: true,
keyboard: false,
destroyOnClose: true,
className: ViewModalmodules.my_modal,
open: openViewModal,
title: "\u7533\u8BF7\u5185\u5BB9",
width: "1000px",
footer: showButton ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
buttonMethod('驳回', viewInfo);
},
children: "\u9A73\u56DE"
}, "cancel"), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
buttonMethod('同意', viewInfo);
},
children: "\u540C\u610F"
}, "ok")]
}) : null,
onCancel: function onCancel(e) {
_onCancel();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
buttonMethod('驳回', viewInfo);
type: "link",
style: {
position: 'absolute',
right: '70px',
top: '18px'
},
children: "\u9A73\u56DE"
}, "cancel"), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
buttonMethod('同意', viewInfo);
},
children: "\u540C\u610F"
}, "ok")]
}) : null,
onCancel: function onCancel(e) {
_onCancel();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "link",
style: {
position: 'absolute',
right: '70px',
top: '18px'
},
onClick: function onClick() {
var _viewInfo$prove_files;
modal/* default */.Z.confirm({
title: '使用人证明',
icon: null,
width: 500,
closable: true,
centered: true,
footer: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10 mb20",
children: viewInfo === null || viewInfo === void 0 || (_viewInfo$prove_files = viewInfo.prove_files) === null || _viewInfo$prove_files === void 0 || (_viewInfo$prove_files = _viewInfo$prove_files.prove_files) === null || _viewInfo$prove_files === void 0 ? void 0 : _viewInfo$prove_files.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "align-center current mt10",
style: {
backgroundColor: "#F6F7F9",
justifyContent: 'space-between',
padding: '0 10px'
},
onClick: function onClick() {
(0,util/* downLoadLink */.Nd)(item === null || item === void 0 ? void 0 : item.title, item === null || item === void 0 ? void 0 : item.url);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian3 font14",
style: {
color: '#000',
marginRight: '6px'
var _viewInfo$prove_files;
modal/* default */.Z.confirm({
title: '使用人证明',
icon: null,
width: 500,
closable: true,
centered: true,
footer: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10 mb20",
children: viewInfo === null || viewInfo === void 0 || (_viewInfo$prove_files = viewInfo.prove_files) === null || _viewInfo$prove_files === void 0 || (_viewInfo$prove_files = _viewInfo$prove_files.prove_files) === null || _viewInfo$prove_files === void 0 ? void 0 : _viewInfo$prove_files.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "align-center current mt10",
style: {
backgroundColor: "#F6F7F9",
justifyContent: 'space-between',
padding: '0 10px'
},
onClick: function onClick() {
if (item !== null && item !== void 0 && item.url) {
preview({
file_type: item === null || item === void 0 ? void 0 : item.file_type,
url: item === null || item === void 0 ? void 0 : item.url
});
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
// downLoadLink(item?.title,item?.url)
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian3 font14",
style: {
color: '#000',
marginRight: '6px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#3061D0",
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: "#3061D0",
color: '#ADB2B8',
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.title
children: item === null || item === void 0 ? void 0 : item.filesize
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#ADB2B8',
fontSize: '14px'
},
children: item === null || item === void 0 ? void 0 : item.filesize
})]
}, index);
}, index);
})
})
})
});
},
children: "\u4F7F\u7528\u4EBA\u8BC1\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_content,
});
},
children: "\u4F7F\u7528\u4EBA\u8BC1\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ViewModalmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ViewModalmodules.header_params,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px"
},
className: ViewModalmodules.content_div,
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ViewModalmodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4"
}), viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d = viewInfo.classroom_directors) === null || _viewInfo$classroom_d === void 0 ? void 0 : _viewInfo$classroom_d.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d2 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d2 === void 0 ? void 0 : _viewInfo$classroom_d2.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : '')]
});
}) : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px",
marginLeft: '40px'
maxWidth: "400px"
},
className: ViewModalmodules.content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u5B9E\u9A8C\u5BA4\u8D1F\u8D23\u4EBA"
}), (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d3 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d3 === void 0 ? void 0 : _viewInfo$classroom_d3.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d4 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d4 === void 0 ? void 0 : _viewInfo$classroom_d4.map(function (item, key) {
var _viewInfo$classroom_d5;
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4"
}), viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.classroom_title]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d = viewInfo.classroom_directors) === null || _viewInfo$classroom_d === void 0 ? void 0 : _viewInfo$classroom_d.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d2 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d2 === void 0 ? void 0 : _viewInfo$classroom_d2.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : ''), key == (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d5 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d5 === void 0 ? void 0 : _viewInfo$classroom_d5.length) - 1 ? '' : '、']
}, key);
}) : '--']
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : '')]
});
}) : '--',
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
maxWidth: "400px",
marginLeft: '40px'
},
className: ViewModalmodules.content_div,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666',
marginRight: '10px'
},
children: "\u5B9E\u9A8C\u5BA4\u8D1F\u8D23\u4EBA"
}), (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d3 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d3 === void 0 ? void 0 : _viewInfo$classroom_d3.length) > 0 ? viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d4 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d4 === void 0 ? void 0 : _viewInfo$classroom_d4.map(function (item, key) {
var _viewInfo$classroom_d5;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, item !== null && item !== void 0 && item.phone ? "(".concat(item === null || item === void 0 ? void 0 : item.phone, ")") : "".concat(item !== null && item !== void 0 && item.mail ? "(".concat(item === null || item === void 0 ? void 0 : item.mail, ")") : ''), key == (viewInfo === null || viewInfo === void 0 || (_viewInfo$classroom_d5 = viewInfo.classroom_directors) === null || _viewInfo$classroom_d5 === void 0 ? void 0 : _viewInfo$classroom_d5.length) - 1 ? '' : '、']
}, key);
}) : '--']
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 949,
marginBottom: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.substances) || [],
columns: columns,
scroll: {
y: 400
},
rowKey: "id"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 949,
marginBottom: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.substances) || [],
columns: columns,
scroll: {
y: 400
},
rowKey: "id"
})
})]
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: previewData === null || previewData === void 0 ? void 0 : previewData.content,
type: previewData === null || previewData === void 0 ? void 0 : previewData.type,
style: {
zIndex: 99999
},
hasMask: true,
monacoEditor: {
value: monacoValueRef.current,
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onImgDimensions: null,
onClose: function onClose() {
setPreviewData({
content: "",
type: ""
});
}
})]
});
};

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