component-shipinlv 1.0.30 → 1.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AuthClient/user-offline.js +11 -8
- package/dist/VideoPublish/creat-task/index.css.d.ts +1 -0
- package/dist/VideoPublish/creat-task/index.css.js +4 -3
- package/dist/VideoPublish/creat-task/index.js +76 -32
- package/dist/VideoPublish/creat-task/select-list.js +2 -2
- package/dist/VideoPublish/creat-task/task-list.css.js +1 -1
- package/dist/VideoPublish/creat-task/task-list.js +39 -24
- package/dist/VideoPublish/task-list/plan/list.js +14 -0
- package/dist/VideoPublish/video-account/create.d.ts +8 -0
- package/dist/VideoPublish/video-account/create.js +166 -0
- package/dist/VideoPublish/video-account/group.d.ts +9 -0
- package/dist/VideoPublish/video-account/group.js +255 -0
- package/dist/VideoPublish/video-account/group.less +10 -0
- package/dist/VideoPublish/video-account/index.js +87 -4
- package/dist/VideoPublish/video-account/index.less +17 -0
- package/dist/VideoPublish/video-account/query.js +1 -0
- package/dist/global.less +9 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/moneySimple.js +3 -3
- package/dist/service/api/VideoPublishVideoAccountController.d.ts +2 -0
- package/dist/service/api/VideoPublishVideoAccountController.js +51 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.d.ts +8 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.js +105 -0
- package/dist/types/VideoPublish.d.ts +3 -9
- package/dist/types/VideoPublishVideoAccount.d.ts +14 -0
- package/dist/types/VideoPublishVideoAccount.js +0 -0
- package/dist/types/VideoPublishVideoAccountGroup.d.ts +19 -0
- package/dist/types/VideoPublishVideoAccountGroup.js +0 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { Button, Form, Space } from 'antd';
|
2
|
+
import { Button, Form, Space, Divider } from 'antd';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
5
5
|
var AuthUserOffline = function AuthUserOffline(_ref) {
|
@@ -13,15 +13,12 @@ var AuthUserOffline = function AuthUserOffline(_ref) {
|
|
13
13
|
children: /*#__PURE__*/_jsxs(Form, {
|
14
14
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
15
15
|
children: message
|
16
|
-
}), /*#__PURE__*/_jsx(
|
16
|
+
}), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx("div", {
|
17
|
+
style: {
|
18
|
+
textAlign: "right"
|
19
|
+
},
|
17
20
|
children: /*#__PURE__*/_jsxs(Space, {
|
18
21
|
children: [/*#__PURE__*/_jsx(Button, {
|
19
|
-
type: "primary",
|
20
|
-
onClick: function onClick() {
|
21
|
-
return onConfirm();
|
22
|
-
},
|
23
|
-
children: "\u7EE7\u7EED\u767B\u5F55"
|
24
|
-
}), /*#__PURE__*/_jsx(Button, {
|
25
22
|
type: "link",
|
26
23
|
danger: true,
|
27
24
|
ghost: true,
|
@@ -29,6 +26,12 @@ var AuthUserOffline = function AuthUserOffline(_ref) {
|
|
29
26
|
return onCancel();
|
30
27
|
},
|
31
28
|
children: "\u53D6\u6D88"
|
29
|
+
}), /*#__PURE__*/_jsx(Button, {
|
30
|
+
type: "primary",
|
31
|
+
onClick: function onClick() {
|
32
|
+
return onConfirm();
|
33
|
+
},
|
34
|
+
children: "\u7EE7\u7EED\u767B\u5F55"
|
32
35
|
})]
|
33
36
|
})
|
34
37
|
})]
|
@@ -3,5 +3,6 @@ declare const _default: {
|
|
3
3
|
videoPublishCreateTask: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
4
4
|
followerCount: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
5
5
|
notLoginValid: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
6
|
+
nicknameRemark: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
6
7
|
};
|
7
8
|
export default _default;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
videoPublishCreateTask: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 12px 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n .groupIcon{\n color: blue;\n }\n .rateSelect{\n width: 120px;\n }\n .normalVideo{\n color: blue;\n }\n .shoppingCart{\n color: #F60;\n }\n .selectFile{\n padding: 12px 0 0;\n }\n .submits{\n text-align: right;\n padding: 0 0 36px 0;\n }\n "]))),
|
5
|
+
videoPublishCreateTask: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 12px 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n .groupIcon{\n color: blue;\n }\n .rateSelect{\n width: 120px;\n }\n .normalVideo{\n color: blue;\n }\n .shoppingCart{\n color: #F60;\n }\n .selectFile{\n padding: 12px 0 0;\n }\n .submits{\n text-align: right;\n padding: 0 0 36px 0;\n }\n .accountListWarp{\n display: flex;\n flex-direction: row;\n .accountList{\n flex: 2;\n margin-left: 5px;\n }\n .renew{\n font-size: 20px;\n padding: 0 12px;\n }\n }\n "]))),
|
6
6
|
followerCount: styled.small(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #F2F2F2;\n border-radius: 3px;\n font-size: smaller;\n line-height: 1em;\n margin-left: 3px;\n padding: 2px 3px;\n\n "]))),
|
7
|
-
notLoginValid: styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 5px;\n\n "])))
|
7
|
+
notLoginValid: styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 5px;\n\n "]))),
|
8
|
+
nicknameRemark: styled.small(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: #999;\n padding: 0 3px;\n "])))
|
8
9
|
};
|
@@ -4,8 +4,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
5
|
import React, { useState } from "react";
|
6
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";
|
7
|
+
import { Alert, Button, ConfigProvider, DatePicker, Divider, Form, InputNumber, Radio, Select, Switch, Tag, Tooltip } from "antd";
|
8
|
+
import { PlusOutlined, RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
9
9
|
import PageContentWarp from "../../UI/PageContentWarp";
|
10
10
|
import { TreeSelect } from 'antd';
|
11
11
|
import isInClient from "../../lib/isInClient";
|
@@ -97,7 +97,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
97
97
|
children: [/*#__PURE__*/_jsx(VideoPlatform, {
|
98
98
|
platform: items.platform,
|
99
99
|
size: 14
|
100
|
-
}), " ", items.nickname, /*#__PURE__*/
|
100
|
+
}), " ", items.nickname, items.nicknameRemark && /*#__PURE__*/_jsx(styles.nicknameRemark, {
|
101
|
+
children: items.nicknameRemark
|
102
|
+
}), /*#__PURE__*/_jsxs(styles.followerCount, {
|
101
103
|
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {}), " ", followerCount, " "]
|
102
104
|
}), !items.isLoginValid && /*#__PURE__*/_jsx(styles.notLoginValid, {
|
103
105
|
children: /*#__PURE__*/_jsx(Tag, {
|
@@ -123,9 +125,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
123
125
|
setTreeVideoAccountData(treeData);
|
124
126
|
}
|
125
127
|
}),
|
126
|
-
|
127
|
-
|
128
|
-
|
128
|
+
runAccountList = _useRequest.run,
|
129
|
+
loadingAccountList = _useRequest.loading,
|
130
|
+
errorAccountList = _useRequest.error;
|
129
131
|
var _useRequest2 = useRequest(function (data) {
|
130
132
|
return VideoPublishController.taskCreate(data, {
|
131
133
|
env: env
|
@@ -154,7 +156,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
154
156
|
dialog.destroy();
|
155
157
|
}
|
156
158
|
}),
|
157
|
-
width:
|
159
|
+
width: 980
|
158
160
|
});
|
159
161
|
};
|
160
162
|
var onLocalList = /*#__PURE__*/function () {
|
@@ -219,7 +221,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
219
221
|
introduction: item.introduction,
|
220
222
|
videoKindTag: item.videoKindTag,
|
221
223
|
// shopping | location | minapp
|
222
|
-
kindTagValue: item.kindTagValue
|
224
|
+
kindTagValue: item.kindTagValue,
|
225
|
+
goodsTitle: item.goodsTitle
|
223
226
|
});
|
224
227
|
});
|
225
228
|
} else {
|
@@ -233,7 +236,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
233
236
|
introduction: item.introduction,
|
234
237
|
videoKindTag: item.videoKindTag,
|
235
238
|
// shopping | location | minapp
|
236
|
-
kindTagValue: item.kindTagValue
|
239
|
+
kindTagValue: item.kindTagValue,
|
240
|
+
goodsTitle: item.goodsTitle
|
237
241
|
});
|
238
242
|
});
|
239
243
|
}
|
@@ -248,12 +252,38 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
248
252
|
console.log('values:', data);
|
249
253
|
runTask(data);
|
250
254
|
};
|
251
|
-
var
|
255
|
+
var onAccountList = /*#__PURE__*/function () {
|
256
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
257
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
258
|
+
while (1) switch (_context2.prev = _context2.next) {
|
259
|
+
case 0:
|
260
|
+
if (!loadingAccountList) {
|
261
|
+
_context2.next = 2;
|
262
|
+
break;
|
263
|
+
}
|
264
|
+
return _context2.abrupt("return");
|
265
|
+
case 2:
|
266
|
+
_context2.next = 4;
|
267
|
+
return runAccountList().catch(function (err) {});
|
268
|
+
case 4:
|
269
|
+
Tool.toast('账户列表已刷新');
|
270
|
+
case 5:
|
271
|
+
case "end":
|
272
|
+
return _context2.stop();
|
273
|
+
}
|
274
|
+
}, _callee2);
|
275
|
+
}));
|
276
|
+
return function onAccountList() {
|
277
|
+
return _ref3.apply(this, arguments);
|
278
|
+
};
|
279
|
+
}();
|
280
|
+
var formLabelSpan = 2;
|
252
281
|
return /*#__PURE__*/_jsx(styles.videoPublishCreateTask, {
|
253
|
-
children: /*#__PURE__*/_jsxs(PageContentWarp
|
254
|
-
|
255
|
-
|
256
|
-
|
282
|
+
children: /*#__PURE__*/_jsxs(PageContentWarp
|
283
|
+
// loading={loading}
|
284
|
+
, {
|
285
|
+
error: errorAccountList,
|
286
|
+
onReload: runAccountList,
|
257
287
|
children: [disabled && /*#__PURE__*/_jsx(Alert, {
|
258
288
|
message: "\u529F\u80FD\u5347\u7EA7\u4E2D\uFF0C\u5373\u5C06\u5F00\u653E\uFF0C\u656C\u8BF7\u671F\u5F85",
|
259
289
|
type: "warning",
|
@@ -344,25 +374,39 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
344
374
|
}), /*#__PURE__*/_jsx(Divider, {
|
345
375
|
orientation: "left",
|
346
376
|
children: "\u9009\u62E9\u8D26\u6237"
|
347
|
-
}), /*#__PURE__*/
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
,
|
359
|
-
|
360
|
-
|
377
|
+
}), /*#__PURE__*/_jsxs("div", {
|
378
|
+
className: "accountListWarp",
|
379
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
380
|
+
label: "\u8D26\u53F7",
|
381
|
+
extra: "\u6BCF\u4E2A\u89C6\u9891\u53EA\u53D1\u4E00\u4E2A\u8D26\u6237",
|
382
|
+
name: "accountList",
|
383
|
+
className: "accountList",
|
384
|
+
rules: [{
|
385
|
+
required: true,
|
386
|
+
message: '请选择账户'
|
387
|
+
}],
|
388
|
+
children: /*#__PURE__*/_jsx(TreeSelect, {
|
389
|
+
disabled: loadingAccountList,
|
390
|
+
treeData: treeVideoAccountData
|
391
|
+
// value={ [] }
|
392
|
+
,
|
393
|
+
onChange: function onChange(idList) {
|
394
|
+
console.log('TreeSelect:', idList);
|
395
|
+
},
|
396
|
+
treeCheckable: !loadingAccountList,
|
397
|
+
showCheckedStrategy: TreeSelect.SHOW_PARENT,
|
398
|
+
placeholder: "\u8BF7\u9009\u62E9 \u8D26\u6237/\u7EC4"
|
399
|
+
})
|
400
|
+
}), /*#__PURE__*/_jsx("a", {
|
401
|
+
className: "renew ".concat(loadingAccountList ? 'disabled' : ''),
|
402
|
+
onClick: function onClick() {
|
403
|
+
return onAccountList();
|
361
404
|
},
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
405
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
406
|
+
title: "\u5237\u65B0\u8D26\u6237\u5217\u8868",
|
407
|
+
children: /*#__PURE__*/_jsx(RedoOutlined, {})
|
408
|
+
})
|
409
|
+
})]
|
366
410
|
}), /*#__PURE__*/_jsxs(Divider, {
|
367
411
|
orientation: "left",
|
368
412
|
children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
|
@@ -53,7 +53,7 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
53
53
|
className: "title",
|
54
54
|
children: /*#__PURE__*/_jsx(TextInput, {
|
55
55
|
className: "remarkInput",
|
56
|
-
maxLength:
|
56
|
+
maxLength: 30,
|
57
57
|
label: title || '',
|
58
58
|
value: title || '',
|
59
59
|
onFinish: function onFinish(title) {
|
@@ -144,7 +144,7 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
144
144
|
return /*#__PURE__*/_jsx(Popover, {
|
145
145
|
title: /*#__PURE__*/_jsxs(_Fragment, {
|
146
146
|
children: ["\u5546\u54C1\u6807\u9898 ", /*#__PURE__*/_jsx("small", {
|
147
|
-
children: "\u6700\u591A\u8F93\u516510\u4E2A\u6C49\u5B57"
|
147
|
+
children: "\u53EA\u652F\u6301\uFF1A\u6C49\u5B57\uFF0C\u6570\u5B57\uFF1B\u6700\u591A\u8F93\u516510\u4E2A\u6C49\u5B57"
|
148
148
|
})]
|
149
149
|
}),
|
150
150
|
content: goodsTitle,
|
@@ -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
|
-
videoPublishTaskList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width:
|
5
|
+
videoPublishTaskList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n .remark{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .kindTagValue{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .operate{\n padding: 0 0 12px 0;\n display: flex;\n flex-direction: row;\n line-height: 24px;\n .left{\n flex: 2;\n }\n .showInfo{\n text-align: right;\n .high{\n color: #F60;\n }\n }\n }\n .goodsTitle{\n max-width: 80px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n "])))
|
6
6
|
};
|
@@ -82,29 +82,7 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
82
82
|
}
|
83
83
|
}, {
|
84
84
|
title: /*#__PURE__*/_jsx(_Fragment, {
|
85
|
-
children: "\
|
86
|
-
}),
|
87
|
-
dataIndex: 'videoDuration',
|
88
|
-
key: 'videoDuration',
|
89
|
-
render: function render(videoDuration, record) {
|
90
|
-
return videoDuration > 0 ? /*#__PURE__*/_jsx(Duration, {
|
91
|
-
duration: videoDuration
|
92
|
-
}) : '-';
|
93
|
-
}
|
94
|
-
}, {
|
95
|
-
title: /*#__PURE__*/_jsx(_Fragment, {
|
96
|
-
children: "\u5927\u5C0F"
|
97
|
-
}),
|
98
|
-
dataIndex: 'videoSize',
|
99
|
-
key: 'videoSize',
|
100
|
-
render: function render(videoSize, record) {
|
101
|
-
return videoSize > 0 ? /*#__PURE__*/_jsx(FileSize, {
|
102
|
-
fileSize: videoSize
|
103
|
-
}) : '-';
|
104
|
-
}
|
105
|
-
}, {
|
106
|
-
title: /*#__PURE__*/_jsx(_Fragment, {
|
107
|
-
children: "\u6807\u7B7E\u7C7B\u522B"
|
85
|
+
children: "\u7C7B\u578B\u6807\u7B7E"
|
108
86
|
}),
|
109
87
|
dataIndex: 'videoKindTag',
|
110
88
|
key: 'videoKindTag',
|
@@ -115,7 +93,7 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
115
93
|
}
|
116
94
|
}, {
|
117
95
|
title: /*#__PURE__*/_jsx(_Fragment, {
|
118
|
-
children: "\
|
96
|
+
children: "\u5E26\u8D27/\u5C0F\u7A0B\u5E8F"
|
119
97
|
}),
|
120
98
|
dataIndex: 'kindTagValue',
|
121
99
|
key: 'kindTagValue',
|
@@ -128,6 +106,21 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
128
106
|
})
|
129
107
|
});
|
130
108
|
}
|
109
|
+
}, {
|
110
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
111
|
+
children: "\u5546\u54C1\u6807\u9898"
|
112
|
+
}),
|
113
|
+
dataIndex: 'goodsTitle',
|
114
|
+
key: 'goodsTitle',
|
115
|
+
render: function render(goodsTitle, record) {
|
116
|
+
return /*#__PURE__*/_jsx(Popover, {
|
117
|
+
title: goodsTitle,
|
118
|
+
children: /*#__PURE__*/_jsx("div", {
|
119
|
+
className: "goodsTitle",
|
120
|
+
children: goodsTitle
|
121
|
+
})
|
122
|
+
});
|
123
|
+
}
|
131
124
|
}, {
|
132
125
|
title: '备注',
|
133
126
|
dataIndex: 'remark',
|
@@ -142,6 +135,28 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
142
135
|
})
|
143
136
|
});
|
144
137
|
}
|
138
|
+
}, {
|
139
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
140
|
+
children: "\u65F6\u957F"
|
141
|
+
}),
|
142
|
+
dataIndex: 'videoDuration',
|
143
|
+
key: 'videoDuration',
|
144
|
+
render: function render(videoDuration, record) {
|
145
|
+
return videoDuration > 0 ? /*#__PURE__*/_jsx(Duration, {
|
146
|
+
duration: videoDuration
|
147
|
+
}) : '-';
|
148
|
+
}
|
149
|
+
}, {
|
150
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
151
|
+
children: "\u5927\u5C0F"
|
152
|
+
}),
|
153
|
+
dataIndex: 'videoSize',
|
154
|
+
key: 'videoSize',
|
155
|
+
render: function render(videoSize, record) {
|
156
|
+
return videoSize > 0 ? /*#__PURE__*/_jsx(FileSize, {
|
157
|
+
fileSize: videoSize
|
158
|
+
}) : '-';
|
159
|
+
}
|
145
160
|
}, {
|
146
161
|
title: '创建时间',
|
147
162
|
dataIndex: 'created',
|
@@ -129,6 +129,20 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
129
129
|
})
|
130
130
|
});
|
131
131
|
}
|
132
|
+
}, {
|
133
|
+
title: '商品标题',
|
134
|
+
dataIndex: 'goodsTitle',
|
135
|
+
key: 'goodsTitle',
|
136
|
+
render: function render(goodsTitle, record) {
|
137
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
138
|
+
return goodsTitle && /*#__PURE__*/_jsx(Popover, {
|
139
|
+
title: "\u5546\u54C1\u6807\u9898",
|
140
|
+
content: goodsTitle,
|
141
|
+
children: /*#__PURE__*/_jsx("a", {
|
142
|
+
children: /*#__PURE__*/_jsx(FileTextOutlined, {})
|
143
|
+
})
|
144
|
+
});
|
145
|
+
}
|
132
146
|
}, {
|
133
147
|
title: /*#__PURE__*/_jsx(_Fragment, {
|
134
148
|
children: "\u89C6\u9891"
|
@@ -0,0 +1,166 @@
|
|
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 { Button, Form, Input, Select, Tag } from 'antd';
|
7
|
+
import { useRequest } from "@umijs/hooks";
|
8
|
+
import * as VideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
9
|
+
import PageContentWarp from "../../UI/PageContentWarp";
|
10
|
+
import Tool from "../../lib/Tool";
|
11
|
+
import DialogDrawerFooter from "../../UI/DialogDrawerFooter";
|
12
|
+
import * as VideoPublishVideoAccountGroupController from "../../service/api/VideoPublishVideoAccountGroupController";
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
var VideoAccountCreate = function VideoAccountCreate(_ref) {
|
16
|
+
var env = _ref.env,
|
17
|
+
id = _ref.id,
|
18
|
+
_ref$onSuccess = _ref.onSuccess,
|
19
|
+
_onSuccess3 = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
20
|
+
var _Form$useForm = Form.useForm(),
|
21
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
22
|
+
form = _Form$useForm2[0];
|
23
|
+
var _useState = useState([]),
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
25
|
+
groupList = _useState2[0],
|
26
|
+
setGroupList = _useState2[1];
|
27
|
+
var _useRequest = useRequest(function () {
|
28
|
+
return VideoPublishVideoAccountGroupController.list({}, {
|
29
|
+
env: env
|
30
|
+
});
|
31
|
+
}, {
|
32
|
+
onSuccess: function () {
|
33
|
+
var _onSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) {
|
34
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
35
|
+
while (1) switch (_context.prev = _context.next) {
|
36
|
+
case 0:
|
37
|
+
setGroupList(result);
|
38
|
+
case 1:
|
39
|
+
case "end":
|
40
|
+
return _context.stop();
|
41
|
+
}
|
42
|
+
}, _callee);
|
43
|
+
}));
|
44
|
+
function onSuccess(_x) {
|
45
|
+
return _onSuccess.apply(this, arguments);
|
46
|
+
}
|
47
|
+
return onSuccess;
|
48
|
+
}()
|
49
|
+
}),
|
50
|
+
runGroupList = _useRequest.run,
|
51
|
+
loadingGroupList = _useRequest.loading;
|
52
|
+
var _useRequest2 = useRequest(function () {
|
53
|
+
return VideoAccountController.detailById({
|
54
|
+
id: id
|
55
|
+
}, {
|
56
|
+
env: env
|
57
|
+
});
|
58
|
+
}, {
|
59
|
+
onSuccess: function () {
|
60
|
+
var _onSuccess2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(result) {
|
61
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
62
|
+
while (1) switch (_context2.prev = _context2.next) {
|
63
|
+
case 0:
|
64
|
+
form.setFieldsValue({
|
65
|
+
nicknameRemark: result.nicknameRemark,
|
66
|
+
groupId: result.groupId || 0
|
67
|
+
});
|
68
|
+
case 1:
|
69
|
+
case "end":
|
70
|
+
return _context2.stop();
|
71
|
+
}
|
72
|
+
}, _callee2);
|
73
|
+
}));
|
74
|
+
function onSuccess(_x2) {
|
75
|
+
return _onSuccess2.apply(this, arguments);
|
76
|
+
}
|
77
|
+
return onSuccess;
|
78
|
+
}()
|
79
|
+
}),
|
80
|
+
run = _useRequest2.run,
|
81
|
+
loading = _useRequest2.loading,
|
82
|
+
error = _useRequest2.error;
|
83
|
+
var _useRequest3 = useRequest(function (data) {
|
84
|
+
return VideoAccountController.editInfo(_objectSpread({}, data), {
|
85
|
+
env: env
|
86
|
+
});
|
87
|
+
}, {
|
88
|
+
manual: true,
|
89
|
+
onSuccess: function () {
|
90
|
+
var _onSuccess4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(result) {
|
91
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
92
|
+
while (1) switch (_context3.prev = _context3.next) {
|
93
|
+
case 0:
|
94
|
+
Tool.toast('已经保存');
|
95
|
+
_onSuccess3();
|
96
|
+
case 2:
|
97
|
+
case "end":
|
98
|
+
return _context3.stop();
|
99
|
+
}
|
100
|
+
}, _callee3);
|
101
|
+
}));
|
102
|
+
function onSuccess(_x3) {
|
103
|
+
return _onSuccess4.apply(this, arguments);
|
104
|
+
}
|
105
|
+
return onSuccess;
|
106
|
+
}()
|
107
|
+
}),
|
108
|
+
runEditInfo = _useRequest3.run,
|
109
|
+
loadingEditInfo = _useRequest3.loading;
|
110
|
+
var onFinish = function onFinish(values) {
|
111
|
+
runEditInfo(_objectSpread(_objectSpread({}, values), {}, {
|
112
|
+
id: id
|
113
|
+
}));
|
114
|
+
};
|
115
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
116
|
+
className: "videoAccountGroupCreate",
|
117
|
+
loading: loading,
|
118
|
+
error: error,
|
119
|
+
onReload: function onReload() {
|
120
|
+
return run();
|
121
|
+
},
|
122
|
+
children: /*#__PURE__*/_jsxs(Form, {
|
123
|
+
labelCol: {
|
124
|
+
span: 6
|
125
|
+
},
|
126
|
+
form: form,
|
127
|
+
disabled: loadingEditInfo,
|
128
|
+
onFinish: onFinish,
|
129
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
130
|
+
name: "groupId",
|
131
|
+
label: "\u5206\u7EC4",
|
132
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
133
|
+
children: [/*#__PURE__*/_jsx(Select.Option, {
|
134
|
+
value: 0,
|
135
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
136
|
+
children: "\u9ED8\u8BA4\u5206\u7EC4"
|
137
|
+
})
|
138
|
+
}), groupList.map(function (items, index) {
|
139
|
+
return /*#__PURE__*/_jsx(Select.Option, {
|
140
|
+
value: items.id,
|
141
|
+
children: items.name
|
142
|
+
}, items.id);
|
143
|
+
})]
|
144
|
+
})
|
145
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
146
|
+
name: "nicknameRemark",
|
147
|
+
label: "\u8D26\u53F7\u5907\u6CE8",
|
148
|
+
rules: [{
|
149
|
+
max: 6,
|
150
|
+
message: '最多6个字符'
|
151
|
+
}],
|
152
|
+
children: /*#__PURE__*/_jsx(Input, {
|
153
|
+
placeholder: "\u8F93\u5165\u8D26\u53F7\u5907\u6CE8"
|
154
|
+
})
|
155
|
+
}), /*#__PURE__*/_jsx(DialogDrawerFooter, {
|
156
|
+
children: /*#__PURE__*/_jsx(Button, {
|
157
|
+
type: "primary",
|
158
|
+
htmlType: "submit",
|
159
|
+
loading: loadingEditInfo,
|
160
|
+
children: "\u4FDD\u5B58"
|
161
|
+
})
|
162
|
+
})]
|
163
|
+
})
|
164
|
+
});
|
165
|
+
};
|
166
|
+
export default VideoAccountCreate;
|
@@ -0,0 +1,255 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
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 { Button, Col, Form, Input, Popconfirm, Row } from 'antd';
|
7
|
+
import "./group.less";
|
8
|
+
import { useRequest } from "@umijs/hooks";
|
9
|
+
import * as VideoPublishVideoAccountGroupController from "../../service/api/VideoPublishVideoAccountGroupController";
|
10
|
+
import PageContentWarp from "../../UI/PageContentWarp";
|
11
|
+
import { CheckCircleOutlined, CloseCircleOutlined, LoadingOutlined, PlusCircleOutlined } from "@ant-design/icons";
|
12
|
+
import Tool from "../../lib/Tool";
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
var VideoAccountGroup = function VideoAccountGroup(_ref) {
|
16
|
+
var env = _ref.env,
|
17
|
+
_ref$onSuccess = _ref.onSuccess,
|
18
|
+
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
|
19
|
+
_ref$onGroupChange = _ref.onGroupChange,
|
20
|
+
onGroupChange = _ref$onGroupChange === void 0 ? function () {} : _ref$onGroupChange;
|
21
|
+
var _Form$useForm = Form.useForm(),
|
22
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
23
|
+
form = _Form$useForm2[0];
|
24
|
+
var _useState = useState([]),
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
26
|
+
groupList = _useState2[0],
|
27
|
+
setGroupList = _useState2[1];
|
28
|
+
var _useRequest = useRequest(function () {
|
29
|
+
return VideoPublishVideoAccountGroupController.list({}, {
|
30
|
+
env: env
|
31
|
+
});
|
32
|
+
}, {
|
33
|
+
onSuccess: function () {
|
34
|
+
var _onSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) {
|
35
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
36
|
+
while (1) switch (_context.prev = _context.next) {
|
37
|
+
case 0:
|
38
|
+
groupList.push({
|
39
|
+
_key: '-1',
|
40
|
+
id: -1,
|
41
|
+
name: '默认分组',
|
42
|
+
isChange: false
|
43
|
+
});
|
44
|
+
result.forEach(function (items) {
|
45
|
+
groupList.push({
|
46
|
+
_key: Tool.math.randWord(10),
|
47
|
+
id: items.id,
|
48
|
+
name: items.name,
|
49
|
+
isChange: false
|
50
|
+
});
|
51
|
+
});
|
52
|
+
setGroupList(_toConsumableArray(groupList));
|
53
|
+
case 3:
|
54
|
+
case "end":
|
55
|
+
return _context.stop();
|
56
|
+
}
|
57
|
+
}, _callee);
|
58
|
+
}));
|
59
|
+
function onSuccess(_x) {
|
60
|
+
return _onSuccess.apply(this, arguments);
|
61
|
+
}
|
62
|
+
return onSuccess;
|
63
|
+
}()
|
64
|
+
}),
|
65
|
+
run = _useRequest.run,
|
66
|
+
loading = _useRequest.loading,
|
67
|
+
error = _useRequest.error;
|
68
|
+
var _useRequest2 = useRequest(function (id) {
|
69
|
+
return VideoPublishVideoAccountGroupController.del({
|
70
|
+
id: id
|
71
|
+
}, {
|
72
|
+
env: env
|
73
|
+
});
|
74
|
+
}, {
|
75
|
+
manual: true,
|
76
|
+
onSuccess: function () {
|
77
|
+
var _onSuccess2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(result) {
|
78
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
79
|
+
while (1) switch (_context2.prev = _context2.next) {
|
80
|
+
case 0:
|
81
|
+
Tool.toast('已经删除');
|
82
|
+
onGroupChange();
|
83
|
+
case 2:
|
84
|
+
case "end":
|
85
|
+
return _context2.stop();
|
86
|
+
}
|
87
|
+
}, _callee2);
|
88
|
+
}));
|
89
|
+
function onSuccess(_x2) {
|
90
|
+
return _onSuccess2.apply(this, arguments);
|
91
|
+
}
|
92
|
+
return onSuccess;
|
93
|
+
}()
|
94
|
+
}),
|
95
|
+
runDel = _useRequest2.run,
|
96
|
+
loadingDel = _useRequest2.loading;
|
97
|
+
var onName = function onName(index, name) {
|
98
|
+
groupList[index].name = name;
|
99
|
+
groupList[index].isChange = true;
|
100
|
+
setGroupList(_toConsumableArray(groupList));
|
101
|
+
};
|
102
|
+
var onDel = /*#__PURE__*/function () {
|
103
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(index) {
|
104
|
+
var id, delResult;
|
105
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
106
|
+
while (1) switch (_context3.prev = _context3.next) {
|
107
|
+
case 0:
|
108
|
+
id = groupList[index].id;
|
109
|
+
if (!(id === 0)) {
|
110
|
+
_context3.next = 5;
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
groupList.splice(index, 1);
|
114
|
+
setGroupList(_toConsumableArray(groupList));
|
115
|
+
return _context3.abrupt("return");
|
116
|
+
case 5:
|
117
|
+
console.log('delResult 0:', id);
|
118
|
+
_context3.next = 8;
|
119
|
+
return runDel(id).then(function (result) {
|
120
|
+
console.log('then 10:', result);
|
121
|
+
groupList.splice(index, 1);
|
122
|
+
setGroupList(_toConsumableArray(groupList));
|
123
|
+
}).catch(function (err) {});
|
124
|
+
case 8:
|
125
|
+
delResult = _context3.sent;
|
126
|
+
case 9:
|
127
|
+
case "end":
|
128
|
+
return _context3.stop();
|
129
|
+
}
|
130
|
+
}, _callee3);
|
131
|
+
}));
|
132
|
+
return function onDel(_x3) {
|
133
|
+
return _ref2.apply(this, arguments);
|
134
|
+
};
|
135
|
+
}();
|
136
|
+
var onSubmit = /*#__PURE__*/function () {
|
137
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(index) {
|
138
|
+
var item, createResult;
|
139
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
140
|
+
while (1) switch (_context4.prev = _context4.next) {
|
141
|
+
case 0:
|
142
|
+
groupList[index].loading = true;
|
143
|
+
setGroupList(_toConsumableArray(groupList));
|
144
|
+
item = groupList[index];
|
145
|
+
_context4.next = 5;
|
146
|
+
return VideoPublishVideoAccountGroupController.create({
|
147
|
+
id: item.id,
|
148
|
+
name: "".concat(item.name)
|
149
|
+
}, {
|
150
|
+
env: env
|
151
|
+
}).catch(function (err) {});
|
152
|
+
case 5:
|
153
|
+
createResult = _context4.sent;
|
154
|
+
groupList[index].loading = false;
|
155
|
+
if (!createResult) {} else {
|
156
|
+
groupList[index].isChange = false;
|
157
|
+
Tool.toast('已保存');
|
158
|
+
if (createResult) {
|
159
|
+
groupList[index].id = createResult.id;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
setGroupList(_toConsumableArray(groupList));
|
163
|
+
onGroupChange();
|
164
|
+
case 10:
|
165
|
+
case "end":
|
166
|
+
return _context4.stop();
|
167
|
+
}
|
168
|
+
}, _callee4);
|
169
|
+
}));
|
170
|
+
return function onSubmit(_x4) {
|
171
|
+
return _ref3.apply(this, arguments);
|
172
|
+
};
|
173
|
+
}();
|
174
|
+
var onAdd = function onAdd() {
|
175
|
+
groupList.push({
|
176
|
+
_key: Tool.math.randWord(10),
|
177
|
+
id: 0,
|
178
|
+
name: '',
|
179
|
+
isChange: true
|
180
|
+
});
|
181
|
+
setGroupList(_toConsumableArray(groupList));
|
182
|
+
};
|
183
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
184
|
+
className: "videoAccountGroupCreate",
|
185
|
+
loading: loading,
|
186
|
+
error: error,
|
187
|
+
onReload: run,
|
188
|
+
children: /*#__PURE__*/_jsxs(Form, {
|
189
|
+
labelCol: {
|
190
|
+
span: 6
|
191
|
+
},
|
192
|
+
form: form,
|
193
|
+
disabled: loadingDel
|
194
|
+
// onFinish={ onFinish }
|
195
|
+
,
|
196
|
+
children: [groupList.map(function (items, index) {
|
197
|
+
return /*#__PURE__*/_jsxs(Row, {
|
198
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
199
|
+
span: 21,
|
200
|
+
children: /*#__PURE__*/_jsx(Form.Item, {
|
201
|
+
rules: [{
|
202
|
+
required: true,
|
203
|
+
message: '请输入'
|
204
|
+
}, {
|
205
|
+
max: 8,
|
206
|
+
message: '最多8个字符'
|
207
|
+
}],
|
208
|
+
children: /*#__PURE__*/_jsx(Input, {
|
209
|
+
disabled: index === 0 || items.loading,
|
210
|
+
value: items.name,
|
211
|
+
placeholder: "\u8F93\u5165\u5206\u7EC4\u540D\u79F0",
|
212
|
+
addonAfter: index > 0 && (items.isChange ? /*#__PURE__*/_jsxs("a", {
|
213
|
+
onClick: function onClick() {
|
214
|
+
return onSubmit(index);
|
215
|
+
},
|
216
|
+
children: [items.loading && /*#__PURE__*/_jsx(LoadingOutlined, {}), " \u4FDD\u5B58"]
|
217
|
+
}) : /*#__PURE__*/_jsx(CheckCircleOutlined, {
|
218
|
+
className: "saved"
|
219
|
+
})),
|
220
|
+
onChange: function onChange(e) {
|
221
|
+
return onName(index, e.target.value);
|
222
|
+
}
|
223
|
+
})
|
224
|
+
})
|
225
|
+
}), /*#__PURE__*/_jsx(Col, {
|
226
|
+
span: 2,
|
227
|
+
offset: 1,
|
228
|
+
children: items.id > 0 && /*#__PURE__*/_jsx(Popconfirm, {
|
229
|
+
title: "\u5220\u9664\u5206\u7EC4",
|
230
|
+
description: "\u4EC5\u5220\u9664\u5206\u7EC4\uFF0C\u4E0D\u5220\u9664\u8D26\u53F7",
|
231
|
+
onConfirm: function onConfirm() {
|
232
|
+
return onDel(index);
|
233
|
+
},
|
234
|
+
children: /*#__PURE__*/_jsx("a", {
|
235
|
+
className: "del",
|
236
|
+
children: /*#__PURE__*/_jsx(CloseCircleOutlined, {})
|
237
|
+
})
|
238
|
+
})
|
239
|
+
})]
|
240
|
+
}, "".concat(items.id, "-").concat(items._key));
|
241
|
+
}), /*#__PURE__*/_jsx("div", {
|
242
|
+
children: /*#__PURE__*/_jsx(Button, {
|
243
|
+
disabled: loadingDel,
|
244
|
+
type: "primary",
|
245
|
+
icon: /*#__PURE__*/_jsx(PlusCircleOutlined, {}),
|
246
|
+
onClick: onAdd,
|
247
|
+
ghost: true,
|
248
|
+
size: "small",
|
249
|
+
children: "\u589E\u52A0"
|
250
|
+
})
|
251
|
+
})]
|
252
|
+
})
|
253
|
+
});
|
254
|
+
};
|
255
|
+
export default VideoAccountGroup;
|
@@ -5,12 +5,17 @@ import "./index.less";
|
|
5
5
|
import PageContentWarp from "../../UI/PageContentWarp";
|
6
6
|
import { useRequest } from "@umijs/hooks";
|
7
7
|
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
8
|
-
import { Avatar, Table, Tag } from "antd";
|
8
|
+
import { Avatar, Button, Divider, Table, Tag } from "antd";
|
9
9
|
import VideoPublishVideoAccountListQuery from "./query";
|
10
10
|
import VideoPlatform from "../../component/video-platform/logo";
|
11
|
+
import Money from "../../UI/Money";
|
12
|
+
import { PlusCircleOutlined } from "@ant-design/icons";
|
13
|
+
import Tool from "../../lib/Tool";
|
14
|
+
import VideoAccountGroup from "./group";
|
15
|
+
import VideoAccountCreate from "./create";
|
11
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
17
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
19
|
var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
15
20
|
var disabled = _ref.disabled,
|
16
21
|
env = _ref.env;
|
@@ -48,6 +53,17 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
48
53
|
title: '编号',
|
49
54
|
dataIndex: 'id',
|
50
55
|
key: 'id'
|
56
|
+
}, {
|
57
|
+
title: '分组',
|
58
|
+
dataIndex: 'groupId',
|
59
|
+
key: 'groupId',
|
60
|
+
render: function render(groupId, record) {
|
61
|
+
return /*#__PURE__*/_jsx(Tag, {
|
62
|
+
className: "groupName",
|
63
|
+
color: record !== null && record !== void 0 && record.groupName ? 'blue' : '',
|
64
|
+
children: (record === null || record === void 0 ? void 0 : record.groupName) || '默认分组'
|
65
|
+
});
|
66
|
+
}
|
51
67
|
}, {
|
52
68
|
title: '平台',
|
53
69
|
dataIndex: 'platform',
|
@@ -77,6 +93,12 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
77
93
|
children: [/*#__PURE__*/_jsx("strong", {
|
78
94
|
className: "nickname",
|
79
95
|
children: (record === null || record === void 0 ? void 0 : record.nickname) || '-'
|
96
|
+
}), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsxs(_Fragment, {
|
97
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
98
|
+
type: "vertical"
|
99
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
100
|
+
children: record === null || record === void 0 ? void 0 : record.nicknameRemark
|
101
|
+
})]
|
80
102
|
}), /*#__PURE__*/_jsx("div", {
|
81
103
|
className: "userId",
|
82
104
|
children: record === null || record === void 0 ? void 0 : record.accountId
|
@@ -108,12 +130,35 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
108
130
|
}, {
|
109
131
|
title: '粉丝数',
|
110
132
|
dataIndex: 'followerCount',
|
111
|
-
key: 'followerCount'
|
133
|
+
key: 'followerCount',
|
134
|
+
render: function render(followerCount) {
|
135
|
+
return /*#__PURE__*/_jsx(Money, {
|
136
|
+
pre: "",
|
137
|
+
value: followerCount,
|
138
|
+
end: "",
|
139
|
+
precision: 1
|
140
|
+
});
|
141
|
+
}
|
142
|
+
}, {
|
143
|
+
title: '操作',
|
144
|
+
dataIndex: 'id',
|
145
|
+
key: 'id',
|
146
|
+
render: function render(id, record) {
|
147
|
+
return /*#__PURE__*/_jsx(Button, {
|
148
|
+
type: "link",
|
149
|
+
size: "small",
|
150
|
+
onClick: function onClick() {
|
151
|
+
return onCreate(id);
|
152
|
+
},
|
153
|
+
children: "\u7F16\u8F91"
|
154
|
+
});
|
155
|
+
}
|
112
156
|
}];
|
113
157
|
var _useRequest = useRequest(function () {
|
114
158
|
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
159
|
+
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
115
160
|
return VideoPublishController.videoAccountList(_objectSpread(_objectSpread({}, postQuery), {}, {
|
116
|
-
current:
|
161
|
+
current: current,
|
117
162
|
pageSize: 20
|
118
163
|
}), {
|
119
164
|
env: env
|
@@ -131,6 +176,35 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
131
176
|
setQuery(_objectSpread({}, query));
|
132
177
|
runVideoAccount(query);
|
133
178
|
};
|
179
|
+
var onCreateGroup = function onCreateGroup() {
|
180
|
+
var groupId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
181
|
+
var dialog = Tool.drawer({
|
182
|
+
title: '编辑分组',
|
183
|
+
content: /*#__PURE__*/_jsx(VideoAccountGroup, {
|
184
|
+
env: env,
|
185
|
+
onSuccess: function onSuccess() {
|
186
|
+
runVideoAccount(query, 1);
|
187
|
+
dialog.destroy();
|
188
|
+
},
|
189
|
+
onGroupChange: function onGroupChange() {}
|
190
|
+
}),
|
191
|
+
width: 620
|
192
|
+
});
|
193
|
+
};
|
194
|
+
var onCreate = function onCreate(id) {
|
195
|
+
var dialog = Tool.drawer({
|
196
|
+
title: '编辑账号',
|
197
|
+
content: /*#__PURE__*/_jsx(VideoAccountCreate, {
|
198
|
+
env: env,
|
199
|
+
id: id,
|
200
|
+
onSuccess: function onSuccess() {
|
201
|
+
runVideoAccount(query);
|
202
|
+
dialog.destroy();
|
203
|
+
}
|
204
|
+
}),
|
205
|
+
width: 620
|
206
|
+
});
|
207
|
+
};
|
134
208
|
return /*#__PURE__*/_jsx(PageContentWarp, {
|
135
209
|
loading: loadingVideoAccount,
|
136
210
|
error: errorVideoAccount,
|
@@ -139,6 +213,15 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
139
213
|
},
|
140
214
|
title: "\u77ED\u89C6\u9891\u8D26\u6237",
|
141
215
|
className: "videoPublishVideoAccountList",
|
216
|
+
subtitle: /*#__PURE__*/_jsxs(Button, {
|
217
|
+
size: "small",
|
218
|
+
type: "primary",
|
219
|
+
ghost: true,
|
220
|
+
onClick: function onClick() {
|
221
|
+
return onCreateGroup(0);
|
222
|
+
},
|
223
|
+
children: [/*#__PURE__*/_jsx(PlusCircleOutlined, {}), " \u7BA1\u7406\u5206\u7EC4"]
|
224
|
+
}),
|
142
225
|
extInfo: /*#__PURE__*/_jsx(VideoPublishVideoAccountListQuery, {
|
143
226
|
defaultQuery: query,
|
144
227
|
onQuery: function onQuery(query) {
|
@@ -23,4 +23,21 @@
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
}
|
26
|
+
.groupName{
|
27
|
+
i{
|
28
|
+
font-style: normal;
|
29
|
+
text-overflow: ellipsis;
|
30
|
+
overflow: hidden;
|
31
|
+
word-break: keep-all;
|
32
|
+
white-space: nowrap;
|
33
|
+
max-width: 120px;
|
34
|
+
display: inline-block;
|
35
|
+
vertical-align: middle;
|
36
|
+
}
|
37
|
+
.writeIcon{
|
38
|
+
display: inline-block;
|
39
|
+
vertical-align: middle;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
26
43
|
}
|
@@ -31,6 +31,7 @@ var VideoPublishVideoAccountListQuery = function VideoPublishVideoAccountListQue
|
|
31
31
|
initialValues: _objectSpread({}, query),
|
32
32
|
onFinish: onFinish,
|
33
33
|
children: /*#__PURE__*/_jsxs(Space, {
|
34
|
+
wrap: true,
|
34
35
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
35
36
|
name: "platform",
|
36
37
|
className: "platform",
|
package/dist/global.less
CHANGED
package/dist/lib/Tool.d.ts
CHANGED
@@ -161,7 +161,7 @@ declare const Tool: {
|
|
161
161
|
OsPathSeparator(): string;
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
h5Pay(query: Pay.H5PayQuery): void;
|
164
|
-
notification(type: "
|
164
|
+
notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
165
165
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/moneySimple.js
CHANGED
@@ -15,13 +15,13 @@ var moneySimple = function moneySimple() {
|
|
15
15
|
} else {
|
16
16
|
out = money.toFixed(toFixed);
|
17
17
|
}
|
18
|
-
var
|
18
|
+
var outNum = parseFloat(out);
|
19
19
|
if (isTip) {
|
20
20
|
return /*#__PURE__*/_jsx(Tooltip, {
|
21
21
|
title: money + '元',
|
22
|
-
children:
|
22
|
+
children: outNum + unit
|
23
23
|
});
|
24
24
|
}
|
25
|
-
return
|
25
|
+
return outNum + ' ' + unit;
|
26
26
|
};
|
27
27
|
export default moneySimple;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export declare function detailById(body: VideoPublishVideoAccount.DetailQuery, options?: Global.RequestOptions): Promise<VideoPublishVideoAccount.Detail>;
|
2
|
+
export declare function editInfo(body: VideoPublishVideoAccount.EditInfoQuery, options?: Global.RequestOptions): Promise<boolean>;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
|
+
import request from "../../lib/request";
|
5
|
+
import { PublishDomainApi } from "./VideoPublishController";
|
6
|
+
export function detailById(_x, _x2) {
|
7
|
+
return _detailById.apply(this, arguments);
|
8
|
+
}
|
9
|
+
function _detailById() {
|
10
|
+
_detailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
|
11
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
12
|
+
while (1) switch (_context.prev = _context.next) {
|
13
|
+
case 0:
|
14
|
+
return _context.abrupt("return", request(PublishDomainApi("user/videoAccount/detailById", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
15
|
+
method: 'POST',
|
16
|
+
headers: {
|
17
|
+
'Content-Type': 'application/json'
|
18
|
+
},
|
19
|
+
data: _objectSpread({}, body)
|
20
|
+
}, options || {})));
|
21
|
+
case 1:
|
22
|
+
case "end":
|
23
|
+
return _context.stop();
|
24
|
+
}
|
25
|
+
}, _callee);
|
26
|
+
}));
|
27
|
+
return _detailById.apply(this, arguments);
|
28
|
+
}
|
29
|
+
export function editInfo(_x3, _x4) {
|
30
|
+
return _editInfo.apply(this, arguments);
|
31
|
+
}
|
32
|
+
function _editInfo() {
|
33
|
+
_editInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
|
34
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
35
|
+
while (1) switch (_context2.prev = _context2.next) {
|
36
|
+
case 0:
|
37
|
+
return _context2.abrupt("return", request(PublishDomainApi("user/videoAccount/editInfo", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
38
|
+
method: 'POST',
|
39
|
+
headers: {
|
40
|
+
'Content-Type': 'application/json'
|
41
|
+
},
|
42
|
+
data: _objectSpread({}, body)
|
43
|
+
}, options || {})));
|
44
|
+
case 1:
|
45
|
+
case "end":
|
46
|
+
return _context2.stop();
|
47
|
+
}
|
48
|
+
}, _callee2);
|
49
|
+
}));
|
50
|
+
return _editInfo.apply(this, arguments);
|
51
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare function list(body?: {}, options?: ServicesApi.RequestOptions): Promise<VideoPublishVideoAccountGroup.List[]>;
|
2
|
+
export declare function detail(body: {
|
3
|
+
id: number;
|
4
|
+
}, options?: ServicesApi.RequestOptions): Promise<VideoPublishVideoAccountGroup.List>;
|
5
|
+
export declare function create(body: VideoPublishVideoAccountGroup.CreateQuery, options?: ServicesApi.RequestOptions): Promise<VideoPublishVideoAccountGroup.CreateResult>;
|
6
|
+
export declare function del(body: {
|
7
|
+
id: number;
|
8
|
+
}, options?: ServicesApi.RequestOptions): Promise<boolean>;
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
|
+
import request from "../../lib/request";
|
5
|
+
import { PublishDomainApi } from "./VideoPublishController";
|
6
|
+
export function list(_x, _x2) {
|
7
|
+
return _list.apply(this, arguments);
|
8
|
+
}
|
9
|
+
function _list() {
|
10
|
+
_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
|
11
|
+
var url;
|
12
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
13
|
+
while (1) switch (_context.prev = _context.next) {
|
14
|
+
case 0:
|
15
|
+
url = PublishDomainApi("user/videoAccountGroup/list", options === null || options === void 0 ? void 0 : options.env);
|
16
|
+
return _context.abrupt("return", request(url, _objectSpread({
|
17
|
+
method: 'POST',
|
18
|
+
headers: {
|
19
|
+
'Content-Type': 'application/json'
|
20
|
+
},
|
21
|
+
data: _objectSpread({}, body)
|
22
|
+
}, options || {})));
|
23
|
+
case 2:
|
24
|
+
case "end":
|
25
|
+
return _context.stop();
|
26
|
+
}
|
27
|
+
}, _callee);
|
28
|
+
}));
|
29
|
+
return _list.apply(this, arguments);
|
30
|
+
}
|
31
|
+
export function detail(_x3, _x4) {
|
32
|
+
return _detail.apply(this, arguments);
|
33
|
+
}
|
34
|
+
function _detail() {
|
35
|
+
_detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
|
36
|
+
var url;
|
37
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
38
|
+
while (1) switch (_context2.prev = _context2.next) {
|
39
|
+
case 0:
|
40
|
+
url = PublishDomainApi("user/videoAccountGroup/detail", options === null || options === void 0 ? void 0 : options.env);
|
41
|
+
return _context2.abrupt("return", request(url, _objectSpread({
|
42
|
+
method: 'GET',
|
43
|
+
headers: {
|
44
|
+
'Content-Type': 'application/json'
|
45
|
+
},
|
46
|
+
data: _objectSpread({}, body)
|
47
|
+
}, options || {})));
|
48
|
+
case 2:
|
49
|
+
case "end":
|
50
|
+
return _context2.stop();
|
51
|
+
}
|
52
|
+
}, _callee2);
|
53
|
+
}));
|
54
|
+
return _detail.apply(this, arguments);
|
55
|
+
}
|
56
|
+
export function create(_x5, _x6) {
|
57
|
+
return _create.apply(this, arguments);
|
58
|
+
}
|
59
|
+
function _create() {
|
60
|
+
_create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(body, options) {
|
61
|
+
var url;
|
62
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
63
|
+
while (1) switch (_context3.prev = _context3.next) {
|
64
|
+
case 0:
|
65
|
+
url = PublishDomainApi("user/videoAccountGroup/create", options === null || options === void 0 ? void 0 : options.env);
|
66
|
+
return _context3.abrupt("return", request(url, _objectSpread({
|
67
|
+
method: 'POST',
|
68
|
+
headers: {
|
69
|
+
'Content-Type': 'application/json'
|
70
|
+
},
|
71
|
+
data: _objectSpread({}, body)
|
72
|
+
}, options || {})));
|
73
|
+
case 2:
|
74
|
+
case "end":
|
75
|
+
return _context3.stop();
|
76
|
+
}
|
77
|
+
}, _callee3);
|
78
|
+
}));
|
79
|
+
return _create.apply(this, arguments);
|
80
|
+
}
|
81
|
+
export function del(_x7, _x8) {
|
82
|
+
return _del.apply(this, arguments);
|
83
|
+
}
|
84
|
+
function _del() {
|
85
|
+
_del = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body, options) {
|
86
|
+
var url;
|
87
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
88
|
+
while (1) switch (_context4.prev = _context4.next) {
|
89
|
+
case 0:
|
90
|
+
url = PublishDomainApi("user/videoAccountGroup/del", options === null || options === void 0 ? void 0 : options.env);
|
91
|
+
return _context4.abrupt("return", request(url, _objectSpread({
|
92
|
+
method: 'POST',
|
93
|
+
headers: {
|
94
|
+
'Content-Type': 'application/json'
|
95
|
+
},
|
96
|
+
data: _objectSpread({}, body)
|
97
|
+
}, options || {})));
|
98
|
+
case 2:
|
99
|
+
case "end":
|
100
|
+
return _context4.stop();
|
101
|
+
}
|
102
|
+
}, _callee4);
|
103
|
+
}));
|
104
|
+
return _del.apply(this, arguments);
|
105
|
+
}
|
@@ -68,6 +68,7 @@ declare namespace VideoPublish {
|
|
68
68
|
avatar: string;
|
69
69
|
bindPhone: string;
|
70
70
|
nickname: string;
|
71
|
+
nicknameRemark: string;
|
71
72
|
signature: string;
|
72
73
|
isLoginValid: true;
|
73
74
|
followerCount: number;
|
@@ -103,6 +104,7 @@ declare namespace VideoPublish {
|
|
103
104
|
introduction: string;
|
104
105
|
videoKindTag: '' | VideoKindTag;
|
105
106
|
kindTagValue: string;
|
107
|
+
goodsTitle: string;
|
106
108
|
}
|
107
109
|
interface TaskCreate {
|
108
110
|
videoFrom: 'task' | 'local';
|
@@ -118,15 +120,7 @@ declare namespace VideoPublish {
|
|
118
120
|
accountList: string[];
|
119
121
|
startTime: number | null;
|
120
122
|
hourEnabled: number[];
|
121
|
-
videoList:
|
122
|
-
taskId: number;
|
123
|
-
productType: string;
|
124
|
-
videoUrl: string;
|
125
|
-
title: string;
|
126
|
-
introduction: string;
|
127
|
-
videoKindTag: '' | VideoKindTag;
|
128
|
-
kindTagValue: string;
|
129
|
-
}[];
|
123
|
+
videoList: PublishVideoList[];
|
130
124
|
}
|
131
125
|
interface TaskListQuery {
|
132
126
|
startTime: number;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare namespace VideoPublishVideoAccount {
|
2
|
+
interface EditInfoQuery {
|
3
|
+
id: number;
|
4
|
+
groupId: number;
|
5
|
+
nicknameRemark: string;
|
6
|
+
}
|
7
|
+
interface DetailQuery {
|
8
|
+
id: number;
|
9
|
+
}
|
10
|
+
interface Detail {
|
11
|
+
groupId: number;
|
12
|
+
nicknameRemark: string;
|
13
|
+
}
|
14
|
+
}
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
declare namespace VideoPublishVideoAccountGroup {
|
2
|
+
interface List {
|
3
|
+
id: number;
|
4
|
+
name: string;
|
5
|
+
}
|
6
|
+
interface CreateQuery {
|
7
|
+
id: number;
|
8
|
+
name: string;
|
9
|
+
}
|
10
|
+
interface CreateResult {
|
11
|
+
id: number;
|
12
|
+
}
|
13
|
+
type Detail = List;
|
14
|
+
interface ListEdit extends List {
|
15
|
+
_key: string;
|
16
|
+
isChange?: boolean;
|
17
|
+
loading?: boolean;
|
18
|
+
}
|
19
|
+
}
|
File without changes
|