component-shipinlv 1.3.8 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/UI/Money/index.css.js +1 -1
- package/dist/VideoPublish/video-publish-statistic/index.js +14 -4
- package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +2 -2
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +99 -121
- package/dist/VideoPublish/video-publish-statistic/operation/list.less +7 -102
- package/dist/VideoPublish/video-publish-statistic/operation/query.d.ts +4 -4
- package/dist/VideoPublish/video-publish-statistic/operation/query.js +11 -12
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +26 -3
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +1 -1
- package/dist/config/apiUrls.js +1 -1
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/openChrome.js +16 -7
- package/dist/service/api/VideoPublishStatisticOperationController.d.ts +7 -0
- package/dist/service/api/VideoPublishStatisticOperationController.js +28 -0
- package/dist/types/VideoPublishStatisticOperation.d.ts +12 -0
- package/dist/types/VideoPublishStatisticOperation.js +0 -0
- package/package.json +1 -1
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
2
2
|
var _templateObject;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
money: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .yen{\n font-size: smaller;\n opacity: 0.8;\n font-weight: 300;\n }\n .value{\n font-weight: bold;\n padding-left: 2px;\n padding-right: 1px;\n &.zero{\n font-weight: 300;\n }\n }\n "])))
|
5
|
+
money: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .yen{\n font-size: smaller;\n opacity: 0.8;\n font-weight: 300;\n }\n .value{\n font-weight: bold;\n padding-left: 2px;\n padding-right: 1px;\n &.zero{\n font-weight: 300;\n color: #AAA;\n }\n }\n "])))
|
6
6
|
};
|
@@ -4,6 +4,8 @@ import VideoPublishStatisticPublishList from "./publish-plan/list";
|
|
4
4
|
import { getApiEnv } from "../../lib/getApiUrl";
|
5
5
|
import { Tabs } from "antd";
|
6
6
|
import React, { useState } from "react";
|
7
|
+
import LayoutContent from "../../UI/LayoutContent";
|
8
|
+
import VideoPublishStatisticOperationList from "./operation/list";
|
7
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
10
|
var VideoPublishStatisticPublish = function VideoPublishStatisticPublish(_ref) {
|
9
11
|
_objectDestructuringEmpty(_ref);
|
@@ -13,14 +15,22 @@ var VideoPublishStatisticPublish = function VideoPublishStatisticPublish(_ref) {
|
|
13
15
|
children: /*#__PURE__*/_jsx(VideoPublishStatisticPublishList, {
|
14
16
|
env: getApiEnv()
|
15
17
|
})
|
18
|
+
}, {
|
19
|
+
key: 'operation',
|
20
|
+
label: '视频数据',
|
21
|
+
children: /*#__PURE__*/_jsx(VideoPublishStatisticOperationList, {
|
22
|
+
env: getApiEnv()
|
23
|
+
})
|
16
24
|
}]),
|
17
25
|
_useState2 = _slicedToArray(_useState, 2),
|
18
26
|
itemsTabs = _useState2[0],
|
19
27
|
setItemsTabs = _useState2[1];
|
20
|
-
return /*#__PURE__*/_jsx(
|
21
|
-
|
22
|
-
|
23
|
-
|
28
|
+
return /*#__PURE__*/_jsx(LayoutContent, {
|
29
|
+
children: /*#__PURE__*/_jsx(Tabs, {
|
30
|
+
defaultActiveKey: "publish-video",
|
31
|
+
items: itemsTabs,
|
32
|
+
type: "card"
|
33
|
+
})
|
24
34
|
});
|
25
35
|
};
|
26
36
|
export default VideoPublishStatisticPublish;
|
@@ -3,5 +3,5 @@ import "./list.less";
|
|
3
3
|
interface Props {
|
4
4
|
env?: Global.Env;
|
5
5
|
}
|
6
|
-
declare const
|
7
|
-
export default
|
6
|
+
declare const VideoPublishStatisticOperationList: React.FC<Props>;
|
7
|
+
export default VideoPublishStatisticOperationList;
|
@@ -3,19 +3,15 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import React, { useState } from "react";
|
4
4
|
import "./list.less";
|
5
5
|
import { useRequest } from "@umijs/hooks";
|
6
|
-
import * as
|
7
|
-
import {
|
6
|
+
import * as VideoPublishStatisticOperationController from "../../../service/api/VideoPublishStatisticOperationController";
|
7
|
+
import { Table } from "antd";
|
8
8
|
import VideoPublishVideoAccountBaseInfo from "../../video-account/base-info";
|
9
9
|
import LayoutContent from "../../../UI/LayoutContent";
|
10
|
-
import
|
10
|
+
import VideoPublishStatisticOperationListQuery from "./query";
|
11
11
|
import dayjs from "dayjs";
|
12
|
-
import
|
13
|
-
import VideoPublishTaskPlanList from "../../task-list/plan/list";
|
14
|
-
import { SwapRightOutlined } from "@ant-design/icons";
|
12
|
+
import Money from "../../../UI/Money";
|
15
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
-
|
17
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
|
-
var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList(_ref) {
|
14
|
+
var VideoPublishStatisticOperationList = function VideoPublishStatisticOperationList(_ref) {
|
19
15
|
var env = _ref.env;
|
20
16
|
var _useState = useState([]),
|
21
17
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -33,10 +29,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
33
29
|
pagination = _useState4[0],
|
34
30
|
setPagination = _useState4[1];
|
35
31
|
var _useState5 = useState({
|
36
|
-
|
37
|
-
endTime: Date.now()
|
38
|
-
// taskStatus: '',
|
39
|
-
// keyword: '',
|
32
|
+
time: Date.now() - 86400e3
|
40
33
|
}),
|
41
34
|
_useState6 = _slicedToArray(_useState5, 2),
|
42
35
|
query = _useState6[0],
|
@@ -59,92 +52,99 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
59
52
|
});
|
60
53
|
}
|
61
54
|
}, {
|
62
|
-
title: '
|
63
|
-
dataIndex: '
|
64
|
-
key: '
|
55
|
+
title: '播放数',
|
56
|
+
dataIndex: 'play',
|
57
|
+
key: 'play',
|
58
|
+
render: function render(play) {
|
59
|
+
return /*#__PURE__*/_jsx(Money, {
|
60
|
+
pre: "",
|
61
|
+
end: "",
|
62
|
+
value: play,
|
63
|
+
precision: 0
|
64
|
+
});
|
65
|
+
}
|
65
66
|
}, {
|
66
|
-
title:
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
dataIndex: 'finishAmount',
|
76
|
-
key: 'finishAmount',
|
77
|
-
render: function render(finishAmount, record) {
|
78
|
-
return /*#__PURE__*/_jsx("div", {
|
79
|
-
className: "status-amount in-td",
|
80
|
-
children: /*#__PURE__*/_jsx(Space, {
|
81
|
-
children: /*#__PURE__*/_jsx("span", {
|
82
|
-
className: "finish amount-".concat(finishAmount),
|
83
|
-
children: finishAmount
|
84
|
-
})
|
85
|
-
})
|
67
|
+
title: '点赞数',
|
68
|
+
dataIndex: 'digg',
|
69
|
+
key: 'digg',
|
70
|
+
render: function render(digg) {
|
71
|
+
return /*#__PURE__*/_jsx(Money, {
|
72
|
+
pre: "",
|
73
|
+
end: "",
|
74
|
+
value: digg,
|
75
|
+
precision: 0
|
86
76
|
});
|
87
77
|
}
|
88
78
|
}, {
|
89
|
-
title:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
dataIndex: 'failAmount',
|
99
|
-
key: 'failAmount',
|
100
|
-
render: function render(failAmount) {
|
101
|
-
return /*#__PURE__*/_jsx("div", {
|
102
|
-
className: "status-amount in-td",
|
103
|
-
children: /*#__PURE__*/_jsx("span", {
|
104
|
-
className: "fail amount-".concat(failAmount),
|
105
|
-
children: failAmount
|
106
|
-
})
|
79
|
+
title: '分享数',
|
80
|
+
dataIndex: 'share',
|
81
|
+
key: 'share',
|
82
|
+
render: function render(share) {
|
83
|
+
return /*#__PURE__*/_jsx(Money, {
|
84
|
+
pre: "",
|
85
|
+
end: "",
|
86
|
+
value: share,
|
87
|
+
precision: 0
|
107
88
|
});
|
108
89
|
}
|
109
90
|
}, {
|
110
|
-
title:
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
dataIndex: 'progressAmount',
|
120
|
-
key: 'progressAmount',
|
121
|
-
render: function render(progressAmount, record) {
|
122
|
-
return /*#__PURE__*/_jsx("div", {
|
123
|
-
className: "status-amount in-td",
|
124
|
-
children: /*#__PURE__*/_jsx("span", {
|
125
|
-
className: "progress amount-".concat(progressAmount),
|
126
|
-
children: progressAmount
|
127
|
-
})
|
91
|
+
title: '评论数',
|
92
|
+
dataIndex: 'comment',
|
93
|
+
key: 'comment',
|
94
|
+
render: function render(comment) {
|
95
|
+
return /*#__PURE__*/_jsx(Money, {
|
96
|
+
pre: "",
|
97
|
+
end: "",
|
98
|
+
value: comment,
|
99
|
+
precision: 0
|
128
100
|
});
|
129
101
|
}
|
130
102
|
}, {
|
131
|
-
title: '
|
132
|
-
dataIndex: '
|
133
|
-
key: '
|
134
|
-
render: function render(
|
135
|
-
return /*#__PURE__*/_jsx(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
103
|
+
title: '净增粉丝',
|
104
|
+
dataIndex: 'netFans',
|
105
|
+
key: 'netFans',
|
106
|
+
render: function render(netFans) {
|
107
|
+
return /*#__PURE__*/_jsx(Money, {
|
108
|
+
pre: "",
|
109
|
+
end: "",
|
110
|
+
value: netFans,
|
111
|
+
precision: 0
|
112
|
+
});
|
113
|
+
}
|
114
|
+
}, {
|
115
|
+
title: '取关粉丝',
|
116
|
+
dataIndex: 'cancelFans',
|
117
|
+
key: 'cancelFans',
|
118
|
+
render: function render(cancelFans) {
|
119
|
+
return /*#__PURE__*/_jsx(Money, {
|
120
|
+
pre: "",
|
121
|
+
end: "",
|
122
|
+
value: cancelFans,
|
123
|
+
precision: 0
|
124
|
+
});
|
125
|
+
}
|
126
|
+
}, {
|
127
|
+
title: '主页访问',
|
128
|
+
dataIndex: 'homepageView',
|
129
|
+
key: 'homepageView',
|
130
|
+
render: function render(homepageView) {
|
131
|
+
return /*#__PURE__*/_jsx(Money, {
|
132
|
+
pre: "",
|
133
|
+
end: "",
|
134
|
+
value: homepageView,
|
135
|
+
precision: 0
|
136
|
+
});
|
137
|
+
}
|
138
|
+
}, {
|
139
|
+
title: '总粉丝数',
|
140
|
+
dataIndex: 'totalFans',
|
141
|
+
key: 'totalFans',
|
142
|
+
render: function render(totalFans) {
|
143
|
+
return /*#__PURE__*/_jsx(Money, {
|
144
|
+
pre: "",
|
145
|
+
end: "",
|
146
|
+
value: totalFans,
|
147
|
+
precision: 0
|
148
148
|
});
|
149
149
|
}
|
150
150
|
}];
|
@@ -155,53 +155,31 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
155
155
|
var _useRequest = useRequest(function () {
|
156
156
|
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
157
157
|
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
158
|
-
return
|
159
|
-
|
160
|
-
|
158
|
+
return VideoPublishStatisticOperationController.list({
|
159
|
+
year: postQuery.time > 100000 ? dayjs(postQuery.time).year() : new Date().getFullYear(),
|
160
|
+
month: postQuery.time > 100000 ? dayjs(postQuery.time).month() + 1 : 1,
|
161
|
+
day: postQuery.time > 100000 ? dayjs(postQuery.time).date() : 1,
|
161
162
|
current: current,
|
162
163
|
pageSize: pagination.pageSize
|
163
|
-
}
|
164
|
+
}, {
|
164
165
|
env: env
|
165
166
|
});
|
166
167
|
}, {
|
167
168
|
onSuccess: function onSuccess(result) {
|
168
169
|
setListData(result.list);
|
169
|
-
setPagination(result.pagination);
|
170
|
+
// setPagination( result.pagination );
|
170
171
|
}
|
171
172
|
}),
|
172
173
|
runTaskList = _useRequest.run,
|
173
174
|
loadingTaskList = _useRequest.loading,
|
174
175
|
errorTaskList = _useRequest.error;
|
175
|
-
var onAccountPublishPlanList = function onAccountPublishPlanList(accountId) {
|
176
|
-
var nickname = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
177
|
-
Tool.drawer({
|
178
|
-
title: /*#__PURE__*/_jsxs(_Fragment, {
|
179
|
-
children: ["\u53D1\u5E03\u4EFB\u52A1\u8BA1\u5212\uFF1A", /*#__PURE__*/_jsx(Tag, {
|
180
|
-
color: "blue",
|
181
|
-
children: nickname
|
182
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
183
|
-
type: "vertical"
|
184
|
-
}), query.startTime > 0 && /*#__PURE__*/_jsxs(_Fragment, {
|
185
|
-
children: [dayjs(query.startTime).format('YYYY-MM-DD'), " ", /*#__PURE__*/_jsx(SwapRightOutlined, {}), " ", dayjs(query.endTime).format('YYYY-MM-DD')]
|
186
|
-
})]
|
187
|
-
}),
|
188
|
-
content: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
|
189
|
-
env: env,
|
190
|
-
publishTaskId: 0,
|
191
|
-
accountId: accountId,
|
192
|
-
startTime: query.startTime,
|
193
|
-
endTime: query.endTime
|
194
|
-
}),
|
195
|
-
width: 1200
|
196
|
-
});
|
197
|
-
};
|
198
176
|
return /*#__PURE__*/_jsx(LayoutContent, {
|
199
177
|
loading: loadingTaskList,
|
200
178
|
error: errorTaskList,
|
201
179
|
onReload: runTaskList,
|
202
|
-
title: "\
|
203
|
-
className: "video-publish-statistic-list",
|
204
|
-
extInfo: /*#__PURE__*/_jsx(
|
180
|
+
title: "\u89C6\u9891\u7ECF\u8425\u6570\u636E",
|
181
|
+
className: "video-publish-statistic-operation-list",
|
182
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticOperationListQuery, {
|
205
183
|
defaultQuery: query,
|
206
184
|
onQuery: function onQuery(query) {
|
207
185
|
return _onQuery(query);
|
@@ -222,4 +200,4 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
222
200
|
})
|
223
201
|
});
|
224
202
|
};
|
225
|
-
export default
|
203
|
+
export default VideoPublishStatisticOperationList;
|
@@ -1,105 +1,10 @@
|
|
1
|
-
.video-publish-statistic-list{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
flex-direction: row;
|
7
|
-
cursor: pointer;
|
8
|
-
&.valid{
|
9
|
-
.isLoginValid{
|
10
|
-
background-color: #00bc00;
|
11
|
-
}
|
12
|
-
.shopName{
|
13
|
-
color: #005a00;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
&.invalid{
|
17
|
-
background-color: #e1e1e1;
|
18
|
-
.isLoginValid{
|
19
|
-
background-color: red;
|
20
|
-
}
|
21
|
-
.shopName{
|
22
|
-
color: #999;
|
23
|
-
font-weight: 300;
|
24
|
-
}
|
25
|
-
.avatarUrl{
|
26
|
-
opacity: 0.5;
|
27
|
-
filter: grayscale(100%);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
.avatar{
|
31
|
-
position: relative;
|
32
|
-
width: 40px;
|
33
|
-
//box-shadow: 0 0 5px #EEE;
|
34
|
-
.avatarUrl{
|
35
|
-
border-radius: 100px;
|
36
|
-
box-shadow: 0 0 5px #EEE;
|
37
|
-
}
|
38
|
-
.isLoginValid{
|
39
|
-
position: absolute;
|
40
|
-
left: 35px;
|
41
|
-
top: 35px;
|
42
|
-
width: 8px;
|
43
|
-
height: 8px;
|
44
|
-
border-radius: 100px;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
.shopName{
|
48
|
-
max-width: 150px;
|
49
|
-
color: #666;
|
50
|
-
display: inline-block;
|
51
|
-
text-overflow: ellipsis;
|
52
|
-
//line-height: 30px;
|
53
|
-
font-size: 12px;
|
54
|
-
padding: 1px 0 0 12px;
|
55
|
-
line-height: 1.1em;
|
56
|
-
word-break: keep-all;
|
57
|
-
white-space: nowrap;
|
58
|
-
overflow: hidden;
|
59
|
-
}
|
60
|
-
.nicknameRemark{
|
61
|
-
max-width: 150px;
|
62
|
-
color: #666;
|
63
|
-
text-overflow: ellipsis;
|
64
|
-
overflow: hidden;
|
65
|
-
//background-color: #F6F6F6;
|
66
|
-
padding: 2px 0 1px;
|
67
|
-
font-weight: 300;
|
68
|
-
}
|
69
|
-
.uniqueId{
|
70
|
-
padding: 1px 0 0;
|
71
|
-
font-size: 12px;
|
72
|
-
opacity: 0.6;
|
73
|
-
}
|
1
|
+
.video-publish-statistic-operation-list{
|
2
|
+
.value{
|
3
|
+
font-size: 22px;
|
4
|
+
font-weight: 300;
|
5
|
+
line-height: 1em;
|
74
6
|
}
|
75
|
-
|
76
|
-
|
77
|
-
&.in-td{
|
78
|
-
font-size: 32px;
|
79
|
-
line-height: 1em;
|
80
|
-
}
|
81
|
-
.amount-0{
|
82
|
-
font-weight: 300;
|
83
|
-
color: #CCC !important;
|
84
|
-
}
|
85
|
-
small{
|
86
|
-
color: #999;
|
87
|
-
font-weight: 300;
|
88
|
-
}
|
89
|
-
.finish{
|
90
|
-
color: green;
|
91
|
-
}
|
92
|
-
.fail{
|
93
|
-
color: #C00;
|
94
|
-
}
|
95
|
-
.progress{
|
96
|
-
color: blue;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
.row-repeal{
|
101
|
-
//opacity: 0.5;
|
102
|
-
-webkit-filter: grayscale(100%);
|
103
|
-
filter: grayscale(100%);
|
7
|
+
.zero{
|
8
|
+
opacity: 0.6;
|
104
9
|
}
|
105
10
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import './query.less';
|
3
3
|
interface Props {
|
4
|
-
defaultQuery:
|
5
|
-
onQuery: (query:
|
4
|
+
defaultQuery: VideoPublishStatisticOperation.ListQuery;
|
5
|
+
onQuery: (query: VideoPublishStatisticOperation.ListQuery) => void;
|
6
6
|
}
|
7
|
-
declare const
|
8
|
-
export default
|
7
|
+
declare const VideoPublishStatisticOperationListQuery: React.FC<Props>;
|
8
|
+
export default VideoPublishStatisticOperationListQuery;
|
@@ -6,7 +6,7 @@ import "./query.less";
|
|
6
6
|
import dayjs from "dayjs";
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
-
var
|
9
|
+
var VideoPublishStatisticOperationListQuery = function VideoPublishStatisticOperationListQuery(_ref) {
|
10
10
|
var defaultQuery = _ref.defaultQuery,
|
11
11
|
_ref$onQuery = _ref.onQuery,
|
12
12
|
onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
|
@@ -17,10 +17,9 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
|
|
17
17
|
_useState2 = _slicedToArray(_useState, 2),
|
18
18
|
query = _useState2[0],
|
19
19
|
setQuery = _useState2[1];
|
20
|
-
var
|
21
|
-
var onTime = function onTime(startTime
|
22
|
-
query.
|
23
|
-
query.endTime = endTime;
|
20
|
+
var todayStart = dayjs(dayjs(Date.now()).format('YYYY-MM-DD 00:00:00')).valueOf();
|
21
|
+
var onTime = function onTime(startTime) {
|
22
|
+
query.time = startTime;
|
24
23
|
setQuery(_objectSpread({}, query));
|
25
24
|
};
|
26
25
|
var onFinish = function onFinish() {
|
@@ -35,14 +34,14 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
|
|
35
34
|
onFinish: onFinish,
|
36
35
|
children: /*#__PURE__*/_jsxs(Space, {
|
37
36
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
38
|
-
children: /*#__PURE__*/_jsx(DatePicker
|
39
|
-
defaultValue:
|
37
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
38
|
+
defaultValue: dayjs(query.time),
|
39
|
+
allowClear: false,
|
40
40
|
disabledDate: function disabledDate(currentDate) {
|
41
|
-
return currentDate.valueOf()
|
41
|
+
return currentDate.valueOf() >= todayStart || currentDate.valueOf() < new Date('2024-10-01').valueOf();
|
42
42
|
},
|
43
|
-
onChange: function onChange(dates
|
44
|
-
|
45
|
-
onTime((dates === null || dates === void 0 || (_dates$ = dates[0]) === null || _dates$ === void 0 ? void 0 : _dates$.valueOf()) || 0, (dates === null || dates === void 0 || (_dates$2 = dates[1]) === null || _dates$2 === void 0 ? void 0 : _dates$2.valueOf()) || 0);
|
43
|
+
onChange: function onChange(dates) {
|
44
|
+
onTime((dates === null || dates === void 0 ? void 0 : dates.valueOf()) || 0);
|
46
45
|
}
|
47
46
|
})
|
48
47
|
}), /*#__PURE__*/_jsx(Button, {
|
@@ -54,4 +53,4 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
|
|
54
53
|
})
|
55
54
|
});
|
56
55
|
};
|
57
|
-
export default
|
56
|
+
export default VideoPublishStatisticOperationListQuery;
|
@@ -41,6 +41,14 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
41
41
|
_useState6 = _slicedToArray(_useState5, 2),
|
42
42
|
query = _useState6[0],
|
43
43
|
setQuery = _useState6[1];
|
44
|
+
var _useState7 = useState({
|
45
|
+
finish: 0,
|
46
|
+
fail: 0,
|
47
|
+
progress: 0
|
48
|
+
}),
|
49
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
50
|
+
amountInfo = _useState8[0],
|
51
|
+
setAmountInfo = _useState8[1];
|
44
52
|
var columns = [{
|
45
53
|
title: '序号',
|
46
54
|
dataIndex: '-',
|
@@ -70,7 +78,9 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
70
78
|
className: "status-amount ",
|
71
79
|
children: /*#__PURE__*/_jsxs("span", {
|
72
80
|
className: "finish",
|
73
|
-
children: ["\u6210\u529F
|
81
|
+
children: ["\u6210\u529F", /*#__PURE__*/_jsx(Divider, {
|
82
|
+
type: "vertical"
|
83
|
+
}), amountInfo.finish, " ", /*#__PURE__*/_jsx("small", {
|
74
84
|
children: " / \u6761"
|
75
85
|
})]
|
76
86
|
})
|
@@ -93,7 +103,9 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
93
103
|
className: "status-amount ",
|
94
104
|
children: /*#__PURE__*/_jsxs("span", {
|
95
105
|
className: "fail",
|
96
|
-
children: ["\u5931\u8D25
|
106
|
+
children: ["\u5931\u8D25", /*#__PURE__*/_jsx(Divider, {
|
107
|
+
type: "vertical"
|
108
|
+
}), amountInfo.fail, " ", /*#__PURE__*/_jsx("small", {
|
97
109
|
children: " / \u6761"
|
98
110
|
})]
|
99
111
|
})
|
@@ -114,7 +126,9 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
114
126
|
className: "status-amount ",
|
115
127
|
children: /*#__PURE__*/_jsxs("span", {
|
116
128
|
className: "progress",
|
117
|
-
children: ["\u6267\u884C\u4E2D
|
129
|
+
children: ["\u6267\u884C\u4E2D", /*#__PURE__*/_jsx(Divider, {
|
130
|
+
type: "vertical"
|
131
|
+
}), amountInfo.progress, " ", /*#__PURE__*/_jsx("small", {
|
118
132
|
children: " / \u6761"
|
119
133
|
})]
|
120
134
|
})
|
@@ -170,6 +184,15 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
170
184
|
onSuccess: function onSuccess(result) {
|
171
185
|
setListData(result.list);
|
172
186
|
setPagination(result.pagination);
|
187
|
+
amountInfo.finish = 0;
|
188
|
+
amountInfo.fail = 0;
|
189
|
+
amountInfo.progress = 0;
|
190
|
+
result.list.forEach(function (items) {
|
191
|
+
amountInfo.finish += items.finishAmount;
|
192
|
+
amountInfo.fail += items.failAmount;
|
193
|
+
amountInfo.progress += items.progressAmount;
|
194
|
+
});
|
195
|
+
setAmountInfo(_objectSpread({}, amountInfo));
|
173
196
|
}
|
174
197
|
}),
|
175
198
|
runTaskList = _useRequest.run,
|
@@ -36,7 +36,7 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
|
|
36
36
|
children: /*#__PURE__*/_jsxs(Space, {
|
37
37
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
38
38
|
children: /*#__PURE__*/_jsx(DatePicker.RangePicker, {
|
39
|
-
defaultValue: query.startTime >
|
39
|
+
defaultValue: query.startTime > 10000 ? [query.startTime <= 0 ? null : dayjs(query.startTime), query.endTime <= 0 ? null : dayjs(query.endTime)] : [dayjs(), dayjs()],
|
40
40
|
disabledDate: function disabledDate(currentDate) {
|
41
41
|
return currentDate.valueOf() > todayEnd;
|
42
42
|
},
|
package/dist/config/apiUrls.js
CHANGED
package/dist/lib/Tool.d.ts
CHANGED
@@ -161,7 +161,7 @@ declare const Tool: {
|
|
161
161
|
OsPathSeparator(): string;
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
h5Pay(query: Pay.H5PayQuery): void;
|
164
|
-
notification(type: "
|
164
|
+
notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
165
165
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/openChrome.js
CHANGED
@@ -152,7 +152,7 @@ var openChrome = /*#__PURE__*/function () {
|
|
152
152
|
}();
|
153
153
|
var getOpenQuery = /*#__PURE__*/function () {
|
154
154
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(query, isNew, settingConfig, env) {
|
155
|
-
var cmdList, url, openUrl, chromeProfileDir, publishExtensionDir;
|
155
|
+
var cmdList, url, openUrl, chromeProfileDir, position, publishExtensionDir;
|
156
156
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
157
157
|
while (1) switch (_context4.prev = _context4.next) {
|
158
158
|
case 0:
|
@@ -203,26 +203,35 @@ var getOpenQuery = /*#__PURE__*/function () {
|
|
203
203
|
case 16:
|
204
204
|
notification.notificationError('不支持的系统', '发布不支持此系统');
|
205
205
|
case 17:
|
206
|
+
position = {
|
207
|
+
x: 0,
|
208
|
+
y: 0
|
209
|
+
};
|
210
|
+
if (query.action === 'publish') {
|
211
|
+
position.x = -window.screen.width + 100;
|
212
|
+
position.y = 10;
|
213
|
+
}
|
214
|
+
|
206
215
|
// 尺寸
|
207
|
-
cmdList.push("--window-position=".concat(
|
216
|
+
cmdList.push("--window-position=".concat(position.x, ",").concat(position.y));
|
208
217
|
cmdList.push("--window-size=".concat(window.screen.width, ",").concat(window.screen.height - 100));
|
209
218
|
cmdList.push("--user-data-dir=".concat(chromeProfileDir));
|
210
219
|
cmdList.push("--user-agent=".concat(userAgent()));
|
211
220
|
|
212
221
|
// 不要检查
|
213
222
|
cmdList.push('--no-first-run', '--no-default-browser-check', '--disable-default-apps');
|
214
|
-
_context4.next =
|
223
|
+
_context4.next = 26;
|
215
224
|
return getPublishExtensionDir(env).catch(function (err) {
|
216
225
|
notification.notificationError('获取插件地址失败', err.message);
|
217
226
|
});
|
218
|
-
case
|
227
|
+
case 26:
|
219
228
|
publishExtensionDir = _context4.sent;
|
220
229
|
if (publishExtensionDir) {
|
221
|
-
_context4.next =
|
230
|
+
_context4.next = 29;
|
222
231
|
break;
|
223
232
|
}
|
224
233
|
return _context4.abrupt("return", Promise.reject(new Error('获取插件地址失败')));
|
225
|
-
case
|
234
|
+
case 29:
|
226
235
|
cmdList.push("--load-extension=".concat(publishExtensionDir));
|
227
236
|
cmdList.push("".concat(openUrl));
|
228
237
|
console.log('profileName:', cmdList, chromeProfileDir);
|
@@ -230,7 +239,7 @@ var getOpenQuery = /*#__PURE__*/function () {
|
|
230
239
|
commandList: cmdList,
|
231
240
|
chromeProfileDir: chromeProfileDir
|
232
241
|
});
|
233
|
-
case
|
242
|
+
case 33:
|
234
243
|
case "end":
|
235
244
|
return _context4.stop();
|
236
245
|
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
|
+
import request from "../../lib/request";
|
5
|
+
import { PublishDomainApi } from "./VideoPublishController";
|
6
|
+
export function list(_x, _x2) {
|
7
|
+
return _list.apply(this, arguments);
|
8
|
+
}
|
9
|
+
function _list() {
|
10
|
+
_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
|
11
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
12
|
+
while (1) switch (_context.prev = _context.next) {
|
13
|
+
case 0:
|
14
|
+
return _context.abrupt("return", request(PublishDomainApi("user/videoAccountStatisticOperation/list", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
15
|
+
method: 'POST',
|
16
|
+
headers: {
|
17
|
+
'Content-Type': 'application/json'
|
18
|
+
},
|
19
|
+
data: _objectSpread({}, body)
|
20
|
+
}, options || {})));
|
21
|
+
case 1:
|
22
|
+
case "end":
|
23
|
+
return _context.stop();
|
24
|
+
}
|
25
|
+
}, _callee);
|
26
|
+
}));
|
27
|
+
return _list.apply(this, arguments);
|
28
|
+
}
|
File without changes
|