|
|
|
|
@ -35,6 +35,8 @@ var env = __webpack_require__(78130);
|
|
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
|
|
|
|
var skeleton = __webpack_require__(59981);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
|
|
|
var spin = __webpack_require__(71418);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
|
|
|
var NoData = __webpack_require__(73208);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
@ -250,7 +252,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
|
|
|
|
|
data = _ref3$data === void 0 ? [] : _ref3$data,
|
|
|
|
|
title = _ref3.title,
|
|
|
|
|
_ref3$hideBar = _ref3.hideBar,
|
|
|
|
|
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
|
|
|
|
|
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar,
|
|
|
|
|
_ref3$loading = _ref3.loading,
|
|
|
|
|
loading = _ref3$loading === void 0 ? false : _ref3$loading;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
|
|
|
|
|
style: style,
|
|
|
|
|
@ -259,63 +263,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
|
|
|
|
|
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: title
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: BehavioralAnalysismodules.itemWrap,
|
|
|
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: BehavioralAnalysismodules.item,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
|
|
|
|
option: {
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: "item",
|
|
|
|
|
formatter: "{a} <br/>{b}: {c}%"
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
left: 'center',
|
|
|
|
|
bottom: 15,
|
|
|
|
|
text: v === null || v === void 0 ? void 0 : v.title
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
|
|
|
|
top: 10,
|
|
|
|
|
right: 10,
|
|
|
|
|
orient: 'vertical',
|
|
|
|
|
show: true,
|
|
|
|
|
align: 'left',
|
|
|
|
|
icon: 'circle',
|
|
|
|
|
itemWidth: 10,
|
|
|
|
|
itemHeight: 10,
|
|
|
|
|
formatter: function formatter(name) {
|
|
|
|
|
for (var i in v === null || v === void 0 ? void 0 : v.data) {
|
|
|
|
|
if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) {
|
|
|
|
|
return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%';
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
|
|
spinning: loading,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: BehavioralAnalysismodules.itemWrap,
|
|
|
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: BehavioralAnalysismodules.item,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
|
|
|
|
option: {
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: "item",
|
|
|
|
|
formatter: "{a} <br/>{b}: {c}%"
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
left: 'center',
|
|
|
|
|
bottom: 15,
|
|
|
|
|
text: v === null || v === void 0 ? void 0 : v.title
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
|
|
|
|
top: 10,
|
|
|
|
|
right: 10,
|
|
|
|
|
orient: 'vertical',
|
|
|
|
|
show: true,
|
|
|
|
|
align: 'left',
|
|
|
|
|
icon: 'circle',
|
|
|
|
|
itemWidth: 10,
|
|
|
|
|
itemHeight: 10,
|
|
|
|
|
formatter: function formatter(name) {
|
|
|
|
|
for (var i in v === null || v === void 0 ? void 0 : v.data) {
|
|
|
|
|
if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) {
|
|
|
|
|
return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: '#767676',
|
|
|
|
|
fontSize: 12
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: '#767676',
|
|
|
|
|
fontSize: 12
|
|
|
|
|
}
|
|
|
|
|
color: v === null || v === void 0 ? void 0 : v.color,
|
|
|
|
|
series: [{
|
|
|
|
|
type: 'pie',
|
|
|
|
|
radius: ['20%', '35%'],
|
|
|
|
|
center: ['20%', '40%'],
|
|
|
|
|
avoidLabelOverlap: false,
|
|
|
|
|
label: {
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
data: v === null || v === void 0 ? void 0 : v.data
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
color: v === null || v === void 0 ? void 0 : v.color,
|
|
|
|
|
series: [{
|
|
|
|
|
type: 'pie',
|
|
|
|
|
radius: ['20%', '35%'],
|
|
|
|
|
center: ['20%', '40%'],
|
|
|
|
|
avoidLabelOverlap: false,
|
|
|
|
|
label: {
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
data: v === null || v === void 0 ? void 0 : v.data
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
height: 145
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
style: {
|
|
|
|
|
height: 145
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
@ -1124,7 +1131,7 @@ var Delayed_DelShixun = function DelShixun(_ref) {
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
|
|
|
|
|
width: 600,
|
|
|
|
|
width: 640,
|
|
|
|
|
centered: true,
|
|
|
|
|
title: "\u5EF6\u65F6\u8BBE\u7F6E",
|
|
|
|
|
open: exercise.actionTabs.key === '延时' ? true : false,
|
|
|
|
|
@ -2937,7 +2944,7 @@ var WorkList = function WorkList(_ref) {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",
|
|
|
|
|
onSearch: function onSearch(value) {
|
|
|
|
|
params['search'] = value;
|
|
|
|
|
params['search'] = value.trim();
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'exercise/getExerciseList',
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
@ -16593,7 +16600,7 @@ var subjectiveType = {
|
|
|
|
|
4: '未批'
|
|
|
|
|
};
|
|
|
|
|
var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var _ref3, _statisticsList$commi;
|
|
|
|
|
var _ref3, _workSetting$exercise, _statisticsList$commi;
|
|
|
|
|
var exercise = _ref.exercise,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
@ -16607,7 +16614,8 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
params = _useState2[0],
|
|
|
|
|
setParams = _useState2[1];
|
|
|
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
|
|
|
var statisticsList = exercise.statisticsList;
|
|
|
|
|
var statisticsList = exercise.statisticsList,
|
|
|
|
|
workSetting = exercise.workSetting;
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
filterSelect = _useState4[0],
|
|
|
|
|
@ -16627,10 +16635,10 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(true),
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
isShowBehavioralAnalysis = _useState12[0],
|
|
|
|
|
setIsShowBehavioralAnalysis = _useState12[1];
|
|
|
|
|
behavioralAnalysisLoading = _useState12[0],
|
|
|
|
|
setBehavioralAnalysisLoading = _useState12[1];
|
|
|
|
|
var onHandleChange = function onHandleChange() {
|
|
|
|
|
var formValue = Object.assign({}, form.getFieldValue());
|
|
|
|
|
Object.keys(formValue).map(function (v) {
|
|
|
|
|
@ -16736,18 +16744,19 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
setBehavioralAnalysisLoading(true);
|
|
|
|
|
_context.next = 3;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'exercise/getExerciseStatistics',
|
|
|
|
|
payload: objectSpread2_default()({}, params)
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
setBehavioralAnalysisLoading(false);
|
|
|
|
|
if (res !== null && res !== void 0 && res.exercise_counts) {
|
|
|
|
|
setIsShowBehavioralAnalysis(res === null || res === void 0 ? void 0 : res.open_camera);
|
|
|
|
|
setDataSource([res.exercise_counts]);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -16801,9 +16810,10 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), isShowBehavioralAnalysis && /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
|
|
|
|
|
}), (workSetting === null || workSetting === void 0 || (_workSetting$exercise = workSetting.exercise) === null || _workSetting$exercise === void 0 ? void 0 : _workSetting$exercise.open_camera) && /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
|
|
|
|
|
title: "\u8003\u8BD5\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1",
|
|
|
|
|
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(statisticsList)
|
|
|
|
|
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(statisticsList),
|
|
|
|
|
loading: behavioralAnalysisLoading
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: StatisticsResultmodules.name,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
|