Auto Submit

dev_local_v9_test5
autosubmit 2 years ago
parent 2cbaec747e
commit 527987074f

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

@ -361,13 +361,13 @@ var Navigation = function Navigation(_ref) {
display: "flex"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '3' ? infomodules.jbxx_img_div1 : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '2' ? infomodules.jbxx_img_div2 : infomodules.jbxx_img_div3,
className: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'abnormal' ? infomodules.jbxx_img_div1 : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'running' ? infomodules.jbxx_img_div2 : infomodules.jbxx_img_div3,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: (infoData === null || infoData === void 0 ? void 0 : infoData.category) == 'virtual' ? xnj_running_namespaceObject : wlj_running_namespaceObject,
className: infomodules.sys_item_left_img
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '3' ? infomodules.jbxx_img_text1 : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '2' ? infomodules.jbxx_img_text2 : infomodules.jbxx_img_text3,
children: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '3' ? '异常' : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '2' ? '运行中' : '未开启'
className: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'abnormal' ? infomodules.jbxx_img_text1 : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'running' ? infomodules.jbxx_img_text2 : infomodules.jbxx_img_text3,
children: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'abnormal' ? '异常' : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'running' ? '运行中' : '未开启'
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: infomodules.jbxx_content,
@ -382,7 +382,7 @@ var Navigation = function Navigation(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: infomodules.jbxx_content_list_value,
style: {
color: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '3' ? '#EE5D5D' : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == '2' ? '#2EC25B' : '#D6D6D6'
color: (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'abnormal' ? '#EE5D5D' : (infoData === null || infoData === void 0 ? void 0 : infoData.use_status) == 'running' ? '#2EC25B' : '#D6D6D6'
},
children: infoData === null || infoData === void 0 ? void 0 : infoData.name
})

@ -274,7 +274,7 @@ var jsx_runtime = __webpack_require__(37712);
var Navigation = function Navigation(_ref) {
var _deviceData$category_4, _deviceData$category_5, _deviceData$category_6, _deviceData$category_7, _deviceData$use_statu, _deviceData$use_statu2, _deviceData$use_statu3, _deviceInfo$cpu3, _deviceInfo$load3, _deviceInfo$disk, _deviceInfo$memo, _deviceInfo$memo2;
var _deviceData$category_4, _deviceData$category_5, _deviceData$category_6, _deviceData$category_7, _deviceData$use_statu, _deviceData$use_statu2, _deviceData$use_statu3, _deviceInfo$disk, _deviceInfo$memo;
var loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)({}),
@ -466,12 +466,12 @@ var Navigation = function Navigation(_ref) {
itemStyle: {
normal: {
color: function color(colors) {
var colorList = deviceData !== null && deviceData !== void 0 && deviceData.category_statistics ? ['#08D4FE', '#1890FF', '#EE5D5D'] : ['#1c2967'];
var colorList = ['#08D4FE', '#1890FF', '#EE5D5D'];
return colorList[colors.dataIndex];
}
}
},
data: deviceData !== null && deviceData !== void 0 && deviceData.category_statistics ? [{
data: [{
value: deviceData === null || deviceData === void 0 || (_deviceData$category_ = deviceData.category_statistics) === null || _deviceData$category_ === void 0 ? void 0 : _deviceData$category_.virtual,
name: '虚拟机'
}, {
@ -480,15 +480,12 @@ var Navigation = function Navigation(_ref) {
}, {
value: deviceData === null || deviceData === void 0 || (_deviceData$category_3 = deviceData.category_statistics) === null || _deviceData$category_3 === void 0 ? void 0 : _deviceData$category_3.scrapped,
name: '报废'
}] : [{
value: 0,
name: '总设备数'
}]
}]
};
};
var getOptionCPU = function getOptionCPU() {
var _deviceInfo$cpu, _deviceInfo$cpu2;
var _deviceInfo$cpu, _deviceInfo$cpu2, _deviceInfo$cpu3, _deviceInfo$cpu4;
return {
grid: {
//位置
@ -500,9 +497,9 @@ var Navigation = function Navigation(_ref) {
},
xAxis: {
type: 'category',
data: deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu = deviceInfo.cpu) === null || _deviceInfo$cpu === void 0 || (_deviceInfo$cpu = _deviceInfo$cpu.time_stamps) === null || _deviceInfo$cpu === void 0 ? void 0 : _deviceInfo$cpu.map(function (item) {
data: (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu = deviceInfo.cpu) === null || _deviceInfo$cpu === void 0 || (_deviceInfo$cpu = _deviceInfo$cpu.time_stamps) === null || _deviceInfo$cpu === void 0 ? void 0 : _deviceInfo$cpu.length) > 0 ? deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu2 = deviceInfo.cpu) === null || _deviceInfo$cpu2 === void 0 || (_deviceInfo$cpu2 = _deviceInfo$cpu2.time_stamps) === null || _deviceInfo$cpu2 === void 0 ? void 0 : _deviceInfo$cpu2.map(function (item) {
return dayjs_min_default()(item).format('YYYY-MM-DD HH:mm:ss');
}),
}) : ['00.00', '24.00'],
boundaryGap: false,
axisLabel: {
//坐标轴刻度标签
@ -537,7 +534,7 @@ var Navigation = function Navigation(_ref) {
}
},
series: [{
data: deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu2 = deviceInfo.cpu) === null || _deviceInfo$cpu2 === void 0 ? void 0 : _deviceInfo$cpu2.values,
data: (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu3 = deviceInfo.cpu) === null || _deviceInfo$cpu3 === void 0 || (_deviceInfo$cpu3 = _deviceInfo$cpu3.values) === null || _deviceInfo$cpu3 === void 0 ? void 0 : _deviceInfo$cpu3.length) > 0 ? deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu4 = deviceInfo.cpu) === null || _deviceInfo$cpu4 === void 0 ? void 0 : _deviceInfo$cpu4.values : [0, 0],
type: 'line',
smooth: true,
//是否平滑曲线
@ -555,7 +552,7 @@ var Navigation = function Navigation(_ref) {
};
};
var getOptionPJFZ = function getOptionPJFZ() {
var _deviceInfo$load, _deviceInfo$load2;
var _deviceInfo$load, _deviceInfo$load2, _deviceInfo$load3, _deviceInfo$load4;
return {
grid: {
//位置
@ -567,9 +564,9 @@ var Navigation = function Navigation(_ref) {
},
xAxis: {
type: 'category',
data: deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load = deviceInfo.load) === null || _deviceInfo$load === void 0 || (_deviceInfo$load = _deviceInfo$load.time_stamps) === null || _deviceInfo$load === void 0 ? void 0 : _deviceInfo$load.map(function (item) {
data: (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load = deviceInfo.load) === null || _deviceInfo$load === void 0 || (_deviceInfo$load = _deviceInfo$load.time_stamps) === null || _deviceInfo$load === void 0 ? void 0 : _deviceInfo$load.length) > 0 ? deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load2 = deviceInfo.load) === null || _deviceInfo$load2 === void 0 || (_deviceInfo$load2 = _deviceInfo$load2.time_stamps) === null || _deviceInfo$load2 === void 0 ? void 0 : _deviceInfo$load2.map(function (item) {
return dayjs_min_default()(item).format('YYYY-MM-DD HH:mm:ss');
}),
}) : ['00.00', '24.00'],
boundaryGap: false,
axisLabel: {
//坐标轴刻度标签
@ -604,7 +601,7 @@ var Navigation = function Navigation(_ref) {
}
},
series: [{
data: deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load2 = deviceInfo.load) === null || _deviceInfo$load2 === void 0 ? void 0 : _deviceInfo$load2.values,
data: (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load3 = deviceInfo.load) === null || _deviceInfo$load3 === void 0 || (_deviceInfo$load3 = _deviceInfo$load3.values) === null || _deviceInfo$load3 === void 0 ? void 0 : _deviceInfo$load3.length) > 0 ? deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load4 = deviceInfo.load) === null || _deviceInfo$load4 === void 0 ? void 0 : _deviceInfo$load4.values : [0, 0],
type: 'line',
smooth: true,
//是否平滑曲线
@ -717,7 +714,7 @@ var Navigation = function Navigation(_ref) {
color: '#FFFFFF',
fontWeight: "bold"
},
children: (deviceData === null || deviceData === void 0 || (_deviceData$category_4 = deviceData.category_statistics) === null || _deviceData$category_4 === void 0 ? void 0 : _deviceData$category_4.total) || 0
children: deviceData === null || deviceData === void 0 || (_deviceData$category_4 = deviceData.category_statistics) === null || _deviceData$category_4 === void 0 ? void 0 : _deviceData$category_4.total
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -743,7 +740,7 @@ var Navigation = function Navigation(_ref) {
color: '#00E9F9',
fontWeight: "bold"
},
children: (deviceData === null || deviceData === void 0 || (_deviceData$category_5 = deviceData.category_statistics) === null || _deviceData$category_5 === void 0 ? void 0 : _deviceData$category_5.virtual) || 0
children: deviceData === null || deviceData === void 0 || (_deviceData$category_5 = deviceData.category_statistics) === null || _deviceData$category_5 === void 0 ? void 0 : _deviceData$category_5.virtual
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -769,7 +766,7 @@ var Navigation = function Navigation(_ref) {
color: '#68B7FF',
fontWeight: "bold"
},
children: (deviceData === null || deviceData === void 0 || (_deviceData$category_6 = deviceData.category_statistics) === null || _deviceData$category_6 === void 0 ? void 0 : _deviceData$category_6.physical) || 0
children: deviceData === null || deviceData === void 0 || (_deviceData$category_6 = deviceData.category_statistics) === null || _deviceData$category_6 === void 0 ? void 0 : _deviceData$category_6.physical
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -795,7 +792,7 @@ var Navigation = function Navigation(_ref) {
color: '#EE5D5D',
fontWeight: "bold"
},
children: (deviceData === null || deviceData === void 0 || (_deviceData$category_7 = deviceData.category_statistics) === null || _deviceData$category_7 === void 0 ? void 0 : _deviceData$category_7.scrapped) || 0
children: deviceData === null || deviceData === void 0 || (_deviceData$category_7 = deviceData.category_statistics) === null || _deviceData$category_7 === void 0 ? void 0 : _deviceData$category_7.scrapped
})]
})]
})]
@ -889,9 +886,6 @@ var Navigation = function Navigation(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Workingmodules.sbyctx_box,
style: {
alignContent: (messageList === null || messageList === void 0 ? void 0 : messageList.length) > 0 ? '' : 'center'
},
children: (messageList === null || messageList === void 0 ? void 0 : messageList.length) > 0 ? messageList === null || messageList === void 0 ? void 0 : messageList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -925,7 +919,8 @@ var Navigation = function Navigation(_ref) {
src: nodataimg_namespaceObject,
style: {
width: '15rem',
height: '10rem'
height: '10rem',
marginTop: "1rem"
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -1072,9 +1067,6 @@ var Navigation = function Navigation(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Workingmodules.sys_list,
style: {
alignContent: (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 ? '' : 'center'
},
children: (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 ? tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Workingmodules.sys_item,
@ -1159,7 +1151,8 @@ var Navigation = function Navigation(_ref) {
src: nodataimg_namespaceObject,
style: {
width: '15rem',
height: '10rem'
height: '10rem',
marginTop: "1rem"
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -1249,21 +1242,12 @@ var Navigation = function Navigation(_ref) {
color: "#E99237"
},
children: "cpu\u4F7F\u7528\u7387"
}), (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$cpu3 = deviceInfo.cpu) === null || _deviceInfo$cpu3 === void 0 || (_deviceInfo$cpu3 = _deviceInfo$cpu3.time_stamps) === null || _deviceInfo$cpu3 === void 0 ? void 0 : _deviceInfo$cpu3.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
style: {
width: '100%',
height: '10vh'
},
option: getOptionCPU()
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '96%',
height: '1px',
background: '#463E59',
position: 'absolute',
bottom: '1rem',
left: '2%'
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Workingmodules.pjfz_style,
@ -1273,21 +1257,12 @@ var Navigation = function Navigation(_ref) {
color: "#3061D0"
},
children: "\u5E73\u5747\u8D1F\u8F7D"
}), (deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$load3 = deviceInfo.load) === null || _deviceInfo$load3 === void 0 || (_deviceInfo$load3 = _deviceInfo$load3.time_stamps) === null || _deviceInfo$load3 === void 0 ? void 0 : _deviceInfo$load3.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
style: {
width: '100%',
height: '10vh'
},
option: getOptionPJFZ()
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '96%',
height: '1px',
background: '#463E59',
position: 'absolute',
bottom: '1rem',
left: '2%'
}
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -1369,7 +1344,7 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(GaugeChart/* default */.Z, {
indexKey: 3,
value: deviceInfo === null || deviceInfo === void 0 || (_deviceInfo$memo = deviceInfo.memo) === null || _deviceInfo$memo === void 0 || (_deviceInfo$memo = _deviceInfo$memo.values) === null || _deviceInfo$memo === void 0 ? void 0 : _deviceInfo$memo[0],
colors: ['#2a55bb', deviceInfo !== null && deviceInfo !== void 0 && (_deviceInfo$memo2 = deviceInfo.memo) !== null && _deviceInfo$memo2 !== void 0 && (_deviceInfo$memo2 = _deviceInfo$memo2.values) !== null && _deviceInfo$memo2 !== void 0 && _deviceInfo$memo2[0] ? '#DAE7EC' : '#1c2967'],
colors: ['#2a55bb', '#DAE7EC'],
position: ['65%', '80%']
})]
})]

@ -220,7 +220,6 @@ html {
background: linear-gradient(180deg, #002E96 0%, rgba(0, 19, 95, 0.97) 13%, rgba(2, 15, 67, 0.93) 81%, #002790 100%);
border: 2px solid #00458E;
padding: 0.5rem;
position: relative;
}
.box___mldyF .content___vGhln .sbzyzl_box___fuv1i .pjfz_style___ihV7i {
width: 50%;
@ -230,7 +229,6 @@ html {
background: linear-gradient(180deg, #002E96 0%, rgba(0, 19, 95, 0.97) 13%, rgba(2, 15, 67, 0.93) 81%, #002790 100%);
border: 2px solid #00458E;
padding: 0.5rem;
position: relative;
}
.box___mldyF .content___vGhln .sbzyzl_box___fuv1i .cpkjsyl_style___o9UIS {
width: 70%;

@ -841,7 +841,11 @@ var Navigation = function Navigation(_ref) {
}()
});
},
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(icons_CheckCircleOutlined, {}), "\u6279\u91CF\u5F00\u673A"]
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(icons_CheckCircleOutlined, {
style: {
marginRight: 5
}
}), "\u6279\u91CF\u5F00\u673A"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: DeviceManagemodules.btn,
onClick: function onClick() {
@ -888,7 +892,11 @@ var Navigation = function Navigation(_ref) {
}()
});
},
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(PoweroffOutlined/* default */.Z, {}), "\u6279\u91CF\u5173\u673A"]
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(PoweroffOutlined/* default */.Z, {
style: {
marginRight: 5
}
}), "\u6279\u91CF\u5173\u673A"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
setSelectIds([]);

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