component-shipinlv 1.3.12 → 2.0.1

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.
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import React, { useState } from "react";
6
6
  import "./index.less";
7
7
  import { Divider, Tag, Form, Tooltip, InputNumber, Select, Radio, DatePicker, ConfigProvider, Switch } from "antd";
8
- import { RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
8
+ import { QuestionCircleOutlined, RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
9
9
  import PageContentWarp from "../../../UI/PageContentWarp";
10
10
  import { TreeSelect } from 'antd';
11
11
  import Tool from "../../../lib/Tool";
@@ -169,6 +169,29 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
169
169
  children: /*#__PURE__*/_jsx(RedoOutlined, {})
170
170
  })
171
171
  })]
172
+ }), /*#__PURE__*/_jsx(Form.Item, {
173
+ label: "\u53D1\u5E03\u987A\u5E8F",
174
+ name: "publishOrder",
175
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
176
+ disabled: true,
177
+ children: [/*#__PURE__*/_jsxs(Radio, {
178
+ value: "",
179
+ children: ["\u6309\u4EFB\u52A1\u63D0\u4EA4\u987A\u5E8F", /*#__PURE__*/_jsxs(Tooltip, {
180
+ title: "\u6839\u636E\u63D0\u4EA4\u53D1\u5E03\u4EFB\u52A1\u7684\u987A\u5E8F\u53D1\uFF08\u65E2\uFF1A\u5148\u63D0\u4EA4\u7684\u5148\u53D1\u5E03\uFF0C \u540E\u63D0\u4EA4\u7684\u540E\u53D1\u5E03\uFF09",
181
+ children: [" ", /*#__PURE__*/_jsxs("a", {
182
+ children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
183
+ })]
184
+ })]
185
+ }), /*#__PURE__*/_jsxs(Radio, {
186
+ value: "loop-account",
187
+ children: ["\u6309\u8D26\u6237\u5FAA\u73AF", /*#__PURE__*/_jsxs(Tooltip, {
188
+ title: "\u7B2C\u4E00\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\u89C6\u9891\uFF0C\u63A5\u7740\u7B2C\u4E8C\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\uFF0C\u4E00\u76F4\u5FAA\u73AF\uFF08\u65E2\uFF1A\u6BCF\u4E2A\u8D26\u6237\u8F6E\u6D41\u5148\u53D1\u4E00\u4E2A\uFF0C\u6700\u5927\u9650\u5236\u4FDD\u8BC1\u6BCF\u4E2A\u8D26\u6237\u81F3\u5C11\u90FD\u6709\u89C6\u9891\uFF09",
189
+ children: [" ", /*#__PURE__*/_jsxs("a", {
190
+ children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
191
+ })]
192
+ })]
193
+ })]
194
+ })
172
195
  }), /*#__PURE__*/_jsxs(Divider, {
173
196
  orientation: "left",
174
197
  children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
@@ -33,8 +33,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
33
33
  normalDayMaxCount: 1,
34
34
  normalVideoKindRateType: '',
35
35
  whoCanView: '0',
36
- noTopicIsUserRecommendTopic: false,
36
+ noTopicIsUserRecommendTopic: true,
37
37
  startTime: null,
38
+ publishOrder: '',
38
39
  salesVideoRate: 2,
39
40
  salesVideoRateType: 'hour',
40
41
  salesDayMaxCount: 2,
@@ -205,7 +206,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
205
206
  span: formLabelSpan
206
207
  },
207
208
  initialValues: _objectSpread(_objectSpread({}, formData), {}, {
208
- startTime: typeof formData.startTime === 'number' ? dayjs(formData.startTime) : null
209
+ startTime: typeof formData.startTime === 'number' && formData.startTime > 946684800 ? dayjs(formData.startTime) : null
209
210
  }),
210
211
  disabled: disabled || loadingTask,
211
212
  scrollToFirstError: true,
@@ -105,7 +105,7 @@ var VideoPublish = function VideoPublish(_ref) {
105
105
  children: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
106
106
  env: env,
107
107
  publishTaskId: 0,
108
- timeFromKind: "publishTime"
108
+ timeFromKind: "updated"
109
109
  })
110
110
  }, {
111
111
  key: 'statistic',
@@ -14,7 +14,7 @@ var VideoPublishStatisticPublish = function VideoPublishStatisticPublish(_ref) {
14
14
  label: '发布任务',
15
15
  children: /*#__PURE__*/_jsx(VideoPublishStatisticPublishList, {
16
16
  env: getApiEnv(),
17
- timeFromKind: "publishTime"
17
+ timeFromKind: "updated"
18
18
  })
19
19
  }, {
20
20
  key: 'operation',
@@ -18,7 +18,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
18
18
  var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList(_ref) {
19
19
  var env = _ref.env,
20
20
  _ref$timeFromKind = _ref.timeFromKind,
21
- timeFromKind = _ref$timeFromKind === void 0 ? 'publishTime' : _ref$timeFromKind;
21
+ timeFromKind = _ref$timeFromKind === void 0 ? 'updated' : _ref$timeFromKind;
22
22
  var _useState = useState([]),
23
23
  _useState2 = _slicedToArray(_useState, 2),
24
24
  listData = _useState2[0],
@@ -220,7 +220,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
220
220
  accountId: accountId,
221
221
  startTime: query.startTime,
222
222
  endTime: query.endTime,
223
- timeFromKind: timeFromKind
223
+ timeFromKind: query.timeFromKind
224
224
  }),
225
225
  width: 1200
226
226
  });
@@ -5,6 +5,7 @@ import React, { useEffect, useState } from "react";
5
5
  import "./render.less";
6
6
  import Tool from "../../lib/Tool";
7
7
  import getVideoUrl from "../../lib/component/getVideoUrl";
8
+ import { LoadingOutlined } from "@ant-design/icons";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -105,7 +106,7 @@ export var MediaShowRender = function MediaShowRender(_ref) {
105
106
  })
106
107
  })
107
108
  })]
108
- }) : '...'
109
+ }) : /*#__PURE__*/_jsx(LoadingOutlined, {})
109
110
  });
110
111
  };
111
112
  export default MediaShowRender;
package/dist/global.less CHANGED
@@ -9,6 +9,16 @@
9
9
 
10
10
  }
11
11
 
12
+ //windows 下回有 bug
13
+ .ant-tree-select-dropdown{
14
+ .ant-select-tree{
15
+ .ant-select-tree-treenode{
16
+ padding-bottom: 4px !important;
17
+ margin-bottom: 0 !important;
18
+ }
19
+ }
20
+ }
21
+
12
22
  a{
13
23
  &.high{
14
24
  color: #C00;
@@ -6,6 +6,7 @@ declare namespace VideoPublish {
6
6
  type VideoFrom = 'local' | 'task';
7
7
  type VideoRateType = 'hour' | 'day';
8
8
  type WhoCanView = '0' | '1' | '2';
9
+ type PublishOrder = '' | 'loop-account';
9
10
  interface CreateTaskList {
10
11
  id: number;
11
12
  title: string;
@@ -127,6 +128,7 @@ declare namespace VideoPublish {
127
128
  whoCanView: WhoCanView;
128
129
  noTopicIsUserRecommendTopic: boolean;
129
130
  startTime: number | null;
131
+ publishOrder: PublishOrder;
130
132
  hourEnabled: number[];
131
133
  }
132
134
  interface TaskListQuery {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.3.12",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",