component-shipinlv 2.2.22 → 2.2.23
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/ActiveAccountMode/setting.js +13 -0
- package/dist/ActiveAccountMode/task/index.js +4 -1
- package/dist/UI/enabled.d.ts +8 -0
- package/dist/UI/enabled.js +28 -0
- package/dist/VideoPublish/create-task/base/index.js +12 -0
- package/dist/VideoPublish/create-task/index.js +7 -3
- package/dist/VideoPublish/create-task/task-list.js +4 -2
- package/dist/VideoPublish/task-list/index.js +14 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/types/AutoMakeTaskSetting.d.ts +2 -0
- package/dist/types/PublishTaskPlan.d.ts +1 -0
- package/dist/types/VideoPublish.d.ts +6 -0
- package/package.json +1 -1
@@ -42,6 +42,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
42
42
|
enabled: true,
|
43
43
|
publishCoverFrom: '',
|
44
44
|
whoCanView: '0',
|
45
|
+
downloadContent: '1',
|
45
46
|
isPublishFinishDelVideo: true
|
46
47
|
// ...Tool.store.get('publishMake-setting'),
|
47
48
|
}),
|
@@ -226,6 +227,18 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
226
227
|
children: "\u4EC5\u81EA\u5DF1\u53EF\u89C1"
|
227
228
|
})]
|
228
229
|
})
|
230
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
231
|
+
label: "\u5141\u8BB8\u4E0B\u8F7D\u89C6\u9891",
|
232
|
+
name: "downloadContent",
|
233
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
234
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
235
|
+
value: "1",
|
236
|
+
children: "\u5141\u8BB8\u4E0B\u8F7D"
|
237
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
238
|
+
value: "0",
|
239
|
+
children: "\u7981\u6B62\u4E0B\u8F7D"
|
240
|
+
})]
|
241
|
+
})
|
229
242
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
230
243
|
label: "\u53D1\u5E03\u5B8C\u6210\u540E",
|
231
244
|
name: "isPublishFinishDelVideo",
|
@@ -27,6 +27,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
27
27
|
enabled: true,
|
28
28
|
publishCoverFrom: '',
|
29
29
|
whoCanView: '0',
|
30
|
+
downloadContent: '1',
|
30
31
|
isPublishFinishDelVideo: true
|
31
32
|
});
|
32
33
|
_defineProperty(this, "env", 'prod');
|
@@ -442,6 +443,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
442
443
|
"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],
|
443
444
|
publishCoverFrom: _this2.modeSetting.publishCoverFrom,
|
444
445
|
whoCanView: _this2.modeSetting.whoCanView || '0',
|
446
|
+
downloadContent: _this2.modeSetting.downloadContent || '1',
|
445
447
|
"videoList": [{
|
446
448
|
"taskId": 0,
|
447
449
|
"productType": "active-account-mode",
|
@@ -452,7 +454,8 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
452
454
|
"kindTagValue": "",
|
453
455
|
"goodsTitle": "",
|
454
456
|
publishCoverFrom: _this2.modeSetting.publishCoverFrom,
|
455
|
-
whoCanView: _this2.modeSetting.whoCanView || '0'
|
457
|
+
whoCanView: _this2.modeSetting.whoCanView || '0',
|
458
|
+
downloadContent: _this2.modeSetting.downloadContent || '1'
|
456
459
|
}]
|
457
460
|
}, {
|
458
461
|
env: _this2.env
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { CheckCircleOutlined, StopOutlined } from "@ant-design/icons";
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
5
|
+
var Enabled = function Enabled(_ref) {
|
6
|
+
var enabled = _ref.enabled,
|
7
|
+
_ref$enabledText = _ref.enabledText,
|
8
|
+
enabledText = _ref$enabledText === void 0 ? ' 已启用' : _ref$enabledText,
|
9
|
+
_ref$disabledText = _ref.disabledText,
|
10
|
+
disabledText = _ref$disabledText === void 0 ? ' 已禁用' : _ref$disabledText;
|
11
|
+
return /*#__PURE__*/_jsx("span", {
|
12
|
+
className: "enabled",
|
13
|
+
children: enabled ? /*#__PURE__*/_jsxs("span", {
|
14
|
+
style: {
|
15
|
+
color: 'green'
|
16
|
+
},
|
17
|
+
className: "enabled",
|
18
|
+
children: [/*#__PURE__*/_jsx(CheckCircleOutlined, {}), " ", enabledText]
|
19
|
+
}) : /*#__PURE__*/_jsxs("span", {
|
20
|
+
style: {
|
21
|
+
color: '#C00'
|
22
|
+
},
|
23
|
+
className: "disabled",
|
24
|
+
children: [/*#__PURE__*/_jsx(StopOutlined, {}), " ", disabledText]
|
25
|
+
})
|
26
|
+
});
|
27
|
+
};
|
28
|
+
export default Enabled;
|
@@ -324,6 +324,18 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
|
|
324
324
|
children: "\u4EC5\u81EA\u5DF1\u53EF\u89C1"
|
325
325
|
})]
|
326
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
|
+
})
|
327
339
|
}), /*#__PURE__*/_jsx(Divider, {
|
328
340
|
orientation: "left",
|
329
341
|
children: "\u54EA\u4E9B\u5C0F\u65F6\u533A\u95F4\u53EF\u53D1"
|
@@ -39,6 +39,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
39
39
|
normalDayMaxCount: 1,
|
40
40
|
normalVideoKindRateType: '',
|
41
41
|
whoCanView: '0',
|
42
|
+
downloadContent: '1',
|
42
43
|
publishCoverFrom: '',
|
43
44
|
noTopicIsUserRecommendTopic: true,
|
44
45
|
startTime: null,
|
@@ -132,7 +133,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
132
133
|
kindTagValue: '',
|
133
134
|
goodsTitle: '',
|
134
135
|
publishCoverFrom: '',
|
135
|
-
whoCanView: '0'
|
136
|
+
whoCanView: '0',
|
137
|
+
downloadContent: '1'
|
136
138
|
});
|
137
139
|
});
|
138
140
|
setLocalSelectList(_toConsumableArray(localSelectList));
|
@@ -191,7 +193,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
191
193
|
kindTagValue: item.kindTagValue,
|
192
194
|
goodsTitle: item.goodsTitle,
|
193
195
|
publishCoverFrom: item.publishCoverFrom,
|
194
|
-
whoCanView: item.whoCanView
|
196
|
+
whoCanView: item.whoCanView,
|
197
|
+
downloadContent: item.downloadContent
|
195
198
|
});
|
196
199
|
});
|
197
200
|
} else {
|
@@ -208,7 +211,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
208
211
|
kindTagValue: item.kindTagValue,
|
209
212
|
goodsTitle: item.goodsTitle,
|
210
213
|
publishCoverFrom: item.publishCoverFrom,
|
211
|
-
whoCanView: item.whoCanView
|
214
|
+
whoCanView: item.whoCanView,
|
215
|
+
downloadContent: item.downloadContent
|
212
216
|
});
|
213
217
|
});
|
214
218
|
}
|
@@ -199,7 +199,8 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
199
199
|
introduction: items.introduction || '',
|
200
200
|
goodsTitle: items.goodsTitle || '',
|
201
201
|
publishCoverFrom: items.publishCoverFrom || '',
|
202
|
-
whoCanView: items.whoCanView || '0'
|
202
|
+
whoCanView: items.whoCanView || '0',
|
203
|
+
downloadContent: items.downloadContent || '1'
|
203
204
|
};
|
204
205
|
} else {
|
205
206
|
delete selectDict[items.id];
|
@@ -223,7 +224,8 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
223
224
|
introduction: items.introduction || '',
|
224
225
|
goodsTitle: items.goodsTitle || '',
|
225
226
|
publishCoverFrom: items.publishCoverFrom || '',
|
226
|
-
whoCanView: items.whoCanView || '0'
|
227
|
+
whoCanView: items.whoCanView || '0',
|
228
|
+
downloadContent: items.downloadContent || '1'
|
227
229
|
};
|
228
230
|
});
|
229
231
|
setSelectDict(_objectSpread({}, selectDict));
|
@@ -15,6 +15,7 @@ import Tool from "../../lib/Tool";
|
|
15
15
|
import VideoPublishTaskPlanList from "./plan/list";
|
16
16
|
import VideoPublishTaskPlanStatus from "./plan/status";
|
17
17
|
import VideoPublishTaskWhoCanView from "./who-can-view";
|
18
|
+
import Enabled from "../../UI/enabled";
|
18
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
19
20
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
20
21
|
var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
@@ -107,6 +108,19 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
107
108
|
whoCanView: whoCanView
|
108
109
|
});
|
109
110
|
}
|
111
|
+
}, {
|
112
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
113
|
+
children: "\u80FD\u5426\u4E0B\u8F7D"
|
114
|
+
}),
|
115
|
+
dataIndex: 'downloadContent',
|
116
|
+
key: 'downloadContent',
|
117
|
+
render: function render(downloadContent) {
|
118
|
+
return /*#__PURE__*/_jsx(Enabled, {
|
119
|
+
enabled: downloadContent != '0',
|
120
|
+
enabledText: "\u5141\u8BB8\u4E0B\u8F7D",
|
121
|
+
disabledText: "\u7981\u6B62\u4E0B\u8F7D"
|
122
|
+
});
|
123
|
+
}
|
110
124
|
},
|
111
125
|
//
|
112
126
|
{
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -7,6 +7,7 @@ declare namespace ActiveAccountModeSetting {
|
|
7
7
|
enabled: boolean;
|
8
8
|
publishCoverFrom: VideoPublish.PublishCoverFrom;
|
9
9
|
whoCanView: VideoPublish.WhoCanView;
|
10
|
+
downloadContent: VideoPublish.DownloadContent;
|
10
11
|
isPublishFinishDelVideo: boolean;
|
11
12
|
}
|
12
13
|
interface SettingForm {
|
@@ -17,6 +18,7 @@ declare namespace ActiveAccountModeSetting {
|
|
17
18
|
enabled: boolean;
|
18
19
|
publishCoverFrom: VideoPublish.PublishCoverFrom;
|
19
20
|
whoCanView: VideoPublish.WhoCanView;
|
21
|
+
downloadContent: VideoPublish.DownloadContent;
|
20
22
|
isPublishFinishDelVideo: boolean;
|
21
23
|
}
|
22
24
|
}
|
@@ -6,6 +6,7 @@ declare namespace VideoPublish {
|
|
6
6
|
type VideoFrom = 'local' | 'task';
|
7
7
|
type VideoRateType = 'hour' | 'day';
|
8
8
|
type WhoCanView = '0' | '1' | '2';
|
9
|
+
type DownloadContent = '0' | '1';
|
9
10
|
type PublishOrder = '' | 'loop-account';
|
10
11
|
type PublishCoverFrom = '' | 'video-first-frame';
|
11
12
|
interface CreateTaskList {
|
@@ -22,6 +23,7 @@ declare namespace VideoPublish {
|
|
22
23
|
goodsTitle: string;
|
23
24
|
publishCoverFrom: PublishCoverFrom;
|
24
25
|
whoCanView: WhoCanView;
|
26
|
+
downloadContent: DownloadContent;
|
25
27
|
finishUrl?: string;
|
26
28
|
videoFinishUrl?: string;
|
27
29
|
}
|
@@ -43,6 +45,7 @@ declare namespace VideoPublish {
|
|
43
45
|
salesVideoRateType: VideoRateType;
|
44
46
|
salesDayMaxCount: number;
|
45
47
|
whoCanView: WhoCanView;
|
48
|
+
downloadContent: DownloadContent;
|
46
49
|
startTime: number;
|
47
50
|
created: number;
|
48
51
|
taskFromProductType: string;
|
@@ -60,6 +63,7 @@ declare namespace VideoPublish {
|
|
60
63
|
goodsTitle: string;
|
61
64
|
publishCoverFrom: PublishCoverFrom;
|
62
65
|
whoCanView: WhoCanView;
|
66
|
+
downloadContent: DownloadContent;
|
63
67
|
}
|
64
68
|
interface VideoAccountResult {
|
65
69
|
list: VideoAccountList[];
|
@@ -121,6 +125,7 @@ declare namespace VideoPublish {
|
|
121
125
|
goodsTitle: string;
|
122
126
|
publishCoverFrom: PublishCoverFrom;
|
123
127
|
whoCanView: WhoCanView;
|
128
|
+
downloadContent: DownloadContent;
|
124
129
|
}
|
125
130
|
interface TaskCreate extends TaskCreateBaseData {
|
126
131
|
videoFrom: 'task' | 'local';
|
@@ -138,6 +143,7 @@ declare namespace VideoPublish {
|
|
138
143
|
salesVideoKindRateType: VideoKindRateType;
|
139
144
|
accountList: string[];
|
140
145
|
whoCanView: WhoCanView;
|
146
|
+
downloadContent: DownloadContent;
|
141
147
|
publishCoverFrom: PublishCoverFrom;
|
142
148
|
noTopicIsUserRecommendTopic: boolean;
|
143
149
|
startTime: number | null;
|