component-shipinlv 2.1.0 → 2.1.2
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 +35 -6
- package/dist/ActiveAccountMode/task/index.d.ts +1 -2
- package/dist/ActiveAccountMode/task/index.js +257 -218
- package/dist/VideoPublish/account-manage/list.js +2 -2
- package/dist/VideoPublish/proxy/list.js +2 -1
- package/dist/VideoPublish/proxy/select.js +2 -1
- package/dist/VideoPublish/task-list/index.js +3 -2
- package/dist/VideoPublish/task-list/plan/list.js +3 -2
- package/dist/VideoPublish/task-list/plan/query.js +15 -11
- package/dist/VideoPublish/task-list/plan/status.js +1 -1
- package/dist/VideoPublish/video-account/index.js +2 -2
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +2 -1
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +4 -2
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.d.ts +1 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +4 -1
- package/dist/VideoPublish/video-topic/index.js +2 -2
- package/dist/VipCompare/index.js +2 -2
- package/dist/video-study/index.js +2 -1
- package/package.json +1 -1
@@ -11,6 +11,7 @@ import * as ActiveAccountModeSettingController from "../service/api/ActiveAccoun
|
|
11
11
|
import VideoPublishCreateTaskHourSelect from "./hour-enabled";
|
12
12
|
import ActiveAccountModeTask from "./task";
|
13
13
|
import toast from "../lib/toast";
|
14
|
+
import { SwapRightOutlined } from "@ant-design/icons";
|
14
15
|
|
15
16
|
// 1、每个账户 要发的视频,和文件夹绑定关系;,从本地文件夹 随机 读取视频发布;
|
16
17
|
// 2、每天 发 6个;
|
@@ -23,6 +24,7 @@ import toast from "../lib/toast";
|
|
23
24
|
// 9 循环一遍,只生成一天,保证每一个账号 均衡
|
24
25
|
// 10、 视频被发布之后,最大任务天数 + 2, 还没清理,强行删除
|
25
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
27
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
26
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
27
29
|
var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
28
30
|
var disabled = _ref.disabled,
|
@@ -48,6 +50,10 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
48
50
|
_useState4 = _slicedToArray(_useState3, 2),
|
49
51
|
enabled = _useState4[0],
|
50
52
|
setEnabled = _useState4[1];
|
53
|
+
var _useState5 = useState(false),
|
54
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
55
|
+
canPost = _useState6[0],
|
56
|
+
setCanPost = _useState6[1];
|
51
57
|
var _useRequest = useRequest(function () {
|
52
58
|
return ActiveAccountModeSettingController.detail({}, {
|
53
59
|
env: env
|
@@ -70,6 +76,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
70
76
|
manual: true,
|
71
77
|
onSuccess: function onSuccess(result) {
|
72
78
|
toast('已保存');
|
79
|
+
setCanPost(false);
|
73
80
|
}
|
74
81
|
}),
|
75
82
|
runSettingCreate = _useRequest2.run,
|
@@ -114,6 +121,9 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
114
121
|
labelCol: {
|
115
122
|
span: 4
|
116
123
|
},
|
124
|
+
onChange: function onChange(e) {
|
125
|
+
return setCanPost(true);
|
126
|
+
},
|
117
127
|
disabled: loadingSettingCreate,
|
118
128
|
autoComplete: "off",
|
119
129
|
initialValues: _objectSpread({}, formData),
|
@@ -125,7 +135,8 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
125
135
|
checkedChildren: "\u5F00\u542F\u517B\u53F7\u6A21\u5F0F",
|
126
136
|
unCheckedChildren: "\u7981\u7528\u517B\u53F7\u6A21\u5F0F",
|
127
137
|
onChange: function onChange(e) {
|
128
|
-
|
138
|
+
setCanPost(true);
|
139
|
+
setEnabled(e);
|
129
140
|
}
|
130
141
|
})
|
131
142
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
@@ -137,6 +148,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
137
148
|
onDayTimeHourList: function onDayTimeHourList(dayTimeHourList) {
|
138
149
|
formData.dayTimeHourList = dayTimeHourList;
|
139
150
|
setFormData(_objectSpread({}, formData));
|
151
|
+
setCanPost(true);
|
140
152
|
}
|
141
153
|
})
|
142
154
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
@@ -146,9 +158,16 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
146
158
|
precision: 0,
|
147
159
|
min: 1,
|
148
160
|
max: 30,
|
149
|
-
addonBefore:
|
161
|
+
addonBefore: /*#__PURE__*/_jsxs(_Fragment, {
|
162
|
+
children: ["0", /*#__PURE__*/_jsx("small", {
|
163
|
+
children: "%"
|
164
|
+
}), " ", /*#__PURE__*/_jsx(SwapRightOutlined, {})]
|
165
|
+
}),
|
150
166
|
addonAfter: "%",
|
151
|
-
disabled: !enabled
|
167
|
+
disabled: !enabled,
|
168
|
+
onChange: function onChange(e) {
|
169
|
+
setCanPost(true);
|
170
|
+
}
|
152
171
|
})
|
153
172
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
154
173
|
label: "\u89C6\u9891\u9650\u989D",
|
@@ -159,7 +178,10 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
159
178
|
max: 100,
|
160
179
|
disabled: !enabled,
|
161
180
|
addonBefore: "\u6BCF\u5929\u6700\u591A",
|
162
|
-
addonAfter: "\u4E2A"
|
181
|
+
addonAfter: "\u4E2A",
|
182
|
+
onChange: function onChange(e) {
|
183
|
+
setCanPost(true);
|
184
|
+
}
|
163
185
|
})
|
164
186
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
165
187
|
label: "\u53D1\u5E03\u9650\u5236",
|
@@ -170,7 +192,10 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
170
192
|
max: 14,
|
171
193
|
addonBefore: "\u6700\u591A\u751F\u6210",
|
172
194
|
addonAfter: "\u5929\u7684\u4EFB\u52A1",
|
173
|
-
disabled: !enabled
|
195
|
+
disabled: !enabled,
|
196
|
+
onChange: function onChange(e) {
|
197
|
+
setCanPost(true);
|
198
|
+
}
|
174
199
|
})
|
175
200
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
176
201
|
label: "\u53D1\u5E03\u5B8C\u6210\u540E",
|
@@ -187,7 +212,10 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
187
212
|
// unCheckedChildren="保留视频并改名"
|
188
213
|
,
|
189
214
|
unCheckedChildren: "\u5220\u9664\u89C6\u9891\u4E0D\u4FDD\u7559",
|
190
|
-
checkedChildren: "\u5220\u9664\u89C6\u9891\u4E0D\u4FDD\u7559"
|
215
|
+
checkedChildren: "\u5220\u9664\u89C6\u9891\u4E0D\u4FDD\u7559",
|
216
|
+
onChange: function onChange(e) {
|
217
|
+
setCanPost(true);
|
218
|
+
}
|
191
219
|
})
|
192
220
|
})
|
193
221
|
}), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Form.Item, {
|
@@ -197,6 +225,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
|
|
197
225
|
children: /*#__PURE__*/_jsx(Button, {
|
198
226
|
type: "primary",
|
199
227
|
htmlType: "submit",
|
228
|
+
disabled: !canPost,
|
200
229
|
children: "\u4FDD\u5B58"
|
201
230
|
})
|
202
231
|
})]
|
@@ -1,6 +1,4 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
declare class ActiveAccountModeTask {
|
3
|
-
timer: NodeJS.Timeout;
|
4
2
|
loopSecond: number;
|
5
3
|
modeSetting: ActiveAccountModeSetting.Detail;
|
6
4
|
env: Global.Env | undefined;
|
@@ -10,6 +8,7 @@ declare class ActiveAccountModeTask {
|
|
10
8
|
};
|
11
9
|
constructor(env?: Global.Env);
|
12
10
|
destroy(): void;
|
11
|
+
onLoop(): Promise<void>;
|
13
12
|
loop(): Promise<void>;
|
14
13
|
makePublishTask(videoAccountId: number, needTaskCount: number, dayIndex: number): Promise<unknown>;
|
15
14
|
postTask(videoAccountId: number, videoList: string[], topicList: string[], dayIndex: number): Promise<unknown>;
|