component-shipinlv 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth/index.js +45 -26
- package/dist/AuthClient/qr/index.css.js +1 -1
- package/dist/PhonePublish/account-manage/home.d.ts +11 -0
- package/dist/PhonePublish/account-manage/home.js +243 -0
- package/dist/PhonePublish/account-manage/home.less +28 -0
- package/dist/PhonePublish/account-manage/index.d.ts +3 -0
- package/dist/PhonePublish/account-manage/index.js +56 -0
- package/dist/PhonePublish/account-manage/index.less +59 -0
- package/dist/PhonePublish/account-manage/list.d.ts +17 -0
- package/dist/PhonePublish/account-manage/list.js +443 -0
- package/dist/PhonePublish/account-manage/list.less +95 -0
- package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
- package/dist/PhonePublish/account-manage/setting/index.js +199 -0
- package/dist/PhonePublish/account-manage/setting/index.less +11 -0
- package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
- package/dist/PhonePublish/create-task/base/index.js +386 -0
- package/dist/PhonePublish/create-task/base/index.less +64 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/PhonePublish/create-task/hour-enabled.d.ts +9 -0
- package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
- package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
- package/dist/PhonePublish/create-task/index.d.ts +11 -0
- package/dist/PhonePublish/create-task/index.js +449 -0
- package/dist/PhonePublish/create-task/index.less +75 -0
- package/dist/PhonePublish/create-task/select-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/select-list.css.js +6 -0
- package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
- package/dist/PhonePublish/create-task/select-list.js +304 -0
- package/dist/PhonePublish/create-task/task-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/task-list.css.js +6 -0
- package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
- package/dist/PhonePublish/create-task/task-list.js +323 -0
- package/dist/PhonePublish/index.css.d.ts +2 -0
- package/dist/PhonePublish/index.css.js +35 -0
- package/dist/PhonePublish/index.d.ts +15 -0
- package/dist/PhonePublish/index.js +191 -0
- package/dist/PhonePublish/index.less +55 -0
- package/dist/PhonePublish/lib/chrome-quit.d.ts +2 -0
- package/dist/PhonePublish/lib/chrome-quit.js +20 -0
- package/dist/PhonePublish/log/index.d.ts +8 -0
- package/dist/PhonePublish/log/index.js +186 -0
- package/dist/PhonePublish/log/index.less +81 -0
- package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
- package/dist/PhonePublish/publish-task-plan/index.js +32 -0
- package/dist/PhonePublish/publish-task-plan/index.less +4 -0
- package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
- package/dist/PhonePublish/task-list/index.d.ts +8 -0
- package/dist/PhonePublish/task-list/index.js +224 -0
- package/dist/PhonePublish/task-list/index.less +8 -0
- package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
- package/dist/PhonePublish/task-list/plan/list.js +290 -0
- package/dist/PhonePublish/task-list/plan/list.less +87 -0
- package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/operate.js +145 -0
- package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/query.js +89 -0
- package/dist/PhonePublish/task-list/plan/query.less +9 -0
- package/dist/PhonePublish/task-list/plan/status.d.ts +13 -0
- package/dist/PhonePublish/task-list/plan/status.js +53 -0
- package/dist/PhonePublish/task-list/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/query.js +76 -0
- package/dist/PhonePublish/task-list/query.less +19 -0
- package/dist/PhonePublish/task-list/who-can-view.d.ts +12 -0
- package/dist/PhonePublish/task-list/who-can-view.js +37 -0
- package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
- package/dist/PhonePublish/video-account/ban/index.js +94 -0
- package/dist/PhonePublish/video-account/ban/index.less +4 -0
- package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
- package/dist/PhonePublish/video-account/base-info.js +75 -0
- package/dist/PhonePublish/video-account/base-info.less +92 -0
- package/dist/PhonePublish/video-account/create.d.ts +8 -0
- package/dist/PhonePublish/video-account/create.js +174 -0
- package/dist/PhonePublish/video-account/group.d.ts +9 -0
- package/dist/PhonePublish/video-account/group.js +255 -0
- package/dist/PhonePublish/video-account/group.less +10 -0
- package/dist/PhonePublish/video-account/index.d.ts +8 -0
- package/dist/PhonePublish/video-account/index.js +403 -0
- package/dist/PhonePublish/video-account/index.less +92 -0
- package/dist/PhonePublish/video-account/query.d.ts +8 -0
- package/dist/PhonePublish/video-account/query.js +115 -0
- package/dist/PhonePublish/video-account/query.less +18 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
- package/dist/PhonePublish/video-publish-statistic/kind.d.ts +16 -0
- package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/VideoPublish/account-manage/list.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/phone/index.d.ts +8 -0
- package/dist/phone/index.js +62 -0
- package/dist/phone/index.less +170 -0
- package/dist/typings.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,224 @@
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import "./index.less";
|
6
|
+
import PageContentWarp from "../../UI/PageContentWarp";
|
7
|
+
import { useRequest } from "@umijs/hooks";
|
8
|
+
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
9
|
+
import { Button, Space, Table, Tag } from "antd";
|
10
|
+
import VideoPublishTaskListQuery from "../../VideoPublish/task-list/query";
|
11
|
+
import Time from "../../UI/Time";
|
12
|
+
import Money from "../../UI/Money";
|
13
|
+
import ProductTypeDict from "../../Product/dict";
|
14
|
+
import Tool from "../../lib/Tool";
|
15
|
+
import VideoPublishTaskPlanList from "../../VideoPublish/task-list/plan/list";
|
16
|
+
import VideoPublishTaskPlanStatus from "../../VideoPublish/task-list/plan/status";
|
17
|
+
import VideoPublishTaskWhoCanView from "../../VideoPublish/task-list/who-can-view";
|
18
|
+
import Enabled from "../../UI/enabled";
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
20
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
21
|
+
var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
22
|
+
var disabled = _ref.disabled,
|
23
|
+
env = _ref.env;
|
24
|
+
var _useState = useState([]),
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
26
|
+
listData = _useState2[0],
|
27
|
+
setListData = _useState2[1];
|
28
|
+
var _useState3 = useState({
|
29
|
+
current: 1,
|
30
|
+
pageSize: 20,
|
31
|
+
total: 0,
|
32
|
+
simple: true,
|
33
|
+
showSizeChanger: false,
|
34
|
+
showQuickJumper: false
|
35
|
+
}),
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
37
|
+
pagination = _useState4[0],
|
38
|
+
setPagination = _useState4[1];
|
39
|
+
var _useState5 = useState({
|
40
|
+
startTime: 0,
|
41
|
+
// Date.now(),
|
42
|
+
endTime: 0,
|
43
|
+
//Date.now(),
|
44
|
+
timeFromKind: 'publishTime'
|
45
|
+
// taskStatus: '',
|
46
|
+
// keyword: '',
|
47
|
+
}),
|
48
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
49
|
+
query = _useState6[0],
|
50
|
+
setQuery = _useState6[1];
|
51
|
+
var columns = [{
|
52
|
+
title: '序号',
|
53
|
+
dataIndex: '-',
|
54
|
+
key: '-',
|
55
|
+
render: function render(_, _1) {
|
56
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
57
|
+
return index + 1;
|
58
|
+
}
|
59
|
+
}, {
|
60
|
+
title: '编号',
|
61
|
+
dataIndex: 'id',
|
62
|
+
key: 'id'
|
63
|
+
}, {
|
64
|
+
title: '视频来源',
|
65
|
+
dataIndex: 'videoFrom',
|
66
|
+
key: 'videoFrom',
|
67
|
+
render: function render(videoFrom, record) {
|
68
|
+
if (videoFrom === 'local') {
|
69
|
+
return /*#__PURE__*/_jsx(Tag, {
|
70
|
+
children: "\u672C\u5730\u7535\u8111"
|
71
|
+
});
|
72
|
+
}
|
73
|
+
return /*#__PURE__*/_jsx(ProductTypeDict, {
|
74
|
+
productType: (record === null || record === void 0 ? void 0 : record.taskFromProductType) || '任务'
|
75
|
+
});
|
76
|
+
}
|
77
|
+
}, {
|
78
|
+
title: '视频数量',
|
79
|
+
dataIndex: 'videoAmount',
|
80
|
+
key: 'videoAmount',
|
81
|
+
render: function render(videoAmount) {
|
82
|
+
return /*#__PURE__*/_jsx(Money, {
|
83
|
+
pre: "",
|
84
|
+
value: videoAmount,
|
85
|
+
end: "\u4E2A",
|
86
|
+
precision: 0
|
87
|
+
});
|
88
|
+
}
|
89
|
+
}, {
|
90
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
91
|
+
children: "\u72B6\u6001"
|
92
|
+
}),
|
93
|
+
dataIndex: 'planStatus',
|
94
|
+
key: 'planStatus',
|
95
|
+
render: function render(planStatus) {
|
96
|
+
return /*#__PURE__*/_jsx(VideoPublishTaskPlanStatus, {
|
97
|
+
status: planStatus
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}, {
|
101
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
102
|
+
children: "\u8C01\u80FD\u770B"
|
103
|
+
}),
|
104
|
+
dataIndex: 'whoCanView',
|
105
|
+
key: 'whoCanView',
|
106
|
+
render: function render(whoCanView) {
|
107
|
+
return /*#__PURE__*/_jsx(VideoPublishTaskWhoCanView, {
|
108
|
+
whoCanView: whoCanView
|
109
|
+
});
|
110
|
+
}
|
111
|
+
}, {
|
112
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
113
|
+
children: "\u80FD\u5426\u4E0B\u8F7D"
|
114
|
+
}),
|
115
|
+
dataIndex: 'downloadContent',
|
116
|
+
key: 'downloadContent',
|
117
|
+
render: function render(downloadContent) {
|
118
|
+
return /*#__PURE__*/_jsx(Enabled, {
|
119
|
+
enabled: downloadContent != '0',
|
120
|
+
enabledText: "\u5141\u8BB8\u4E0B\u8F7D",
|
121
|
+
disabledText: "\u7981\u6B62\u4E0B\u8F7D"
|
122
|
+
});
|
123
|
+
}
|
124
|
+
},
|
125
|
+
//
|
126
|
+
{
|
127
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
128
|
+
children: "\u5B9A\u65F6\u5C55\u793A\u65F6\u95F4"
|
129
|
+
}),
|
130
|
+
dataIndex: 'startTime',
|
131
|
+
key: 'startTime',
|
132
|
+
render: function render(startTime) {
|
133
|
+
return /*#__PURE__*/_jsx(Time, {
|
134
|
+
time: startTime
|
135
|
+
});
|
136
|
+
}
|
137
|
+
}, {
|
138
|
+
title: '创建时间',
|
139
|
+
dataIndex: 'created',
|
140
|
+
key: 'created',
|
141
|
+
render: function render(created) {
|
142
|
+
return /*#__PURE__*/_jsx(Time, {
|
143
|
+
time: created
|
144
|
+
});
|
145
|
+
}
|
146
|
+
}, {
|
147
|
+
title: '发布计划',
|
148
|
+
dataIndex: '——',
|
149
|
+
key: '——',
|
150
|
+
render: function render(_, record) {
|
151
|
+
return /*#__PURE__*/_jsx(Space, {
|
152
|
+
children: /*#__PURE__*/_jsx(Button, {
|
153
|
+
type: "link",
|
154
|
+
size: "small",
|
155
|
+
onClick: function onClick() {
|
156
|
+
return onTaskPlan((record === null || record === void 0 ? void 0 : record.id) || 0);
|
157
|
+
},
|
158
|
+
children: "\u67E5\u770B"
|
159
|
+
})
|
160
|
+
});
|
161
|
+
}
|
162
|
+
}];
|
163
|
+
var _onQuery = function onQuery(query) {
|
164
|
+
setQuery(_objectSpread({}, query));
|
165
|
+
runTaskList(query, 1);
|
166
|
+
};
|
167
|
+
var _useRequest = useRequest(function () {
|
168
|
+
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
169
|
+
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
170
|
+
return VideoPublishController.taskList(_objectSpread(_objectSpread({}, postQuery), {}, {
|
171
|
+
current: current,
|
172
|
+
pageSize: pagination.pageSize
|
173
|
+
}), {
|
174
|
+
env: env
|
175
|
+
});
|
176
|
+
}, {
|
177
|
+
onSuccess: function onSuccess(result) {
|
178
|
+
setListData(_toConsumableArray(result.list));
|
179
|
+
setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
|
180
|
+
}
|
181
|
+
}),
|
182
|
+
runTaskList = _useRequest.run,
|
183
|
+
loadingTaskList = _useRequest.loading,
|
184
|
+
errorTaskList = _useRequest.error;
|
185
|
+
var onTaskPlan = function onTaskPlan(publishTaskId) {
|
186
|
+
var dialog = Tool.drawer({
|
187
|
+
title: '发布任务计划',
|
188
|
+
content: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
|
189
|
+
env: env,
|
190
|
+
publishTaskId: publishTaskId,
|
191
|
+
timeFromKind: query.timeFromKind
|
192
|
+
}),
|
193
|
+
width: 1200
|
194
|
+
});
|
195
|
+
};
|
196
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
197
|
+
loading: loadingTaskList,
|
198
|
+
error: errorTaskList,
|
199
|
+
onReload: runTaskList,
|
200
|
+
title: "\u53D1\u5E03\u5217\u8868",
|
201
|
+
className: "videoPublishTaskList",
|
202
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishTaskListQuery, {
|
203
|
+
defaultQuery: query,
|
204
|
+
onQuery: function onQuery(query) {
|
205
|
+
return _onQuery(query);
|
206
|
+
}
|
207
|
+
}),
|
208
|
+
children: /*#__PURE__*/_jsx(Table, {
|
209
|
+
size: "small",
|
210
|
+
bordered: true,
|
211
|
+
rowKey: function rowKey(record) {
|
212
|
+
return "".concat(record.id);
|
213
|
+
},
|
214
|
+
loading: false,
|
215
|
+
columns: columns,
|
216
|
+
dataSource: listData,
|
217
|
+
pagination: pagination,
|
218
|
+
onChange: function onChange(page, filters, sorter, extra) {
|
219
|
+
runTaskList(query, page.current);
|
220
|
+
}
|
221
|
+
})
|
222
|
+
});
|
223
|
+
};
|
224
|
+
export default VideoPublishTaskList;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./list.less";
|
3
|
+
interface Props {
|
4
|
+
env?: Global.Env;
|
5
|
+
publishTaskId: number;
|
6
|
+
accountId?: number;
|
7
|
+
startTime?: number;
|
8
|
+
endTime?: number;
|
9
|
+
timeFromKind: VideoPublishStatisticPublish.TimeFromKind;
|
10
|
+
}
|
11
|
+
declare const VideoPublishTaskPlanList: React.FC<Props>;
|
12
|
+
export default VideoPublishTaskPlanList;
|
@@ -0,0 +1,290 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import "./list.less";
|
6
|
+
import { useRequest } from "@umijs/hooks";
|
7
|
+
import * as VideoPublishTaskPlanController from "../../../service/api/VideoPublishTaskPlanController";
|
8
|
+
import { Popover, Table, Tooltip } from "antd";
|
9
|
+
import Time from "../../../UI/Time";
|
10
|
+
import VideoPublishTaskPlanStatus from "../../../VideoPublish/task-list/plan/status";
|
11
|
+
import { FileTextOutlined, QuestionCircleOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
12
|
+
import VideoKindTag from "../../../component/videoKindTag";
|
13
|
+
import { onMediaShowView } from "../../../component/media-show";
|
14
|
+
import VideoPublishVideoAccountBaseInfo from "../../../VideoPublish/video-account/base-info";
|
15
|
+
import VideoPublishTaskPlanOperate from "../../../VideoPublish/task-list/plan/operate";
|
16
|
+
import LayoutContent from "../../../UI/LayoutContent";
|
17
|
+
import VideoPublishTaskPlanListQuery from "../../../VideoPublish/task-list/plan/query";
|
18
|
+
import dayjs from "dayjs";
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
20
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
21
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
22
|
+
var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
23
|
+
var env = _ref.env,
|
24
|
+
_ref$publishTaskId = _ref.publishTaskId,
|
25
|
+
publishTaskId = _ref$publishTaskId === void 0 ? 0 : _ref$publishTaskId,
|
26
|
+
_ref$accountId = _ref.accountId,
|
27
|
+
accountId = _ref$accountId === void 0 ? 0 : _ref$accountId,
|
28
|
+
_ref$startTime = _ref.startTime,
|
29
|
+
startTime = _ref$startTime === void 0 ? 0 : _ref$startTime,
|
30
|
+
_ref$endTime = _ref.endTime,
|
31
|
+
endTime = _ref$endTime === void 0 ? 0 : _ref$endTime,
|
32
|
+
timeFromKind = _ref.timeFromKind;
|
33
|
+
var _useState = useState([]),
|
34
|
+
_useState2 = _slicedToArray(_useState, 2),
|
35
|
+
listData = _useState2[0],
|
36
|
+
setListData = _useState2[1];
|
37
|
+
var _useState3 = useState({
|
38
|
+
current: 1,
|
39
|
+
pageSize: 20,
|
40
|
+
total: 0,
|
41
|
+
simple: true,
|
42
|
+
showSizeChanger: false,
|
43
|
+
showQuickJumper: false
|
44
|
+
}),
|
45
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
46
|
+
pagination = _useState4[0],
|
47
|
+
setPagination = _useState4[1];
|
48
|
+
var _useState5 = useState({
|
49
|
+
isBan: '',
|
50
|
+
status: '',
|
51
|
+
startTime: startTime,
|
52
|
+
// Date.now(),
|
53
|
+
endTime: endTime //Date.now(),
|
54
|
+
// taskStatus: '',
|
55
|
+
// keyword: '',
|
56
|
+
}),
|
57
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
58
|
+
query = _useState6[0],
|
59
|
+
setQuery = _useState6[1];
|
60
|
+
var columns = [{
|
61
|
+
title: '序号',
|
62
|
+
dataIndex: '-',
|
63
|
+
key: '-',
|
64
|
+
render: function render(_, _1) {
|
65
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
66
|
+
return index + 1;
|
67
|
+
}
|
68
|
+
}, {
|
69
|
+
title: '编号',
|
70
|
+
dataIndex: 'id',
|
71
|
+
key: 'id'
|
72
|
+
}, {
|
73
|
+
title: '发布账号',
|
74
|
+
dataIndex: 'platform',
|
75
|
+
key: 'platform',
|
76
|
+
render: function render(platform, record) {
|
77
|
+
return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
|
78
|
+
accountInfo: record === null || record === void 0 ? void 0 : record.accountInfo
|
79
|
+
});
|
80
|
+
}
|
81
|
+
}, {
|
82
|
+
title: '来源任务',
|
83
|
+
dataIndex: 'productTaskId',
|
84
|
+
key: 'productTaskId'
|
85
|
+
}, {
|
86
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
87
|
+
children: "\u72B6\u6001"
|
88
|
+
}),
|
89
|
+
dataIndex: 'status',
|
90
|
+
key: 'status',
|
91
|
+
render: function render(status, record) {
|
92
|
+
return /*#__PURE__*/_jsxs("div", {
|
93
|
+
children: [/*#__PURE__*/_jsx(VideoPublishTaskPlanStatus, {
|
94
|
+
status: status
|
95
|
+
}), (record === null || record === void 0 ? void 0 : record.taskMessage) && /*#__PURE__*/_jsx(Tooltip, {
|
96
|
+
title: record === null || record === void 0 ? void 0 : record.taskMessage,
|
97
|
+
children: /*#__PURE__*/_jsx("a", {
|
98
|
+
className: "high",
|
99
|
+
children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {})
|
100
|
+
})
|
101
|
+
})]
|
102
|
+
});
|
103
|
+
}
|
104
|
+
}, {
|
105
|
+
title: '标题',
|
106
|
+
dataIndex: 'title',
|
107
|
+
key: 'title',
|
108
|
+
render: function render(title, record) {
|
109
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
110
|
+
return title && /*#__PURE__*/_jsx(Popover, {
|
111
|
+
title: "\u6807\u9898",
|
112
|
+
content: title,
|
113
|
+
children: /*#__PURE__*/_jsx("a", {
|
114
|
+
children: /*#__PURE__*/_jsx(FileTextOutlined, {})
|
115
|
+
})
|
116
|
+
});
|
117
|
+
}
|
118
|
+
}, {
|
119
|
+
title: '简介',
|
120
|
+
dataIndex: 'introduction',
|
121
|
+
key: 'introduction',
|
122
|
+
render: function render(introduction, record) {
|
123
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
124
|
+
return introduction && /*#__PURE__*/_jsx(Popover, {
|
125
|
+
title: "\u7B80\u4ECB",
|
126
|
+
content: introduction,
|
127
|
+
children: /*#__PURE__*/_jsx("a", {
|
128
|
+
children: /*#__PURE__*/_jsx(FileTextOutlined, {})
|
129
|
+
})
|
130
|
+
});
|
131
|
+
}
|
132
|
+
}, {
|
133
|
+
title: '类型标签',
|
134
|
+
dataIndex: 'videoKindTag',
|
135
|
+
key: 'videoKindTag',
|
136
|
+
render: function render(videoKindTag, record) {
|
137
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
138
|
+
return /*#__PURE__*/_jsx(VideoKindTag, {
|
139
|
+
videoKindTag: videoKindTag
|
140
|
+
});
|
141
|
+
}
|
142
|
+
}, {
|
143
|
+
title: '标签',
|
144
|
+
dataIndex: 'kindTagValue',
|
145
|
+
key: 'kindTagValue',
|
146
|
+
render: function render(kindTagValue, record) {
|
147
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
148
|
+
return kindTagValue && /*#__PURE__*/_jsx(Popover, {
|
149
|
+
title: "\u5E26\u8D27/\u5C0F\u7A0B\u5E8F/\u5B9A\u4F4D",
|
150
|
+
content: kindTagValue,
|
151
|
+
children: /*#__PURE__*/_jsx("a", {
|
152
|
+
children: /*#__PURE__*/_jsx(FileTextOutlined, {})
|
153
|
+
})
|
154
|
+
});
|
155
|
+
}
|
156
|
+
}, {
|
157
|
+
title: '品标',
|
158
|
+
dataIndex: 'goodsTitle',
|
159
|
+
key: 'goodsTitle',
|
160
|
+
render: function render(goodsTitle, record) {
|
161
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
162
|
+
return goodsTitle && /*#__PURE__*/_jsx(Popover, {
|
163
|
+
title: "\u5546\u54C1\u6807\u9898",
|
164
|
+
content: goodsTitle,
|
165
|
+
children: /*#__PURE__*/_jsx("a", {
|
166
|
+
children: /*#__PURE__*/_jsx(FileTextOutlined, {})
|
167
|
+
})
|
168
|
+
});
|
169
|
+
}
|
170
|
+
}, {
|
171
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
172
|
+
children: "\u89C6\u9891"
|
173
|
+
}),
|
174
|
+
dataIndex: 'videoUrl',
|
175
|
+
key: 'videoUrl',
|
176
|
+
render: function render(videoUrl) {
|
177
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
178
|
+
title: videoUrl,
|
179
|
+
children: /*#__PURE__*/_jsx("a", {
|
180
|
+
onClick: function onClick() {
|
181
|
+
return onMediaShowView('', videoUrl, 'video');
|
182
|
+
},
|
183
|
+
children: /*#__PURE__*/_jsx(VideoCameraOutlined, {})
|
184
|
+
})
|
185
|
+
});
|
186
|
+
}
|
187
|
+
}, {
|
188
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
189
|
+
children: "\u5B9A\u65F6"
|
190
|
+
}),
|
191
|
+
dataIndex: 'publishTime',
|
192
|
+
key: 'publishTime',
|
193
|
+
render: function render(publishTime) {
|
194
|
+
return /*#__PURE__*/_jsx(Time, {
|
195
|
+
time: publishTime
|
196
|
+
});
|
197
|
+
}
|
198
|
+
}, {
|
199
|
+
title: /*#__PURE__*/_jsx(_Fragment, {
|
200
|
+
children: "\u521B\u5EFA"
|
201
|
+
}),
|
202
|
+
dataIndex: 'created',
|
203
|
+
key: 'created',
|
204
|
+
render: function render(created) {
|
205
|
+
return /*#__PURE__*/_jsx(Time, {
|
206
|
+
time: created
|
207
|
+
});
|
208
|
+
}
|
209
|
+
}, {
|
210
|
+
title: '操作',
|
211
|
+
dataIndex: '——',
|
212
|
+
key: '——',
|
213
|
+
render: function render(_, record) {
|
214
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
215
|
+
// const status = record?.status || '';
|
216
|
+
if (!record) {
|
217
|
+
return record;
|
218
|
+
}
|
219
|
+
return /*#__PURE__*/_jsx(VideoPublishTaskPlanOperate, {
|
220
|
+
itemData: record,
|
221
|
+
env: env,
|
222
|
+
onStatusChange: function onStatusChange(status) {
|
223
|
+
console.log('onStatusChange 1');
|
224
|
+
// runTaskList();
|
225
|
+
listData[index].status = status;
|
226
|
+
setListData(_toConsumableArray(listData));
|
227
|
+
}
|
228
|
+
});
|
229
|
+
}
|
230
|
+
}];
|
231
|
+
var _onQuery = function onQuery(query) {
|
232
|
+
setQuery(_objectSpread({}, query));
|
233
|
+
runTaskList(query, 1);
|
234
|
+
};
|
235
|
+
var _useRequest = useRequest(function () {
|
236
|
+
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
237
|
+
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
238
|
+
return VideoPublishTaskPlanController.list(_objectSpread(_objectSpread({
|
239
|
+
publishTaskId: publishTaskId,
|
240
|
+
accountId: accountId
|
241
|
+
}, postQuery), {}, {
|
242
|
+
startTime: postQuery.startTime > 10000 ? Math.floor(dayjs(postQuery.startTime).startOf('date').valueOf() * 0.001) || 0 : 0,
|
243
|
+
endTime: postQuery.endTime > 10000 ? Math.floor(dayjs(postQuery.endTime).endOf('date').valueOf() * 0.001) || 0 : 0,
|
244
|
+
timeFromKind: timeFromKind,
|
245
|
+
current: current,
|
246
|
+
pageSize: pagination.pageSize
|
247
|
+
}), {
|
248
|
+
env: env
|
249
|
+
});
|
250
|
+
}, {
|
251
|
+
onSuccess: function onSuccess(result) {
|
252
|
+
setListData(_toConsumableArray(result.list));
|
253
|
+
setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
|
254
|
+
}
|
255
|
+
}),
|
256
|
+
runTaskList = _useRequest.run,
|
257
|
+
loadingTaskList = _useRequest.loading,
|
258
|
+
errorTaskList = _useRequest.error;
|
259
|
+
return /*#__PURE__*/_jsx(LayoutContent, {
|
260
|
+
loading: loadingTaskList,
|
261
|
+
error: errorTaskList,
|
262
|
+
onReload: runTaskList,
|
263
|
+
title: "\u4EFB\u52A1\u8BA1\u5212",
|
264
|
+
className: "videoPublishTaskPlanList",
|
265
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishTaskPlanListQuery, {
|
266
|
+
defaultQuery: query,
|
267
|
+
onQuery: function onQuery(query) {
|
268
|
+
return _onQuery(query);
|
269
|
+
}
|
270
|
+
}),
|
271
|
+
children: /*#__PURE__*/_jsx(Table, {
|
272
|
+
size: "small",
|
273
|
+
bordered: true,
|
274
|
+
rowKey: function rowKey(record) {
|
275
|
+
return "".concat(record.id, "-").concat(record.status);
|
276
|
+
},
|
277
|
+
rowClassName: function rowClassName(record) {
|
278
|
+
return "row-".concat(record.status);
|
279
|
+
},
|
280
|
+
loading: false,
|
281
|
+
columns: columns,
|
282
|
+
dataSource: listData,
|
283
|
+
pagination: pagination,
|
284
|
+
onChange: function onChange(page, filters, sorter, extra) {
|
285
|
+
runTaskList(query, page.current);
|
286
|
+
}
|
287
|
+
})
|
288
|
+
});
|
289
|
+
};
|
290
|
+
export default VideoPublishTaskPlanList;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
.videoPublishTaskPlanList{
|
2
|
+
display: flex;
|
3
|
+
flex-direction: column;
|
4
|
+
height: 100%;
|
5
|
+
.ant-pagination-options{
|
6
|
+
display: none;
|
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
|
+
}
|
81
|
+
|
82
|
+
.row-repeal{
|
83
|
+
//opacity: 0.5;
|
84
|
+
-webkit-filter: grayscale(100%);
|
85
|
+
filter: grayscale(100%);
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
interface Props {
|
3
|
+
env?: Global.Env;
|
4
|
+
itemData: VideoPublishTaskPlan.List;
|
5
|
+
onStatusChange: (status: VideoPublishTaskPlan.PlanStatus) => void;
|
6
|
+
}
|
7
|
+
declare const VideoPublishTaskPlanOperate: React.FC<Props>;
|
8
|
+
export default VideoPublishTaskPlanOperate;
|