You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
614 lines
29 KiB
614 lines
29 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45798],{
|
|
|
|
/***/ 52063:
|
|
/*!******************************************************************************************************!*\
|
|
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
|
|
\******************************************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ icons_LeftOutlined; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(26508);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/LeftOutlined.js
|
|
// This icon file is generated automatically.
|
|
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
|
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
var AntdIcon = __webpack_require__(91851);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
ref: ref,
|
|
icon: asn_LeftOutlined
|
|
}));
|
|
};
|
|
if (false) {}
|
|
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 28669:
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/components/BehavioralAnalysis/index.tsx + 1 modules ***!
|
|
\*****************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
ij: function() { return /* binding */ AnalysisNoData; },
|
|
_s: function() { return /* binding */ PhotosList; },
|
|
Uf: function() { return /* binding */ dealOncFnc; },
|
|
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(26801);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
|
|
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
|
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
|
|
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
|
|
var lib = __webpack_require__(42441);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(26078);
|
|
// 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/skeleton/index.js + 12 modules
|
|
var skeleton = __webpack_require__(59981);
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
var NoData = __webpack_require__(31917);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dealOncFnc = function dealOncFnc() {
|
|
var _data$emotion, _data$focus, _data$action, _data$intention;
|
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
var emotion = data === null || data === void 0 || (_data$emotion = data.emotion) === null || _data$emotion === void 0 ? void 0 : _data$emotion.map(function (v) {
|
|
return objectSpread2_default()({
|
|
value: v === null || v === void 0 ? void 0 : v.rate
|
|
}, v);
|
|
});
|
|
var focus = data === null || data === void 0 || (_data$focus = data.focus) === null || _data$focus === void 0 ? void 0 : _data$focus.map(function (v) {
|
|
return objectSpread2_default()({
|
|
value: v === null || v === void 0 ? void 0 : v.rate
|
|
}, v);
|
|
});
|
|
var action = data === null || data === void 0 || (_data$action = data.action) === null || _data$action === void 0 ? void 0 : _data$action.map(function (v) {
|
|
return objectSpread2_default()({
|
|
value: v === null || v === void 0 ? void 0 : v.rate
|
|
}, v);
|
|
});
|
|
var intention = data === null || data === void 0 || (_data$intention = data.intention) === null || _data$intention === void 0 ? void 0 : _data$intention.map(function (v) {
|
|
return objectSpread2_default()({
|
|
value: v === null || v === void 0 ? void 0 : v.rate
|
|
}, v);
|
|
});
|
|
return [{
|
|
title: '表情占比',
|
|
color: ['#f7ca2e', '#4ccf71', '#3791ee', '#f9ac95', '#4f74ee', '#f0e999'],
|
|
data: emotion || []
|
|
}, {
|
|
title: '专注度占比',
|
|
color: ['#4f74ee', '#f9ac95', '#9cb5fe', '#eaa170', '#3791ee', '#a39bed'],
|
|
data: focus || []
|
|
}, {
|
|
title: '行为占比情况',
|
|
color: ['#5eca9c', '#a39bed', '#f68238', '#f0e999', '#eaa170', '#f9ac95'],
|
|
data: action || []
|
|
}, {
|
|
title: '意图占比情况',
|
|
color: ['#eaa170', '#739fcb', '#f0e999', '#f9ac95', '#4f74ee', '#5eca9c'],
|
|
data: intention || []
|
|
}];
|
|
};
|
|
var PhotosList = function PhotosList(_ref) {
|
|
var className = _ref.className,
|
|
_ref$dataSource = _ref.dataSource,
|
|
dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
|
|
_ref$col = _ref.col,
|
|
col = _ref$col === void 0 ? 4 : _ref$col,
|
|
right = _ref.right,
|
|
_ref$bottom = _ref.bottom,
|
|
bottom = _ref$bottom === void 0 ? 23 : _ref$bottom,
|
|
_ref$precision = _ref.precision,
|
|
precision = _ref$precision === void 0 ? 0 : _ref$precision,
|
|
_ref$wrapWidth = _ref.wrapWidth,
|
|
wrapWidth = _ref$wrapWidth === void 0 ? 1200 : _ref$wrapWidth;
|
|
var cutText = function cutText() {
|
|
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
var num = arguments.length > 1 ? arguments[1] : undefined;
|
|
var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '--';
|
|
if (!str) return init;
|
|
return (str === null || str === void 0 ? void 0 : str.length) > num ? (str === null || str === void 0 ? void 0 : str.slice(0, num - 1)) + '...' : str;
|
|
};
|
|
var width = Math.floor((wrapWidth - (col - 1) * right) / col);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.list, className),
|
|
children: !!(dataSource !== null && dataSource !== void 0 && dataSource.length) && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item, index) {
|
|
var cover_pic = item.cover_pic,
|
|
created_at = item.created_at,
|
|
emotion = item.emotion,
|
|
action = item.action,
|
|
intention = item.intention,
|
|
focus = item.focus;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.wrap,
|
|
style: {
|
|
width: width,
|
|
marginRight: (1 + index) % col === 0 ? 0 : right + precision,
|
|
marginBottom: bottom
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.img,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: "".concat(env/* default */.Z.API_SERVER).concat(cover_pic)
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.tips,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-paisheshijian mr5 font14"
|
|
}), " \u62CD\u6444\u65F6\u95F4"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: created_at
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.footer,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-biaoqing"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u8868\u60C5\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: emotion,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-grey-333",
|
|
children: cutText(emotion, 4)
|
|
})
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-hangwei"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u884C\u4E3A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: action,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-grey-333",
|
|
children: cutText(action, 4)
|
|
})
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-yitu"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u610F\u56FE\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: intention,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-grey-333",
|
|
children: cutText(intention, 4)
|
|
})
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-zhuangtai"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u4E13\u6CE8\u5EA6\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: focus,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-grey-333",
|
|
children: cutText(focus, 3)
|
|
})
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
}, index);
|
|
}))
|
|
});
|
|
};
|
|
var AnalysisNoData = function AnalysisNoData(_ref2) {
|
|
var _emptyData$, _emptyData$2;
|
|
var className = _ref2.className,
|
|
style = _ref2.style,
|
|
title = _ref2.title,
|
|
_ref2$hideBar = _ref2.hideBar,
|
|
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
|
|
children = _ref2.children,
|
|
_ref2$customText = _ref2.customText,
|
|
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
|
|
_ref2$noDataText = _ref2.noDataText,
|
|
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
|
|
_ref2$emptyData = _ref2.emptyData,
|
|
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
|
|
loading = _ref2.loading,
|
|
actionAnalysis = _ref2.actionAnalysis;
|
|
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
|
|
var _e$data;
|
|
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
|
|
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
|
|
var text = actionAnalysis ? noDataText : customText;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
|
|
loading: loading,
|
|
active: true,
|
|
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
|
|
style: style,
|
|
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.title,
|
|
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: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
customText: text
|
|
})
|
|
})]
|
|
}), !empty && children]
|
|
});
|
|
};
|
|
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
|
|
var className = _ref3.className,
|
|
style = _ref3.style,
|
|
_ref3$data = _ref3.data,
|
|
data = _ref3$data === void 0 ? [] : _ref3$data,
|
|
title = _ref3.title,
|
|
_ref3$hideBar = _ref3.hideBar,
|
|
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
|
|
style: style,
|
|
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: BehavioralAnalysismodules.title,
|
|
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) + '%';
|
|
}
|
|
}
|
|
},
|
|
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
|
|
}]
|
|
},
|
|
style: {
|
|
height: 145
|
|
}
|
|
})
|
|
}, k);
|
|
})
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var components_BehavioralAnalysis = (BehavioralAnalysis);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 31917:
|
|
/*!*****************************************!*\
|
|
!*** ./src/components/NoData/index.tsx ***!
|
|
\*****************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var noData = function noData(_ref) {
|
|
var img = _ref.img,
|
|
_ref$buttonProps = _ref.buttonProps,
|
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
_ref$styles = _ref.styles,
|
|
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
|
customText = _ref.customText,
|
|
ButtonText = _ref.ButtonText,
|
|
ButtonClick = _ref.ButtonClick,
|
|
Buttonclass = _ref.Buttonclass,
|
|
ButtonTwo = _ref.ButtonTwo,
|
|
imgStyles = _ref.imgStyles,
|
|
_ref$loading = _ref.loading,
|
|
loading = _ref$loading === void 0 ? false : _ref$loading;
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
|
className: "tc animated fadeIn",
|
|
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
|
color: '#999',
|
|
margin: '100px auto',
|
|
visibility: loading ? 'hidden' : 'visible'
|
|
}), styles),
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
|
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
|
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
|
className: "mt20 font14",
|
|
children: customText || '暂时还没有相关数据哦!'
|
|
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
className: Buttonclass,
|
|
onClick: ButtonClick
|
|
}, buttonProps), {}, {
|
|
children: ButtonText
|
|
})), ButtonTwo && ButtonTwo]
|
|
});
|
|
};
|
|
/* harmony default export */ __webpack_exports__.Z = (noData);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 81221:
|
|
/*!**************************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/Video/Statistics/UserDetail/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 */ Statistics_UserDetail; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(11006);
|
|
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);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/Statistics/UserDetail/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var UserDetailmodules = ({"bg":"bg___iZ8MC","itemTitle":"itemTitle___DRMHe","header":"header___AE1Bc","videoTitle":"videoTitle___aQk2X","avatar":"avatar___kgIM4","infoWrapper":"infoWrapper___LEuvn","name":"name___ZdRlg","infoItem":"infoItem___xdkSt","line":"line___XYhTM"});
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
|
|
var LeftOutlined = __webpack_require__(52063);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./src/service/video.ts
|
|
var video = __webpack_require__(883);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
|
|
var _umi_production_exports = __webpack_require__(7181);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(87885);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(26078);
|
|
// EXTERNAL MODULE: ./src/components/BehavioralAnalysis/index.tsx + 1 modules
|
|
var BehavioralAnalysis = __webpack_require__(28669);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/Statistics/UserDetail/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var UserDetail = function UserDetail(_ref) {
|
|
var _user$userInfo, _detailData$photos;
|
|
var user = _ref.user;
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
categoryId = _useParams.categoryId,
|
|
coursesId = _useParams.coursesId,
|
|
userId = _useParams.userId,
|
|
videoId = _useParams.videoId;
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
detailData = _useState2[0],
|
|
setDetailData = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(true),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
loading = _useState4[0],
|
|
setLoading = _useState4[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
setLoading(true);
|
|
(0,video/* getAnalysesDetail */.Db)({
|
|
container_id: videoId,
|
|
container_type: 'CourseVideo',
|
|
user_id: userId
|
|
}).then(function (res) {
|
|
if ('status' in res) {
|
|
return;
|
|
}
|
|
setDetailData(res);
|
|
setLoading(false);
|
|
});
|
|
}, []);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: UserDetailmodules.bg,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: UserDetailmodules.header,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mb30",
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
|
|
className: "current mr10 font16",
|
|
onClick: function onClick() {
|
|
return history.back();
|
|
}
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: UserDetailmodules.videoTitle,
|
|
children: detailData === null || detailData === void 0 ? void 0 : detailData.title
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: '0 0 auto',
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.image_url),
|
|
alt: "",
|
|
className: UserDetailmodules.avatar
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: 1,
|
|
className: "ml30 ".concat(UserDetailmodules.infoWrapper),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
className: UserDetailmodules.name,
|
|
children: detailData === null || detailData === void 0 ? void 0 : detailData.real_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
wrap: false,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "180px",
|
|
className: UserDetailmodules.infoItem,
|
|
children: ["\u5B66\u53F7\uFF1A", detailData === null || detailData === void 0 ? void 0 : detailData.student_id]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "180px",
|
|
className: "".concat(UserDetailmodules.infoItem, " ml30"),
|
|
children: ["\u662F\u5426\u770B\u5B8C\uFF1A", detailData !== null && detailData !== void 0 && detailData.is_finished ? '是' : '否']
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "245px",
|
|
className: "".concat(UserDetailmodules.infoItem, " ml30"),
|
|
children: ["\u6700\u65E9\u89C2\u770B\u65F6\u95F4\uFF1A", detailData === null || detailData === void 0 ? void 0 : detailData.start_at]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
wrap: false,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "180px",
|
|
className: UserDetailmodules.infoItem,
|
|
children: ["\u5206\u73ED\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: (0,util/* cutName */.Pq)(detailData === null || detailData === void 0 ? void 0 : detailData.course_group_name, 10)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "180px",
|
|
className: "".concat(UserDetailmodules.infoItem, " ml30"),
|
|
children: ["\u89C2\u770B\u6B21\u6570\uFF1A", detailData === null || detailData === void 0 ? void 0 : detailData.watch_count]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "245px",
|
|
className: "".concat(UserDetailmodules.infoItem, " ml30"),
|
|
children: ["\u6700\u665A\u89C2\u770B\u65F6\u95F4\uFF1A", detailData === null || detailData === void 0 ? void 0 : detailData.end_at]
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(BehavioralAnalysis/* AnalysisNoData */.ij, {
|
|
hideBar: true,
|
|
actionAnalysis: detailData === null || detailData === void 0 ? void 0 : detailData.action_analysis,
|
|
loading: loading,
|
|
emptyData: [(0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData), (detailData === null || detailData === void 0 ? void 0 : detailData.photos) || []],
|
|
title: "\u89C6\u9891\u5B66\u4E60\u5206\u6790",
|
|
className: "p20",
|
|
noDataText: "\u5B66\u751F\u65E0\u8BE5\u89C6\u9891\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E",
|
|
customText: "\u89C6\u9891\u672A\u5F00\u542F\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u529F\u80FD",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
|
|
hideBar: true,
|
|
title: "\u89C6\u9891\u5B66\u4E60\u5206\u6790",
|
|
className: "p20",
|
|
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData)
|
|
}), !!(detailData !== null && detailData !== void 0 && (_detailData$photos = detailData.photos) !== null && _detailData$photos !== void 0 && _detailData$photos.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: UserDetailmodules.line
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
|
|
className: "ml20",
|
|
dataSource: detailData === null || detailData === void 0 ? void 0 : detailData.photos,
|
|
right: 21,
|
|
col: 3,
|
|
wrapWidth: 876
|
|
})]
|
|
})]
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Statistics_UserDetail = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var user = _ref2.user;
|
|
return {
|
|
user: user
|
|
};
|
|
})(UserDetail));
|
|
|
|
/***/ })
|
|
|
|
}]); |