component-shipinlv 1.0.33 → 1.0.36
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/VideoPublish/create-task/base/index.d.ts +10 -0
- package/dist/VideoPublish/create-task/base/index.js +315 -0
- package/dist/VideoPublish/create-task/base/index.less +64 -0
- package/dist/VideoPublish/create-task/index.js +294 -0
- package/dist/VideoPublish/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types/VideoPublish.d.ts +4 -2
- package/package.json +1 -1
- package/dist/VideoPublish/creat-task/index.js +0 -569
- /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.js +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.less +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/index.css.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/index.css.js +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/index.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/select-list.css.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/select-list.css.js +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/select-list.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/select-list.js +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/task-list.css.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/task-list.css.js +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/task-list.d.ts +0 -0
- /package/dist/VideoPublish/{creat-task → create-task}/task-list.js +0 -0
package/dist/index.d.ts
CHANGED
@@ -12,7 +12,7 @@ export { default as DealerUrlDict } from './base/DealerUrlDict';
|
|
12
12
|
export { default as VideoPlatform, VideoPlatformList, VideoPlatformDict } from './component/video-platform/logo';
|
13
13
|
export { default as VipList } from './VipList';
|
14
14
|
export { default as VideoPublish } from './VideoPublish';
|
15
|
-
export { default as VideoPublishCreateTask } from './VideoPublish/
|
15
|
+
export { default as VideoPublishCreateTask } from './VideoPublish/create-task';
|
16
16
|
export { default as VideoPublishVideoAccount } from './VideoPublish/video-account';
|
17
17
|
export { default as VideoKindTag } from './component/videoKindTag';
|
18
18
|
export { VideoKindTagList } from './component/videoKindTag';
|
package/dist/index.js
CHANGED
@@ -14,7 +14,7 @@ export { default as DealerUrlDict } from "./base/DealerUrlDict";
|
|
14
14
|
export { default as VideoPlatform, VideoPlatformList, VideoPlatformDict } from "./component/video-platform/logo";
|
15
15
|
export { default as VipList } from "./VipList";
|
16
16
|
export { default as VideoPublish } from "./VideoPublish";
|
17
|
-
export { default as VideoPublishCreateTask } from "./VideoPublish/
|
17
|
+
export { default as VideoPublishCreateTask } from "./VideoPublish/create-task";
|
18
18
|
export { default as VideoPublishVideoAccount } from "./VideoPublish/video-account";
|
19
19
|
export { default as VideoKindTag } from "./component/videoKindTag";
|
20
20
|
export { VideoKindTagList } from "./component/videoKindTag";
|
@@ -106,9 +106,12 @@ declare namespace VideoPublish {
|
|
106
106
|
kindTagValue: string;
|
107
107
|
goodsTitle: string;
|
108
108
|
}
|
109
|
-
interface TaskCreate {
|
109
|
+
interface TaskCreate extends TaskCreateBaseData {
|
110
110
|
videoFrom: 'task' | 'local';
|
111
|
+
videoList: PublishVideoList[];
|
111
112
|
taskFromProductType: string;
|
113
|
+
}
|
114
|
+
interface TaskCreateBaseData {
|
112
115
|
normalVideoRate: number;
|
113
116
|
normalVideoRateType: 'hour' | 'day';
|
114
117
|
normalDayMaxCount: number;
|
@@ -120,7 +123,6 @@ declare namespace VideoPublish {
|
|
120
123
|
accountList: string[];
|
121
124
|
startTime: number | null;
|
122
125
|
hourEnabled: number[];
|
123
|
-
videoList: PublishVideoList[];
|
124
126
|
}
|
125
127
|
interface TaskListQuery {
|
126
128
|
startTime: number;
|
package/package.json
CHANGED
@@ -1,569 +0,0 @@
|
|
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 styles from "./index.css";
|
7
|
-
import { Alert, Button, ConfigProvider, DatePicker, Divider, Form, InputNumber, Radio, Select, Switch, Tag, Tooltip } from "antd";
|
8
|
-
import { PlusOutlined, RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
9
|
-
import PageContentWarp from "../../UI/PageContentWarp";
|
10
|
-
import { TreeSelect } from 'antd';
|
11
|
-
import isInClient from "../../lib/isInClient";
|
12
|
-
import Tool from "../../lib/Tool";
|
13
|
-
import VideoPublishTaskList from "./task-list";
|
14
|
-
import VideoPublishSelectList from "./select-list";
|
15
|
-
import { useRequest } from "@umijs/hooks";
|
16
|
-
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
17
|
-
import VideoPlatform from "../../component/video-platform/logo";
|
18
|
-
import fileSelect from "../../base/fileSelect";
|
19
|
-
import VideoPublishCreateTaskHourEnabled from "./hour-enabled";
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
23
|
-
var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
24
|
-
var disabled = _ref.disabled,
|
25
|
-
productType = _ref.productType,
|
26
|
-
apiUrl = _ref.apiUrl,
|
27
|
-
env = _ref.env;
|
28
|
-
var _useState = useState({
|
29
|
-
videoFrom: productType ? 'task' : 'local',
|
30
|
-
taskFromProductType: productType,
|
31
|
-
accountList: [],
|
32
|
-
normalVideoRate: 1,
|
33
|
-
normalVideoRateType: 'hour',
|
34
|
-
normalDayMaxCount: 1,
|
35
|
-
normalVideoKindRateType: '',
|
36
|
-
startTime: null,
|
37
|
-
salesVideoRate: 2,
|
38
|
-
salesVideoRateType: 'hour',
|
39
|
-
salesDayMaxCount: 2,
|
40
|
-
salesVideoKindRateType: '',
|
41
|
-
hourEnabled: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
|
42
|
-
videoList: []
|
43
|
-
}),
|
44
|
-
_useState2 = _slicedToArray(_useState, 2),
|
45
|
-
formData = _useState2[0],
|
46
|
-
setFormData = _useState2[1];
|
47
|
-
var _useState3 = useState(false),
|
48
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
49
|
-
loadingSelectLocal = _useState4[0],
|
50
|
-
setLoadingSelectLocal = _useState4[1];
|
51
|
-
var _useState5 = useState([]),
|
52
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
53
|
-
localSelectList = _useState6[0],
|
54
|
-
setLocalSelectList = _useState6[1];
|
55
|
-
var _useState7 = useState([]),
|
56
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
57
|
-
taskSelectList = _useState8[0],
|
58
|
-
setTaskSelectList = _useState8[1];
|
59
|
-
var _useState9 = useState([]),
|
60
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
61
|
-
treeVideoAccountData = _useState10[0],
|
62
|
-
setTreeVideoAccountData = _useState10[1];
|
63
|
-
var _useRequest = useRequest(function () {
|
64
|
-
return VideoPublishController.videoAccountList({
|
65
|
-
isLoginValid: '',
|
66
|
-
// | '1' | '0';
|
67
|
-
keyword: '',
|
68
|
-
platform: '',
|
69
|
-
current: 1,
|
70
|
-
pageSize: 300 // 服务器 固定死了 300;
|
71
|
-
}, {
|
72
|
-
env: env
|
73
|
-
});
|
74
|
-
}, {
|
75
|
-
onSuccess: function onSuccess(result) {
|
76
|
-
var dict = {};
|
77
|
-
result.list.forEach(function (items) {
|
78
|
-
if (!dict[items.groupId]) {
|
79
|
-
dict[items.groupId] = {
|
80
|
-
title: /*#__PURE__*/_jsxs(_Fragment, {
|
81
|
-
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {
|
82
|
-
className: "groupIcon"
|
83
|
-
}), " ", items.groupName || '默认分组']
|
84
|
-
}),
|
85
|
-
value: "group-".concat(items.groupId),
|
86
|
-
key: "group-".concat(items.groupId),
|
87
|
-
children: []
|
88
|
-
};
|
89
|
-
}
|
90
|
-
var followerCount = items.followerCount > 9999 ? /*#__PURE__*/_jsxs(_Fragment, {
|
91
|
-
children: [parseFloat((items.followerCount / 1e4).toFixed(1)), /*#__PURE__*/_jsx("small", {
|
92
|
-
children: "\u4E07"
|
93
|
-
})]
|
94
|
-
}) : items.followerCount;
|
95
|
-
dict[items.groupId].children.push({
|
96
|
-
title: /*#__PURE__*/_jsxs(_Fragment, {
|
97
|
-
children: [/*#__PURE__*/_jsx(VideoPlatform, {
|
98
|
-
platform: items.platform,
|
99
|
-
size: 14
|
100
|
-
}), " ", items.nickname, items.nicknameRemark && /*#__PURE__*/_jsx(styles.nicknameRemark, {
|
101
|
-
children: items.nicknameRemark
|
102
|
-
}), /*#__PURE__*/_jsxs(styles.followerCount, {
|
103
|
-
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {}), " ", followerCount, " "]
|
104
|
-
}), !items.isLoginValid && /*#__PURE__*/_jsx(styles.notLoginValid, {
|
105
|
-
children: /*#__PURE__*/_jsx(Tag, {
|
106
|
-
color: "red",
|
107
|
-
children: "\u672A\u767B\u5F55"
|
108
|
-
})
|
109
|
-
})]
|
110
|
-
}),
|
111
|
-
disabled: !items.isLoginValid,
|
112
|
-
value: "account-".concat(items.id),
|
113
|
-
key: "account-".concat(items.id)
|
114
|
-
});
|
115
|
-
});
|
116
|
-
var treeData = [{
|
117
|
-
key: 'all',
|
118
|
-
value: 'all',
|
119
|
-
title: /*#__PURE__*/_jsx(Tag, {
|
120
|
-
color: "blue",
|
121
|
-
children: "\u5168\u90E8"
|
122
|
-
}),
|
123
|
-
children: Object.values(dict)
|
124
|
-
}];
|
125
|
-
setTreeVideoAccountData(treeData);
|
126
|
-
}
|
127
|
-
}),
|
128
|
-
runAccountList = _useRequest.run,
|
129
|
-
loadingAccountList = _useRequest.loading,
|
130
|
-
errorAccountList = _useRequest.error;
|
131
|
-
var _useRequest2 = useRequest(function (data) {
|
132
|
-
return VideoPublishController.taskCreate(data, {
|
133
|
-
env: env
|
134
|
-
});
|
135
|
-
}, {
|
136
|
-
manual: true,
|
137
|
-
onSuccess: function onSuccess(result) {
|
138
|
-
// 清除
|
139
|
-
setLocalSelectList([]);
|
140
|
-
setTaskSelectList([]);
|
141
|
-
Tool.toast('任务提交成功');
|
142
|
-
}
|
143
|
-
}),
|
144
|
-
runTask = _useRequest2.run,
|
145
|
-
loadingTask = _useRequest2.loading,
|
146
|
-
errorTask = _useRequest2.error;
|
147
|
-
var onTaskList = function onTaskList() {
|
148
|
-
var dialog = Tool.drawer({
|
149
|
-
title: '任务列表',
|
150
|
-
content: /*#__PURE__*/_jsx(VideoPublishTaskList, {
|
151
|
-
defaultSelectList: [],
|
152
|
-
apiUrl: apiUrl,
|
153
|
-
productType: productType,
|
154
|
-
onFinish: function onFinish(list) {
|
155
|
-
setTaskSelectList(list);
|
156
|
-
dialog.destroy();
|
157
|
-
}
|
158
|
-
}),
|
159
|
-
width: 980
|
160
|
-
});
|
161
|
-
};
|
162
|
-
var onLocalList = /*#__PURE__*/function () {
|
163
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
164
|
-
var result, fileList, localSelectList;
|
165
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
166
|
-
while (1) switch (_context.prev = _context.next) {
|
167
|
-
case 0:
|
168
|
-
setLoadingSelectLocal(true);
|
169
|
-
_context.next = 3;
|
170
|
-
return fileSelect('video').catch(function (err) {});
|
171
|
-
case 3:
|
172
|
-
result = _context.sent;
|
173
|
-
if (!(!result || (result === null || result === void 0 ? void 0 : result.filePaths.length) <= 0)) {
|
174
|
-
_context.next = 7;
|
175
|
-
break;
|
176
|
-
}
|
177
|
-
setLoadingSelectLocal(false);
|
178
|
-
return _context.abrupt("return");
|
179
|
-
case 7:
|
180
|
-
fileList = result === null || result === void 0 ? void 0 : result.filePaths;
|
181
|
-
console.log('list:', fileList);
|
182
|
-
localSelectList = [];
|
183
|
-
fileList.forEach(function (filePath) {
|
184
|
-
localSelectList.push({
|
185
|
-
id: 0,
|
186
|
-
title: Tool.getTitleByPath(filePath),
|
187
|
-
// goodsUrl: '',
|
188
|
-
videoSize: 0,
|
189
|
-
videoDuration: 0,
|
190
|
-
videoFinishUrl: filePath,
|
191
|
-
introduction: '',
|
192
|
-
videoKindTag: '',
|
193
|
-
// shopping | location | minapp
|
194
|
-
kindTagValue: '',
|
195
|
-
goodsTitle: ''
|
196
|
-
});
|
197
|
-
});
|
198
|
-
setLocalSelectList(localSelectList);
|
199
|
-
setLoadingSelectLocal(false);
|
200
|
-
case 13:
|
201
|
-
case "end":
|
202
|
-
return _context.stop();
|
203
|
-
}
|
204
|
-
}, _callee);
|
205
|
-
}));
|
206
|
-
return function onLocalList() {
|
207
|
-
return _ref2.apply(this, arguments);
|
208
|
-
};
|
209
|
-
}();
|
210
|
-
var onFinish = function onFinish(values) {
|
211
|
-
var _values$startTime;
|
212
|
-
var videoList = [];
|
213
|
-
if (formData.videoFrom === 'local') {
|
214
|
-
localSelectList.forEach(function (item) {
|
215
|
-
videoList.push({
|
216
|
-
taskId: 0,
|
217
|
-
productType: productType,
|
218
|
-
title: item.title,
|
219
|
-
// goodsUrl: item.goodsUrl,
|
220
|
-
videoUrl: item.videoFinishUrl,
|
221
|
-
introduction: item.introduction,
|
222
|
-
videoKindTag: item.videoKindTag,
|
223
|
-
// shopping | location | minapp
|
224
|
-
kindTagValue: item.kindTagValue,
|
225
|
-
goodsTitle: item.goodsTitle
|
226
|
-
});
|
227
|
-
});
|
228
|
-
} else {
|
229
|
-
taskSelectList.forEach(function (item) {
|
230
|
-
videoList.push({
|
231
|
-
taskId: item.id,
|
232
|
-
productType: productType,
|
233
|
-
title: item.title,
|
234
|
-
// goodsUrl: item.goodsUrl,
|
235
|
-
videoUrl: item.videoFinishUrl,
|
236
|
-
introduction: item.introduction,
|
237
|
-
videoKindTag: item.videoKindTag,
|
238
|
-
// shopping | location | minapp
|
239
|
-
kindTagValue: item.kindTagValue,
|
240
|
-
goodsTitle: item.goodsTitle
|
241
|
-
});
|
242
|
-
});
|
243
|
-
}
|
244
|
-
var data = _objectSpread(_objectSpread(_objectSpread({}, formData), values), {}, {
|
245
|
-
startTime: values.startTime ? parseInt((((_values$startTime = values.startTime) === null || _values$startTime === void 0 ? void 0 : _values$startTime.valueOf()) * 0.001).toFixed(0)) : 0,
|
246
|
-
videoList: videoList
|
247
|
-
});
|
248
|
-
if (videoList.length === 0) {
|
249
|
-
Tool.toastError('视频为空,请选择视频');
|
250
|
-
return;
|
251
|
-
}
|
252
|
-
console.log('values:', data);
|
253
|
-
runTask(data);
|
254
|
-
};
|
255
|
-
var onAccountList = /*#__PURE__*/function () {
|
256
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
257
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
258
|
-
while (1) switch (_context2.prev = _context2.next) {
|
259
|
-
case 0:
|
260
|
-
if (!loadingAccountList) {
|
261
|
-
_context2.next = 2;
|
262
|
-
break;
|
263
|
-
}
|
264
|
-
return _context2.abrupt("return");
|
265
|
-
case 2:
|
266
|
-
_context2.next = 4;
|
267
|
-
return runAccountList().catch(function (err) {});
|
268
|
-
case 4:
|
269
|
-
Tool.toast('账户列表已刷新');
|
270
|
-
case 5:
|
271
|
-
case "end":
|
272
|
-
return _context2.stop();
|
273
|
-
}
|
274
|
-
}, _callee2);
|
275
|
-
}));
|
276
|
-
return function onAccountList() {
|
277
|
-
return _ref3.apply(this, arguments);
|
278
|
-
};
|
279
|
-
}();
|
280
|
-
var formLabelSpan = 2;
|
281
|
-
return /*#__PURE__*/_jsx(styles.videoPublishCreateTask, {
|
282
|
-
children: /*#__PURE__*/_jsxs(PageContentWarp
|
283
|
-
// loading={loading}
|
284
|
-
, {
|
285
|
-
error: errorAccountList,
|
286
|
-
onReload: runAccountList,
|
287
|
-
children: [disabled && /*#__PURE__*/_jsx(Alert, {
|
288
|
-
message: "\u529F\u80FD\u5347\u7EA7\u4E2D\uFF0C\u5373\u5C06\u5F00\u653E\uFF0C\u656C\u8BF7\u671F\u5F85",
|
289
|
-
type: "warning",
|
290
|
-
showIcon: true,
|
291
|
-
style: {
|
292
|
-
width: 320
|
293
|
-
}
|
294
|
-
}), /*#__PURE__*/_jsxs(Form, {
|
295
|
-
labelCol: {
|
296
|
-
span: formLabelSpan
|
297
|
-
},
|
298
|
-
initialValues: _objectSpread({}, formData),
|
299
|
-
disabled: disabled || loadingTask,
|
300
|
-
scrollToFirstError: true,
|
301
|
-
onFinish: onFinish,
|
302
|
-
children: [/*#__PURE__*/_jsx(Divider, {
|
303
|
-
orientation: "left",
|
304
|
-
children: "\u9009\u62E9\u89C6\u9891"
|
305
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
306
|
-
label: "\u89C6\u9891\u6765\u6E90",
|
307
|
-
name: "videoFrom",
|
308
|
-
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
309
|
-
onChange: function onChange(e) {
|
310
|
-
formData.videoFrom = e.target.value;
|
311
|
-
setFormData(_objectSpread({}, formData));
|
312
|
-
},
|
313
|
-
children: [/*#__PURE__*/_jsx(Radio, {
|
314
|
-
value: "local",
|
315
|
-
disabled: !isInClient(),
|
316
|
-
children: "\u672C\u5730\u7535\u8111\u89C6\u9891"
|
317
|
-
}), productType && /*#__PURE__*/_jsx(Radio, {
|
318
|
-
value: "task",
|
319
|
-
children: "\u4EFB\u52A1\u89C6\u9891"
|
320
|
-
})]
|
321
|
-
})
|
322
|
-
}), formData.videoFrom == 'local' && /*#__PURE__*/_jsxs(Form.Item, {
|
323
|
-
wrapperCol: {
|
324
|
-
offset: formLabelSpan
|
325
|
-
},
|
326
|
-
children: [/*#__PURE__*/_jsx(VideoPublishSelectList, {
|
327
|
-
from: "local",
|
328
|
-
list: localSelectList,
|
329
|
-
onList: function onList() {}
|
330
|
-
}), /*#__PURE__*/_jsx("div", {
|
331
|
-
className: "selectFile",
|
332
|
-
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
333
|
-
theme: {
|
334
|
-
components: {
|
335
|
-
Button: {
|
336
|
-
colorPrimary: '#2b59a1'
|
337
|
-
}
|
338
|
-
}
|
339
|
-
},
|
340
|
-
children: /*#__PURE__*/_jsx(Button, {
|
341
|
-
type: "primary",
|
342
|
-
size: "small",
|
343
|
-
loading: loadingSelectLocal,
|
344
|
-
icon: /*#__PURE__*/_jsx(PlusOutlined, {}),
|
345
|
-
onClick: function onClick() {
|
346
|
-
return onLocalList();
|
347
|
-
},
|
348
|
-
children: "\u9009\u62E9\u672C\u5730\u89C6\u9891"
|
349
|
-
})
|
350
|
-
})
|
351
|
-
})]
|
352
|
-
}), formData.videoFrom == 'task' && /*#__PURE__*/_jsxs(Form.Item, {
|
353
|
-
wrapperCol: {
|
354
|
-
offset: formLabelSpan
|
355
|
-
},
|
356
|
-
children: [/*#__PURE__*/_jsx(VideoPublishSelectList, {
|
357
|
-
from: "task",
|
358
|
-
list: taskSelectList,
|
359
|
-
onList: function onList(list) {
|
360
|
-
return setTaskSelectList(list);
|
361
|
-
}
|
362
|
-
}), /*#__PURE__*/_jsx("div", {
|
363
|
-
className: "selectFile",
|
364
|
-
children: /*#__PURE__*/_jsx(Button, {
|
365
|
-
type: "primary",
|
366
|
-
size: "small",
|
367
|
-
icon: /*#__PURE__*/_jsx(PlusOutlined, {}),
|
368
|
-
onClick: function onClick() {
|
369
|
-
return onTaskList();
|
370
|
-
},
|
371
|
-
children: "\u9009\u62E9\u4EFB\u52A1"
|
372
|
-
})
|
373
|
-
})]
|
374
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
375
|
-
orientation: "left",
|
376
|
-
children: "\u9009\u62E9\u8D26\u6237"
|
377
|
-
}), /*#__PURE__*/_jsxs("div", {
|
378
|
-
className: "accountListWarp",
|
379
|
-
children: [/*#__PURE__*/_jsx(Form.Item, {
|
380
|
-
label: "\u8D26\u53F7",
|
381
|
-
extra: "\u6BCF\u4E2A\u89C6\u9891\u53EA\u53D1\u4E00\u4E2A\u8D26\u6237",
|
382
|
-
name: "accountList",
|
383
|
-
className: "accountList",
|
384
|
-
rules: [{
|
385
|
-
required: true,
|
386
|
-
message: '请选择账户'
|
387
|
-
}],
|
388
|
-
children: /*#__PURE__*/_jsx(TreeSelect, {
|
389
|
-
disabled: loadingAccountList,
|
390
|
-
treeData: treeVideoAccountData
|
391
|
-
// value={ [] }
|
392
|
-
,
|
393
|
-
onChange: function onChange(idList) {
|
394
|
-
console.log('TreeSelect:', idList);
|
395
|
-
},
|
396
|
-
treeCheckable: !loadingAccountList,
|
397
|
-
showCheckedStrategy: TreeSelect.SHOW_PARENT,
|
398
|
-
placeholder: "\u8BF7\u9009\u62E9 \u8D26\u6237/\u7EC4"
|
399
|
-
})
|
400
|
-
}), /*#__PURE__*/_jsx("a", {
|
401
|
-
className: "renew ".concat(loadingAccountList ? 'disabled' : ''),
|
402
|
-
onClick: function onClick() {
|
403
|
-
return onAccountList();
|
404
|
-
},
|
405
|
-
children: /*#__PURE__*/_jsx(Tooltip, {
|
406
|
-
title: "\u5237\u65B0\u8D26\u6237\u5217\u8868",
|
407
|
-
children: /*#__PURE__*/_jsx(RedoOutlined, {})
|
408
|
-
})
|
409
|
-
})]
|
410
|
-
}), /*#__PURE__*/_jsxs(Divider, {
|
411
|
-
orientation: "left",
|
412
|
-
children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
|
413
|
-
className: "normalVideo"
|
414
|
-
}), " \u666E\u901A\u89C6\u9891"]
|
415
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
416
|
-
label: "\u53D1\u5E03\u9891\u7387",
|
417
|
-
name: "normalVideoRate",
|
418
|
-
children: /*#__PURE__*/_jsx(InputNumber, {
|
419
|
-
precision: 0,
|
420
|
-
min: 0,
|
421
|
-
max: 100,
|
422
|
-
addonBefore: /*#__PURE__*/_jsxs(Select, {
|
423
|
-
className: "rateSelect",
|
424
|
-
value: formData.normalVideoRateType,
|
425
|
-
onChange: function onChange(e) {
|
426
|
-
formData.normalVideoRateType = e;
|
427
|
-
setFormData(_objectSpread({}, formData));
|
428
|
-
},
|
429
|
-
children: [/*#__PURE__*/_jsx(Select.Option, {
|
430
|
-
value: "hour",
|
431
|
-
children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
|
432
|
-
}), /*#__PURE__*/_jsx(Select.Option, {
|
433
|
-
value: "day",
|
434
|
-
children: "\u6BCF\u5929\u53D1\u5E03"
|
435
|
-
})]
|
436
|
-
}),
|
437
|
-
addonAfter: "\u6761\u89C6\u9891"
|
438
|
-
})
|
439
|
-
}), formData.normalVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
|
440
|
-
label: "\u6570\u91CF\u9650\u5236",
|
441
|
-
name: "normalDayMaxCount",
|
442
|
-
children: /*#__PURE__*/_jsx(InputNumber, {
|
443
|
-
precision: 0,
|
444
|
-
min: 1,
|
445
|
-
max: 500,
|
446
|
-
addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
|
447
|
-
addonAfter: "\u6761\u89C6\u9891"
|
448
|
-
})
|
449
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
450
|
-
label: "\u9891\u7387\u65B9\u5F0F",
|
451
|
-
name: "normalVideoKindRateType",
|
452
|
-
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
453
|
-
children: [/*#__PURE__*/_jsx(Radio, {
|
454
|
-
value: "",
|
455
|
-
children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
|
456
|
-
}), /*#__PURE__*/_jsx(Radio, {
|
457
|
-
value: "now",
|
458
|
-
children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
|
459
|
-
})]
|
460
|
-
})
|
461
|
-
}), /*#__PURE__*/_jsxs(Divider, {
|
462
|
-
orientation: "left",
|
463
|
-
children: [/*#__PURE__*/_jsx(ShoppingOutlined, {
|
464
|
-
className: "shoppingCart"
|
465
|
-
}), " \u5E26\u8D27\u89C6\u9891"]
|
466
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
467
|
-
label: "\u53D1\u5E03\u9891\u7387",
|
468
|
-
name: "salesVideoRate",
|
469
|
-
children: /*#__PURE__*/_jsx(InputNumber, {
|
470
|
-
precision: 0,
|
471
|
-
min: 1,
|
472
|
-
max: 200,
|
473
|
-
addonBefore: /*#__PURE__*/_jsxs(Select, {
|
474
|
-
className: "rateSelect",
|
475
|
-
value: formData.salesVideoRateType,
|
476
|
-
onChange: function onChange(e) {
|
477
|
-
formData.salesVideoRateType = e;
|
478
|
-
setFormData(_objectSpread({}, formData));
|
479
|
-
},
|
480
|
-
children: [/*#__PURE__*/_jsx(Select.Option, {
|
481
|
-
value: "hour",
|
482
|
-
children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
|
483
|
-
}), /*#__PURE__*/_jsx(Select.Option, {
|
484
|
-
value: "day",
|
485
|
-
children: "\u6BCF\u5929\u53D1\u5E03"
|
486
|
-
})]
|
487
|
-
}),
|
488
|
-
addonAfter: "\u6761\u89C6\u9891"
|
489
|
-
})
|
490
|
-
}), formData.salesVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
|
491
|
-
label: "\u6570\u91CF\u9650\u5236",
|
492
|
-
name: "salesDayMaxCount",
|
493
|
-
children: /*#__PURE__*/_jsx(InputNumber, {
|
494
|
-
precision: 0,
|
495
|
-
min: 1,
|
496
|
-
max: 200,
|
497
|
-
addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
|
498
|
-
addonAfter: "\u6761\u89C6\u9891"
|
499
|
-
})
|
500
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
501
|
-
label: "\u9891\u7387\u65B9\u5F0F",
|
502
|
-
name: "salesVideoKindRateType",
|
503
|
-
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
504
|
-
children: [/*#__PURE__*/_jsx(Radio, {
|
505
|
-
value: "",
|
506
|
-
children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
|
507
|
-
}), /*#__PURE__*/_jsx(Radio, {
|
508
|
-
value: "now",
|
509
|
-
children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
|
510
|
-
})]
|
511
|
-
})
|
512
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
513
|
-
orientation: "left",
|
514
|
-
children: "\u54EA\u4E9B\u5C0F\u65F6\u533A\u95F4\u53EF\u53D1"
|
515
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
516
|
-
label: "\u65F6\u95F4\u6BB5",
|
517
|
-
children: /*#__PURE__*/_jsx(VideoPublishCreateTaskHourEnabled, {
|
518
|
-
disabled: true,
|
519
|
-
hourEnabled: formData.hourEnabled,
|
520
|
-
onHourEnabled: function onHourEnabled(hourEnabled) {
|
521
|
-
formData.hourEnabled = hourEnabled;
|
522
|
-
setFormData(_objectSpread({}, formData));
|
523
|
-
}
|
524
|
-
})
|
525
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
526
|
-
orientation: "left",
|
527
|
-
children: "\u5176\u4ED6\u8BBE\u7F6E"
|
528
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
529
|
-
label: "\u5F00\u59CB\u65F6\u95F4",
|
530
|
-
name: "startTime",
|
531
|
-
children: /*#__PURE__*/_jsx(DatePicker, {
|
532
|
-
showTime: true,
|
533
|
-
disabledDate: function disabledDate(e) {
|
534
|
-
return e.valueOf() + 86400e3 < Date.now() || e.valueOf() > Date.now() + 86400e3 * 14;
|
535
|
-
},
|
536
|
-
onChange: function onChange(value, dateString) {
|
537
|
-
console.log('Selected Time: ', value);
|
538
|
-
console.log('Formatted Selected Time: ', dateString);
|
539
|
-
}
|
540
|
-
// onOk={onOk}
|
541
|
-
})
|
542
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
543
|
-
label: "\u53D1\u5E03\u5B8C\u6210\u540E",
|
544
|
-
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
545
|
-
theme: {
|
546
|
-
token: {
|
547
|
-
colorPrimary: '#F60',
|
548
|
-
colorTextQuaternary: '#1677ff'
|
549
|
-
}
|
550
|
-
},
|
551
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
552
|
-
unCheckedChildren: "\u4FDD\u7559\u89C6\u9891",
|
553
|
-
checkedChildren: "\u5220\u9664\u89C6\u9891"
|
554
|
-
})
|
555
|
-
})
|
556
|
-
}), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx("div", {
|
557
|
-
className: "submits",
|
558
|
-
children: /*#__PURE__*/_jsx(Button, {
|
559
|
-
type: "primary",
|
560
|
-
htmlType: "submit",
|
561
|
-
loading: loadingTask,
|
562
|
-
children: "\u63D0\u4EA4"
|
563
|
-
})
|
564
|
-
})]
|
565
|
-
})]
|
566
|
-
})
|
567
|
-
});
|
568
|
-
};
|
569
|
-
export default VideoPublishCreateTask;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|