component-shipinlv 1.1.6 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Auth/index.d.ts +1 -1
- package/dist/Auth/index.js +2 -2
- package/dist/AuthClient/index.d.ts +1 -1
- package/dist/AuthClient/index.js +2 -2
- package/dist/AuthClient/login-reg.d.ts +1 -1
- package/dist/AuthClient/login-reg.js +3 -3
- package/dist/AuthClient/login.d.ts +1 -1
- package/dist/AuthClient/login.js +2 -2
- package/dist/AuthClient/qr/index.d.ts +1 -1
- package/dist/AuthClient/qr/index.js +2 -2
- package/dist/AuthClient/reg.d.ts +1 -1
- package/dist/AuthClient/reg.js +2 -2
- package/dist/UI/DialogDrawer.css.js +1 -1
- package/dist/UI/LayoutContent.js +2 -2
- package/dist/UI/LayoutContent.less +3 -3
- package/dist/VideoPublish/account-manage/home.js +3 -1
- package/dist/VideoPublish/account-manage/list.js +19 -44
- package/dist/VideoPublish/account-manage/list.less +0 -72
- package/dist/VideoPublish/create-task/base/index.js +1 -0
- package/dist/VideoPublish/create-task/index.js +6 -4
- package/dist/VideoPublish/index.js +13 -1
- package/dist/VideoPublish/proxy/create.d.ts +8 -0
- package/dist/VideoPublish/proxy/create.js +154 -0
- package/dist/VideoPublish/proxy/list.d.ts +9 -0
- package/dist/VideoPublish/proxy/list.js +245 -0
- package/dist/VideoPublish/proxy/list.less +3 -0
- package/dist/VideoPublish/proxy/query.d.ts +9 -0
- package/dist/VideoPublish/proxy/query.js +75 -0
- package/dist/VideoPublish/proxy/query.less +10 -0
- package/dist/VideoPublish/task-list/index.js +1 -1
- package/dist/VideoPublish/task-list/plan/list.js +4 -6
- package/dist/VideoPublish/task-list/plan/list.less +73 -0
- package/dist/VideoPublish/video-account/base-info.d.ts +12 -0
- package/dist/VideoPublish/video-account/base-info.js +69 -0
- package/dist/VideoPublish/video-account/base-info.less +92 -0
- package/dist/VideoPublish/video-account/index.js +40 -8
- package/dist/VideoPublish/video-account/index.less +10 -0
- package/dist/component/{media-show.d.ts → media-show/index.d.ts} +4 -4
- package/dist/component/{media-show.js → media-show/index.js} +10 -35
- package/dist/component/media-show/index.less +0 -0
- package/dist/component/media-show/render.d.ts +10 -0
- package/dist/component/media-show/render.js +111 -0
- package/dist/component/{media-show.less → media-show/render.less} +2 -1
- package/dist/config/apiUrls.js +1 -1
- package/dist/lib/Tool.js +4 -2
- package/dist/service/api/AuthController.d.ts +2 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.d.ts +11 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.js +105 -0
- package/dist/types/VideoPublishTaskPlan.d.ts +1 -0
- package/dist/types/VideoPublishVideoAccount.d.ts +11 -0
- package/dist/types/VideoPublishVideoAccountProxy.d.ts +32 -0
- package/dist/types/VideoPublishVideoAccountProxy.js +0 -0
- package/dist/typings/VideoPublishVideoAccount.d.ts +3 -1
- package/package.json +1 -1
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
@@ -26,7 +26,7 @@ var FromWhere = 'web';
|
|
26
26
|
// 逐渐弃用 AuthClient ,使用 本函数
|
27
27
|
var Auth = function Auth(_ref) {
|
28
28
|
var productType = _ref.productType,
|
29
|
-
|
29
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
30
30
|
loginTypeList = _ref.loginTypeList,
|
31
31
|
env = _ref.env,
|
32
32
|
_ref$domain = _ref.domain,
|
@@ -322,7 +322,7 @@ var Auth = function Auth(_ref) {
|
|
322
322
|
children: /*#__PURE__*/_jsx(AuthLoginReg, {
|
323
323
|
env: env,
|
324
324
|
productType: productType,
|
325
|
-
|
325
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
326
326
|
accountRegDisabled: !loginTypeList.includes('account-reg'),
|
327
327
|
onSuccess: function onSuccess() {
|
328
328
|
return onLoginSuccess();
|
package/dist/AuthClient/index.js
CHANGED
@@ -4,7 +4,7 @@ import Tool from "../lib/Tool";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
5
|
var Auth = function Auth(_ref) {
|
6
6
|
var productType = _ref.productType,
|
7
|
-
|
7
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
8
8
|
defaultLoginType = _ref.defaultLoginType,
|
9
9
|
wechatDisabled = _ref.wechatDisabled,
|
10
10
|
accountDisabled = _ref.accountDisabled,
|
@@ -18,7 +18,7 @@ var Auth = function Auth(_ref) {
|
|
18
18
|
};
|
19
19
|
return /*#__PURE__*/_jsx(LoginQr, {
|
20
20
|
productType: productType,
|
21
|
-
|
21
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
22
22
|
defaultLoginType: defaultLoginType,
|
23
23
|
wechatDisabled: wechatDisabled,
|
24
24
|
accountDisabled: accountDisabled,
|
@@ -10,7 +10,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
var AuthLoginReg = function AuthLoginReg(_ref) {
|
11
11
|
var env = _ref.env,
|
12
12
|
productType = _ref.productType,
|
13
|
-
|
13
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
14
14
|
_ref$activeKeyDefault = _ref.activeKeyDefault,
|
15
15
|
activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
|
16
16
|
accountRegDisabled = _ref.accountRegDisabled,
|
@@ -48,7 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
48
48
|
children: /*#__PURE__*/_jsx(AuthLogin, {
|
49
49
|
env: env,
|
50
50
|
productType: productType,
|
51
|
-
|
51
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
52
52
|
onSuccess: function onSuccess() {
|
53
53
|
return _onSuccess();
|
54
54
|
}
|
@@ -58,7 +58,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
58
58
|
children: /*#__PURE__*/_jsx(Reg, {
|
59
59
|
env: env,
|
60
60
|
productType: productType,
|
61
|
-
|
61
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
62
62
|
onSuccess: function onSuccess() {
|
63
63
|
return _onSuccess();
|
64
64
|
}
|
package/dist/AuthClient/login.js
CHANGED
@@ -46,7 +46,7 @@ var tailFormItemLayout = {
|
|
46
46
|
var AuthReg = function AuthReg(_ref) {
|
47
47
|
var env = _ref.env,
|
48
48
|
productType = _ref.productType,
|
49
|
-
|
49
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
50
50
|
_ref$onSuccess = _ref.onSuccess,
|
51
51
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
52
52
|
var _useState = useState(false),
|
@@ -60,7 +60,7 @@ var AuthReg = function AuthReg(_ref) {
|
|
60
60
|
var unbind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
61
61
|
return AuthController.login(_objectSpread(_objectSpread({
|
62
62
|
productType: productType,
|
63
|
-
|
63
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
64
64
|
from: "web"
|
65
65
|
}, data), {}, {
|
66
66
|
unbind: unbind,
|
@@ -24,7 +24,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
var LoginQr = function LoginQr(_ref) {
|
26
26
|
var productType = _ref.productType,
|
27
|
-
|
27
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
28
28
|
defaultLoginType = _ref.defaultLoginType,
|
29
29
|
wechatDisabled = _ref.wechatDisabled,
|
30
30
|
accountDisabled = _ref.accountDisabled,
|
@@ -324,7 +324,7 @@ var LoginQr = function LoginQr(_ref) {
|
|
324
324
|
disabled: accountDisabled,
|
325
325
|
children: /*#__PURE__*/_jsx(AuthLoginReg, {
|
326
326
|
productType: productType,
|
327
|
-
|
327
|
+
clientUniqueKeyList: clientUniqueKeyList,
|
328
328
|
accountRegDisabled: accountRegDisabled,
|
329
329
|
onSuccess: function onSuccess() {
|
330
330
|
return onLoginSuccess();
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
@@ -43,7 +43,7 @@ var tailFormItemLayout = {
|
|
43
43
|
var Reg = function Reg(_ref) {
|
44
44
|
var env = _ref.env,
|
45
45
|
productType = _ref.productType,
|
46
|
-
|
46
|
+
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
47
47
|
_ref$onSuccess = _ref.onSuccess,
|
48
48
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
49
49
|
var _Form$useForm = Form.useForm(),
|
@@ -52,7 +52,7 @@ var Reg = function Reg(_ref) {
|
|
52
52
|
var _useRequest = useRequest(function (data) {
|
53
53
|
return AuthController.reg(_objectSpread(_objectSpread({
|
54
54
|
productType: productType,
|
55
|
-
|
55
|
+
clientUniqueKeyList: clientUniqueKeyList
|
56
56
|
}, data), {}, {
|
57
57
|
inviteUserId: Tool.getInviteUserId()
|
58
58
|
}), {
|
@@ -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
|
-
DrawerDialog: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-drawerDialog {\n .ant-drawer-body {\n background-color: #f5f5f5;\n }\n &.light{\n .ant-drawer-body {\n background-color: #FFF;\n }\n }\n }\n "])))
|
5
|
+
DrawerDialog: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-drawerDialog {\n .ant-drawer-body {\n //background-color: #f5f5f5;\n }\n &.light{\n .ant-drawer-body {\n //background-color: #FFF;\n }\n }\n }\n "])))
|
6
6
|
};
|
package/dist/UI/LayoutContent.js
CHANGED
@@ -35,7 +35,7 @@ var LayoutContent = function LayoutContent(_ref) {
|
|
35
35
|
}
|
36
36
|
};
|
37
37
|
return /*#__PURE__*/_jsxs("div", {
|
38
|
-
className: "
|
38
|
+
className: "layoutContent ".concat(className),
|
39
39
|
children: [/*#__PURE__*/_jsxs("div", {
|
40
40
|
className: "pageTitle ".concat(!title ? "noTitle" : ''),
|
41
41
|
children: [title, /*#__PURE__*/_jsx("span", {
|
@@ -51,7 +51,7 @@ var LayoutContent = function LayoutContent(_ref) {
|
|
51
51
|
})
|
52
52
|
})]
|
53
53
|
}), /*#__PURE__*/_jsxs("div", {
|
54
|
-
className: "
|
54
|
+
className: "layoutContentWarp",
|
55
55
|
children: [leftExtInfo && /*#__PURE__*/_jsx("div", {
|
56
56
|
className: "leftExtInfo",
|
57
57
|
children: leftExtInfo
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.layoutContent {
|
2
2
|
background: rgba(255, 255, 255, 0.86 );
|
3
3
|
//margin: 0 0 0 15px;
|
4
4
|
padding: 10px 15px;
|
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
|
40
|
-
.
|
40
|
+
.layoutContentWarp {
|
41
41
|
padding: 6px 0;
|
42
42
|
}
|
43
43
|
|
@@ -51,7 +51,7 @@
|
|
51
51
|
|
52
52
|
@media screen and (max-width: 800px) {
|
53
53
|
// 折叠菜单,
|
54
|
-
.
|
54
|
+
.layoutContent{
|
55
55
|
padding: 8px;
|
56
56
|
.pageTitle {
|
57
57
|
padding: 5px 15px 10px 0;
|
@@ -19,10 +19,12 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
19
19
|
userId: 0,
|
20
20
|
platform: 'douyin',
|
21
21
|
groupId: 0,
|
22
|
-
uniqueId:
|
22
|
+
uniqueId: '',
|
23
23
|
accountId: '',
|
24
24
|
avatar: '',
|
25
25
|
bindPhone: '',
|
26
|
+
groupName: "",
|
27
|
+
nicknameRemark: "",
|
26
28
|
nickname: '',
|
27
29
|
signature: '',
|
28
30
|
isLoginValid: false,
|
@@ -1,18 +1,19 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
1
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
4
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
6
|
import React, { useEffect, useState, useRef } from 'react';
|
6
|
-
import {
|
7
|
+
import { Button, Divider, Dropdown, Empty, Input, Space, Tooltip } from 'antd';
|
7
8
|
import "./list.less";
|
8
|
-
import { PlusCircleOutlined, SearchOutlined
|
9
|
+
import { PlusCircleOutlined, SearchOutlined } from '@ant-design/icons';
|
9
10
|
import { useRequest } from "@umijs/hooks";
|
10
11
|
import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
11
12
|
import PageContentWarp from "../../UI/PageContentWarp";
|
12
13
|
// import goAuth from "../../lib/goAuth";
|
13
14
|
import getLocalUserInfo from "../../lib/getLocalUserInfo";
|
14
15
|
import event from "../../lib/event";
|
15
|
-
import
|
16
|
+
import { VideoPlatformList } from "../../component/video-platform/logo";
|
16
17
|
import toast from "../../lib/toast";
|
17
18
|
import Notification from "../../lib/notification";
|
18
19
|
import Money from "../../UI/Money";
|
@@ -20,6 +21,7 @@ import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
|
|
20
21
|
import VideoPlatform from "../../component/video-platform/logo";
|
21
22
|
import isInstalledChrome from "../../component/is-installed-chrome";
|
22
23
|
import Tool from "../../lib/Tool";
|
24
|
+
import VideoPublishVideoAccountBaseInfo from "../video-account/base-info";
|
23
25
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
26
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
25
27
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -108,11 +110,13 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
108
110
|
userId: 0,
|
109
111
|
platform: 'd',
|
110
112
|
groupId: 0,
|
111
|
-
|
113
|
+
groupName: '',
|
114
|
+
uniqueId: '',
|
112
115
|
accountId: '',
|
113
116
|
avatar: '',
|
114
117
|
bindPhone: '',
|
115
118
|
nickname: '',
|
119
|
+
nicknameRemark: '',
|
116
120
|
signature: '',
|
117
121
|
isLoginValid: false,
|
118
122
|
followerCount: 0,
|
@@ -236,7 +240,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
236
240
|
})
|
237
241
|
});
|
238
242
|
};
|
239
|
-
var
|
243
|
+
var _onDel = function onDel(id) {
|
240
244
|
runDel(id);
|
241
245
|
};
|
242
246
|
useEffect(function () {
|
@@ -347,47 +351,18 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
347
351
|
return null;
|
348
352
|
}
|
349
353
|
}
|
350
|
-
return /*#__PURE__*/
|
351
|
-
|
354
|
+
return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
|
355
|
+
id: item.id,
|
356
|
+
className: currentId == item.id ? "active" : '',
|
357
|
+
index: index + 1,
|
358
|
+
accountInfo: _objectSpread({}, item),
|
359
|
+
onDel: function onDel(id) {
|
360
|
+
return _onDel(id);
|
361
|
+
},
|
352
362
|
onClick: function onClick() {
|
353
363
|
return onCurrentId(item.id);
|
354
|
-
}
|
355
|
-
|
356
|
-
className: "index",
|
357
|
-
children: index + 1
|
358
|
-
}), /*#__PURE__*/_jsx(Popconfirm, {
|
359
|
-
title: "\u5220\u9664\u8D26\u6237",
|
360
|
-
description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
|
361
|
-
onConfirm: function onConfirm() {
|
362
|
-
return onDel(item.id);
|
363
|
-
},
|
364
|
-
children: /*#__PURE__*/_jsx("a", {
|
365
|
-
className: "del",
|
366
|
-
children: /*#__PURE__*/_jsx(CloseOutlined, {})
|
367
|
-
})
|
368
|
-
}), /*#__PURE__*/_jsxs("div", {
|
369
|
-
className: "avatar",
|
370
|
-
children: [/*#__PURE__*/_jsx(Avatar, {
|
371
|
-
className: "avatarUrl",
|
372
|
-
size: 46,
|
373
|
-
src: item.avatar || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
|
374
|
-
}), /*#__PURE__*/_jsx(Tooltip, {
|
375
|
-
title: item.isLoginValid ? '登录有效' : '登录失效',
|
376
|
-
children: /*#__PURE__*/_jsx("div", {
|
377
|
-
className: "isLoginValid"
|
378
|
-
})
|
379
|
-
})]
|
380
|
-
}), /*#__PURE__*/_jsxs("div", {
|
381
|
-
className: "shopName",
|
382
|
-
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
383
|
-
platform: item.platform,
|
384
|
-
size: 14
|
385
|
-
}), shopName, "\u5907\u6CE8", /*#__PURE__*/_jsx("div", {
|
386
|
-
className: "uniqueId",
|
387
|
-
children: item.uniqueId
|
388
|
-
})]
|
389
|
-
})]
|
390
|
-
}, item.id);
|
364
|
+
}
|
365
|
+
});
|
391
366
|
})
|
392
367
|
}), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
|
393
368
|
className: "empty",
|
@@ -50,26 +50,6 @@
|
|
50
50
|
padding: 6px 10px;
|
51
51
|
margin: 3px 0;
|
52
52
|
border-radius: 5px;
|
53
|
-
.index{
|
54
|
-
position: absolute;
|
55
|
-
top: 10px;
|
56
|
-
right: 4px;
|
57
|
-
font-size: 12px;
|
58
|
-
font-style: normal;
|
59
|
-
opacity: 0.3;
|
60
|
-
}
|
61
|
-
.del{
|
62
|
-
position: absolute;
|
63
|
-
bottom: 7px;
|
64
|
-
right: 4px;
|
65
|
-
padding: 3px;
|
66
|
-
font-size: 12px;
|
67
|
-
color: #FFF;
|
68
|
-
border-radius: 3px;
|
69
|
-
background-color: #C00;
|
70
|
-
line-height: 1em;
|
71
|
-
display: none;
|
72
|
-
}
|
73
53
|
&:hover{
|
74
54
|
background-color: #dcf0f6;
|
75
55
|
.del{
|
@@ -81,58 +61,6 @@
|
|
81
61
|
color: #0063ed;
|
82
62
|
font-weight: bold;
|
83
63
|
}
|
84
|
-
&.valid{
|
85
|
-
.isLoginValid{
|
86
|
-
background-color: #00bc00;
|
87
|
-
}
|
88
|
-
.shopName{
|
89
|
-
color: #005a00;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
&.invalid{
|
93
|
-
background-color: #e1e1e1;
|
94
|
-
.isLoginValid{
|
95
|
-
background-color: red;
|
96
|
-
}
|
97
|
-
.shopName{
|
98
|
-
color: #999;
|
99
|
-
font-weight: 300;
|
100
|
-
}
|
101
|
-
.avatarUrl{
|
102
|
-
opacity: 0.5;
|
103
|
-
filter: grayscale(100%);
|
104
|
-
}
|
105
|
-
}
|
106
|
-
.avatar{
|
107
|
-
position: relative;
|
108
|
-
width: 40px;
|
109
|
-
//box-shadow: 0 0 5px #EEE;
|
110
|
-
.isLoginValid{
|
111
|
-
position: absolute;
|
112
|
-
left: 35px;
|
113
|
-
top: 35px;
|
114
|
-
width: 8px;
|
115
|
-
height: 8px;
|
116
|
-
border-radius: 100px;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
.shopName{
|
120
|
-
max-width: 150px;
|
121
|
-
color: #666;
|
122
|
-
display: inline-block;
|
123
|
-
text-overflow: ellipsis;
|
124
|
-
//line-height: 30px;
|
125
|
-
font-size: 14px;
|
126
|
-
padding: 4px 0 0 12px;
|
127
|
-
word-break: keep-all;
|
128
|
-
white-space: nowrap;
|
129
|
-
overflow: hidden;
|
130
|
-
}
|
131
|
-
.uniqueId{
|
132
|
-
padding: 3px 0 0;
|
133
|
-
font-size: 12px;
|
134
|
-
opacity: 0.6;
|
135
|
-
}
|
136
64
|
}
|
137
65
|
}
|
138
66
|
}
|
@@ -146,6 +146,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
|
|
146
146
|
message: '请选择账户'
|
147
147
|
}],
|
148
148
|
children: /*#__PURE__*/_jsx(TreeSelect, {
|
149
|
+
treeDefaultExpandAll: true,
|
149
150
|
disabled: loadingAccountList || treeVideoAccountData.length === 0,
|
150
151
|
treeData: treeVideoAccountData
|
151
152
|
// value={ [] }
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
3
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
6
|
import React, { useState } from "react";
|
@@ -86,7 +87,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
86
87
|
};
|
87
88
|
var onLocalList = /*#__PURE__*/function () {
|
88
89
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
89
|
-
var result, fileList
|
90
|
+
var result, fileList;
|
90
91
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
91
92
|
while (1) switch (_context.prev = _context.next) {
|
92
93
|
case 0:
|
@@ -104,7 +105,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
104
105
|
case 7:
|
105
106
|
fileList = result === null || result === void 0 ? void 0 : result.filePaths;
|
106
107
|
console.log('list:', fileList);
|
107
|
-
|
108
|
+
// 本地选择,累加
|
109
|
+
// const localSelectList: VideoPublish.VideoSelectList[] = [];
|
108
110
|
fileList.forEach(function (filePath) {
|
109
111
|
localSelectList.push({
|
110
112
|
id: 0,
|
@@ -120,9 +122,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
120
122
|
goodsTitle: ''
|
121
123
|
});
|
122
124
|
});
|
123
|
-
setLocalSelectList(localSelectList);
|
125
|
+
setLocalSelectList(_toConsumableArray(localSelectList));
|
124
126
|
setLoadingSelectLocal(false);
|
125
|
-
case
|
127
|
+
case 12:
|
126
128
|
case "end":
|
127
129
|
return _context.stop();
|
128
130
|
}
|
@@ -4,13 +4,14 @@ import "./index.less";
|
|
4
4
|
import { Menu, Tabs } from "antd";
|
5
5
|
import VideoPublishCreateTask from "./create-task";
|
6
6
|
import isInClient from "../lib/isInClient";
|
7
|
-
import { ClockCircleOutlined, FileSearchOutlined, SettingOutlined, UsergroupAddOutlined, VideoCameraAddOutlined } from "@ant-design/icons";
|
7
|
+
import { ClockCircleOutlined, FileSearchOutlined, GlobalOutlined, SettingOutlined, UsergroupAddOutlined, VideoCameraAddOutlined } from "@ant-design/icons";
|
8
8
|
import VideoPublishVideoAccount from "./video-account";
|
9
9
|
import VideoPublishTaskList from "./task-list";
|
10
10
|
import VideoPublishLog from "./log";
|
11
11
|
import VideoPublishAccountManageSettingPage from "./account-manage/setting";
|
12
12
|
import VideoPublishAccountManageHomePage from "./account-manage/home";
|
13
13
|
import VideoPublishPublishVideoPlan from "./publish-task-plan";
|
14
|
+
import VideoPublishVideoAccountProxy from "./proxy/list";
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
17
|
var VideoPublish = function VideoPublish(_ref) {
|
@@ -54,6 +55,17 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
54
55
|
disabled: disabled,
|
55
56
|
env: env
|
56
57
|
})
|
58
|
+
}, {
|
59
|
+
key: 'proxy',
|
60
|
+
icon: /*#__PURE__*/_jsx(GlobalOutlined, {}),
|
61
|
+
label: '网络代理',
|
62
|
+
children: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxy, {
|
63
|
+
disabled: disabled,
|
64
|
+
env: env,
|
65
|
+
onMenu: function onMenu(e) {
|
66
|
+
return _onMenu(e);
|
67
|
+
}
|
68
|
+
})
|
57
69
|
}, {
|
58
70
|
key: 'creat-task',
|
59
71
|
icon: /*#__PURE__*/_jsx(VideoCameraAddOutlined, {}),
|