component-shipinlv 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- 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/lib/Tool.js +4 -2
- 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
@@ -0,0 +1,245 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
|
+
import React, { useState } from 'react';
|
6
|
+
import "./list.less";
|
7
|
+
import { useRequest } from "@umijs/hooks";
|
8
|
+
import * as VideoPublishVideoAccountProxyController from "../../service/api/VideoPublishVideoAccountProxyController";
|
9
|
+
import Tool from "../../lib/Tool";
|
10
|
+
import { Button, Popconfirm, Popover, Space, Table, Tag } from "antd";
|
11
|
+
import LayoutContent from "../../UI/LayoutContent";
|
12
|
+
import VideoPublishVideoAccountProxyQuery from "./query";
|
13
|
+
import VideoPublishVideoAccountProxyCreate from "./create";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
17
|
+
var VideoPublishVideoAccountProxy = function VideoPublishVideoAccountProxy(_ref) {
|
18
|
+
var env = _ref.env,
|
19
|
+
disabled = _ref.disabled,
|
20
|
+
_ref$onMenu = _ref.onMenu,
|
21
|
+
onMenu = _ref$onMenu === void 0 ? function () {} : _ref$onMenu;
|
22
|
+
var _useState = useState([]),
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
24
|
+
listData = _useState2[0],
|
25
|
+
setListData = _useState2[1];
|
26
|
+
var _useState3 = useState({
|
27
|
+
current: 1,
|
28
|
+
pageSize: 20,
|
29
|
+
total: 0,
|
30
|
+
simple: true,
|
31
|
+
showSizeChanger: false,
|
32
|
+
showQuickJumper: false
|
33
|
+
}),
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
35
|
+
pagination = _useState4[0],
|
36
|
+
setPagination = _useState4[1];
|
37
|
+
var _useState5 = useState({
|
38
|
+
enabled: '',
|
39
|
+
keyword: ''
|
40
|
+
}),
|
41
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
42
|
+
query = _useState6[0],
|
43
|
+
setQuery = _useState6[1];
|
44
|
+
var columns = [{
|
45
|
+
title: '编号',
|
46
|
+
dataIndex: 'id',
|
47
|
+
key: 'id'
|
48
|
+
}, {
|
49
|
+
title: '标题',
|
50
|
+
dataIndex: 'title',
|
51
|
+
key: 'title',
|
52
|
+
render: function render(title, record) {
|
53
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
54
|
+
return /*#__PURE__*/_jsx(Popover, {
|
55
|
+
title: "\u89C6\u9891\u6807\u9898",
|
56
|
+
content: title,
|
57
|
+
children: /*#__PURE__*/_jsx("div", {
|
58
|
+
className: "title",
|
59
|
+
children: title
|
60
|
+
})
|
61
|
+
});
|
62
|
+
}
|
63
|
+
}, {
|
64
|
+
title: 'IP 归属地',
|
65
|
+
dataIndex: 'area',
|
66
|
+
key: 'area',
|
67
|
+
render: function render(area, record) {
|
68
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
69
|
+
return /*#__PURE__*/_jsx(Popover, {
|
70
|
+
title: "IP \u5F52\u5C5E\u5730",
|
71
|
+
content: area,
|
72
|
+
children: /*#__PURE__*/_jsx("div", {
|
73
|
+
className: "area",
|
74
|
+
children: area
|
75
|
+
})
|
76
|
+
});
|
77
|
+
}
|
78
|
+
}, {
|
79
|
+
title: 'IP 信息',
|
80
|
+
dataIndex: 'ip',
|
81
|
+
key: 'ip',
|
82
|
+
render: function render(ip, record) {
|
83
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
84
|
+
var auth = record !== null && record !== void 0 && record.username && record !== null && record !== void 0 && record.password ? "".concat(record === null || record === void 0 ? void 0 : record.username, ":******@") : '';
|
85
|
+
var port = record !== null && record !== void 0 && record.port ? /*#__PURE__*/_jsxs(_Fragment, {
|
86
|
+
children: [" : ", /*#__PURE__*/_jsx(Tag, {
|
87
|
+
children: record === null || record === void 0 ? void 0 : record.port
|
88
|
+
})]
|
89
|
+
}) : '';
|
90
|
+
return /*#__PURE__*/_jsxs("div", {
|
91
|
+
className: "ip",
|
92
|
+
children: [auth, record === null || record === void 0 ? void 0 : record.ip, port]
|
93
|
+
});
|
94
|
+
}
|
95
|
+
}, {
|
96
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
97
|
+
children: "\u662F\u5426\u542F\u7528"
|
98
|
+
}),
|
99
|
+
dataIndex: 'enabled',
|
100
|
+
key: 'enabled',
|
101
|
+
render: function render(enabled, record) {
|
102
|
+
return !enabled ? /*#__PURE__*/_jsx(Tag, {
|
103
|
+
children: "\u5DF2\u7981\u7528"
|
104
|
+
}) : /*#__PURE__*/_jsx(Tag, {
|
105
|
+
color: "green",
|
106
|
+
children: "\u5DF2\u542F\u7528"
|
107
|
+
});
|
108
|
+
}
|
109
|
+
}, {
|
110
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
111
|
+
children: "\u64CD\u4F5C"
|
112
|
+
}),
|
113
|
+
dataIndex: '_',
|
114
|
+
key: '_',
|
115
|
+
render: function render(_, record) {
|
116
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
117
|
+
return /*#__PURE__*/_jsxs(Space, {
|
118
|
+
size: 20,
|
119
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
120
|
+
type: "primary",
|
121
|
+
size: "small",
|
122
|
+
onClick: function onClick() {
|
123
|
+
return onCreate((record === null || record === void 0 ? void 0 : record.id) || 0);
|
124
|
+
},
|
125
|
+
children: "\u7F16\u8F91"
|
126
|
+
}), /*#__PURE__*/_jsx(Popconfirm, {
|
127
|
+
title: "\u5220\u9664",
|
128
|
+
description: "\u786E\u5B9A\u8981\u5220\u9664\uFF0C\u4E0D\u53EF\u627E\u56DE\uFF1F",
|
129
|
+
onConfirm: function onConfirm() {
|
130
|
+
return onDel((record === null || record === void 0 ? void 0 : record.id) || 0);
|
131
|
+
},
|
132
|
+
children: /*#__PURE__*/_jsx(Button, {
|
133
|
+
type: "link",
|
134
|
+
ghost: true,
|
135
|
+
danger: true,
|
136
|
+
size: "small",
|
137
|
+
children: "\u5220\u9664"
|
138
|
+
})
|
139
|
+
})]
|
140
|
+
});
|
141
|
+
}
|
142
|
+
}];
|
143
|
+
var _useRequest = useRequest(function () {
|
144
|
+
var current = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : pagination.current;
|
145
|
+
var postQuery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : query;
|
146
|
+
return VideoPublishVideoAccountProxyController.list(_objectSpread(_objectSpread({}, postQuery), {}, {
|
147
|
+
current: current,
|
148
|
+
pageSize: 20
|
149
|
+
}), {
|
150
|
+
env: env
|
151
|
+
});
|
152
|
+
}, {
|
153
|
+
onSuccess: function onSuccess(result) {
|
154
|
+
setListData(result.list);
|
155
|
+
}
|
156
|
+
}),
|
157
|
+
loading = _useRequest.loading,
|
158
|
+
error = _useRequest.error,
|
159
|
+
run = _useRequest.run;
|
160
|
+
var _useRequest2 = useRequest(function (id) {
|
161
|
+
return VideoPublishVideoAccountProxyController.del({
|
162
|
+
id: id
|
163
|
+
}, {
|
164
|
+
env: env
|
165
|
+
});
|
166
|
+
}, {
|
167
|
+
manual: true,
|
168
|
+
onSuccess: function onSuccess(result) {
|
169
|
+
run();
|
170
|
+
}
|
171
|
+
}),
|
172
|
+
loadingDel = _useRequest2.loading,
|
173
|
+
runDel = _useRequest2.run;
|
174
|
+
var onSearch = function onSearch(keyword) {
|
175
|
+
var _keyword$replace;
|
176
|
+
var list = (keyword === null || keyword === void 0 || (_keyword$replace = keyword.replace(/\s+/g, '')) === null || _keyword$replace === void 0 ? void 0 : _keyword$replace.split('')) || [];
|
177
|
+
run();
|
178
|
+
};
|
179
|
+
var onCreate = /*#__PURE__*/function () {
|
180
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
181
|
+
var dialog;
|
182
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
183
|
+
while (1) switch (_context.prev = _context.next) {
|
184
|
+
case 0:
|
185
|
+
dialog = Tool.drawer({
|
186
|
+
title: '编辑',
|
187
|
+
content: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxyCreate, {
|
188
|
+
id: id,
|
189
|
+
env: env,
|
190
|
+
onSuccess: function onSuccess() {
|
191
|
+
run();
|
192
|
+
dialog.destroy();
|
193
|
+
}
|
194
|
+
}),
|
195
|
+
width: 680
|
196
|
+
});
|
197
|
+
case 1:
|
198
|
+
case "end":
|
199
|
+
return _context.stop();
|
200
|
+
}
|
201
|
+
}, _callee);
|
202
|
+
}));
|
203
|
+
return function onCreate(_x) {
|
204
|
+
return _ref2.apply(this, arguments);
|
205
|
+
};
|
206
|
+
}();
|
207
|
+
var onDel = function onDel(id) {
|
208
|
+
runDel(id);
|
209
|
+
};
|
210
|
+
var _onQuery = function onQuery(query) {
|
211
|
+
setQuery(_objectSpread({}, query));
|
212
|
+
pagination.current = 1;
|
213
|
+
setPagination(_objectSpread({}, pagination));
|
214
|
+
run(pagination.current, query);
|
215
|
+
};
|
216
|
+
return /*#__PURE__*/_jsx(LayoutContent, {
|
217
|
+
title: "\u7F51\u7EDC\u4EE3\u7406",
|
218
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxyQuery, {
|
219
|
+
loading: loading,
|
220
|
+
defaultQuery: query,
|
221
|
+
onQuery: function onQuery(query) {
|
222
|
+
return _onQuery(query);
|
223
|
+
}
|
224
|
+
}),
|
225
|
+
children: /*#__PURE__*/_jsx("div", {
|
226
|
+
className: "videoPublishVideoAccountProxy",
|
227
|
+
children: /*#__PURE__*/_jsx(Table, {
|
228
|
+
size: "small",
|
229
|
+
bordered: true,
|
230
|
+
rowKey: function rowKey(record, index) {
|
231
|
+
return "".concat(index, "-").concat(record.id);
|
232
|
+
},
|
233
|
+
loading: loading,
|
234
|
+
columns: columns,
|
235
|
+
dataSource: listData,
|
236
|
+
pagination: pagination,
|
237
|
+
onChange: function onChange(page, filters, sorter, extra) {
|
238
|
+
pagination.current = page.current || 1;
|
239
|
+
setPagination(_objectSpread({}, pagination));
|
240
|
+
}
|
241
|
+
})
|
242
|
+
})
|
243
|
+
});
|
244
|
+
};
|
245
|
+
export default VideoPublishVideoAccountProxy;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './query.less';
|
3
|
+
interface Props {
|
4
|
+
loading: boolean;
|
5
|
+
defaultQuery: VideoPublishVideoAccountProxy.ListQuery;
|
6
|
+
onQuery: (query: VideoPublishVideoAccountProxy.ListQuery) => void;
|
7
|
+
}
|
8
|
+
declare const VideoPublishVideoAccountProxyQuery: React.FC<Props>;
|
9
|
+
export default VideoPublishVideoAccountProxyQuery;
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import React, { useState } from 'react';
|
4
|
+
import { Button, Form, Input, Select, Space, Tag } from "antd";
|
5
|
+
import "./query.less";
|
6
|
+
import { UnorderedListOutlined } from "@ant-design/icons";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
var VideoPublishVideoAccountProxyQuery = function VideoPublishVideoAccountProxyQuery(_ref) {
|
10
|
+
var loading = _ref.loading,
|
11
|
+
defaultQuery = _ref.defaultQuery,
|
12
|
+
_ref$onQuery = _ref.onQuery,
|
13
|
+
onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
|
14
|
+
var _Form$useForm = Form.useForm(),
|
15
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
16
|
+
form = _Form$useForm2[0];
|
17
|
+
var _useState = useState(_objectSpread({}, defaultQuery)),
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
19
|
+
query = _useState2[0],
|
20
|
+
setQuery = _useState2[1];
|
21
|
+
var onFinish = function onFinish() {
|
22
|
+
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
23
|
+
onQuery(_objectSpread(_objectSpread({}, query), values));
|
24
|
+
};
|
25
|
+
return /*#__PURE__*/_jsx("div", {
|
26
|
+
className: "videoPublishVideoAccountProxyQuery",
|
27
|
+
children: /*#__PURE__*/_jsx(Form, {
|
28
|
+
form: form,
|
29
|
+
initialValues: _objectSpread({}, query),
|
30
|
+
disabled: loading,
|
31
|
+
onFinish: onFinish,
|
32
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
33
|
+
wrap: true,
|
34
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
35
|
+
name: "enabled",
|
36
|
+
className: "enabled",
|
37
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
38
|
+
children: [/*#__PURE__*/_jsxs(Select, {
|
39
|
+
value: "",
|
40
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u72B6\u6001"]
|
41
|
+
}), /*#__PURE__*/_jsx(Select, {
|
42
|
+
value: "1",
|
43
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
44
|
+
color: "green",
|
45
|
+
children: "\u5DF2\u542F\u7528"
|
46
|
+
})
|
47
|
+
}), /*#__PURE__*/_jsx(Select, {
|
48
|
+
value: "0",
|
49
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
50
|
+
color: "",
|
51
|
+
children: "\u5DF2\u7981\u7528"
|
52
|
+
})
|
53
|
+
})]
|
54
|
+
})
|
55
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
56
|
+
name: "keyword",
|
57
|
+
className: "keyword",
|
58
|
+
children: /*#__PURE__*/_jsx(Input
|
59
|
+
// value={ query.keyword }
|
60
|
+
, {
|
61
|
+
placeholder: "\u641C\u7D22 \u6807\u9898/IP/\u5F52\u5C5E\u5730",
|
62
|
+
allowClear: true
|
63
|
+
// onChange={ e => onKeyWord( e.target.value ) }
|
64
|
+
// onPressEnter={ ( e ) => onSearch( e.target ) }
|
65
|
+
})
|
66
|
+
}), /*#__PURE__*/_jsx(Button, {
|
67
|
+
type: "primary",
|
68
|
+
htmlType: "submit",
|
69
|
+
children: "\u641C\u7D22"
|
70
|
+
})]
|
71
|
+
})
|
72
|
+
})
|
73
|
+
});
|
74
|
+
};
|
75
|
+
export default VideoPublishVideoAccountProxyQuery;
|
@@ -6,13 +6,12 @@ import PageContentWarp from "../../../UI/PageContentWarp";
|
|
6
6
|
import { useRequest } from "@umijs/hooks";
|
7
7
|
import * as VideoPublishTaskPlanController from "../../../service/api/VideoPublishTaskPlanController";
|
8
8
|
import { Button, Popover, Space, Table } from "antd";
|
9
|
-
// import VideoPublishTaskListQuery from "component-shipinlv/VideoPublish/task-list/query";
|
10
9
|
import Time from "../../../UI/Time";
|
11
|
-
import VideoPlatform from "../../../component/video-platform/logo";
|
12
10
|
import VideoPublishTaskPlanStatus from "./status";
|
13
11
|
import { FileTextOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
14
12
|
import VideoKindTag from "../../../component/videoKindTag";
|
15
13
|
import { onMediaShowView } from "../../../component/media-show";
|
14
|
+
import VideoPublishVideoAccountBaseInfo from "../../video-account/base-info";
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
16
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
17
|
var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
@@ -57,13 +56,12 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
57
56
|
dataIndex: 'id',
|
58
57
|
key: 'id'
|
59
58
|
}, {
|
60
|
-
title: '
|
59
|
+
title: '发布账号',
|
61
60
|
dataIndex: 'platform',
|
62
61
|
key: 'platform',
|
63
62
|
render: function render(platform, record) {
|
64
|
-
return /*#__PURE__*/_jsx(
|
65
|
-
|
66
|
-
showName: true
|
63
|
+
return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
|
64
|
+
accountInfo: record === null || record === void 0 ? void 0 : record.accountInfo
|
67
65
|
});
|
68
66
|
}
|
69
67
|
}, {
|
@@ -5,4 +5,77 @@
|
|
5
5
|
.ant-pagination-options{
|
6
6
|
display: none;
|
7
7
|
}
|
8
|
+
|
9
|
+
.article{
|
10
|
+
position: relative;
|
11
|
+
display: flex;
|
12
|
+
flex-direction: row;
|
13
|
+
cursor: pointer;
|
14
|
+
&.valid{
|
15
|
+
.isLoginValid{
|
16
|
+
background-color: #00bc00;
|
17
|
+
}
|
18
|
+
.shopName{
|
19
|
+
color: #005a00;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
&.invalid{
|
23
|
+
background-color: #e1e1e1;
|
24
|
+
.isLoginValid{
|
25
|
+
background-color: red;
|
26
|
+
}
|
27
|
+
.shopName{
|
28
|
+
color: #999;
|
29
|
+
font-weight: 300;
|
30
|
+
}
|
31
|
+
.avatarUrl{
|
32
|
+
opacity: 0.5;
|
33
|
+
filter: grayscale(100%);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.avatar{
|
37
|
+
position: relative;
|
38
|
+
width: 40px;
|
39
|
+
//box-shadow: 0 0 5px #EEE;
|
40
|
+
.avatarUrl{
|
41
|
+
border-radius: 100px;
|
42
|
+
box-shadow: 0 0 5px #EEE;
|
43
|
+
}
|
44
|
+
.isLoginValid{
|
45
|
+
position: absolute;
|
46
|
+
left: 35px;
|
47
|
+
top: 35px;
|
48
|
+
width: 8px;
|
49
|
+
height: 8px;
|
50
|
+
border-radius: 100px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
.shopName{
|
54
|
+
max-width: 150px;
|
55
|
+
color: #666;
|
56
|
+
display: inline-block;
|
57
|
+
text-overflow: ellipsis;
|
58
|
+
//line-height: 30px;
|
59
|
+
font-size: 12px;
|
60
|
+
padding: 1px 0 0 12px;
|
61
|
+
line-height: 1.1em;
|
62
|
+
word-break: keep-all;
|
63
|
+
white-space: nowrap;
|
64
|
+
overflow: hidden;
|
65
|
+
}
|
66
|
+
.nicknameRemark{
|
67
|
+
max-width: 150px;
|
68
|
+
color: #666;
|
69
|
+
text-overflow: ellipsis;
|
70
|
+
overflow: hidden;
|
71
|
+
//background-color: #F6F6F6;
|
72
|
+
padding: 2px 0 1px;
|
73
|
+
font-weight: 300;
|
74
|
+
}
|
75
|
+
.uniqueId{
|
76
|
+
padding: 1px 0 0;
|
77
|
+
font-size: 12px;
|
78
|
+
opacity: 0.6;
|
79
|
+
}
|
80
|
+
}
|
8
81
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./base-info.less";
|
3
|
+
interface Props {
|
4
|
+
id?: number;
|
5
|
+
className?: string;
|
6
|
+
index?: number;
|
7
|
+
accountInfo?: VideoPublishVideoAccount.BaseInfo;
|
8
|
+
onDel?: (id: number) => void;
|
9
|
+
onClick?: () => void;
|
10
|
+
}
|
11
|
+
declare const VideoPublishVideoAccountBaseInfo: React.FC<Props>;
|
12
|
+
export default VideoPublishVideoAccountBaseInfo;
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./base-info.less";
|
3
|
+
import { Avatar, Popconfirm, Tooltip } from "antd";
|
4
|
+
import VideoPlatformLogo from "../../component/video-platform/logo";
|
5
|
+
import { CloseOutlined } from "@ant-design/icons";
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo(_ref) {
|
10
|
+
var id = _ref.id,
|
11
|
+
_ref$className = _ref.className,
|
12
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
13
|
+
index = _ref.index,
|
14
|
+
accountInfo = _ref.accountInfo,
|
15
|
+
_ref$onClick = _ref.onClick,
|
16
|
+
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
17
|
+
_ref$onDel = _ref.onDel,
|
18
|
+
onDel = _ref$onDel === void 0 ? function () {} : _ref$onDel;
|
19
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
20
|
+
title: /*#__PURE__*/_jsxs(_Fragment, {
|
21
|
+
children: ["\u6240\u5C5E\u5206\u7EC4\uFF1A", accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.groupName]
|
22
|
+
}),
|
23
|
+
children: /*#__PURE__*/_jsxs("article", {
|
24
|
+
className: "videoAccountBaseInfo ".concat(className, " ").concat(accountInfo !== null && accountInfo !== void 0 && accountInfo.isLoginValid ? "valid" : "invalid"),
|
25
|
+
onClick: function onClick() {
|
26
|
+
return _onClick();
|
27
|
+
},
|
28
|
+
children: [typeof index === 'number' && /*#__PURE__*/_jsx("i", {
|
29
|
+
className: "index",
|
30
|
+
children: index + 1
|
31
|
+
}), typeof id === 'number' && /*#__PURE__*/_jsx(Popconfirm, {
|
32
|
+
title: "\u5220\u9664\u8D26\u6237",
|
33
|
+
description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
|
34
|
+
onConfirm: function onConfirm() {
|
35
|
+
return onDel(id);
|
36
|
+
},
|
37
|
+
children: /*#__PURE__*/_jsx("a", {
|
38
|
+
className: "del",
|
39
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {})
|
40
|
+
})
|
41
|
+
}), /*#__PURE__*/_jsxs("div", {
|
42
|
+
className: "avatar",
|
43
|
+
children: [/*#__PURE__*/_jsx(Avatar, {
|
44
|
+
className: "avatarUrl",
|
45
|
+
size: 46,
|
46
|
+
src: (accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.avatar) || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
|
47
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
48
|
+
title: accountInfo !== null && accountInfo !== void 0 && accountInfo.isLoginValid ? '登录有效' : '登录失效',
|
49
|
+
children: /*#__PURE__*/_jsx("div", {
|
50
|
+
className: "isLoginValid"
|
51
|
+
})
|
52
|
+
})]
|
53
|
+
}), /*#__PURE__*/_jsxs("div", {
|
54
|
+
className: "shopName",
|
55
|
+
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
56
|
+
platform: (accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.platform) || '',
|
57
|
+
size: 12
|
58
|
+
}), accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.nickname, /*#__PURE__*/_jsx("div", {
|
59
|
+
className: "nicknameRemark",
|
60
|
+
children: accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.nicknameRemark
|
61
|
+
}), /*#__PURE__*/_jsx("div", {
|
62
|
+
className: "uniqueId",
|
63
|
+
children: accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.uniqueId
|
64
|
+
})]
|
65
|
+
})]
|
66
|
+
})
|
67
|
+
});
|
68
|
+
};
|
69
|
+
export default VideoPublishVideoAccountBaseInfo;
|
@@ -0,0 +1,92 @@
|
|
1
|
+
.videoAccountBaseInfo{
|
2
|
+
position: relative;
|
3
|
+
display: flex;
|
4
|
+
flex-direction: row;
|
5
|
+
cursor: pointer;
|
6
|
+
.index{
|
7
|
+
position: absolute;
|
8
|
+
top: 10px;
|
9
|
+
right: 4px;
|
10
|
+
font-size: 12px;
|
11
|
+
font-style: normal;
|
12
|
+
opacity: 0.3;
|
13
|
+
}
|
14
|
+
.del{
|
15
|
+
position: absolute;
|
16
|
+
bottom: 7px;
|
17
|
+
right: 4px;
|
18
|
+
padding: 3px;
|
19
|
+
font-size: 12px;
|
20
|
+
color: #FFF;
|
21
|
+
border-radius: 3px;
|
22
|
+
background-color: #C00;
|
23
|
+
line-height: 1em;
|
24
|
+
display: none;
|
25
|
+
}
|
26
|
+
&.valid{
|
27
|
+
.isLoginValid{
|
28
|
+
background-color: #00bc00;
|
29
|
+
}
|
30
|
+
.shopName{
|
31
|
+
color: #005a00;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
&.invalid{
|
35
|
+
background-color: #e1e1e1;
|
36
|
+
.isLoginValid{
|
37
|
+
background-color: red;
|
38
|
+
}
|
39
|
+
.shopName{
|
40
|
+
color: #999;
|
41
|
+
font-weight: 300;
|
42
|
+
}
|
43
|
+
.avatarUrl{
|
44
|
+
opacity: 0.5;
|
45
|
+
filter: grayscale(100%);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
.avatar{
|
49
|
+
position: relative;
|
50
|
+
width: 40px;
|
51
|
+
//box-shadow: 0 0 5px #EEE;
|
52
|
+
.avatarUrl{
|
53
|
+
border-radius: 100px;
|
54
|
+
box-shadow: 0 0 5px #EEE;
|
55
|
+
}
|
56
|
+
.isLoginValid{
|
57
|
+
position: absolute;
|
58
|
+
left: 35px;
|
59
|
+
top: 35px;
|
60
|
+
width: 8px;
|
61
|
+
height: 8px;
|
62
|
+
border-radius: 100px;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
.shopName{
|
66
|
+
max-width: 150px;
|
67
|
+
color: #666;
|
68
|
+
display: inline-block;
|
69
|
+
text-overflow: ellipsis;
|
70
|
+
//line-height: 30px;
|
71
|
+
font-size: 12px;
|
72
|
+
padding: 1px 0 0 12px;
|
73
|
+
line-height: 1.1em;
|
74
|
+
word-break: keep-all;
|
75
|
+
white-space: nowrap;
|
76
|
+
overflow: hidden;
|
77
|
+
}
|
78
|
+
.nicknameRemark{
|
79
|
+
max-width: 150px;
|
80
|
+
color: #666;
|
81
|
+
text-overflow: ellipsis;
|
82
|
+
overflow: hidden;
|
83
|
+
//background-color: #F6F6F6;
|
84
|
+
padding: 2px 0 1px;
|
85
|
+
font-weight: 300;
|
86
|
+
}
|
87
|
+
.uniqueId{
|
88
|
+
padding: 1px 0 0;
|
89
|
+
font-size: 12px;
|
90
|
+
opacity: 0.6;
|
91
|
+
}
|
92
|
+
}
|