component-shipinlv 2.2.5 → 2.2.7
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/task/index.js +40 -25
- package/dist/UI/Money/index.css.js +1 -1
- package/dist/UI/Money/index.js +18 -14
- package/dist/UI/PageContentWarp.js +2 -2
- package/dist/UI/PageContentWarp.less +9 -1
- package/dist/VideoPublish/account-manage/home.js +4 -0
- package/dist/VideoPublish/account-manage/list.d.ts +1 -0
- package/dist/VideoPublish/account-manage/list.js +5 -2
- package/dist/VideoPublish/account-manage/setting/index.js +42 -3
- package/dist/VideoPublish/task-list/plan/list.js +2 -0
- package/dist/VideoPublish/task-list/plan/operate.js +2 -1
- package/dist/VideoPublish/task-list/plan/query.js +41 -1
- package/dist/VideoPublish/task-list/plan/query.less +6 -0
- package/dist/VideoPublish/task-list/plan/status.js +1 -1
- package/dist/VideoPublish/video-account/base-info.d.ts +1 -0
- package/dist/VideoPublish/video-account/base-info.js +6 -2
- package/dist/VideoPublish/video-account/create.js +2 -2
- package/dist/VideoPublish/video-account/index.js +13 -9
- package/dist/VideoPublish/video-account/index.less +10 -0
- package/dist/VideoPublish/video-account/query.js +21 -0
- package/dist/VideoPublish/video-account/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.d.ts +9 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/kind.d.ts +16 -0
- package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +41 -3
- package/dist/component/AccountBan/index.d.ts +7 -0
- package/dist/component/AccountBan/index.js +10 -0
- package/dist/component/AccountBan/index.less +12 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/accountManageSettingConfig.js +2 -2
- package/dist/lib/fs.js +2 -1
- package/dist/lib/notification.js +1 -0
- package/dist/lib/save-path.js +19 -15
- package/dist/lib/save-path.less +2 -2
- package/dist/service/api/VideoPublishStatisticOperationController.d.ts +5 -0
- package/dist/service/api/VideoPublishStatisticOperationController.js +23 -0
- package/dist/types/VideoPublish.d.ts +1 -0
- package/dist/types/VideoPublishStatisticOperation.d.ts +7 -0
- package/dist/types/VideoPublishTaskPlan.d.ts +2 -0
- package/dist/types/VideoPublishVideoAccount.d.ts +2 -0
- package/dist/typings/VideoPublishAccountManageSetting.d.ts +2 -0
- package/package.json +3 -2
@@ -121,7 +121,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
121
121
|
dayIndex = 0;
|
122
122
|
case 22:
|
123
123
|
if (!(dayIndex < setting.publishMaxDay)) {
|
124
|
-
_context2.next =
|
124
|
+
_context2.next = 75;
|
125
125
|
break;
|
126
126
|
}
|
127
127
|
console.log('publishMaxDay:', dayIndex);
|
@@ -144,7 +144,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
144
144
|
_context2.next = 34;
|
145
145
|
return sleep(20e3);
|
146
146
|
case 34:
|
147
|
-
return _context2.abrupt("continue",
|
147
|
+
return _context2.abrupt("continue", 72);
|
148
148
|
case 35:
|
149
149
|
// 把发布过的,做一个字段
|
150
150
|
this.planDict = {};
|
@@ -169,62 +169,76 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
169
169
|
_iterator2.s();
|
170
170
|
case 41:
|
171
171
|
if ((_step2 = _iterator2.n()).done) {
|
172
|
-
_context2.next =
|
172
|
+
_context2.next = 64;
|
173
173
|
break;
|
174
174
|
}
|
175
175
|
accountItem = _step2.value;
|
176
|
+
if (accountItem.isLoginValid) {
|
177
|
+
_context2.next = 46;
|
178
|
+
break;
|
179
|
+
}
|
180
|
+
console.log('账号已掉线:', accountItem);
|
181
|
+
return _context2.abrupt("continue", 62);
|
182
|
+
case 46:
|
183
|
+
if (!accountItem.isBan) {
|
184
|
+
_context2.next = 49;
|
185
|
+
break;
|
186
|
+
}
|
187
|
+
console.log('账号已封:', accountItem);
|
188
|
+
return _context2.abrupt("continue", 62);
|
189
|
+
case 49:
|
176
190
|
count = ((_this$planDict$accoun = this.planDict[accountItem.id]) === null || _this$planDict$accoun === void 0 ? void 0 : _this$planDict$accoun.length) || 0; // 需要指定路径
|
177
191
|
if (accountItem.videoFromFolder) {
|
178
|
-
_context2.next =
|
192
|
+
_context2.next = 53;
|
179
193
|
break;
|
180
194
|
}
|
181
195
|
console.log('no videoFromFolder :', accountItem.id, accountItem.nickname);
|
182
|
-
return _context2.abrupt("continue",
|
183
|
-
case
|
196
|
+
return _context2.abrupt("continue", 62);
|
197
|
+
case 53:
|
184
198
|
// 删除 此账户下面,所有已经发布的视频
|
185
199
|
this.checkDelFile(accountItem.id, accountItem.videoFromFolder);
|
186
200
|
if (!(count >= setting.dayPublishMaxAmount)) {
|
187
|
-
_context2.next =
|
201
|
+
_context2.next = 57;
|
188
202
|
break;
|
189
203
|
}
|
190
204
|
console.log('count 2:', count, setting.dayPublishMaxAmount);
|
191
|
-
return _context2.abrupt("continue",
|
192
|
-
case
|
205
|
+
return _context2.abrupt("continue", 62);
|
206
|
+
case 57:
|
193
207
|
console.log('makePublishTask in:', accountItem.id, setting.dayPublishMaxAmount - count, dayIndex);
|
194
208
|
|
195
209
|
// 生成任务
|
196
|
-
_context2.next =
|
210
|
+
_context2.next = 60;
|
197
211
|
return this.makePublishTask(accountItem.id, setting.dayPublishMaxAmount - count, dayIndex).catch(function (err) {
|
198
212
|
console.log('makePublishTask err:', err);
|
199
213
|
});
|
200
|
-
case
|
201
|
-
_context2.next =
|
214
|
+
case 60:
|
215
|
+
_context2.next = 62;
|
202
216
|
return sleep(3e3);
|
203
|
-
case
|
217
|
+
case 62:
|
204
218
|
_context2.next = 41;
|
205
219
|
break;
|
206
|
-
case
|
207
|
-
_context2.next =
|
220
|
+
case 64:
|
221
|
+
_context2.next = 69;
|
208
222
|
break;
|
209
|
-
case
|
210
|
-
_context2.prev =
|
223
|
+
case 66:
|
224
|
+
_context2.prev = 66;
|
211
225
|
_context2.t0 = _context2["catch"](39);
|
212
226
|
_iterator2.e(_context2.t0);
|
213
|
-
case
|
214
|
-
_context2.prev =
|
227
|
+
case 69:
|
228
|
+
_context2.prev = 69;
|
215
229
|
_iterator2.f();
|
216
|
-
return _context2.finish(
|
217
|
-
case
|
230
|
+
return _context2.finish(69);
|
231
|
+
case 72:
|
218
232
|
dayIndex++;
|
219
233
|
_context2.next = 22;
|
220
234
|
break;
|
221
|
-
case
|
235
|
+
case 75:
|
222
236
|
this.onLoop();
|
223
|
-
case
|
237
|
+
case 76:
|
224
238
|
case "end":
|
225
239
|
return _context2.stop();
|
226
240
|
}
|
227
|
-
}, _callee2, this, [[39,
|
241
|
+
}, _callee2, this, [[39, 66, 69, 72]]);
|
228
242
|
}));
|
229
243
|
function loop() {
|
230
244
|
return _loop.apply(this, arguments);
|
@@ -758,10 +772,11 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
758
772
|
console.log('newFilePath:', newFilePath);
|
759
773
|
return _context12.abrupt("return", new Promise( /*#__PURE__*/function () {
|
760
774
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(resolve, reject) {
|
775
|
+
var _window$getBridge2;
|
761
776
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
762
777
|
while (1) switch (_context11.prev = _context11.next) {
|
763
778
|
case 0:
|
764
|
-
window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
|
779
|
+
(_window$getBridge2 = window.getBridge()) === null || _window$getBridge2 === void 0 || _window$getBridge2.fs.rename(videoPath, newFilePath, function (err) {
|
765
780
|
if (err) {
|
766
781
|
console.log('videoRename err:', err);
|
767
782
|
reject(err);
|
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
2
2
|
var _templateObject;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
money: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .yen{\n font-size: smaller;\n opacity: 0.8;\n font-weight: 300;\n }\n .value{\n font-weight: bold;\n padding-left: 2px;\n padding-right: 1px;\n &.zero{\n font-weight: 300;\n color: #AAA;\n }\n }\n "])))
|
5
|
+
money: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .yen{\n font-size: smaller;\n opacity: 0.8;\n font-weight: 300;\n }\n .value{\n //font-weight: bold;\n padding-left: 2px;\n padding-right: 1px;\n &.zero{\n font-weight: 300;\n color: #AAA;\n }\n }\n "])))
|
6
6
|
};
|
package/dist/UI/Money/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import styles from "./index.css";
|
2
2
|
import React from "react";
|
3
3
|
import moneySimple from "../../lib/moneySimple";
|
4
|
+
import { Tooltip } from "antd";
|
4
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -17,20 +18,23 @@ var Money = function Money(_ref) {
|
|
17
18
|
color = _ref.color,
|
18
19
|
_ref$disabledMoneySim = _ref.disabledMoneySimple,
|
19
20
|
disabledMoneySimple = _ref$disabledMoneySim === void 0 ? false : _ref$disabledMoneySim;
|
20
|
-
return /*#__PURE__*/
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
children:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
21
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
22
|
+
title: value,
|
23
|
+
children: /*#__PURE__*/_jsxs(styles.money, {
|
24
|
+
style: {
|
25
|
+
color: color
|
26
|
+
},
|
27
|
+
children: [/*#__PURE__*/_jsx("span", {
|
28
|
+
className: "yen",
|
29
|
+
children: pre
|
30
|
+
}), /*#__PURE__*/_jsx("span", {
|
31
|
+
className: "value ".concat(value === 0 ? 'zero' : '', " "),
|
32
|
+
children: typeof value === 'number' ? disabledMoneySimple ? parseFloat(value.toFixed(precision)) : moneySimple(value, false, precision) : ''
|
33
|
+
}), /*#__PURE__*/_jsx("span", {
|
34
|
+
className: "yen",
|
35
|
+
children: end
|
36
|
+
})]
|
37
|
+
})
|
34
38
|
});
|
35
39
|
};
|
36
40
|
export default Money;
|
@@ -37,10 +37,10 @@ var PageContentWarp = function PageContentWarp(_ref) {
|
|
37
37
|
},
|
38
38
|
children: [/*#__PURE__*/_jsxs("div", {
|
39
39
|
className: "pageTitle ".concat(disabledTitleBorder ? 'noTitleBorder' : '', " ").concat(!title && 'noTitle', " ").concat(!title && !extInfo ? 'noTitles' : ''),
|
40
|
-
children: [title && /*#__PURE__*/_jsx("
|
40
|
+
children: [title && /*#__PURE__*/_jsx("div", {
|
41
41
|
className: "title",
|
42
42
|
children: title
|
43
|
-
}), /*#__PURE__*/_jsx("
|
43
|
+
}), /*#__PURE__*/_jsx("div", {
|
44
44
|
className: "subtitle",
|
45
45
|
children: subtitle
|
46
46
|
}), /*#__PURE__*/_jsx("div", {
|
@@ -17,6 +17,11 @@
|
|
17
17
|
border-bottom: 1px solid #eee;
|
18
18
|
line-height: 1.2em;
|
19
19
|
margin: 0 0 10px 0;
|
20
|
+
display: flex;
|
21
|
+
flex-direction: row;
|
22
|
+
.ant-form-item{
|
23
|
+
margin-bottom: 0 !important;
|
24
|
+
}
|
20
25
|
&.noTitles {
|
21
26
|
display: none;
|
22
27
|
}
|
@@ -38,10 +43,13 @@
|
|
38
43
|
}
|
39
44
|
.extInfo {
|
40
45
|
position: absolute;
|
41
|
-
bottom:
|
46
|
+
bottom: 8px;
|
42
47
|
right: 0;
|
43
48
|
font-size: 14px;
|
44
49
|
line-height: 38px;
|
50
|
+
.ant-form-item{
|
51
|
+
margin-bottom: 0 !important;
|
52
|
+
}
|
45
53
|
}
|
46
54
|
}
|
47
55
|
|
@@ -18,6 +18,7 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
18
18
|
onMenu = _ref.onMenu,
|
19
19
|
canPublish = _ref.canPublish;
|
20
20
|
var _useState = useState({
|
21
|
+
isBan: false,
|
21
22
|
videoFromFolder: "",
|
22
23
|
id: 0,
|
23
24
|
userId: 0,
|
@@ -194,6 +195,9 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
194
195
|
}), /*#__PURE__*/_jsx("div", {
|
195
196
|
className: "userId",
|
196
197
|
children: accountDetail.uniqueId
|
198
|
+
}), /*#__PURE__*/_jsx("div", {
|
199
|
+
className: "nicknameRemark",
|
200
|
+
children: accountDetail.nicknameRemark
|
197
201
|
})]
|
198
202
|
})]
|
199
203
|
}), /*#__PURE__*/_jsx(Descriptions, {
|
@@ -5,6 +5,7 @@ interface Props {
|
|
5
5
|
env?: Global.Env;
|
6
6
|
currentAccountDetail: VideoPublishVideoAccount.List;
|
7
7
|
onMenu: (key: string) => void;
|
8
|
+
disabledDel?: boolean;
|
8
9
|
onListData: (list: VideoPublishVideoAccount.List[]) => void;
|
9
10
|
onCurrent: (detail: VideoPublishVideoAccount.List) => void;
|
10
11
|
}
|
@@ -35,6 +35,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
35
35
|
_ref$onListData = _ref.onListData,
|
36
36
|
onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
|
37
37
|
currentAccountDetail = _ref.currentAccountDetail,
|
38
|
+
disabledDel = _ref.disabledDel,
|
38
39
|
_ref$onCurrent = _ref.onCurrent,
|
39
40
|
onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
|
40
41
|
var _useState = useState(getLocalUserInfo()),
|
@@ -124,6 +125,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
124
125
|
platform: 'd',
|
125
126
|
groupId: 0,
|
126
127
|
groupName: '',
|
128
|
+
isBan: false,
|
127
129
|
uniqueId: '',
|
128
130
|
accountId: '',
|
129
131
|
avatar: '',
|
@@ -193,11 +195,11 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
193
195
|
onMenu('setting');
|
194
196
|
return _context.abrupt("return");
|
195
197
|
case 10:
|
196
|
-
if (!(listData.length >=
|
198
|
+
if (!(listData.length >= 500)) {
|
197
199
|
_context.next = 13;
|
198
200
|
break;
|
199
201
|
}
|
200
|
-
notification.notificationError('这电脑绑定到上限了', '每台电脑最多绑定
|
202
|
+
notification.notificationError('这电脑绑定到上限了', '每台电脑最多绑定 500 个账号');
|
201
203
|
return _context.abrupt("return");
|
202
204
|
case 13:
|
203
205
|
toast('正在启动浏览器,请扫码登录', 12);
|
@@ -449,6 +451,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
449
451
|
className: currentId == item.id ? "active" : '',
|
450
452
|
index: index,
|
451
453
|
accountInfo: _objectSpread({}, item),
|
454
|
+
disabledDel: disabledDel,
|
452
455
|
onDel: function onDel(id) {
|
453
456
|
return _onDel(id);
|
454
457
|
},
|
@@ -4,13 +4,14 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
5
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
6
6
|
import React, { useEffect, useState } from 'react';
|
7
|
-
import { ConfigProvider, Divider, Form, InputNumber, Modal, Space, Switch, Tag, Tooltip } from 'antd';
|
7
|
+
import { ConfigProvider, Divider, Form, InputNumber, Modal, Space, Switch, Tag, TimePicker, Tooltip } from 'antd';
|
8
8
|
import "./index.less";
|
9
9
|
import LayoutContent from "../../../UI/LayoutContent";
|
10
10
|
import AccountManageSettingConfig from "../../../lib/accountManageSettingConfig";
|
11
11
|
import FileSelect from "../../../component/file-select";
|
12
12
|
import Tool from "../../../lib/Tool";
|
13
13
|
import FolderSelect from "../../../component/folder-select";
|
14
|
+
import dayjs from "dayjs";
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
17
|
var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
|
@@ -56,7 +57,10 @@ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
|
|
56
57
|
span: 5
|
57
58
|
},
|
58
59
|
autoComplete: "off",
|
59
|
-
initialValues: _objectSpread({}, formData),
|
60
|
+
initialValues: _objectSpread(_objectSpread({}, formData), {}, {
|
61
|
+
// defaultValue={}
|
62
|
+
queryDataTime: dayjs(formData.queryDataTime || '16:00', 'HH:mm')
|
63
|
+
}),
|
60
64
|
children: [/*#__PURE__*/_jsx(ConfigProvider, {
|
61
65
|
theme: {
|
62
66
|
token: {
|
@@ -154,7 +158,42 @@ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
|
|
154
158
|
_onFinish(formData);
|
155
159
|
}
|
156
160
|
})
|
157
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
161
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
162
|
+
orientation: "left",
|
163
|
+
children: "\u67E5\u8BE2\u6570\u636E"
|
164
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
165
|
+
label: "\u67E5\u8BE2\u57FA\u7840\u6570\u636E",
|
166
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
167
|
+
size: 60,
|
168
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
169
|
+
name: "autoQueryData",
|
170
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
171
|
+
disabled: true,
|
172
|
+
checkedChildren: "\u7A7A\u95F2\u4E3B\u52A8\u67E5\u8BE2\u6570\u636E",
|
173
|
+
unCheckedChildren: "\u4EC5\u53D1\u5E03\u65F6\u67E5\u8BE2\u6570\u636E",
|
174
|
+
onChange: function onChange(autoQueryData) {
|
175
|
+
formData.autoQueryData = autoQueryData;
|
176
|
+
setFormData(_objectSpread({}, formData));
|
177
|
+
_onFinish(formData);
|
178
|
+
}
|
179
|
+
})
|
180
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
181
|
+
name: "queryDataTime",
|
182
|
+
label: "\u6BCF\u5929",
|
183
|
+
style: {
|
184
|
+
display: formData.autoQueryData ? '' : 'none'
|
185
|
+
},
|
186
|
+
children: /*#__PURE__*/_jsx(TimePicker, {
|
187
|
+
format: "HH:mm",
|
188
|
+
showNow: false,
|
189
|
+
minuteStep: 10
|
190
|
+
})
|
191
|
+
})]
|
192
|
+
})
|
193
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
194
|
+
orientation: "left",
|
195
|
+
children: "\u4EFB\u52A1\u76F8\u5173"
|
196
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
158
197
|
label: "\u4EFB\u52A1\u901A\u77E5\u7AEF\u53E3",
|
159
198
|
children: /*#__PURE__*/_jsxs(Space, {
|
160
199
|
size: 20,
|
@@ -46,6 +46,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
46
46
|
pagination = _useState4[0],
|
47
47
|
setPagination = _useState4[1];
|
48
48
|
var _useState5 = useState({
|
49
|
+
isBan: '',
|
50
|
+
status: '',
|
49
51
|
startTime: startTime,
|
50
52
|
// Date.now(),
|
51
53
|
endTime: endTime //Date.now(),
|
@@ -29,10 +29,11 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
|
|
29
29
|
newFilePath = videoPathInfo.slice(0, -1).join('/') + "/".concat(newName);
|
30
30
|
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
31
31
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
32
|
+
var _window$getBridge;
|
32
33
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
33
34
|
while (1) switch (_context.prev = _context.next) {
|
34
35
|
case 0:
|
35
|
-
window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
|
36
|
+
(_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.fs.rename(videoPath, newFilePath, function (err) {
|
36
37
|
if (err) {
|
37
38
|
console.log('video Rename err:', err);
|
38
39
|
reject(err);
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
3
|
import React, { useState } from 'react';
|
4
|
-
import { Button, Form, Input, Space } from "antd";
|
4
|
+
import { Button, Form, Input, Select, Space, Tag } from "antd";
|
5
5
|
import "./query.less";
|
6
|
+
import { UnorderedListOutlined } from "@ant-design/icons";
|
7
|
+
import VideoPublishTaskPlanStatus, { VideoPublishTaskPlanStatusList } from "./status";
|
6
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
10
|
var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref) {
|
@@ -27,7 +29,45 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
|
|
27
29
|
initialValues: _objectSpread({}, query),
|
28
30
|
onFinish: onFinish,
|
29
31
|
children: /*#__PURE__*/_jsxs(Space, {
|
32
|
+
wrap: true,
|
30
33
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
34
|
+
name: "isBan",
|
35
|
+
className: "isBan",
|
36
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
37
|
+
children: [/*#__PURE__*/_jsxs(Select, {
|
38
|
+
value: "",
|
39
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
|
40
|
+
}), /*#__PURE__*/_jsx(Select, {
|
41
|
+
value: "0",
|
42
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
43
|
+
color: "green",
|
44
|
+
children: "\u6B63\u5E38"
|
45
|
+
})
|
46
|
+
}), /*#__PURE__*/_jsx(Select, {
|
47
|
+
value: "1",
|
48
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
49
|
+
color: "red",
|
50
|
+
children: "\u88AB\u7981"
|
51
|
+
})
|
52
|
+
})]
|
53
|
+
})
|
54
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
55
|
+
name: "status",
|
56
|
+
className: "status",
|
57
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
58
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
59
|
+
value: "",
|
60
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u53D1\u5E03\u72B6\u6001"]
|
61
|
+
}), VideoPublishTaskPlanStatusList.map(function (items) {
|
62
|
+
return /*#__PURE__*/_jsx(Select.Option, {
|
63
|
+
value: items.status,
|
64
|
+
children: /*#__PURE__*/_jsx(VideoPublishTaskPlanStatus, {
|
65
|
+
status: items.status
|
66
|
+
})
|
67
|
+
}, items.status);
|
68
|
+
})]
|
69
|
+
})
|
70
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
31
71
|
name: "keyword",
|
32
72
|
children: /*#__PURE__*/_jsx(Input
|
33
73
|
// value={ query.keyword }
|
@@ -3,6 +3,7 @@ import "./base-info.less";
|
|
3
3
|
import { Avatar, Popconfirm, Tooltip } from "antd";
|
4
4
|
import VideoPlatformLogo from "../../component/video-platform/logo";
|
5
5
|
import { CloseOutlined } from "@ant-design/icons";
|
6
|
+
import AccountBan from "../../component/AccountBan";
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -12,6 +13,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
12
13
|
className = _ref$className === void 0 ? '' : _ref$className,
|
13
14
|
index = _ref.index,
|
14
15
|
accountInfo = _ref.accountInfo,
|
16
|
+
disabledDel = _ref.disabledDel,
|
15
17
|
_ref$onClick = _ref.onClick,
|
16
18
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
17
19
|
_ref$onDel = _ref.onDel,
|
@@ -30,7 +32,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
30
32
|
children: [typeof index === 'number' && /*#__PURE__*/_jsx("i", {
|
31
33
|
className: "index",
|
32
34
|
children: index + 1
|
33
|
-
}), typeof id === 'number' && /*#__PURE__*/_jsx(Popconfirm, {
|
35
|
+
}), typeof id === 'number' && !disabledDel && /*#__PURE__*/_jsx(Popconfirm, {
|
34
36
|
title: "\u5220\u9664\u8D26\u6237",
|
35
37
|
description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
|
36
38
|
onConfirm: function onConfirm() {
|
@@ -54,7 +56,9 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
54
56
|
})]
|
55
57
|
}), /*#__PURE__*/_jsxs("div", {
|
56
58
|
className: "shopName",
|
57
|
-
children: [/*#__PURE__*/_jsx(
|
59
|
+
children: [(accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.isBan) && /*#__PURE__*/_jsx(AccountBan, {
|
60
|
+
isBan: accountInfo.isBan
|
61
|
+
}), /*#__PURE__*/_jsx(VideoPlatformLogo, {
|
58
62
|
platform: (accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.platform) || '',
|
59
63
|
size: 12
|
60
64
|
}), accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.nickname, /*#__PURE__*/_jsx("div", {
|
@@ -146,8 +146,8 @@ var VideoAccountCreate = function VideoAccountCreate(_ref) {
|
|
146
146
|
name: "nicknameRemark",
|
147
147
|
label: "\u8D26\u53F7\u5907\u6CE8",
|
148
148
|
rules: [{
|
149
|
-
max:
|
150
|
-
message: '最多
|
149
|
+
max: 20,
|
150
|
+
message: '最多20个字符'
|
151
151
|
}],
|
152
152
|
children: /*#__PURE__*/_jsx(Input, {
|
153
153
|
placeholder: "\u8F93\u5165\u8D26\u53F7\u5907\u6CE8"
|
@@ -7,7 +7,7 @@ import PageContentWarp from "../../UI/PageContentWarp";
|
|
7
7
|
import { useRequest } from "@umijs/hooks";
|
8
8
|
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
9
9
|
import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
10
|
-
import { Avatar, Button, Divider, Space, Table, Tag } from "antd";
|
10
|
+
import { Avatar, Button, Divider, Space, Table, Tag, Tooltip } from "antd";
|
11
11
|
import VideoPublishVideoAccountListQuery from "./query";
|
12
12
|
import VideoPlatform from "../../component/video-platform/logo";
|
13
13
|
import Money from "../../UI/Money";
|
@@ -20,8 +20,8 @@ import SavePath from "../../lib/save-path";
|
|
20
20
|
import dayjs from "dayjs";
|
21
21
|
import VideoAccountBan from "./ban";
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
23
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
24
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
25
25
|
var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
26
26
|
var disabled = _ref.disabled,
|
27
27
|
env = _ref.env;
|
@@ -42,7 +42,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
42
42
|
var _useState5 = useState({
|
43
43
|
isLoginValid: '',
|
44
44
|
keyword: '',
|
45
|
-
platform: ''
|
45
|
+
platform: '',
|
46
|
+
isBan: ''
|
46
47
|
}),
|
47
48
|
_useState6 = _slicedToArray(_useState5, 2),
|
48
49
|
query = _useState6[0],
|
@@ -99,12 +100,14 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
99
100
|
children: [/*#__PURE__*/_jsx("strong", {
|
100
101
|
className: "nickname",
|
101
102
|
children: (record === null || record === void 0 ? void 0 : record.nickname) || '-'
|
102
|
-
}), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/
|
103
|
-
children:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
}), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsx("div", {
|
104
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
105
|
+
title: "\u5907\u6CE8\uFF1A".concat(record === null || record === void 0 ? void 0 : record.nicknameRemark),
|
106
|
+
children: /*#__PURE__*/_jsx("div", {
|
107
|
+
className: "nicknameRemark",
|
108
|
+
children: record === null || record === void 0 ? void 0 : record.nicknameRemark
|
109
|
+
})
|
110
|
+
})
|
108
111
|
}), /*#__PURE__*/_jsx("div", {
|
109
112
|
className: "userId",
|
110
113
|
children: record === null || record === void 0 ? void 0 : record.accountId
|
@@ -183,6 +186,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
183
186
|
return /*#__PURE__*/_jsx("div", {
|
184
187
|
className: "videoFromFolder",
|
185
188
|
children: /*#__PURE__*/_jsx(SavePath, {
|
189
|
+
size: "small",
|
186
190
|
path: videoFromFolder,
|
187
191
|
placeholder: "\u8BF7\u9009\u62E9\u672C\u5730\u89C6\u9891\u6587\u4EF6\u5939",
|
188
192
|
hiddenOpenDir: false
|
@@ -13,6 +13,16 @@
|
|
13
13
|
box-shadow: 0 0 3px #AAA;
|
14
14
|
}
|
15
15
|
}
|
16
|
+
.nicknameRemark{
|
17
|
+
max-width: 110px;
|
18
|
+
overflow: hidden;
|
19
|
+
text-overflow: ellipsis;
|
20
|
+
white-space: nowrap;
|
21
|
+
word-break: keep-all;
|
22
|
+
//line-height: 1em;
|
23
|
+
vertical-align: middle;
|
24
|
+
font-size: 12px;
|
25
|
+
}
|
16
26
|
.info{
|
17
27
|
margin: 0 0 0 10px;
|
18
28
|
.nickname{
|
@@ -50,6 +50,27 @@ var VideoPublishVideoAccountListQuery = function VideoPublishVideoAccountListQue
|
|
50
50
|
}, item.platform);
|
51
51
|
})]
|
52
52
|
})
|
53
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
54
|
+
name: "isBan",
|
55
|
+
className: "isBan",
|
56
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
57
|
+
children: [/*#__PURE__*/_jsxs(Select, {
|
58
|
+
value: "",
|
59
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
|
60
|
+
}), /*#__PURE__*/_jsx(Select, {
|
61
|
+
value: "0",
|
62
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
63
|
+
color: "green",
|
64
|
+
children: "\u6B63\u5E38"
|
65
|
+
})
|
66
|
+
}), /*#__PURE__*/_jsx(Select, {
|
67
|
+
value: "1",
|
68
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
69
|
+
color: "red",
|
70
|
+
children: "\u88AB\u7981"
|
71
|
+
})
|
72
|
+
})]
|
73
|
+
})
|
53
74
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
54
75
|
name: "isLoginValid",
|
55
76
|
className: "isLoginValid",
|