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.
Files changed (117) hide show
  1. package/dist/Auth/index.js +45 -26
  2. package/dist/AuthClient/qr/index.css.js +1 -1
  3. package/dist/PhonePublish/account-manage/home.d.ts +11 -0
  4. package/dist/PhonePublish/account-manage/home.js +243 -0
  5. package/dist/PhonePublish/account-manage/home.less +28 -0
  6. package/dist/PhonePublish/account-manage/index.d.ts +3 -0
  7. package/dist/PhonePublish/account-manage/index.js +56 -0
  8. package/dist/PhonePublish/account-manage/index.less +59 -0
  9. package/dist/PhonePublish/account-manage/list.d.ts +17 -0
  10. package/dist/PhonePublish/account-manage/list.js +443 -0
  11. package/dist/PhonePublish/account-manage/list.less +95 -0
  12. package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
  13. package/dist/PhonePublish/account-manage/setting/index.js +199 -0
  14. package/dist/PhonePublish/account-manage/setting/index.less +11 -0
  15. package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
  16. package/dist/PhonePublish/create-task/base/index.js +386 -0
  17. package/dist/PhonePublish/create-task/base/index.less +64 -0
  18. package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  19. package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
  20. package/dist/PhonePublish/create-task/hour-enabled.d.ts +9 -0
  21. package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
  22. package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
  23. package/dist/PhonePublish/create-task/index.d.ts +11 -0
  24. package/dist/PhonePublish/create-task/index.js +449 -0
  25. package/dist/PhonePublish/create-task/index.less +75 -0
  26. package/dist/PhonePublish/create-task/select-list.css.d.ts +5 -0
  27. package/dist/PhonePublish/create-task/select-list.css.js +6 -0
  28. package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
  29. package/dist/PhonePublish/create-task/select-list.js +304 -0
  30. package/dist/PhonePublish/create-task/task-list.css.d.ts +5 -0
  31. package/dist/PhonePublish/create-task/task-list.css.js +6 -0
  32. package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
  33. package/dist/PhonePublish/create-task/task-list.js +323 -0
  34. package/dist/PhonePublish/index.css.d.ts +2 -0
  35. package/dist/PhonePublish/index.css.js +35 -0
  36. package/dist/PhonePublish/index.d.ts +15 -0
  37. package/dist/PhonePublish/index.js +191 -0
  38. package/dist/PhonePublish/index.less +55 -0
  39. package/dist/PhonePublish/lib/chrome-quit.d.ts +2 -0
  40. package/dist/PhonePublish/lib/chrome-quit.js +20 -0
  41. package/dist/PhonePublish/log/index.d.ts +8 -0
  42. package/dist/PhonePublish/log/index.js +186 -0
  43. package/dist/PhonePublish/log/index.less +81 -0
  44. package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
  45. package/dist/PhonePublish/publish-task-plan/index.js +32 -0
  46. package/dist/PhonePublish/publish-task-plan/index.less +4 -0
  47. package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
  48. package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
  49. package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
  50. package/dist/PhonePublish/task-list/index.d.ts +8 -0
  51. package/dist/PhonePublish/task-list/index.js +224 -0
  52. package/dist/PhonePublish/task-list/index.less +8 -0
  53. package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
  54. package/dist/PhonePublish/task-list/plan/list.js +290 -0
  55. package/dist/PhonePublish/task-list/plan/list.less +87 -0
  56. package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
  57. package/dist/PhonePublish/task-list/plan/operate.js +145 -0
  58. package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
  59. package/dist/PhonePublish/task-list/plan/query.js +89 -0
  60. package/dist/PhonePublish/task-list/plan/query.less +9 -0
  61. package/dist/PhonePublish/task-list/plan/status.d.ts +13 -0
  62. package/dist/PhonePublish/task-list/plan/status.js +53 -0
  63. package/dist/PhonePublish/task-list/query.d.ts +8 -0
  64. package/dist/PhonePublish/task-list/query.js +76 -0
  65. package/dist/PhonePublish/task-list/query.less +19 -0
  66. package/dist/PhonePublish/task-list/who-can-view.d.ts +12 -0
  67. package/dist/PhonePublish/task-list/who-can-view.js +37 -0
  68. package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
  69. package/dist/PhonePublish/video-account/ban/index.js +94 -0
  70. package/dist/PhonePublish/video-account/ban/index.less +4 -0
  71. package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
  72. package/dist/PhonePublish/video-account/base-info.js +75 -0
  73. package/dist/PhonePublish/video-account/base-info.less +92 -0
  74. package/dist/PhonePublish/video-account/create.d.ts +8 -0
  75. package/dist/PhonePublish/video-account/create.js +174 -0
  76. package/dist/PhonePublish/video-account/group.d.ts +9 -0
  77. package/dist/PhonePublish/video-account/group.js +255 -0
  78. package/dist/PhonePublish/video-account/group.less +10 -0
  79. package/dist/PhonePublish/video-account/index.d.ts +8 -0
  80. package/dist/PhonePublish/video-account/index.js +403 -0
  81. package/dist/PhonePublish/video-account/index.less +92 -0
  82. package/dist/PhonePublish/video-account/query.d.ts +8 -0
  83. package/dist/PhonePublish/video-account/query.js +115 -0
  84. package/dist/PhonePublish/video-account/query.less +18 -0
  85. package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  86. package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
  87. package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
  88. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
  89. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  90. package/dist/PhonePublish/video-publish-statistic/account-trend/query.d.ts +9 -0
  91. package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
  92. package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
  93. package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
  94. package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
  95. package/dist/PhonePublish/video-publish-statistic/kind.d.ts +16 -0
  96. package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
  97. package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
  98. package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
  99. package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
  100. package/dist/PhonePublish/video-publish-statistic/operation/query.d.ts +8 -0
  101. package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
  102. package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
  103. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  104. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
  105. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
  106. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.d.ts +9 -0
  107. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
  108. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
  109. package/dist/VideoPublish/account-manage/list.js +1 -1
  110. package/dist/index.d.ts +1 -0
  111. package/dist/index.js +1 -0
  112. package/dist/lib/Tool.d.ts +1 -1
  113. package/dist/phone/index.d.ts +8 -0
  114. package/dist/phone/index.js +62 -0
  115. package/dist/phone/index.less +170 -0
  116. package/dist/typings.d.ts +1 -1
  117. package/package.json +1 -1
@@ -0,0 +1,403 @@
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 "./index.less";
6
+ import PageContentWarp from "../../UI/PageContentWarp";
7
+ import { useRequest } from "@umijs/hooks";
8
+ import * as VideoPublishController from "../../service/api/VideoPublishController";
9
+ import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
10
+ import { Avatar, Button, Divider, Space, Table, Tag, Tooltip } from "antd";
11
+ import VideoPublishVideoAccountListQuery from "../../VideoPublish/video-account/query";
12
+ import VideoPlatform from "../../component/video-platform/logo";
13
+ import Money from "../../UI/Money";
14
+ import { PlusCircleOutlined, StopOutlined } from "@ant-design/icons";
15
+ import Tool from "../../lib/Tool";
16
+ import VideoAccountGroup from "../../VideoPublish/video-account/group";
17
+ import VideoAccountCreate from "../../VideoPublish/video-account/create";
18
+ import VideoPublishVideoAccountProxySelect from "../../VideoPublish/proxy/select";
19
+ import SavePath from "../../lib/save-path";
20
+ import dayjs from "dayjs";
21
+ import VideoAccountBan from "../../VideoPublish/video-account/ban";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { Fragment as _Fragment } from "react/jsx-runtime";
25
+ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
26
+ var disabled = _ref.disabled,
27
+ env = _ref.env;
28
+ var _useState = useState([]),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ listData = _useState2[0],
31
+ setListData = _useState2[1];
32
+ var _useState3 = useState({
33
+ current: 1,
34
+ pageSize: 20,
35
+ total: 0,
36
+ simple: true,
37
+ showSizeChanger: false
38
+ }),
39
+ _useState4 = _slicedToArray(_useState3, 2),
40
+ pagination = _useState4[0],
41
+ setPagination = _useState4[1];
42
+ var _useState5 = useState({
43
+ isLoginValid: '',
44
+ keyword: '',
45
+ platform: '',
46
+ isBan: ''
47
+ }),
48
+ _useState6 = _slicedToArray(_useState5, 2),
49
+ query = _useState6[0],
50
+ setQuery = _useState6[1];
51
+ var columns = [{
52
+ title: '序号',
53
+ dataIndex: '-',
54
+ key: '-',
55
+ render: function render(_, _1) {
56
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
57
+ return index + 1;
58
+ }
59
+ }, {
60
+ title: '编号',
61
+ dataIndex: 'id',
62
+ key: 'id'
63
+ }, {
64
+ title: '分组',
65
+ dataIndex: 'groupId',
66
+ key: 'groupId',
67
+ render: function render(groupId, record) {
68
+ return /*#__PURE__*/_jsx(Tag, {
69
+ className: "groupName",
70
+ color: record !== null && record !== void 0 && record.groupName ? 'blue' : '',
71
+ children: (record === null || record === void 0 ? void 0 : record.groupName) || '默认'
72
+ });
73
+ }
74
+ }, {
75
+ title: '平台',
76
+ dataIndex: 'platform',
77
+ key: 'platform',
78
+ render: function render(platform, record) {
79
+ return /*#__PURE__*/_jsx(VideoPlatform, {
80
+ platform: platform,
81
+ showName: true
82
+ });
83
+ }
84
+ }, {
85
+ title: '名称',
86
+ dataIndex: 'nickname',
87
+ key: 'nickname',
88
+ render: function render(nickname, record) {
89
+ return /*#__PURE__*/_jsxs("div", {
90
+ className: "userInfo",
91
+ children: [/*#__PURE__*/_jsx("div", {
92
+ className: "avatar",
93
+ children: /*#__PURE__*/_jsx(Avatar, {
94
+ size: 40,
95
+ className: "avatarBox",
96
+ src: record === null || record === void 0 ? void 0 : record.avatar
97
+ })
98
+ }), /*#__PURE__*/_jsxs("div", {
99
+ className: "info",
100
+ children: [/*#__PURE__*/_jsx("strong", {
101
+ className: "nickname",
102
+ children: (record === null || record === void 0 ? void 0 : record.nickname) || '-'
103
+ }), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsx("div", {
104
+ children: /*#__PURE__*/_jsx(Tooltip, {
105
+ title: "\u5907\u6CE8\uFF1A".concat(record === null || record === void 0 ? void 0 : record.nicknameRemark),
106
+ children: /*#__PURE__*/_jsx("div", {
107
+ className: "nicknameRemark",
108
+ children: record === null || record === void 0 ? void 0 : record.nicknameRemark
109
+ })
110
+ })
111
+ }), /*#__PURE__*/_jsx("div", {
112
+ className: "userId",
113
+ children: record === null || record === void 0 ? void 0 : record.accountId
114
+ })]
115
+ }), /*#__PURE__*/_jsx("div", {
116
+ className: "isBan",
117
+ children: /*#__PURE__*/_jsx("a", {
118
+ onClick: function onClick() {
119
+ return onBanEdit(record);
120
+ },
121
+ children: record && record !== null && record !== void 0 && record.isBan ? record !== null && record !== void 0 && record.notBanTime && record.notBanTime > Date.now() * 0.001 ? dayjs(record.notBanTime * 1e3).format('MM-DD') + ' 解封' : /*#__PURE__*/_jsx("span", {
122
+ className: "ban",
123
+ children: "\u5DF2\u5C01"
124
+ }) : /*#__PURE__*/_jsx("span", {
125
+ className: "normal",
126
+ children: "-"
127
+ })
128
+ })
129
+ })]
130
+ });
131
+ }
132
+ }, {
133
+ title: '代理',
134
+ dataIndex: 'proxyInfo',
135
+ key: 'proxyInfo',
136
+ render: function render(proxyInfo, record) {
137
+ return /*#__PURE__*/_jsxs("div", {
138
+ className: "proxyInfo",
139
+ children: [/*#__PURE__*/_jsx("div", {
140
+ children: proxyInfo.title
141
+ }), /*#__PURE__*/_jsxs("div", {
142
+ children: [proxyInfo.ip, proxyInfo.area && /*#__PURE__*/_jsxs(_Fragment, {
143
+ children: [/*#__PURE__*/_jsx(Divider, {
144
+ type: "vertical"
145
+ }), /*#__PURE__*/_jsx("span", {
146
+ className: "area",
147
+ children: proxyInfo.area
148
+ })]
149
+ })]
150
+ })]
151
+ });
152
+ }
153
+ }, {
154
+ title: /*#__PURE__*/_jsx(_Fragment, {
155
+ children: "\u767B\u5F55\u6001"
156
+ }),
157
+ dataIndex: 'isLoginValid',
158
+ key: 'isLoginValid',
159
+ render: function render(isLoginValid, record) {
160
+ return isLoginValid ? /*#__PURE__*/_jsx(Tag, {
161
+ color: "green",
162
+ children: "\u5DF2\u767B\u5F55"
163
+ }) : /*#__PURE__*/_jsx(Tag, {
164
+ color: "red",
165
+ children: "\u672A\u767B\u5F55"
166
+ });
167
+ }
168
+ }, {
169
+ title: /*#__PURE__*/_jsx(_Fragment, {
170
+ children: "\u89C6\u9891\u91CF"
171
+ }),
172
+ dataIndex: 'videoCount',
173
+ key: 'videoCount'
174
+ }, {
175
+ title: '粉丝',
176
+ dataIndex: 'followerCount',
177
+ key: 'followerCount',
178
+ render: function render(followerCount) {
179
+ return /*#__PURE__*/_jsx(Money, {
180
+ pre: "",
181
+ value: followerCount,
182
+ end: "",
183
+ precision: 1
184
+ });
185
+ }
186
+ }, {
187
+ title: '养号模式的视频文件夹',
188
+ dataIndex: 'videoFromFolder',
189
+ key: 'videoFromFolder',
190
+ render: function render(videoFromFolder, record) {
191
+ var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
192
+ return /*#__PURE__*/_jsx("div", {
193
+ className: "videoFromFolder",
194
+ children: record !== null && record !== void 0 && record.enabledActiveAccountMode ? /*#__PURE__*/_jsx(SavePath, {
195
+ size: "small",
196
+ path: videoFromFolder,
197
+ placeholder: "\u8BF7\u9009\u62E9\u672C\u5730\u89C6\u9891\u6587\u4EF6\u5939",
198
+ hiddenOpenDir: false,
199
+ disabled: !(record !== null && record !== void 0 && record.enabledActiveAccountMode),
200
+ onChange: function onChange(videoFromFolder) {
201
+ console.log('formData:', videoFromFolder);
202
+ // onVideoFromFolderCreate( id, e );
203
+ onVideoFromFolder(i, videoFromFolder);
204
+ }
205
+ }) : /*#__PURE__*/_jsxs("div", {
206
+ className: "disabledActiveAccountMode",
207
+ children: [/*#__PURE__*/_jsx(StopOutlined, {}), " \u5DF2\u7981\u7528\u517B\u53F7\u53D1\u5E03"]
208
+ })
209
+ });
210
+ }
211
+ }, {
212
+ title: '操作',
213
+ dataIndex: 'id',
214
+ key: 'id',
215
+ render: function render(id, record) {
216
+ return /*#__PURE__*/_jsxs(Space, {
217
+ children: [/*#__PURE__*/_jsx(Button, {
218
+ type: "link",
219
+ size: "small",
220
+ onClick: function onClick() {
221
+ return onCreate(id);
222
+ },
223
+ children: "\u7F16\u8F91"
224
+ }), /*#__PURE__*/_jsx(Button, {
225
+ type: "link",
226
+ size: "small",
227
+ onClick: function onClick() {
228
+ return onProxyEdit((record === null || record === void 0 ? void 0 : record.nickname) || '', id, record === null || record === void 0 ? void 0 : record.videoAccountProxyId);
229
+ },
230
+ children: "\u4EE3\u7406"
231
+ })]
232
+ });
233
+ }
234
+ }];
235
+ var _useRequest = useRequest(function () {
236
+ var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
237
+ var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
238
+ return VideoPublishController.videoAccountList(_objectSpread(_objectSpread({}, postQuery), {}, {
239
+ current: current,
240
+ pageSize: pagination.pageSize
241
+ }), {
242
+ env: env
243
+ });
244
+ }, {
245
+ onSuccess: function onSuccess(result) {
246
+ setListData(_toConsumableArray(result.list));
247
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
248
+ }
249
+ }),
250
+ runVideoAccount = _useRequest.run,
251
+ loadingVideoAccount = _useRequest.loading,
252
+ errorVideoAccount = _useRequest.error;
253
+ var _useRequest2 = useRequest(function (data) {
254
+ return VideoPublishVideoAccountController.createProxy(data, {
255
+ env: env
256
+ });
257
+ }, {
258
+ manual: true,
259
+ onSuccess: function onSuccess(result) {
260
+ Tool.toast('代理保存成功');
261
+ runVideoAccount();
262
+ }
263
+ }),
264
+ loadingProxyCreate = _useRequest2.loading,
265
+ runProxyCreate = _useRequest2.run;
266
+ var _useRequest3 = useRequest(function (id, videoFromFolder) {
267
+ return VideoPublishController.videoFromFolderCreate({
268
+ id: id,
269
+ videoFromFolder: videoFromFolder
270
+ }, {
271
+ env: env
272
+ });
273
+ }, {
274
+ manual: true,
275
+ onSuccess: function onSuccess(result) {
276
+ Tool.toast('已保存');
277
+ // listData.forEach( ( items, i) => {
278
+ // if( items.id !== result.id ){
279
+ // return;
280
+ // }
281
+ // listData[ i ].items = result.items;
282
+ // });
283
+ // setListData([...listData]);
284
+ }
285
+ }),
286
+ runVideoFromFolder = _useRequest3.run,
287
+ loadingVideoFromFolder = _useRequest3.loading;
288
+ var onBanEdit = function onBanEdit(record) {
289
+ var _ref2;
290
+ var dialog = Tool.drawer({
291
+ title: '编辑账号被封',
292
+ content: /*#__PURE__*/_jsx(VideoAccountBan, {
293
+ env: env,
294
+ videoAccountId: (record === null || record === void 0 ? void 0 : record.id) || 0,
295
+ isBan: (record === null || record === void 0 ? void 0 : record.isBan) || false,
296
+ notBanTime: (record === null || record === void 0 ? void 0 : record.notBanTime) || 0,
297
+ onSuccess: function onSuccess() {
298
+ runVideoAccount();
299
+ dialog.destroy();
300
+ }
301
+ }),
302
+ zIndex: 1200,
303
+ width: Math.min(520, ((_ref2 = global || window) === null || _ref2 === void 0 ? void 0 : _ref2.innerWidth) * 0.95)
304
+ });
305
+ };
306
+ var _onQuery = function onQuery(query) {
307
+ setQuery(_objectSpread({}, query));
308
+ runVideoAccount(query);
309
+ };
310
+ var onVideoFromFolder = function onVideoFromFolder(i, videoFromFolder) {
311
+ listData[i].videoFromFolder = videoFromFolder;
312
+ setListData(_toConsumableArray(listData));
313
+ runVideoFromFolder(listData[i].id, videoFromFolder);
314
+ };
315
+ var onProxyEdit = function onProxyEdit(nickname, videoAccountId) {
316
+ var videoAccountProxyId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
317
+ var dialog = Tool.drawer({
318
+ title: '编辑代理',
319
+ content: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxySelect, {
320
+ env: env,
321
+ nickname: nickname,
322
+ videoAccountProxyId: videoAccountProxyId,
323
+ onSuccess: function onSuccess(newVideoAccountProxyId) {
324
+ runProxyCreate({
325
+ videoAccountId: videoAccountId,
326
+ videoAccountProxyId: newVideoAccountProxyId
327
+ });
328
+ dialog.destroy();
329
+ }
330
+ }),
331
+ width: 680
332
+ });
333
+ };
334
+ var onCreateGroup = function onCreateGroup() {
335
+ var groupId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
336
+ var dialog = Tool.drawer({
337
+ title: '编辑分组',
338
+ content: /*#__PURE__*/_jsx(VideoAccountGroup, {
339
+ env: env,
340
+ onSuccess: function onSuccess() {
341
+ runVideoAccount(query, 1);
342
+ dialog.destroy();
343
+ },
344
+ onGroupChange: function onGroupChange() {}
345
+ }),
346
+ width: 620
347
+ });
348
+ };
349
+ var onCreate = function onCreate(id) {
350
+ var dialog = Tool.drawer({
351
+ title: '编辑账号',
352
+ content: /*#__PURE__*/_jsx(VideoAccountCreate, {
353
+ env: env,
354
+ id: id,
355
+ onSuccess: function onSuccess() {
356
+ runVideoAccount(query);
357
+ dialog.destroy();
358
+ }
359
+ }),
360
+ width: 620
361
+ });
362
+ };
363
+ return /*#__PURE__*/_jsx(PageContentWarp, {
364
+ loading: loadingVideoAccount,
365
+ error: errorVideoAccount,
366
+ onReload: function onReload() {
367
+ return runVideoAccount(query);
368
+ },
369
+ title: "\u77ED\u89C6\u9891\u8D26\u6237",
370
+ className: "videoPublishVideoAccountList",
371
+ subtitle: /*#__PURE__*/_jsxs(Button, {
372
+ size: "small",
373
+ type: "primary",
374
+ ghost: true,
375
+ loading: loadingProxyCreate,
376
+ onClick: function onClick() {
377
+ return onCreateGroup(0);
378
+ },
379
+ children: [/*#__PURE__*/_jsx(PlusCircleOutlined, {}), " \u7BA1\u7406\u5206\u7EC4"]
380
+ }),
381
+ extInfo: /*#__PURE__*/_jsx(VideoPublishVideoAccountListQuery, {
382
+ defaultQuery: query,
383
+ onQuery: function onQuery(query) {
384
+ return _onQuery(query);
385
+ }
386
+ }),
387
+ children: /*#__PURE__*/_jsx(Table, {
388
+ size: "small",
389
+ bordered: true,
390
+ rowKey: function rowKey(record) {
391
+ return "".concat(record.id);
392
+ },
393
+ loading: false,
394
+ columns: columns,
395
+ dataSource: listData,
396
+ pagination: pagination,
397
+ onChange: function onChange(page, filters, sorter, extra) {
398
+ runVideoAccount(query, page.current || 1);
399
+ }
400
+ })
401
+ });
402
+ };
403
+ export default VideoPublishVideoAccount;
@@ -0,0 +1,92 @@
1
+ .videoPublishVideoAccountList{
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+
6
+
7
+ .userInfo{
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: row;
11
+ .avatar{
12
+ .avatarBox{
13
+ box-shadow: 0 0 3px #AAA;
14
+ }
15
+ }
16
+ .nicknameRemark{
17
+ max-width: 110px;
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
20
+ white-space: nowrap;
21
+ word-break: keep-all;
22
+ //line-height: 1em;
23
+ vertical-align: middle;
24
+ font-size: 12px;
25
+ }
26
+ .info{
27
+ margin: 0 0 0 10px;
28
+ .nickname{
29
+ display: inline-block;
30
+ }
31
+ .userId{
32
+ font-size: 12px;
33
+ color: #999;
34
+ font-weight: 300;
35
+ }
36
+ }
37
+ .isBan{
38
+ position: absolute;
39
+ top: -13px;
40
+ right: -8px;
41
+ a{
42
+ line-height: 1em;
43
+ font-size: 12px;
44
+ .ban{
45
+ display: inline-block;
46
+ background-color: #C00;
47
+ color: #FFF;
48
+ padding: 2px 3px;
49
+ line-height: 1em;
50
+ }
51
+ .normal{
52
+ display: inline-block;
53
+ min-width: 12px;
54
+ padding: 2px 3px;
55
+ line-height: 1em;
56
+ background-color: #F6F6F6;
57
+ color: #F6F6F6;
58
+ }
59
+ }
60
+ }
61
+ }
62
+ .groupName{
63
+ i{
64
+ font-style: normal;
65
+ text-overflow: ellipsis;
66
+ overflow: hidden;
67
+ word-break: keep-all;
68
+ white-space: nowrap;
69
+ max-width: 120px;
70
+ display: inline-block;
71
+ vertical-align: middle;
72
+ }
73
+ .writeIcon{
74
+ display: inline-block;
75
+ vertical-align: middle;
76
+ }
77
+ }
78
+
79
+ .proxyInfo{
80
+ font-size: 12px;
81
+ .area{
82
+ padding: 2px 3px;
83
+ background-color: #F2F2F2;
84
+ border-radius: 3px;
85
+ font-weight: 300;
86
+ }
87
+ }
88
+
89
+ .disabledActiveAccountMode{
90
+ color: #AAA;
91
+ }
92
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './query.less';
3
+ interface Props {
4
+ defaultQuery: VideoPublish.VideoAccountListQuery;
5
+ onQuery: (query: VideoPublish.VideoAccountListQuery) => void;
6
+ }
7
+ declare const VideoPublishVideoAccountListQuery: React.FC<Props>;
8
+ export default VideoPublishVideoAccountListQuery;
@@ -0,0 +1,115 @@
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, Form, Input, Select, Space, Tag } from "antd";
5
+ import "./query.less";
6
+ import { UnorderedListOutlined } from "@ant-design/icons";
7
+ import dayjs from "dayjs";
8
+ import VideoPlatform, { VideoPlatformList } from "../../component/video-platform/logo";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ var VideoPublishVideoAccountListQuery = function VideoPublishVideoAccountListQuery(_ref) {
12
+ var 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 onFinish = function onFinish() {
24
+ var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
25
+ onQuery(_objectSpread(_objectSpread({}, query), values));
26
+ };
27
+ return /*#__PURE__*/_jsx("div", {
28
+ className: "videoPublishVideoAccountListQuery",
29
+ children: /*#__PURE__*/_jsx(Form, {
30
+ form: form,
31
+ initialValues: _objectSpread({}, query),
32
+ onFinish: onFinish,
33
+ children: /*#__PURE__*/_jsxs(Space, {
34
+ wrap: true,
35
+ children: [/*#__PURE__*/_jsx(Form.Item, {
36
+ name: "platform",
37
+ className: "platform",
38
+ children: /*#__PURE__*/_jsxs(Select, {
39
+ children: [/*#__PURE__*/_jsxs(Select, {
40
+ value: "",
41
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u5E73\u53F0"]
42
+ }), VideoPlatformList.map(function (item) {
43
+ return /*#__PURE__*/_jsx(Select, {
44
+ value: item.platform,
45
+ disabled: item.disabled,
46
+ children: /*#__PURE__*/_jsx(VideoPlatform, {
47
+ platform: item.platform,
48
+ showName: true
49
+ })
50
+ }, item.platform);
51
+ })]
52
+ })
53
+ }), /*#__PURE__*/_jsx(Form.Item, {
54
+ name: "isBan",
55
+ className: "isBan",
56
+ children: /*#__PURE__*/_jsxs(Select, {
57
+ children: [/*#__PURE__*/_jsxs(Select, {
58
+ value: "",
59
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
60
+ }), /*#__PURE__*/_jsx(Select, {
61
+ value: "0",
62
+ children: /*#__PURE__*/_jsx(Tag, {
63
+ color: "green",
64
+ children: "\u6B63\u5E38"
65
+ })
66
+ }), /*#__PURE__*/_jsx(Select, {
67
+ value: "1",
68
+ children: /*#__PURE__*/_jsx(Tag, {
69
+ color: "red",
70
+ children: "\u88AB\u7981"
71
+ })
72
+ })]
73
+ })
74
+ }), /*#__PURE__*/_jsx(Form.Item, {
75
+ name: "isLoginValid",
76
+ className: "isLoginValid",
77
+ children: /*#__PURE__*/_jsxs(Select, {
78
+ children: [/*#__PURE__*/_jsxs(Select, {
79
+ value: "",
80
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u8D26\u53F7"]
81
+ }), /*#__PURE__*/_jsx(Select, {
82
+ value: "1",
83
+ children: /*#__PURE__*/_jsx(Tag, {
84
+ color: "green",
85
+ children: "\u5DF2\u767B\u5F55"
86
+ })
87
+ }), /*#__PURE__*/_jsx(Select, {
88
+ value: "0",
89
+ children: /*#__PURE__*/_jsx(Tag, {
90
+ color: "red",
91
+ children: "\u672A\u767B\u5F55"
92
+ })
93
+ })]
94
+ })
95
+ }), /*#__PURE__*/_jsx(Form.Item, {
96
+ name: "keyword",
97
+ className: "keyword",
98
+ children: /*#__PURE__*/_jsx(Input
99
+ // value={ query.keyword }
100
+ , {
101
+ placeholder: "\u641C\u7D22\u8D26\u53F7\u540D",
102
+ allowClear: true
103
+ // onChange={ e => onKeyWord( e.target.value ) }
104
+ // onPressEnter={ ( e ) => onSearch( e.target ) }
105
+ })
106
+ }), /*#__PURE__*/_jsx(Button, {
107
+ type: "primary",
108
+ htmlType: "submit",
109
+ children: "\u641C\u7D22"
110
+ })]
111
+ })
112
+ })
113
+ });
114
+ };
115
+ export default VideoPublishVideoAccountListQuery;
@@ -0,0 +1,18 @@
1
+ .videoPublishVideoAccountListQuery{
2
+ .ant-form-item{
3
+ margin-bottom: 0 !important;
4
+ }
5
+
6
+ .isLoginValid{
7
+ width: 150px;
8
+ }
9
+
10
+ .platform{
11
+ width: 150px;
12
+ }
13
+
14
+ .isBan{
15
+ width: 150px;
16
+ }
17
+
18
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface Props {
4
+ accountId: number;
5
+ env?: Global.Env;
6
+ }
7
+ declare const VideoPublishStatisticAccountTrend: React.FC<Props>;
8
+ export default VideoPublishStatisticAccountTrend;