component-shipinlv 1.0.10 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AuthClient/qr/index.css.js +1 -1
- package/dist/UI/DialogDrawerFooter.css.js +1 -1
- package/dist/UI/FileSize.css.d.ts +5 -0
- package/dist/UI/FileSize.css.js +6 -0
- package/dist/UI/FileSize.d.ts +10 -0
- package/dist/UI/FileSize.js +63 -0
- package/dist/UI/LoadError.css.js +1 -1
- package/dist/UI/PageContentWarp.d.ts +1 -1
- package/dist/UI/PageContentWarp.js +1 -1
- package/dist/UI/Time.d.ts +8 -0
- package/dist/UI/Time.js +19 -0
- package/dist/UI/duration.css.d.ts +5 -0
- package/dist/UI/duration.css.js +6 -0
- package/dist/UI/duration.d.ts +6 -0
- package/dist/UI/duration.js +49 -0
- package/dist/UI/text-input.d.ts +13 -0
- package/dist/UI/text-input.js +108 -0
- package/dist/UI/text-input.less +19 -0
- package/dist/VideoPublish/creat-task/index.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/index.css.js +6 -0
- package/dist/VideoPublish/creat-task/index.d.ts +9 -0
- package/dist/VideoPublish/creat-task/index.js +462 -0
- package/dist/VideoPublish/creat-task/select-list.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/select-list.css.js +6 -0
- package/dist/VideoPublish/creat-task/select-list.d.ts +8 -0
- package/dist/VideoPublish/creat-task/select-list.js +257 -0
- package/dist/VideoPublish/creat-task/task-list.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/task-list.css.js +6 -0
- package/dist/VideoPublish/creat-task/task-list.d.ts +9 -0
- package/dist/VideoPublish/creat-task/task-list.js +300 -0
- package/dist/VideoPublish/index.css.d.ts +5 -0
- package/dist/VideoPublish/index.css.js +6 -0
- package/dist/VideoPublish/index.d.ts +11 -0
- package/dist/VideoPublish/index.js +122 -0
- package/dist/VideoPublish/index.less +52 -0
- package/dist/VideoPublish/task-list/index.d.ts +8 -0
- package/dist/VideoPublish/task-list/index.js +121 -0
- package/dist/VideoPublish/task-list/index.less +5 -0
- package/dist/VideoPublish/video-account/index.d.ts +8 -0
- package/dist/VideoPublish/video-account/index.js +110 -0
- package/dist/VideoPublish/video-account/index.less +5 -0
- package/dist/asset/image/platform/bilibili.png +0 -0
- package/dist/asset/image/platform/douyin.png +0 -0
- package/dist/asset/image/platform/douyu.png +0 -0
- package/dist/asset/image/platform/huya.png +0 -0
- package/dist/asset/image/platform/kuaishou.png +0 -0
- package/dist/asset/image/platform/youtube.png +0 -0
- package/dist/component/media-kind.d.ts +10 -0
- package/dist/component/media-kind.js +24 -0
- package/dist/component/media-show.d.ts +13 -0
- package/dist/component/media-show.js +84 -0
- package/dist/component/media-show.less +53 -0
- package/dist/component/video-platform/logo.d.ts +22 -0
- package/dist/component/video-platform/logo.js +72 -0
- package/dist/component/video-platform/logo.less +42 -0
- package/dist/component/videoKindTag/index.d.ts +13 -0
- package/dist/component/videoKindTag/index.js +44 -0
- package/dist/global.less +4 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/join-client/index.css.js +1 -1
- package/dist/lib/Tool.d.ts +4 -1
- package/dist/lib/Tool.js +39 -0
- package/dist/lib/component/getImageUrl.d.ts +2 -0
- package/dist/lib/component/getImageUrl.js +8 -0
- package/dist/lib/component/getSoundUrl.d.ts +2 -0
- package/dist/lib/component/getSoundUrl.js +9 -0
- package/dist/lib/component/getVideoUrl.d.ts +2 -0
- package/dist/lib/component/getVideoUrl.js +9 -0
- package/dist/lib/isInClient.js +2 -1
- package/dist/lib/request.js +1 -1
- package/dist/service/api/VideoPublishController.d.ts +11 -0
- package/dist/service/api/VideoPublishController.js +85 -0
- package/dist/service/api/VideoPublishTaskController.d.ts +8 -0
- package/dist/service/api/VideoPublishTaskController.js +29 -0
- package/dist/types/VideoPublish.d.ts +112 -0
- package/dist/types/VideoPublish.js +0 -0
- package/dist/typings.d.ts +3 -0
- package/package.json +1 -1
@@ -0,0 +1,462 @@
|
|
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 } from "antd";
|
8
|
+
import { PlusOutlined, 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 VideoPlatformLogo from "../../component/video-platform/logo";
|
18
|
+
import fileSelect from "../../base/fileSelect";
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
20
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
21
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
22
|
+
var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
23
|
+
var disabled = _ref.disabled,
|
24
|
+
productType = _ref.productType,
|
25
|
+
apiUrl = _ref.apiUrl,
|
26
|
+
env = _ref.env;
|
27
|
+
var _useState = useState({
|
28
|
+
videoFrom: productType ? 'task' : 'local',
|
29
|
+
accountList: [],
|
30
|
+
normalVideoRate: 1,
|
31
|
+
normalVideoRateType: 'hour',
|
32
|
+
normalDayMaxCount: 1,
|
33
|
+
salesVideoRate: 2,
|
34
|
+
salesVideoRateType: 'hour',
|
35
|
+
salesDayMaxCount: 2,
|
36
|
+
videoList: []
|
37
|
+
}),
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
39
|
+
formData = _useState2[0],
|
40
|
+
setFormData = _useState2[1];
|
41
|
+
var _useState3 = useState(false),
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
43
|
+
loadingSelectLocal = _useState4[0],
|
44
|
+
setLoadingSelectLocal = _useState4[1];
|
45
|
+
var _useState5 = useState([]),
|
46
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
47
|
+
localSelectList = _useState6[0],
|
48
|
+
setLocalSelectList = _useState6[1];
|
49
|
+
var _useState7 = useState([]),
|
50
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
51
|
+
taskSelectList = _useState8[0],
|
52
|
+
setTaskSelectList = _useState8[1];
|
53
|
+
var _useState9 = useState([]),
|
54
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
55
|
+
treeVideoAccountData = _useState10[0],
|
56
|
+
setTreeVideoAccountData = _useState10[1];
|
57
|
+
var _useRequest = useRequest(function () {
|
58
|
+
return VideoPublishController.videoAccountList({
|
59
|
+
current: 1,
|
60
|
+
pageSize: 300 // 服务器 固定死了 300;
|
61
|
+
}, {
|
62
|
+
env: env
|
63
|
+
});
|
64
|
+
}, {
|
65
|
+
onSuccess: function onSuccess(result) {
|
66
|
+
var dict = {};
|
67
|
+
result.list.forEach(function (items) {
|
68
|
+
if (!dict[items.groupId]) {
|
69
|
+
dict[items.groupId] = {
|
70
|
+
title: /*#__PURE__*/_jsxs(_Fragment, {
|
71
|
+
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {
|
72
|
+
className: "groupIcon"
|
73
|
+
}), " ", items.groupName || '默认分组']
|
74
|
+
}),
|
75
|
+
value: "group-".concat(items.groupId),
|
76
|
+
key: "group-".concat(items.groupId),
|
77
|
+
children: []
|
78
|
+
};
|
79
|
+
}
|
80
|
+
dict[items.groupId].children.push({
|
81
|
+
title: /*#__PURE__*/_jsxs(_Fragment, {
|
82
|
+
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
83
|
+
platform: items.platform,
|
84
|
+
size: 14
|
85
|
+
}), " ", items.nickname]
|
86
|
+
}),
|
87
|
+
value: "account-".concat(items.id),
|
88
|
+
key: "account-".concat(items.id)
|
89
|
+
});
|
90
|
+
});
|
91
|
+
var treeData = [{
|
92
|
+
key: 'all',
|
93
|
+
value: 'all',
|
94
|
+
title: /*#__PURE__*/_jsx(Tag, {
|
95
|
+
color: "blue",
|
96
|
+
children: "\u5168\u90E8"
|
97
|
+
}),
|
98
|
+
children: Object.values(dict)
|
99
|
+
}];
|
100
|
+
setTreeVideoAccountData(treeData);
|
101
|
+
}
|
102
|
+
}),
|
103
|
+
run = _useRequest.run,
|
104
|
+
loading = _useRequest.loading,
|
105
|
+
error = _useRequest.error;
|
106
|
+
var _useRequest2 = useRequest(function (data) {
|
107
|
+
return VideoPublishController.taskCreate(data, {
|
108
|
+
env: env
|
109
|
+
});
|
110
|
+
}, {
|
111
|
+
manual: true,
|
112
|
+
onSuccess: function onSuccess(result) {
|
113
|
+
// 清除
|
114
|
+
setLocalSelectList([]);
|
115
|
+
setTaskSelectList([]);
|
116
|
+
Tool.toast('任务提交成功');
|
117
|
+
}
|
118
|
+
}),
|
119
|
+
runTask = _useRequest2.run,
|
120
|
+
loadingTask = _useRequest2.loading,
|
121
|
+
errorTask = _useRequest2.error;
|
122
|
+
var onTaskList = function onTaskList() {
|
123
|
+
var dialog = Tool.drawer({
|
124
|
+
title: '任务列表',
|
125
|
+
content: /*#__PURE__*/_jsx(VideoPublishTaskList, {
|
126
|
+
defaultSelectList: [],
|
127
|
+
apiUrl: apiUrl,
|
128
|
+
productType: productType,
|
129
|
+
onFinish: function onFinish(list) {
|
130
|
+
setTaskSelectList(list);
|
131
|
+
dialog.destroy();
|
132
|
+
}
|
133
|
+
}),
|
134
|
+
width: 860
|
135
|
+
});
|
136
|
+
};
|
137
|
+
var onLocalList = /*#__PURE__*/function () {
|
138
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
139
|
+
var result, fileList, localSelectList;
|
140
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
141
|
+
while (1) switch (_context.prev = _context.next) {
|
142
|
+
case 0:
|
143
|
+
setLoadingSelectLocal(true);
|
144
|
+
_context.next = 3;
|
145
|
+
return fileSelect('video').catch(function (err) {});
|
146
|
+
case 3:
|
147
|
+
result = _context.sent;
|
148
|
+
if (!(!result || (result === null || result === void 0 ? void 0 : result.filePaths.length) <= 0)) {
|
149
|
+
_context.next = 7;
|
150
|
+
break;
|
151
|
+
}
|
152
|
+
setLoadingSelectLocal(false);
|
153
|
+
return _context.abrupt("return");
|
154
|
+
case 7:
|
155
|
+
fileList = result === null || result === void 0 ? void 0 : result.filePaths;
|
156
|
+
console.log('list:', fileList);
|
157
|
+
localSelectList = [];
|
158
|
+
fileList.forEach(function (filePath) {
|
159
|
+
localSelectList.push({
|
160
|
+
id: 0,
|
161
|
+
title: Tool.getTitleByPath(filePath),
|
162
|
+
// goodsUrl: '',
|
163
|
+
videoSize: 0,
|
164
|
+
videoDuration: 0,
|
165
|
+
videoFinishUrl: filePath,
|
166
|
+
introduction: '',
|
167
|
+
videoKindTag: '',
|
168
|
+
// shopping | location | minapp
|
169
|
+
kindTagValue: ''
|
170
|
+
});
|
171
|
+
});
|
172
|
+
setLocalSelectList(localSelectList);
|
173
|
+
setLoadingSelectLocal(false);
|
174
|
+
case 13:
|
175
|
+
case "end":
|
176
|
+
return _context.stop();
|
177
|
+
}
|
178
|
+
}, _callee);
|
179
|
+
}));
|
180
|
+
return function onLocalList() {
|
181
|
+
return _ref2.apply(this, arguments);
|
182
|
+
};
|
183
|
+
}();
|
184
|
+
var onFinish = function onFinish(values) {
|
185
|
+
var videoList = [];
|
186
|
+
if (formData.videoFrom === 'local') {
|
187
|
+
localSelectList.forEach(function (item) {
|
188
|
+
videoList.push({
|
189
|
+
taskId: 0,
|
190
|
+
productType: productType,
|
191
|
+
title: item.title,
|
192
|
+
// goodsUrl: item.goodsUrl,
|
193
|
+
videoUrl: item.videoFinishUrl,
|
194
|
+
introduction: item.introduction,
|
195
|
+
videoKindTag: item.videoKindTag,
|
196
|
+
// shopping | location | minapp
|
197
|
+
kindTagValue: item.kindTagValue
|
198
|
+
});
|
199
|
+
});
|
200
|
+
} else {
|
201
|
+
taskSelectList.forEach(function (item) {
|
202
|
+
videoList.push({
|
203
|
+
taskId: item.id,
|
204
|
+
productType: productType,
|
205
|
+
title: item.title,
|
206
|
+
// goodsUrl: item.goodsUrl,
|
207
|
+
videoUrl: item.videoFinishUrl,
|
208
|
+
introduction: item.introduction,
|
209
|
+
videoKindTag: item.videoKindTag,
|
210
|
+
// shopping | location | minapp
|
211
|
+
kindTagValue: item.kindTagValue
|
212
|
+
});
|
213
|
+
});
|
214
|
+
}
|
215
|
+
var data = _objectSpread(_objectSpread(_objectSpread({}, formData), values), {}, {
|
216
|
+
videoList: videoList
|
217
|
+
});
|
218
|
+
if (videoList.length === 0) {
|
219
|
+
Tool.toastError('视频为空,请选择视频');
|
220
|
+
return;
|
221
|
+
}
|
222
|
+
console.log('values:', data);
|
223
|
+
runTask(data);
|
224
|
+
};
|
225
|
+
var formLabelSpan = 3;
|
226
|
+
return /*#__PURE__*/_jsx(styles.videoPublishCreateTask, {
|
227
|
+
children: /*#__PURE__*/_jsxs(PageContentWarp, {
|
228
|
+
loading: loading,
|
229
|
+
error: error,
|
230
|
+
onReload: run,
|
231
|
+
children: [disabled && /*#__PURE__*/_jsx(Alert, {
|
232
|
+
message: "\u529F\u80FD\u5347\u7EA7\u4E2D\uFF0C\u5373\u5C06\u5F00\u653E\uFF0C\u656C\u8BF7\u671F\u5F85",
|
233
|
+
type: "warning",
|
234
|
+
showIcon: true,
|
235
|
+
style: {
|
236
|
+
width: 320
|
237
|
+
}
|
238
|
+
}), /*#__PURE__*/_jsxs(Form, {
|
239
|
+
labelCol: {
|
240
|
+
span: formLabelSpan
|
241
|
+
},
|
242
|
+
initialValues: _objectSpread({}, formData),
|
243
|
+
disabled: disabled || loadingTask,
|
244
|
+
scrollToFirstError: true,
|
245
|
+
onFinish: onFinish,
|
246
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
247
|
+
orientation: "left",
|
248
|
+
children: "\u9009\u62E9\u89C6\u9891"
|
249
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
250
|
+
label: "\u89C6\u9891\u6765\u6E90",
|
251
|
+
name: "videoFrom",
|
252
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
253
|
+
onChange: function onChange(e) {
|
254
|
+
formData.videoFrom = e.target.value;
|
255
|
+
setFormData(_objectSpread({}, formData));
|
256
|
+
},
|
257
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
258
|
+
value: "local",
|
259
|
+
disabled: !isInClient(),
|
260
|
+
children: "\u672C\u5730\u7535\u8111\u89C6\u9891"
|
261
|
+
}), productType && /*#__PURE__*/_jsx(Radio, {
|
262
|
+
value: "task",
|
263
|
+
children: "\u4EFB\u52A1\u89C6\u9891"
|
264
|
+
})]
|
265
|
+
})
|
266
|
+
}), formData.videoFrom == 'local' && /*#__PURE__*/_jsxs(Form.Item, {
|
267
|
+
wrapperCol: {
|
268
|
+
offset: formLabelSpan
|
269
|
+
},
|
270
|
+
children: [/*#__PURE__*/_jsx(VideoPublishSelectList, {
|
271
|
+
from: "local",
|
272
|
+
list: localSelectList,
|
273
|
+
onList: function onList() {}
|
274
|
+
}), /*#__PURE__*/_jsx("div", {
|
275
|
+
className: "selectFile",
|
276
|
+
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
277
|
+
theme: {
|
278
|
+
components: {
|
279
|
+
Button: {
|
280
|
+
colorPrimary: '#2b59a1'
|
281
|
+
}
|
282
|
+
}
|
283
|
+
},
|
284
|
+
children: /*#__PURE__*/_jsx(Button, {
|
285
|
+
type: "primary",
|
286
|
+
size: "small",
|
287
|
+
loading: loadingSelectLocal,
|
288
|
+
icon: /*#__PURE__*/_jsx(PlusOutlined, {}),
|
289
|
+
onClick: function onClick() {
|
290
|
+
return onLocalList();
|
291
|
+
},
|
292
|
+
children: "\u9009\u62E9\u672C\u5730\u89C6\u9891"
|
293
|
+
})
|
294
|
+
})
|
295
|
+
})]
|
296
|
+
}), formData.videoFrom == 'task' && /*#__PURE__*/_jsxs(Form.Item, {
|
297
|
+
wrapperCol: {
|
298
|
+
offset: formLabelSpan
|
299
|
+
},
|
300
|
+
children: [/*#__PURE__*/_jsx(VideoPublishSelectList, {
|
301
|
+
from: "task",
|
302
|
+
list: taskSelectList,
|
303
|
+
onList: function onList(list) {
|
304
|
+
return setTaskSelectList(list);
|
305
|
+
}
|
306
|
+
}), /*#__PURE__*/_jsx("div", {
|
307
|
+
className: "selectFile",
|
308
|
+
children: /*#__PURE__*/_jsx(Button, {
|
309
|
+
type: "primary",
|
310
|
+
size: "small",
|
311
|
+
icon: /*#__PURE__*/_jsx(PlusOutlined, {}),
|
312
|
+
onClick: function onClick() {
|
313
|
+
return onTaskList();
|
314
|
+
},
|
315
|
+
children: "\u9009\u62E9\u4EFB\u52A1"
|
316
|
+
})
|
317
|
+
})]
|
318
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
319
|
+
orientation: "left",
|
320
|
+
children: "\u9009\u62E9\u8D26\u6237"
|
321
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
322
|
+
label: "\u8D26\u53F7",
|
323
|
+
extra: "\u6BCF\u4E2A\u89C6\u9891\u53EA\u53D1\u4E00\u4E2A\u8D26\u6237",
|
324
|
+
name: "accountList",
|
325
|
+
rules: [{
|
326
|
+
required: true,
|
327
|
+
message: '请选择账户'
|
328
|
+
}],
|
329
|
+
children: /*#__PURE__*/_jsx(TreeSelect, {
|
330
|
+
treeData: treeVideoAccountData
|
331
|
+
// value={ [] }
|
332
|
+
,
|
333
|
+
onChange: function onChange(idList) {
|
334
|
+
console.log('TreeSelect:', idList);
|
335
|
+
},
|
336
|
+
treeCheckable: true,
|
337
|
+
showCheckedStrategy: TreeSelect.SHOW_PARENT,
|
338
|
+
placeholder: "\u8BF7\u9009\u62E9 \u8D26\u6237/\u7EC4"
|
339
|
+
})
|
340
|
+
}), /*#__PURE__*/_jsxs(Divider, {
|
341
|
+
orientation: "left",
|
342
|
+
children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
|
343
|
+
className: "normalVideo"
|
344
|
+
}), " \u666E\u901A\u89C6\u9891"]
|
345
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
346
|
+
label: "\u53D1\u5E03\u9891\u7387",
|
347
|
+
name: "normalVideoRate",
|
348
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
349
|
+
precision: 0,
|
350
|
+
min: 0,
|
351
|
+
max: 100,
|
352
|
+
addonBefore: /*#__PURE__*/_jsxs(Select, {
|
353
|
+
className: "rateSelect",
|
354
|
+
value: formData.normalVideoRateType,
|
355
|
+
onChange: function onChange(e) {
|
356
|
+
formData.normalVideoRateType = e;
|
357
|
+
setFormData(_objectSpread({}, formData));
|
358
|
+
},
|
359
|
+
children: [/*#__PURE__*/_jsx(Select.Option, {
|
360
|
+
value: "hour",
|
361
|
+
children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
|
362
|
+
}), /*#__PURE__*/_jsx(Select.Option, {
|
363
|
+
value: "day",
|
364
|
+
children: "\u6BCF\u5929\u53D1\u5E03"
|
365
|
+
})]
|
366
|
+
}),
|
367
|
+
addonAfter: "\u6761\u89C6\u9891"
|
368
|
+
})
|
369
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
370
|
+
label: "\u6570\u91CF\u9650\u5236",
|
371
|
+
name: "normalDayMaxCount",
|
372
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
373
|
+
precision: 0,
|
374
|
+
min: 1,
|
375
|
+
max: 500,
|
376
|
+
addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
|
377
|
+
addonAfter: "\u6761\u89C6\u9891"
|
378
|
+
})
|
379
|
+
}), /*#__PURE__*/_jsxs(Divider, {
|
380
|
+
orientation: "left",
|
381
|
+
children: [/*#__PURE__*/_jsx(ShoppingOutlined, {
|
382
|
+
className: "shoppingCart"
|
383
|
+
}), " \u5E26\u8D27\u89C6\u9891"]
|
384
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
385
|
+
label: "\u53D1\u5E03\u9891\u7387",
|
386
|
+
name: "salesVideoRate",
|
387
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
388
|
+
precision: 0,
|
389
|
+
min: 1,
|
390
|
+
max: 200,
|
391
|
+
addonBefore: /*#__PURE__*/_jsxs(Select, {
|
392
|
+
className: "rateSelect",
|
393
|
+
value: formData.salesVideoRateType,
|
394
|
+
onChange: function onChange(e) {
|
395
|
+
formData.salesVideoRateType = e;
|
396
|
+
setFormData(_objectSpread({}, formData));
|
397
|
+
},
|
398
|
+
children: [/*#__PURE__*/_jsx(Select.Option, {
|
399
|
+
value: "hour",
|
400
|
+
children: "\u6BCF\u5C0F\u65F6\u53D1\u5E03"
|
401
|
+
}), /*#__PURE__*/_jsx(Select.Option, {
|
402
|
+
value: "day",
|
403
|
+
children: "\u6BCF\u5929\u53D1\u5E03"
|
404
|
+
})]
|
405
|
+
}),
|
406
|
+
addonAfter: "\u6761\u89C6\u9891"
|
407
|
+
})
|
408
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
409
|
+
label: "\u6570\u91CF\u9650\u5236",
|
410
|
+
name: "salesDayMaxCount",
|
411
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
412
|
+
precision: 0,
|
413
|
+
min: 1,
|
414
|
+
max: 200,
|
415
|
+
addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
|
416
|
+
addonAfter: "\u6761\u89C6\u9891"
|
417
|
+
})
|
418
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
419
|
+
orientation: "left",
|
420
|
+
children: "\u5176\u4ED6\u8BBE\u7F6E"
|
421
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
422
|
+
label: "\u5F00\u59CB\u65F6\u95F4",
|
423
|
+
name: "startTime",
|
424
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
425
|
+
showTime: true,
|
426
|
+
disabledDate: function disabledDate(e) {
|
427
|
+
return e.valueOf() + 86400e3 < Date.now();
|
428
|
+
},
|
429
|
+
onChange: function onChange(value, dateString) {
|
430
|
+
console.log('Selected Time: ', value);
|
431
|
+
console.log('Formatted Selected Time: ', dateString);
|
432
|
+
}
|
433
|
+
// onOk={onOk}
|
434
|
+
})
|
435
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
436
|
+
label: "\u53D1\u5E03\u5B8C\u6210\u540E",
|
437
|
+
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
438
|
+
theme: {
|
439
|
+
token: {
|
440
|
+
colorPrimary: '#F60',
|
441
|
+
colorTextQuaternary: '#1677ff'
|
442
|
+
}
|
443
|
+
},
|
444
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
445
|
+
unCheckedChildren: "\u4FDD\u7559\u89C6\u9891",
|
446
|
+
checkedChildren: "\u5220\u9664\u89C6\u9891"
|
447
|
+
})
|
448
|
+
})
|
449
|
+
}), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx("div", {
|
450
|
+
className: "submits",
|
451
|
+
children: /*#__PURE__*/_jsx(Button, {
|
452
|
+
type: "primary",
|
453
|
+
htmlType: "submit",
|
454
|
+
loading: loadingTask,
|
455
|
+
children: "\u63D0\u4EA4"
|
456
|
+
})
|
457
|
+
})]
|
458
|
+
})]
|
459
|
+
})
|
460
|
+
});
|
461
|
+
};
|
462
|
+
export default VideoPublishCreateTask;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
videoPublishTaskSelectList: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
export default {
|
5
|
+
videoPublishTaskSelectList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-y: auto;\n box-shadow: 0 3px 3px #EEE;\n max-height: 60vh;\n .title{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .remark{\n max-width: 200px;\n }\n .remarkInput{\n label.content{\n position: relative;\n display: inline-block;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 200px;\n }\n }\n .videoKindTag{\n width: 120px;\n }\n "])))
|
6
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
interface Props {
|
3
|
+
from: 'local' | 'task';
|
4
|
+
list: VideoPublish.VideoSelectList[];
|
5
|
+
onList: (list: VideoPublish.VideoSelectList[]) => void;
|
6
|
+
}
|
7
|
+
declare const VideoPublishSelectList: React.FC<Props>;
|
8
|
+
export default VideoPublishSelectList;
|