component-shipinlv 2.3.6 → 2.3.8
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.
- package/dist/Auth/index.js +45 -26
- package/dist/AuthClient/qr/index.css.js +1 -1
- package/dist/PhonePublish/account-manage/home.d.ts +11 -0
- package/dist/PhonePublish/account-manage/home.js +243 -0
- package/dist/PhonePublish/account-manage/home.less +28 -0
- package/dist/PhonePublish/account-manage/index.d.ts +3 -0
- package/dist/PhonePublish/account-manage/index.js +56 -0
- package/dist/PhonePublish/account-manage/index.less +59 -0
- package/dist/PhonePublish/account-manage/list.d.ts +17 -0
- package/dist/PhonePublish/account-manage/list.js +443 -0
- package/dist/PhonePublish/account-manage/list.less +95 -0
- package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
- package/dist/PhonePublish/account-manage/setting/index.js +199 -0
- package/dist/PhonePublish/account-manage/setting/index.less +11 -0
- package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
- package/dist/PhonePublish/create-task/base/index.js +386 -0
- package/dist/PhonePublish/create-task/base/index.less +64 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/PhonePublish/create-task/hour-enabled.d.ts +9 -0
- package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
- package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
- package/dist/PhonePublish/create-task/index.d.ts +11 -0
- package/dist/PhonePublish/create-task/index.js +449 -0
- package/dist/PhonePublish/create-task/index.less +75 -0
- package/dist/PhonePublish/create-task/select-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/select-list.css.js +6 -0
- package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
- package/dist/PhonePublish/create-task/select-list.js +304 -0
- package/dist/PhonePublish/create-task/task-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/task-list.css.js +6 -0
- package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
- package/dist/PhonePublish/create-task/task-list.js +323 -0
- package/dist/PhonePublish/index.css.d.ts +2 -0
- package/dist/PhonePublish/index.css.js +35 -0
- package/dist/PhonePublish/index.d.ts +15 -0
- package/dist/PhonePublish/index.js +191 -0
- package/dist/PhonePublish/index.less +55 -0
- package/dist/PhonePublish/lib/chrome-quit.d.ts +2 -0
- package/dist/PhonePublish/lib/chrome-quit.js +20 -0
- package/dist/PhonePublish/log/index.d.ts +8 -0
- package/dist/PhonePublish/log/index.js +186 -0
- package/dist/PhonePublish/log/index.less +81 -0
- package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
- package/dist/PhonePublish/publish-task-plan/index.js +32 -0
- package/dist/PhonePublish/publish-task-plan/index.less +4 -0
- package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
- package/dist/PhonePublish/task-list/index.d.ts +8 -0
- package/dist/PhonePublish/task-list/index.js +224 -0
- package/dist/PhonePublish/task-list/index.less +8 -0
- package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
- package/dist/PhonePublish/task-list/plan/list.js +290 -0
- package/dist/PhonePublish/task-list/plan/list.less +87 -0
- package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/operate.js +145 -0
- package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/query.js +89 -0
- package/dist/PhonePublish/task-list/plan/query.less +9 -0
- package/dist/PhonePublish/task-list/plan/status.d.ts +13 -0
- package/dist/PhonePublish/task-list/plan/status.js +53 -0
- package/dist/PhonePublish/task-list/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/query.js +76 -0
- package/dist/PhonePublish/task-list/query.less +19 -0
- package/dist/PhonePublish/task-list/who-can-view.d.ts +12 -0
- package/dist/PhonePublish/task-list/who-can-view.js +37 -0
- package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
- package/dist/PhonePublish/video-account/ban/index.js +94 -0
- package/dist/PhonePublish/video-account/ban/index.less +4 -0
- package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
- package/dist/PhonePublish/video-account/base-info.js +75 -0
- package/dist/PhonePublish/video-account/base-info.less +92 -0
- package/dist/PhonePublish/video-account/create.d.ts +8 -0
- package/dist/PhonePublish/video-account/create.js +174 -0
- package/dist/PhonePublish/video-account/group.d.ts +9 -0
- package/dist/PhonePublish/video-account/group.js +255 -0
- package/dist/PhonePublish/video-account/group.less +10 -0
- package/dist/PhonePublish/video-account/index.d.ts +8 -0
- package/dist/PhonePublish/video-account/index.js +403 -0
- package/dist/PhonePublish/video-account/index.less +92 -0
- package/dist/PhonePublish/video-account/query.d.ts +8 -0
- package/dist/PhonePublish/video-account/query.js +115 -0
- package/dist/PhonePublish/video-account/query.less +18 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
- package/dist/PhonePublish/video-publish-statistic/kind.d.ts +16 -0
- package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/VideoPublish/account-manage/list.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/phone/index.d.ts +8 -0
- package/dist/phone/index.js +62 -0
- package/dist/phone/index.less +170 -0
- package/dist/typings.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,56 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import React, { useState } from 'react';
|
4
|
+
import { Button, DatePicker, Form, Space } from "antd";
|
5
|
+
import "./query.less";
|
6
|
+
import dayjs from "dayjs";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
var VideoPublishStatisticOperationListQuery = function VideoPublishStatisticOperationListQuery(_ref) {
|
10
|
+
var defaultQuery = _ref.defaultQuery,
|
11
|
+
_ref$onQuery = _ref.onQuery,
|
12
|
+
onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
|
13
|
+
var _Form$useForm = Form.useForm(),
|
14
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
15
|
+
form = _Form$useForm2[0];
|
16
|
+
var _useState = useState(_objectSpread({}, defaultQuery)),
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
18
|
+
query = _useState2[0],
|
19
|
+
setQuery = _useState2[1];
|
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;
|
23
|
+
setQuery(_objectSpread({}, query));
|
24
|
+
};
|
25
|
+
var onFinish = function onFinish() {
|
26
|
+
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
27
|
+
onQuery(_objectSpread(_objectSpread({}, query), values));
|
28
|
+
};
|
29
|
+
return /*#__PURE__*/_jsx("div", {
|
30
|
+
className: "videoPublishTaskPlanListQuery",
|
31
|
+
children: /*#__PURE__*/_jsx(Form, {
|
32
|
+
form: form,
|
33
|
+
initialValues: _objectSpread({}, query),
|
34
|
+
onFinish: onFinish,
|
35
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
36
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
37
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
38
|
+
defaultValue: dayjs(query.time),
|
39
|
+
allowClear: false,
|
40
|
+
disabledDate: function disabledDate(currentDate) {
|
41
|
+
return currentDate.valueOf() >= todayStart || currentDate.valueOf() < new Date('2024-10-01').valueOf();
|
42
|
+
},
|
43
|
+
onChange: function onChange(dates) {
|
44
|
+
onTime((dates === null || dates === void 0 ? void 0 : dates.valueOf()) || 0);
|
45
|
+
}
|
46
|
+
})
|
47
|
+
}), /*#__PURE__*/_jsx(Button, {
|
48
|
+
type: "primary",
|
49
|
+
htmlType: "submit",
|
50
|
+
children: "\u641C\u7D22"
|
51
|
+
})]
|
52
|
+
})
|
53
|
+
})
|
54
|
+
});
|
55
|
+
};
|
56
|
+
export default VideoPublishStatisticOperationListQuery;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./list.less";
|
3
|
+
interface Props {
|
4
|
+
env?: Global.Env;
|
5
|
+
timeFromKind: VideoPublishStatisticPublish.TimeFromKind;
|
6
|
+
}
|
7
|
+
declare const VideoPublishStatisticPublishList: React.FC<Props>;
|
8
|
+
export default VideoPublishStatisticPublishList;
|
@@ -0,0 +1,257 @@
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import "./list.less";
|
6
|
+
import { useRequest } from "@umijs/hooks";
|
7
|
+
import * as VideoPublishPublishStatisticController from "../../../service/api/VideoPublishStatisticPublishController";
|
8
|
+
import { Button, Divider, Space, Table, Tag } from "antd";
|
9
|
+
import VideoPublishVideoAccountBaseInfo from "../../../VideoPublish/video-account/base-info";
|
10
|
+
import LayoutContent from "../../../UI/LayoutContent";
|
11
|
+
import VideoPublishStatisticPublishListQuery from "./query";
|
12
|
+
import dayjs from "dayjs";
|
13
|
+
import Tool from "../../../lib/Tool";
|
14
|
+
import VideoPublishTaskPlanList from "../../../VideoPublish/task-list/plan/list";
|
15
|
+
import { SwapRightOutlined } from "@ant-design/icons";
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
18
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
19
|
+
var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList(_ref) {
|
20
|
+
var env = _ref.env,
|
21
|
+
_ref$timeFromKind = _ref.timeFromKind,
|
22
|
+
timeFromKind = _ref$timeFromKind === void 0 ? 'updated' : _ref$timeFromKind;
|
23
|
+
var _useState = useState([]),
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
25
|
+
listData = _useState2[0],
|
26
|
+
setListData = _useState2[1];
|
27
|
+
var _useState3 = useState({
|
28
|
+
current: 1,
|
29
|
+
pageSize: 100,
|
30
|
+
total: 0,
|
31
|
+
simple: true,
|
32
|
+
showSizeChanger: false,
|
33
|
+
showQuickJumper: false
|
34
|
+
}),
|
35
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
36
|
+
pagination = _useState4[0],
|
37
|
+
setPagination = _useState4[1];
|
38
|
+
var _useState5 = useState({
|
39
|
+
timeFromKind: timeFromKind,
|
40
|
+
startTime: Date.now(),
|
41
|
+
endTime: Date.now()
|
42
|
+
// taskStatus: '',
|
43
|
+
// keyword: '',
|
44
|
+
}),
|
45
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
46
|
+
query = _useState6[0],
|
47
|
+
setQuery = _useState6[1];
|
48
|
+
var _useState7 = useState({
|
49
|
+
finish: 0,
|
50
|
+
fail: 0,
|
51
|
+
progress: 0
|
52
|
+
}),
|
53
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
54
|
+
amountInfo = _useState8[0],
|
55
|
+
setAmountInfo = _useState8[1];
|
56
|
+
var columns = [{
|
57
|
+
title: '序号',
|
58
|
+
dataIndex: '-',
|
59
|
+
key: '-',
|
60
|
+
render: function render(_, _1) {
|
61
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
62
|
+
return index + 1;
|
63
|
+
}
|
64
|
+
}, {
|
65
|
+
title: '发布账号',
|
66
|
+
dataIndex: 'platform',
|
67
|
+
key: 'platform',
|
68
|
+
render: function render(platform, record) {
|
69
|
+
return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
|
70
|
+
accountInfo: record === null || record === void 0 ? void 0 : record.accountInfo
|
71
|
+
});
|
72
|
+
}
|
73
|
+
}, {
|
74
|
+
title: '粉丝数',
|
75
|
+
dataIndex: 'followerCount',
|
76
|
+
key: 'followerCount',
|
77
|
+
render: function render(_, record) {
|
78
|
+
return record === null || record === void 0 ? void 0 : record.accountInfo.followerCount;
|
79
|
+
}
|
80
|
+
}, {
|
81
|
+
title: /*#__PURE__*/_jsx("div", {
|
82
|
+
className: "status-amount ",
|
83
|
+
children: /*#__PURE__*/_jsxs("span", {
|
84
|
+
className: "finish",
|
85
|
+
children: ["\u6210\u529F", /*#__PURE__*/_jsx(Divider, {
|
86
|
+
type: "vertical"
|
87
|
+
}), amountInfo.finish, " ", /*#__PURE__*/_jsx("small", {
|
88
|
+
children: " / \u6761"
|
89
|
+
})]
|
90
|
+
})
|
91
|
+
}),
|
92
|
+
dataIndex: 'finishAmount',
|
93
|
+
key: 'finishAmount',
|
94
|
+
render: function render(finishAmount, record) {
|
95
|
+
return /*#__PURE__*/_jsx("div", {
|
96
|
+
className: "status-amount in-td",
|
97
|
+
children: /*#__PURE__*/_jsx(Space, {
|
98
|
+
children: /*#__PURE__*/_jsx("span", {
|
99
|
+
className: "finish amount-".concat(finishAmount),
|
100
|
+
children: finishAmount
|
101
|
+
})
|
102
|
+
})
|
103
|
+
});
|
104
|
+
}
|
105
|
+
}, {
|
106
|
+
title: /*#__PURE__*/_jsx("div", {
|
107
|
+
className: "status-amount ",
|
108
|
+
children: /*#__PURE__*/_jsxs("span", {
|
109
|
+
className: "fail",
|
110
|
+
children: ["\u5931\u8D25", /*#__PURE__*/_jsx(Divider, {
|
111
|
+
type: "vertical"
|
112
|
+
}), amountInfo.fail, " ", /*#__PURE__*/_jsx("small", {
|
113
|
+
children: " / \u6761"
|
114
|
+
})]
|
115
|
+
})
|
116
|
+
}),
|
117
|
+
dataIndex: 'failAmount',
|
118
|
+
key: 'failAmount',
|
119
|
+
render: function render(failAmount) {
|
120
|
+
return /*#__PURE__*/_jsx("div", {
|
121
|
+
className: "status-amount in-td",
|
122
|
+
children: /*#__PURE__*/_jsx("span", {
|
123
|
+
className: "fail amount-".concat(failAmount),
|
124
|
+
children: failAmount
|
125
|
+
})
|
126
|
+
});
|
127
|
+
}
|
128
|
+
}, {
|
129
|
+
title: /*#__PURE__*/_jsx("div", {
|
130
|
+
className: "status-amount ",
|
131
|
+
children: /*#__PURE__*/_jsxs("span", {
|
132
|
+
className: "progress",
|
133
|
+
children: ["\u6267\u884C\u4E2D", /*#__PURE__*/_jsx(Divider, {
|
134
|
+
type: "vertical"
|
135
|
+
}), amountInfo.progress, " ", /*#__PURE__*/_jsx("small", {
|
136
|
+
children: " / \u6761"
|
137
|
+
})]
|
138
|
+
})
|
139
|
+
}),
|
140
|
+
dataIndex: 'progressAmount',
|
141
|
+
key: 'progressAmount',
|
142
|
+
render: function render(progressAmount, record) {
|
143
|
+
return /*#__PURE__*/_jsx("div", {
|
144
|
+
className: "status-amount in-td",
|
145
|
+
children: /*#__PURE__*/_jsx("span", {
|
146
|
+
className: "progress amount-".concat(progressAmount),
|
147
|
+
children: progressAmount
|
148
|
+
})
|
149
|
+
});
|
150
|
+
}
|
151
|
+
}, {
|
152
|
+
title: '操作',
|
153
|
+
dataIndex: '-',
|
154
|
+
key: '-',
|
155
|
+
render: function render(_, record) {
|
156
|
+
return /*#__PURE__*/_jsx("div", {
|
157
|
+
className: "operate",
|
158
|
+
children: /*#__PURE__*/_jsx(Space, {
|
159
|
+
children: /*#__PURE__*/_jsx(Button, {
|
160
|
+
type: "link",
|
161
|
+
ghost: true,
|
162
|
+
size: "small",
|
163
|
+
onClick: function onClick() {
|
164
|
+
return onAccountPublishPlanList((record === null || record === void 0 ? void 0 : record.accountInfo.id) || 0, record === null || record === void 0 ? void 0 : record.accountInfo.nickname);
|
165
|
+
},
|
166
|
+
children: "\u53D1\u5E03\u8BE6\u60C5"
|
167
|
+
})
|
168
|
+
})
|
169
|
+
});
|
170
|
+
}
|
171
|
+
}];
|
172
|
+
var _onQuery = function onQuery(query) {
|
173
|
+
setQuery(_objectSpread({}, query));
|
174
|
+
runTaskList(query, 1);
|
175
|
+
};
|
176
|
+
var _useRequest = useRequest(function () {
|
177
|
+
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
178
|
+
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
179
|
+
return VideoPublishPublishStatisticController.list(_objectSpread(_objectSpread({}, postQuery), {}, {
|
180
|
+
startTime: postQuery.startTime > 10000 ? Math.floor(dayjs(postQuery.startTime).startOf('date').valueOf() * 0.001) || 0 : 0,
|
181
|
+
endTime: postQuery.endTime > 10000 ? Math.floor(dayjs(postQuery.endTime).endOf('date').valueOf() * 0.001) || 0 : 0,
|
182
|
+
current: current,
|
183
|
+
pageSize: pagination.pageSize
|
184
|
+
}), {
|
185
|
+
env: env
|
186
|
+
});
|
187
|
+
}, {
|
188
|
+
onSuccess: function onSuccess(result) {
|
189
|
+
setListData(_toConsumableArray(result.list));
|
190
|
+
setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
|
191
|
+
amountInfo.finish = 0;
|
192
|
+
amountInfo.fail = 0;
|
193
|
+
amountInfo.progress = 0;
|
194
|
+
result.list.forEach(function (items) {
|
195
|
+
amountInfo.finish += items.finishAmount;
|
196
|
+
amountInfo.fail += items.failAmount;
|
197
|
+
amountInfo.progress += items.progressAmount;
|
198
|
+
});
|
199
|
+
setAmountInfo(_objectSpread({}, amountInfo));
|
200
|
+
}
|
201
|
+
}),
|
202
|
+
runTaskList = _useRequest.run,
|
203
|
+
loadingTaskList = _useRequest.loading,
|
204
|
+
errorTaskList = _useRequest.error;
|
205
|
+
var onAccountPublishPlanList = function onAccountPublishPlanList(accountId) {
|
206
|
+
var nickname = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
207
|
+
Tool.drawer({
|
208
|
+
title: /*#__PURE__*/_jsxs(_Fragment, {
|
209
|
+
children: ["\u53D1\u5E03\u4EFB\u52A1\u8BA1\u5212\uFF1A", /*#__PURE__*/_jsx(Tag, {
|
210
|
+
color: "blue",
|
211
|
+
children: nickname
|
212
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
213
|
+
type: "vertical"
|
214
|
+
}), query.startTime > 0 && /*#__PURE__*/_jsxs(_Fragment, {
|
215
|
+
children: [dayjs(query.startTime).format('YYYY-MM-DD'), " ", /*#__PURE__*/_jsx(SwapRightOutlined, {}), " ", dayjs(query.endTime).format('YYYY-MM-DD')]
|
216
|
+
})]
|
217
|
+
}),
|
218
|
+
content: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
|
219
|
+
env: env,
|
220
|
+
publishTaskId: 0,
|
221
|
+
accountId: accountId,
|
222
|
+
startTime: query.startTime,
|
223
|
+
endTime: query.endTime,
|
224
|
+
timeFromKind: query.timeFromKind
|
225
|
+
}),
|
226
|
+
width: 1200
|
227
|
+
});
|
228
|
+
};
|
229
|
+
return /*#__PURE__*/_jsx(LayoutContent, {
|
230
|
+
loading: loadingTaskList,
|
231
|
+
error: errorTaskList,
|
232
|
+
onReload: runTaskList,
|
233
|
+
title: "\u53D1\u5E03\u7EDF\u8BA1",
|
234
|
+
className: "video-publish-statistic-list",
|
235
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticPublishListQuery, {
|
236
|
+
loading: loadingTaskList,
|
237
|
+
defaultQuery: query,
|
238
|
+
onQuery: function onQuery(query) {
|
239
|
+
return _onQuery(query);
|
240
|
+
}
|
241
|
+
}),
|
242
|
+
children: /*#__PURE__*/_jsx(Table, {
|
243
|
+
size: "small",
|
244
|
+
bordered: true,
|
245
|
+
rowKey: function rowKey(record) {
|
246
|
+
return "".concat(record.accountInfo.id);
|
247
|
+
}
|
248
|
+
// rowClassName={ ( record ) => `row-${ record.status }` }
|
249
|
+
,
|
250
|
+
loading: false,
|
251
|
+
columns: columns,
|
252
|
+
dataSource: listData,
|
253
|
+
pagination: false
|
254
|
+
})
|
255
|
+
});
|
256
|
+
};
|
257
|
+
export default VideoPublishStatisticPublishList;
|
@@ -0,0 +1,105 @@
|
|
1
|
+
.video-publish-statistic-list{
|
2
|
+
|
3
|
+
.article{
|
4
|
+
position: relative;
|
5
|
+
display: flex;
|
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
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.status-amount{
|
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%);
|
104
|
+
}
|
105
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './query.less';
|
3
|
+
interface Props {
|
4
|
+
loading: boolean;
|
5
|
+
defaultQuery: VideoPublishStatisticPublish.ListQuery;
|
6
|
+
onQuery: (query: VideoPublishStatisticPublish.ListQuery) => void;
|
7
|
+
}
|
8
|
+
declare const VideoPublishStatisticPublishListQuery: React.FC<Props>;
|
9
|
+
export default VideoPublishStatisticPublishListQuery;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import React, { useState } from 'react';
|
4
|
+
import { Button, DatePicker, Form, Select, Space } from "antd";
|
5
|
+
import "./query.less";
|
6
|
+
import dayjs from "dayjs";
|
7
|
+
import { ClockCircleOutlined, ExclamationCircleOutlined, SendOutlined } from "@ant-design/icons";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublishListQuery(_ref) {
|
11
|
+
var loading = _ref.loading,
|
12
|
+
defaultQuery = _ref.defaultQuery,
|
13
|
+
_ref$onQuery = _ref.onQuery,
|
14
|
+
onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
|
15
|
+
var _Form$useForm = Form.useForm(),
|
16
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
17
|
+
form = _Form$useForm2[0];
|
18
|
+
var _useState = useState(_objectSpread({}, defaultQuery)),
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
20
|
+
query = _useState2[0],
|
21
|
+
setQuery = _useState2[1];
|
22
|
+
var todayEnd = dayjs(dayjs(Date.now()).format('YYYY-MM-DD 23:59:59')).valueOf();
|
23
|
+
var onTime = function onTime(startTime, endTime) {
|
24
|
+
query.startTime = startTime;
|
25
|
+
query.endTime = endTime;
|
26
|
+
setQuery(_objectSpread({}, query));
|
27
|
+
};
|
28
|
+
var onFinish = function onFinish() {
|
29
|
+
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
30
|
+
onQuery(_objectSpread(_objectSpread({}, query), values));
|
31
|
+
};
|
32
|
+
return /*#__PURE__*/_jsx("div", {
|
33
|
+
className: "videoPublishTaskPlanListQuery",
|
34
|
+
children: /*#__PURE__*/_jsx(Form, {
|
35
|
+
form: form,
|
36
|
+
initialValues: _objectSpread({}, query),
|
37
|
+
disabled: loading,
|
38
|
+
onFinish: onFinish,
|
39
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
40
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
41
|
+
name: "timeFromKind",
|
42
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
43
|
+
style: {
|
44
|
+
width: 160
|
45
|
+
},
|
46
|
+
value: form,
|
47
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
48
|
+
value: "created",
|
49
|
+
children: [/*#__PURE__*/_jsx(ExclamationCircleOutlined, {}), " \u6309\u521B\u5EFA\u65F6\u95F4"]
|
50
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
51
|
+
value: "updated",
|
52
|
+
children: [/*#__PURE__*/_jsx(SendOutlined, {}), " \u6309\u53D1\u5E03\u65F6\u95F4"]
|
53
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
54
|
+
value: "publishTime",
|
55
|
+
children: [/*#__PURE__*/_jsx(ClockCircleOutlined, {}), " \u6309\u5B9A\u65F6\u65F6\u95F4"]
|
56
|
+
})]
|
57
|
+
})
|
58
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
59
|
+
children: /*#__PURE__*/_jsx(DatePicker.RangePicker, {
|
60
|
+
defaultValue: query.startTime > 10000 ? [query.startTime <= 0 ? null : dayjs(query.startTime), query.endTime <= 0 ? null : dayjs(query.endTime)] : [dayjs(), dayjs()],
|
61
|
+
disabledDate: function disabledDate(currentDate) {
|
62
|
+
return currentDate.valueOf() > todayEnd;
|
63
|
+
},
|
64
|
+
onChange: function onChange(dates, dateStrings) {
|
65
|
+
var _dates$, _dates$2;
|
66
|
+
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);
|
67
|
+
}
|
68
|
+
})
|
69
|
+
}), /*#__PURE__*/_jsx(Button, {
|
70
|
+
type: "primary",
|
71
|
+
htmlType: "submit",
|
72
|
+
loading: loading,
|
73
|
+
children: "\u641C\u7D22"
|
74
|
+
})]
|
75
|
+
})
|
76
|
+
})
|
77
|
+
});
|
78
|
+
};
|
79
|
+
export default VideoPublishStatisticPublishListQuery;
|
@@ -457,7 +457,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
457
457
|
}), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
|
458
458
|
className: "empty",
|
459
459
|
children: [/*#__PURE__*/_jsx(Empty, {
|
460
|
-
description: "\u672C\u673A\u6682\u65E0\
|
460
|
+
description: "\u672C\u673A\u6682\u65E0\u94FE\u63A5\u624B\u673A",
|
461
461
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
462
462
|
}), addButton()]
|
463
463
|
})]
|
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,7 @@ export { default as DealerUrlDict } from './base/DealerUrlDict';
|
|
13
13
|
export { default as VideoPlatform, VideoPlatformList, VideoPlatformDict } from './component/video-platform/logo';
|
14
14
|
export { default as VipList } from './VipList';
|
15
15
|
export { default as VideoPublish } from './VideoPublish';
|
16
|
+
export { default as PhonePublish } from './PhonePublish';
|
16
17
|
export { default as VideoPublishCreateTask } from './VideoPublish/create-task';
|
17
18
|
export { default as VideoPublishVideoAccount } from './VideoPublish/video-account';
|
18
19
|
export { default as VideoKindTag } from './component/videoKindTag';
|
package/dist/index.js
CHANGED
@@ -15,6 +15,7 @@ export { default as DealerUrlDict } from "./base/DealerUrlDict";
|
|
15
15
|
export { default as VideoPlatform, VideoPlatformList, VideoPlatformDict } from "./component/video-platform/logo";
|
16
16
|
export { default as VipList } from "./VipList";
|
17
17
|
export { default as VideoPublish } from "./VideoPublish";
|
18
|
+
export { default as PhonePublish } from "./PhonePublish";
|
18
19
|
// export { default as VideoPublishPublishVideoPlan } from './VideoPublish/publish-task-plan';
|
19
20
|
|
20
21
|
export { default as VideoPublishCreateTask } from "./VideoPublish/create-task";
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import "./index.less";
|
3
|
+
import { useEffect, useState } from "react";
|
4
|
+
import dayjs from "dayjs";
|
5
|
+
import React from "react";
|
6
|
+
import { SunOutlined, WifiOutlined } from "@ant-design/icons";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
var IPhone = function IPhone(_ref) {
|
10
|
+
var className = _ref.className,
|
11
|
+
content = _ref.content;
|
12
|
+
var _useState = useState(''),
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
14
|
+
now = _useState2[0],
|
15
|
+
setNow = _useState2[1];
|
16
|
+
var onTime = function onTime() {
|
17
|
+
setNow(dayjs().format('HH:mm'));
|
18
|
+
};
|
19
|
+
useEffect(function () {
|
20
|
+
var timer = setInterval(function () {
|
21
|
+
console.log('iphone time loop');
|
22
|
+
onTime();
|
23
|
+
}, 5e3);
|
24
|
+
return function () {
|
25
|
+
clearTimeout(timer);
|
26
|
+
};
|
27
|
+
}, []);
|
28
|
+
return /*#__PURE__*/_jsxs("div", {
|
29
|
+
className: "".concat(className, " device iphone"),
|
30
|
+
children: [/*#__PURE__*/_jsx("div", {
|
31
|
+
className: "frame",
|
32
|
+
children: /*#__PURE__*/_jsxs("div", {
|
33
|
+
className: "content",
|
34
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
35
|
+
className: "headerBar",
|
36
|
+
children: [/*#__PURE__*/_jsx("div", {
|
37
|
+
className: "left",
|
38
|
+
children: now
|
39
|
+
}), /*#__PURE__*/_jsxs("div", {
|
40
|
+
className: "right",
|
41
|
+
children: [/*#__PURE__*/_jsx(WifiOutlined, {}), /*#__PURE__*/_jsx(SunOutlined, {})]
|
42
|
+
})]
|
43
|
+
}), /*#__PURE__*/_jsx("div", {
|
44
|
+
className: "contentBox",
|
45
|
+
children: content
|
46
|
+
})]
|
47
|
+
})
|
48
|
+
}), /*#__PURE__*/_jsx("div", {
|
49
|
+
className: "stripe"
|
50
|
+
}), /*#__PURE__*/_jsx("div", {
|
51
|
+
className: "header",
|
52
|
+
children: /*#__PURE__*/_jsx("div", {
|
53
|
+
className: "sensors"
|
54
|
+
})
|
55
|
+
}), /*#__PURE__*/_jsx("div", {
|
56
|
+
className: "btns"
|
57
|
+
}), /*#__PURE__*/_jsx("div", {
|
58
|
+
className: "power"
|
59
|
+
})]
|
60
|
+
});
|
61
|
+
};
|
62
|
+
export default IPhone;
|