@zgfe/modules-page 1.0.1-alpha.10 → 1.0.1-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,7 +156,7 @@ var DetailContent = function DetailContent(props) {
|
|
|
156
156
|
return /*#__PURE__*/React.createElement("div", {
|
|
157
157
|
className: "".concat(classPrefix, "-top-item"),
|
|
158
158
|
key: index
|
|
159
|
-
}, (_props$params2 = props.params) !== null && _props$params2 !== void 0 && _props$params2.userGroup && ((_props$params$userGro = props.params.userGroup) === null || _props$params$userGro === void 0 ? void 0 : _props$params$userGro.length) > 1 ? /*#__PURE__*/React.createElement("
|
|
159
|
+
}, (_props$params2 = props.params) !== null && _props$params2 !== void 0 && _props$params2.userGroup && ((_props$params$userGro = props.params.userGroup) === null || _props$params$userGro === void 0 ? void 0 : _props$params$userGro.length) > 1 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u7528\u6237\u7FA4\uFF1A"), /*#__PURE__*/React.createElement("span", null, item.userGroup)) : null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u6D4F\u89C8\uFF1A"), /*#__PURE__*/React.createElement("span", null, toThousands(item.viewTimes), "\u6B21"), /*#__PURE__*/React.createElement("span", null, toThousands(item.viewUser), "\u4EBA")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u9875\u9762\u5185\u70B9\u51FB\uFF1A"), /*#__PURE__*/React.createElement("span", null, toThousands(item.clickTimes), "\u6B21"), /*#__PURE__*/React.createElement("span", null, toThousands(item.clickUser), "\u4EBA")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4\uFF1A"), /*#__PURE__*/React.createElement("span", null, getNumPer(item.viewUser, item.clickUser)), /*#__PURE__*/React.createElement(Tooltip, {
|
|
160
160
|
title: "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4\uFF1D\u9875\u9762\u5185\u70B9\u51FB\u4EBA\u6570\uFF0F\u9875\u9762\u6D4F\u89C8\u4EBA\u6570"
|
|
161
161
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
162
162
|
type: "tishi"
|
|
@@ -14,7 +14,7 @@ export var getPageList = function getPageList(data, callback) {
|
|
|
14
14
|
method: 'post',
|
|
15
15
|
data: data
|
|
16
16
|
}).then(function (res) {
|
|
17
|
-
if (!res) {
|
|
17
|
+
if (!res || !res.data) {
|
|
18
18
|
callback([{
|
|
19
19
|
id: '页面概览',
|
|
20
20
|
pageTitle: '页面概览',
|
|
@@ -44,7 +44,7 @@ export var getPageGroupList = function getPageGroupList(data, callback, loadingC
|
|
|
44
44
|
method: 'post',
|
|
45
45
|
data: data
|
|
46
46
|
}).then(function (res) {
|
|
47
|
-
if (!res) {
|
|
47
|
+
if (!res || !res.data) {
|
|
48
48
|
callback([{
|
|
49
49
|
id: 0,
|
|
50
50
|
name: '全部页面组'
|
|
@@ -69,7 +69,7 @@ export var getPageResult = function getPageResult(params, callback, loadingCallb
|
|
|
69
69
|
method: 'post',
|
|
70
70
|
data: params
|
|
71
71
|
}).then(function (res) {
|
|
72
|
-
if (!res) return;
|
|
72
|
+
if (!res || !res.data) return;
|
|
73
73
|
callback(res.data);
|
|
74
74
|
}).finally(function () {
|
|
75
75
|
loadingCallback(false);
|
|
@@ -90,7 +90,8 @@ export var onDownload = function onDownload(params, currentApp) {
|
|
|
90
90
|
method: 'post',
|
|
91
91
|
data: _objectSpread(_objectSpread({
|
|
92
92
|
appId: currentApp.appId,
|
|
93
|
-
platform: 3
|
|
93
|
+
platform: 3,
|
|
94
|
+
modules: 'page'
|
|
94
95
|
}, params), {}, {
|
|
95
96
|
down: {
|
|
96
97
|
fname: base64.encode(title),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.11",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"prettier": "^2.2.1",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "cbcc8106b272e3b033d7b63e9ad5f699f7ff7d7f"
|
|
54
54
|
}
|