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,199 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
+ import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
6
+ import React, { useEffect, useState } from 'react';
7
+ import { ConfigProvider, Divider, Form, InputNumber, Modal, Space, Switch, Tag, TimePicker } from 'antd';
8
+ import "./index.less";
9
+ import LayoutContent from "../../../UI/LayoutContent";
10
+ import AccountManageSettingConfig from "../../../lib/accountManageSettingConfig";
11
+ import Tool from "../../../lib/Tool";
12
+ import FolderSelect from "../../../component/folder-select";
13
+ import dayjs from "dayjs";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
17
+ _objectDestructuringEmpty(_ref);
18
+ var _useState = useState(Tool.getOsName() === 'darwin' ? '.app' : '.exe'),
19
+ _useState2 = _slicedToArray(_useState, 1),
20
+ extName = _useState2[0];
21
+ var _Form$useForm = Form.useForm(),
22
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
23
+ form = _Form$useForm2[0];
24
+ var _useState3 = useState(_objectSpread({}, AccountManageSettingConfig())),
25
+ _useState4 = _slicedToArray(_useState3, 2),
26
+ formData = _useState4[0],
27
+ setFormData = _useState4[1];
28
+ var _onFinish = function onFinish(data) {
29
+ AccountManageSettingConfig(data);
30
+ };
31
+ var x = function x() {};
32
+ var onInit = /*#__PURE__*/function () {
33
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
35
+ while (1) switch (_context.prev = _context.next) {
36
+ case 0:
37
+ case "end":
38
+ return _context.stop();
39
+ }
40
+ }, _callee);
41
+ }));
42
+ return function onInit() {
43
+ return _ref2.apply(this, arguments);
44
+ };
45
+ }();
46
+ useEffect(function () {
47
+ onInit();
48
+ }, []);
49
+ return /*#__PURE__*/_jsx(LayoutContent, {
50
+ title: "\u8BBE\u7F6E",
51
+ subtitle: "",
52
+ className: "videoPublishAccountManageSetting",
53
+ children: /*#__PURE__*/_jsxs(Form, {
54
+ form: form,
55
+ labelCol: {
56
+ span: 5
57
+ },
58
+ autoComplete: "off",
59
+ initialValues: _objectSpread(_objectSpread({}, formData), {}, {
60
+ // defaultValue={}
61
+ queryDataTime: dayjs(formData.queryDataTime || '16:00', 'HH:mm')
62
+ }),
63
+ children: [/*#__PURE__*/_jsx(ConfigProvider, {
64
+ theme: {
65
+ token: {
66
+ colorPrimary: '#C00',
67
+ colorTextQuaternary: '#722ED1'
68
+ },
69
+ components: {
70
+ Switch: {
71
+ /* 这里是你的组件 token */
72
+ }
73
+ }
74
+ },
75
+ children: /*#__PURE__*/_jsx(Form.Item, {
76
+ label: "\u672C\u673A\u505C\u6B62\u63A5\u53D1\u5E03\u4EFB\u52A1",
77
+ name: "disabledApplyTask",
78
+ children: /*#__PURE__*/_jsx(Switch, {
79
+ checkedChildren: "\u7981\u7528\u81EA\u52A8\u53D1\u5E03\u4EFB\u52A1",
80
+ unCheckedChildren: "\u5F00\u542F\u81EA\u52A8\u53D1\u5E03\u4EFB\u52A1",
81
+ onChange: function onChange(disabledApplyTask) {
82
+ formData.disabledApplyTask = disabledApplyTask;
83
+ setFormData(_objectSpread({}, formData));
84
+ _onFinish(formData);
85
+ }
86
+ })
87
+ })
88
+ }), /*#__PURE__*/_jsx(Form.Item, {
89
+ label: "\u5DE5\u4F5C\u65F6\u662F\u5426\u663E\u793A\u6D4F\u89C8\u5668",
90
+ name: "isChromeOpen",
91
+ extra: "\u8C03\u8BD5\u6D4B\u8BD5\u65F6\u6253\u5F00\uFF0C\u6B63\u5E38\u60C5\u51B5\u4E0B \u9690\u85CF\u6D4F\u89C8\u5668",
92
+ children: /*#__PURE__*/_jsx(Switch, {
93
+ checkedChildren: "\u663E\u793A\u6D4F\u89C8\u5668",
94
+ unCheckedChildren: "\u9690\u85CF\u6D4F\u89C8\u5668",
95
+ checked: true,
96
+ disabled: true,
97
+ onChange: function onChange(isChromeOpen) {
98
+ formData.isChromeOpen = isChromeOpen;
99
+ setFormData(_objectSpread({}, formData));
100
+ _onFinish(formData);
101
+ }
102
+ })
103
+ }), /*#__PURE__*/_jsx(Form.Item, {
104
+ label: "\u8C37\u6B4C\u6D4F\u89C8\u5668 - \u591A\u5F00\u4F4D\u7F6E",
105
+ children: /*#__PURE__*/_jsx(FolderSelect, {
106
+ path: formData.chromeUserDataDir,
107
+ disabled: false,
108
+ placeholder: "\u8BF7\u9009\u62E9 Chrome \u6D4F\u89C8\u5668\u591A\u5F00\u7528\u6237\u6570\u636E\u7684\u4FDD\u5B58\u8DEF\u5F84\uFF0C\u6700\u597D\u653E\u5927\u4E00\u70B9\u7684\u76D8\uFF08\u9009\u597D\u540E\u4E0D\u8981\u4FEE\u6539\uFF09",
109
+ allowClear: false,
110
+ autoCreateDirName: "chrome-user-data",
111
+ onBeforeSelect: function onBeforeSelect() {
112
+ return new Promise(function (resolve, reject) {
113
+ if (!formData.chromeUserDataDir) {
114
+ return resolve(true);
115
+ }
116
+ Modal.confirm({
117
+ title: '郑重提醒',
118
+ content: '如果换文件夹,可能以前登录的账号全不会失效,需要全部重新登录',
119
+ okText: '我已清楚风险',
120
+ cancelText: '取消',
121
+ onCancel: function onCancel() {
122
+ resolve(false);
123
+ },
124
+ onOk: function onOk() {
125
+ resolve(true);
126
+ }
127
+ });
128
+ });
129
+ },
130
+ onFinish: function onFinish(chromeUserDataDir) {
131
+ formData.chromeUserDataDir = chromeUserDataDir;
132
+ setFormData(_objectSpread({}, formData));
133
+ _onFinish(formData);
134
+ }
135
+ })
136
+ }), /*#__PURE__*/_jsx(Divider, {
137
+ orientation: "left",
138
+ children: "\u67E5\u8BE2\u6570\u636E"
139
+ }), /*#__PURE__*/_jsx(Form.Item, {
140
+ label: "\u67E5\u8BE2\u57FA\u7840\u6570\u636E",
141
+ children: /*#__PURE__*/_jsxs(Space, {
142
+ size: 60,
143
+ children: [/*#__PURE__*/_jsx(Form.Item, {
144
+ name: "autoQueryData",
145
+ children: /*#__PURE__*/_jsx(Switch, {
146
+ disabled: true,
147
+ checkedChildren: "\u7A7A\u95F2\u4E3B\u52A8\u67E5\u8BE2\u6570\u636E",
148
+ unCheckedChildren: "\u4EC5\u53D1\u5E03\u65F6\u67E5\u8BE2\u6570\u636E",
149
+ onChange: function onChange(autoQueryData) {
150
+ formData.autoQueryData = autoQueryData;
151
+ setFormData(_objectSpread({}, formData));
152
+ _onFinish(formData);
153
+ }
154
+ })
155
+ }), /*#__PURE__*/_jsx(Form.Item, {
156
+ name: "queryDataTime",
157
+ label: "\u6BCF\u5929",
158
+ style: {
159
+ display: formData.autoQueryData ? '' : 'none'
160
+ },
161
+ children: /*#__PURE__*/_jsx(TimePicker, {
162
+ format: "HH:mm",
163
+ showNow: false,
164
+ minuteStep: 10
165
+ })
166
+ })]
167
+ })
168
+ }), /*#__PURE__*/_jsx(Divider, {
169
+ orientation: "left",
170
+ children: "\u4EFB\u52A1\u76F8\u5173"
171
+ }), /*#__PURE__*/_jsx(Form.Item, {
172
+ label: "\u4EFB\u52A1\u901A\u77E5\u7AEF\u53E3",
173
+ children: /*#__PURE__*/_jsxs(Space, {
174
+ size: 20,
175
+ children: [/*#__PURE__*/_jsx(InputNumber, {
176
+ className: "sendMessageToPort",
177
+ min: 80,
178
+ max: 65535,
179
+ value: formData.sendMessageToPort,
180
+ placeholder: "\u53D1\u9001\u6D88\u606F\u5230\u672C\u673A\u7AEF\u53E3",
181
+ onChange: function onChange(e) {
182
+ formData.sendMessageToPort = e || 9514;
183
+ setFormData(_objectSpread({}, formData));
184
+ _onFinish(formData);
185
+ }
186
+ }), /*#__PURE__*/_jsx(Divider, {
187
+ type: "vertical"
188
+ }), /*#__PURE__*/_jsxs("div", {
189
+ children: [/*#__PURE__*/_jsx(Tag, {
190
+ color: "orange",
191
+ children: "POST"
192
+ }), " http://127.0.0.1:", formData.sendMessageToPort, "/publish/result"]
193
+ })]
194
+ })
195
+ })]
196
+ })
197
+ });
198
+ };
199
+ export default AccountManageSettingPage;
@@ -0,0 +1,11 @@
1
+ .videoPublishAccountManageSetting{
2
+ .sendMessageToPort{
3
+ width: 180px;
4
+ }
5
+ }
6
+
7
+ .select{
8
+ small{
9
+ color: #999;
10
+ }
11
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface Props {
4
+ disabled?: boolean;
5
+ createBaseData: VideoPublish.TaskCreateBaseData;
6
+ onCreateBaseData: (baseData: VideoPublish.TaskCreateBaseData) => void;
7
+ env?: Global.Env;
8
+ }
9
+ declare const VideoPublishCreateTaskBase: React.FC<Props>;
10
+ export default VideoPublishCreateTaskBase;
@@ -0,0 +1,386 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
+ import React, { useState } from "react";
6
+ import "./index.less";
7
+ import { Divider, Tag, Form, Tooltip, InputNumber, Select, Radio, DatePicker, ConfigProvider, Switch } from "antd";
8
+ import { QuestionCircleOutlined, RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
9
+ import PageContentWarp from "../../../UI/PageContentWarp";
10
+ import { TreeSelect } from 'antd';
11
+ import Tool from "../../../lib/Tool";
12
+ import { useRequest } from "@umijs/hooks";
13
+ import * as VideoPublishController from "../../../service/api/VideoPublishController";
14
+ import VideoPlatform from "../../../component/video-platform/logo";
15
+ import VideoPublishCreateTaskHourEnabled from "../hour-enabled";
16
+ import dayjs from "dayjs";
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ import { Fragment as _Fragment } from "react/jsx-runtime";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
21
+ var disabled = _ref.disabled,
22
+ createBaseData = _ref.createBaseData,
23
+ _ref$onCreateBaseData = _ref.onCreateBaseData,
24
+ onCreateBaseData = _ref$onCreateBaseData === void 0 ? function () {} : _ref$onCreateBaseData,
25
+ env = _ref.env;
26
+ var _useState = useState([]),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ treeVideoAccountData = _useState2[0],
29
+ setTreeVideoAccountData = _useState2[1];
30
+ var _useRequest = useRequest(function () {
31
+ return VideoPublishController.videoAccountList({
32
+ isLoginValid: '',
33
+ // | '1' | '0';
34
+ keyword: '',
35
+ platform: '',
36
+ current: 1,
37
+ pageSize: 300 // 服务器 固定死了 300;
38
+ }, {
39
+ env: env
40
+ });
41
+ }, {
42
+ onSuccess: function onSuccess(result) {
43
+ var dict = {};
44
+ result.list.forEach(function (items) {
45
+ if (!dict[items.groupId]) {
46
+ dict[items.groupId] = {
47
+ title: /*#__PURE__*/_jsxs(_Fragment, {
48
+ children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {
49
+ className: "groupIcon"
50
+ }), " ", items.groupName || '默认']
51
+ }),
52
+ value: "group-".concat(items.groupId),
53
+ key: "group-".concat(items.groupId),
54
+ children: []
55
+ };
56
+ }
57
+ var followerCount = items.followerCount > 9999 ? /*#__PURE__*/_jsxs(_Fragment, {
58
+ children: [parseFloat((items.followerCount / 1e4).toFixed(1)), /*#__PURE__*/_jsx("small", {
59
+ children: "\u4E07"
60
+ })]
61
+ }) : items.followerCount;
62
+ dict[items.groupId].children.push({
63
+ title: /*#__PURE__*/_jsxs(_Fragment, {
64
+ children: [/*#__PURE__*/_jsx(VideoPlatform, {
65
+ platform: items.platform,
66
+ size: 14
67
+ }), " ", items.nickname, items.nicknameRemark && /*#__PURE__*/_jsx("small", {
68
+ className: "nicknameRemark",
69
+ children: items.nicknameRemark
70
+ }), /*#__PURE__*/_jsxs("small", {
71
+ className: "followerCount",
72
+ children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {}), " ", followerCount, " "]
73
+ }), !items.isLoginValid && /*#__PURE__*/_jsx("small", {
74
+ className: "notLoginValid",
75
+ children: /*#__PURE__*/_jsx(Tag, {
76
+ color: "red",
77
+ children: "\u672A\u767B\u5F55"
78
+ })
79
+ })]
80
+ }),
81
+ disabled: !items.isLoginValid,
82
+ value: "account-".concat(items.id),
83
+ key: "account-".concat(items.id)
84
+ });
85
+ });
86
+ var list = Object.values(dict);
87
+ var treeData = [];
88
+ if (list.length > 0) {
89
+ treeData.push({
90
+ key: 'all',
91
+ value: 'all',
92
+ title: /*#__PURE__*/_jsx(Tag, {
93
+ color: "blue",
94
+ children: "\u5168\u90E8"
95
+ }),
96
+ children: list
97
+ });
98
+ }
99
+ setTreeVideoAccountData(treeData);
100
+ }
101
+ }),
102
+ runAccountList = _useRequest.run,
103
+ loadingAccountList = _useRequest.loading,
104
+ errorAccountList = _useRequest.error;
105
+ var onAccountList = /*#__PURE__*/function () {
106
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
107
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
108
+ while (1) switch (_context.prev = _context.next) {
109
+ case 0:
110
+ if (!loadingAccountList) {
111
+ _context.next = 2;
112
+ break;
113
+ }
114
+ return _context.abrupt("return");
115
+ case 2:
116
+ _context.next = 4;
117
+ return runAccountList().catch(function (err) {});
118
+ case 4:
119
+ Tool.toast('账户列表已刷新');
120
+ case 5:
121
+ case "end":
122
+ return _context.stop();
123
+ }
124
+ }, _callee);
125
+ }));
126
+ return function onAccountList() {
127
+ return _ref2.apply(this, arguments);
128
+ };
129
+ }();
130
+ return /*#__PURE__*/_jsxs(PageContentWarp, {
131
+ loading: loadingAccountList,
132
+ error: errorAccountList,
133
+ onReload: runAccountList,
134
+ className: "videoPublishCreateTaskBase",
135
+ children: [/*#__PURE__*/_jsx(Divider, {
136
+ orientation: "left",
137
+ children: "\u9009\u62E9\u8D26\u6237"
138
+ }), /*#__PURE__*/_jsxs("div", {
139
+ className: "accountListWarp",
140
+ children: [/*#__PURE__*/_jsx(Form.Item, {
141
+ label: "\u8D26\u53F7",
142
+ extra: "\u6BCF\u4E2A\u89C6\u9891\u53EA\u53D1\u4E00\u4E2A\u8D26\u6237",
143
+ name: "accountList",
144
+ className: "accountList",
145
+ rules: [{
146
+ required: true,
147
+ message: '请选择账户'
148
+ }],
149
+ children: /*#__PURE__*/_jsx(TreeSelect, {
150
+ treeDefaultExpandAll: true,
151
+ disabled: loadingAccountList || treeVideoAccountData.length === 0,
152
+ treeData: treeVideoAccountData,
153
+ listHeight: 320
154
+ // value={ [] }
155
+ ,
156
+ onChange: function onChange(idList) {
157
+ console.log('TreeSelect:', idList);
158
+ },
159
+ treeCheckable: !loadingAccountList,
160
+ showCheckedStrategy: TreeSelect.SHOW_PARENT,
161
+ placeholder: treeVideoAccountData.length === 0 ? '账户列表为空,请先添加账户' : '请选择 账户/组'
162
+ })
163
+ }), /*#__PURE__*/_jsx("a", {
164
+ className: "renew ".concat(loadingAccountList ? 'disabled' : ''),
165
+ onClick: function onClick() {
166
+ return onAccountList();
167
+ },
168
+ children: /*#__PURE__*/_jsx(Tooltip, {
169
+ title: "\u5237\u65B0\u8D26\u6237\u5217\u8868",
170
+ children: /*#__PURE__*/_jsx(RedoOutlined, {})
171
+ })
172
+ })]
173
+ }), /*#__PURE__*/_jsx(Form.Item, {
174
+ label: "\u53D1\u5E03\u987A\u5E8F",
175
+ name: "publishOrder",
176
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
177
+ disabled: true,
178
+ children: [/*#__PURE__*/_jsxs(Radio, {
179
+ value: "",
180
+ children: ["\u6309\u4EFB\u52A1\u63D0\u4EA4\u987A\u5E8F", /*#__PURE__*/_jsxs(Tooltip, {
181
+ title: "\u6839\u636E\u63D0\u4EA4\u53D1\u5E03\u4EFB\u52A1\u7684\u987A\u5E8F\u53D1\uFF08\u65E2\uFF1A\u5148\u63D0\u4EA4\u7684\u5148\u53D1\u5E03\uFF0C \u540E\u63D0\u4EA4\u7684\u540E\u53D1\u5E03\uFF09",
182
+ children: [" ", /*#__PURE__*/_jsxs("a", {
183
+ children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
184
+ })]
185
+ })]
186
+ }), /*#__PURE__*/_jsxs(Radio, {
187
+ value: "loop-account",
188
+ children: ["\u6309\u8D26\u6237\u5FAA\u73AF", /*#__PURE__*/_jsxs(Tooltip, {
189
+ title: "\u7B2C\u4E00\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\u89C6\u9891\uFF0C\u63A5\u7740\u7B2C\u4E8C\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\uFF0C\u4E00\u76F4\u5FAA\u73AF\uFF08\u65E2\uFF1A\u6BCF\u4E2A\u8D26\u6237\u8F6E\u6D41\u5148\u53D1\u4E00\u4E2A\uFF0C\u6700\u5927\u9650\u5236\u4FDD\u8BC1\u6BCF\u4E2A\u8D26\u6237\u81F3\u5C11\u90FD\u6709\u89C6\u9891\uFF09",
190
+ children: [" ", /*#__PURE__*/_jsxs("a", {
191
+ children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
192
+ })]
193
+ })]
194
+ })]
195
+ })
196
+ }), /*#__PURE__*/_jsxs(Divider, {
197
+ orientation: "left",
198
+ children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
199
+ className: "normalVideo"
200
+ }), " \u666E\u901A\u89C6\u9891"]
201
+ }), /*#__PURE__*/_jsx(Form.Item, {
202
+ label: "\u53D1\u5E03\u9891\u7387",
203
+ name: "normalVideoRate",
204
+ children: /*#__PURE__*/_jsx(InputNumber, {
205
+ precision: 0,
206
+ min: 0,
207
+ max: 10000,
208
+ addonBefore: /*#__PURE__*/_jsxs(Select, {
209
+ className: "rateSelect",
210
+ value: createBaseData.normalVideoRateType,
211
+ onChange: function onChange(e) {
212
+ createBaseData.normalVideoRateType = e;
213
+ onCreateBaseData(_objectSpread({}, createBaseData));
214
+ },
215
+ children: [/*#__PURE__*/_jsx(Select.Option, {
216
+ value: "hour",
217
+ children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
218
+ }), /*#__PURE__*/_jsx(Select.Option, {
219
+ value: "day",
220
+ children: "\u6BCF\u5929\u53D1\u5E03"
221
+ })]
222
+ }),
223
+ addonAfter: "\u6761\u89C6\u9891"
224
+ })
225
+ }), createBaseData.normalVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
226
+ label: "\u6570\u91CF\u9650\u5236",
227
+ name: "normalDayMaxCount",
228
+ children: /*#__PURE__*/_jsx(InputNumber, {
229
+ precision: 0,
230
+ min: 1,
231
+ max: 10000,
232
+ addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
233
+ addonAfter: "\u6761\u89C6\u9891"
234
+ })
235
+ }), /*#__PURE__*/_jsx(Form.Item, {
236
+ label: "\u9891\u7387\u65B9\u5F0F",
237
+ name: "normalVideoKindRateType",
238
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
239
+ children: [/*#__PURE__*/_jsx(Radio, {
240
+ value: "",
241
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
242
+ }), /*#__PURE__*/_jsx(Radio, {
243
+ value: "now",
244
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
245
+ })]
246
+ })
247
+ }), /*#__PURE__*/_jsxs(Divider, {
248
+ orientation: "left",
249
+ children: [/*#__PURE__*/_jsx(ShoppingOutlined, {
250
+ className: "shoppingCart"
251
+ }), " \u5E26\u8D27\u89C6\u9891"]
252
+ }), /*#__PURE__*/_jsx(Form.Item, {
253
+ label: "\u53D1\u5E03\u9891\u7387",
254
+ name: "salesVideoRate",
255
+ children: /*#__PURE__*/_jsx(InputNumber, {
256
+ precision: 0,
257
+ min: 1,
258
+ max: 10000,
259
+ addonBefore: /*#__PURE__*/_jsxs(Select, {
260
+ className: "rateSelect",
261
+ value: createBaseData.salesVideoRateType,
262
+ onChange: function onChange(e) {
263
+ createBaseData.salesVideoRateType = e;
264
+ onCreateBaseData(_objectSpread({}, createBaseData));
265
+ },
266
+ children: [/*#__PURE__*/_jsx(Select.Option, {
267
+ value: "hour",
268
+ children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
269
+ }), /*#__PURE__*/_jsx(Select.Option, {
270
+ value: "day",
271
+ children: "\u6BCF\u5929\u53D1\u5E03"
272
+ })]
273
+ }),
274
+ addonAfter: "\u6761\u89C6\u9891"
275
+ })
276
+ }), createBaseData.salesVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
277
+ label: "\u6570\u91CF\u9650\u5236",
278
+ name: "salesDayMaxCount",
279
+ children: /*#__PURE__*/_jsx(InputNumber, {
280
+ precision: 0,
281
+ min: 1,
282
+ max: 10000,
283
+ addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
284
+ addonAfter: "\u6761\u89C6\u9891"
285
+ })
286
+ }), /*#__PURE__*/_jsx(Form.Item, {
287
+ label: "\u9891\u7387\u65B9\u5F0F",
288
+ name: "salesVideoKindRateType",
289
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
290
+ children: [/*#__PURE__*/_jsx(Radio, {
291
+ value: "",
292
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
293
+ }), /*#__PURE__*/_jsx(Radio, {
294
+ value: "now",
295
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
296
+ })]
297
+ })
298
+ }), /*#__PURE__*/_jsx(Divider, {
299
+ orientation: "left",
300
+ children: "\u63A8\u8350\u8BDD\u9898"
301
+ }), /*#__PURE__*/_jsx(Form.Item, {
302
+ label: "\u63A8\u8350\u8BDD\u9898",
303
+ name: "noTopicIsUserRecommendTopic",
304
+ extra: "\u5F53\u6CA1\u6709\u8F93\u5165\u8BDD\u9898\u7684\u65F6\u5019\uFF0C\u4F7F\u7528\u63A8\u8350\u8BDD\u9898",
305
+ children: /*#__PURE__*/_jsx(Switch, {
306
+ checkedChildren: "\u4F7F\u7528\u63A8\u8350\u8BDD\u9898",
307
+ unCheckedChildren: "\u7981\u7528\u63A8\u8350\u8BDD\u9898"
308
+ })
309
+ }), /*#__PURE__*/_jsx(Divider, {
310
+ orientation: "left",
311
+ children: "\u54EA\u4E9B\u5C0F\u65F6\u533A\u95F4\u53EF\u53D1"
312
+ }), /*#__PURE__*/_jsx(Form.Item, {
313
+ label: "\u8C01\u53EF\u4EE5\u770B",
314
+ name: "whoCanView",
315
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
316
+ children: [/*#__PURE__*/_jsx(Radio, {
317
+ value: "0",
318
+ children: "\u516C\u5F00"
319
+ }), /*#__PURE__*/_jsx(Radio, {
320
+ value: "2",
321
+ children: "\u597D\u53CB\u53EF\u89C1"
322
+ }), /*#__PURE__*/_jsx(Radio, {
323
+ value: "1",
324
+ children: "\u4EC5\u81EA\u5DF1\u53EF\u89C1"
325
+ })]
326
+ })
327
+ }), /*#__PURE__*/_jsx(Form.Item, {
328
+ label: "\u5141\u8BB8\u4E0B\u8F7D\u89C6\u9891",
329
+ name: "downloadContent",
330
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
331
+ children: [/*#__PURE__*/_jsx(Radio, {
332
+ value: "1",
333
+ children: "\u5141\u8BB8\u4E0B\u8F7D"
334
+ }), /*#__PURE__*/_jsx(Radio, {
335
+ value: "0",
336
+ children: "\u7981\u6B62\u4E0B\u8F7D"
337
+ })]
338
+ })
339
+ }), /*#__PURE__*/_jsx(Divider, {
340
+ orientation: "left",
341
+ children: "\u54EA\u4E9B\u5C0F\u65F6\u533A\u95F4\u53EF\u53D1"
342
+ }), /*#__PURE__*/_jsx(Form.Item, {
343
+ label: "\u65F6\u95F4\u6BB5",
344
+ children: /*#__PURE__*/_jsx(VideoPublishCreateTaskHourEnabled, {
345
+ disabled: true,
346
+ hourEnabled: createBaseData.hourEnabled,
347
+ onHourEnabled: function onHourEnabled(hourEnabled) {
348
+ createBaseData.hourEnabled = hourEnabled;
349
+ onCreateBaseData(_objectSpread({}, createBaseData));
350
+ }
351
+ })
352
+ }), /*#__PURE__*/_jsx(Divider, {
353
+ orientation: "left",
354
+ children: "\u5176\u4ED6\u8BBE\u7F6E"
355
+ }), /*#__PURE__*/_jsx(Form.Item, {
356
+ label: "\u5F00\u59CB\u65F6\u95F4",
357
+ name: "startTime",
358
+ children: /*#__PURE__*/_jsx(DatePicker, {
359
+ showTime: true,
360
+ disabledDate: function disabledDate(e) {
361
+ return e.valueOf() + 86400e3 < Date.now() || e.valueOf() >= dayjs().startOf('date').valueOf() + 86400e3 * 14;
362
+ },
363
+ onChange: function onChange(value, dateString) {
364
+ console.log('Selected Time: ', value);
365
+ console.log('Formatted Selected Time: ', dateString);
366
+ }
367
+ // onOk={onOk}
368
+ })
369
+ }), /*#__PURE__*/_jsx(Form.Item, {
370
+ label: "\u53D1\u5E03\u5B8C\u6210\u540E",
371
+ children: /*#__PURE__*/_jsx(ConfigProvider, {
372
+ theme: {
373
+ token: {
374
+ colorPrimary: '#F60',
375
+ colorTextQuaternary: '#1677ff'
376
+ }
377
+ },
378
+ children: /*#__PURE__*/_jsx(Switch, {
379
+ unCheckedChildren: "\u4FDD\u7559\u89C6\u9891",
380
+ checkedChildren: "\u5220\u9664\u89C6\u9891"
381
+ })
382
+ })
383
+ })]
384
+ });
385
+ };
386
+ export default VideoPublishCreateTaskBase;
@@ -0,0 +1,64 @@
1
+ .videoPublishCreateTaskBase {
2
+ padding: 0 12px 0 0;
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+
7
+ .groupIcon {
8
+ color: blue;
9
+ }
10
+
11
+ .rateSelect {
12
+ width: 120px;
13
+ }
14
+
15
+ .normalVideo {
16
+ color: blue;
17
+ }
18
+
19
+ .shoppingCart {
20
+ color: #F60;
21
+ }
22
+
23
+ .selectFile {
24
+ padding: 12px 0 0;
25
+ }
26
+
27
+ .submits {
28
+ text-align: right;
29
+ padding: 0 0 36px 0;
30
+ }
31
+
32
+ .accountListWarp {
33
+ display: flex;
34
+ flex-direction: row;
35
+
36
+ .accountList {
37
+ flex: 2;
38
+ margin-left: 5px;
39
+ }
40
+
41
+ .renew {
42
+ font-size: 20px;
43
+ padding: 0 12px;
44
+ }
45
+ }
46
+ }
47
+
48
+ .followerCount{
49
+ background-color: #F2F2F2;
50
+ border-radius: 3px;
51
+ font-size: smaller;
52
+ line-height: 1em;
53
+ margin-left: 3px;
54
+ padding: 2px 3px;
55
+
56
+ }
57
+
58
+ .notLoginValid {
59
+ margin-left: 5px;
60
+ }
61
+ .nicknameRemark {
62
+ color: #999;
63
+ padding: 0 3px;
64
+ }
@@ -0,0 +1,2 @@
1
+ declare const getVideoGoodsUrl: (selectList: VideoPublish.VideoSelectList[]) => Promise<VideoPublish.TxtVideoGoodsInfo[]>;
2
+ export default getVideoGoodsUrl;