component-shipinlv 2.1.0 → 2.1.2

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.
@@ -87,8 +87,8 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
87
87
  manual: !userInfo.isLogin,
88
88
  onSuccess: function onSuccess(result) {
89
89
  listDataRef.current = result.list;
90
- setListData(result.list);
91
- onListData(result.list);
90
+ setListData(_toConsumableArray(result.list));
91
+ onListData(_toConsumableArray(result.list));
92
92
  }
93
93
  }),
94
94
  loading = _useRequest.loading,
@@ -1,5 +1,6 @@
1
1
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
6
  import React, { useState } from 'react';
@@ -176,7 +177,7 @@ var VideoPublishVideoAccountProxy = function VideoPublishVideoAccountProxy(_ref)
176
177
  });
177
178
  }, {
178
179
  onSuccess: function onSuccess(result) {
179
- setListData(result.list);
180
+ setListData(_toConsumableArray(result.list));
180
181
  }
181
182
  }),
182
183
  loading = _useRequest.loading,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  import React, { useState } from 'react';
3
4
  import { Button, Form, Select, Tag } from 'antd';
@@ -30,7 +31,7 @@ var VideoPublishVideoAccountProxySelect = function VideoPublishVideoAccountProxy
30
31
  });
31
32
  }, {
32
33
  onSuccess: function onSuccess(result) {
33
- setListData(result.list);
34
+ setListData(_toConsumableArray(result.list));
34
35
  form.setFieldsValue({
35
36
  id: videoAccountProxyId
36
37
  });
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -160,8 +161,8 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
160
161
  });
161
162
  }, {
162
163
  onSuccess: function onSuccess(result) {
163
- setListData(result.list);
164
- setPagination(result.pagination);
164
+ setListData(_toConsumableArray(result.list));
165
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
165
166
  }
166
167
  }),
167
168
  runTaskList = _useRequest.run,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -239,8 +240,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
239
240
  });
240
241
  }, {
241
242
  onSuccess: function onSuccess(result) {
242
- setListData(result.list);
243
- setPagination(result.pagination);
243
+ setListData(_toConsumableArray(result.list));
244
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
244
245
  }
245
246
  }),
246
247
  runTaskList = _useRequest.run,
@@ -1,10 +1,10 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import React, { useState } from 'react';
4
- import { Button, Form, Space } from "antd";
4
+ import { Button, Form, Input, Space } from "antd";
5
5
  import "./query.less";
6
- import dayjs from "dayjs";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref) {
9
9
  var defaultQuery = _ref.defaultQuery,
10
10
  _ref$onQuery = _ref.onQuery,
@@ -16,12 +16,6 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
16
16
  _useState2 = _slicedToArray(_useState, 2),
17
17
  query = _useState2[0],
18
18
  setQuery = _useState2[1];
19
- var todayEnd = dayjs(dayjs(Date.now()).format('YYYY-MM-DD 23:59:59')).valueOf();
20
- var onTime = function onTime(startTime, endTime) {
21
- query.startTime = startTime;
22
- query.endTime = endTime;
23
- setQuery(_objectSpread({}, query));
24
- };
25
19
  var onFinish = function onFinish() {
26
20
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
27
21
  onQuery(_objectSpread(_objectSpread({}, query), values));
@@ -32,12 +26,22 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
32
26
  form: form,
33
27
  initialValues: _objectSpread({}, query),
34
28
  onFinish: onFinish,
35
- children: /*#__PURE__*/_jsx(Space, {
36
- children: /*#__PURE__*/_jsx(Button, {
29
+ children: /*#__PURE__*/_jsxs(Space, {
30
+ children: [/*#__PURE__*/_jsx(Form.Item, {
31
+ name: "keyword",
32
+ children: /*#__PURE__*/_jsx(Input
33
+ // value={ query.keyword }
34
+ , {
35
+ placeholder: "\u641C\u7D22\u8D26\u6237\u540D",
36
+ allowClear: true
37
+ // onChange={ e => onKeyWord( e.target.value ) }
38
+ // onPressEnter={ ( e ) => onSearch( e.target ) }
39
+ })
40
+ }), /*#__PURE__*/_jsx(Button, {
37
41
  type: "primary",
38
42
  htmlType: "submit",
39
43
  children: "\u641C\u7D22"
40
- })
44
+ })]
41
45
  })
42
46
  })
43
47
  });
@@ -29,7 +29,7 @@ export var VideoPublishTaskPlanStatusList = [{
29
29
  status: 'repeal',
30
30
  icon: /*#__PURE__*/_jsx(StopOutlined, {}),
31
31
  title: '已废除',
32
- color: ''
32
+ color: '#F60'
33
33
  }];
34
34
  var VideoPublishTaskPlanStatusDict = function () {
35
35
  var dict = {};
@@ -221,8 +221,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
221
221
  });
222
222
  }, {
223
223
  onSuccess: function onSuccess(result) {
224
- setListData(result.list);
225
- setPagination(result.pagination);
224
+ setListData(_toConsumableArray(result.list));
225
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
226
226
  }
227
227
  }),
228
228
  runVideoAccount = _useRequest.run,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -166,7 +167,7 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
166
167
  });
167
168
  }, {
168
169
  onSuccess: function onSuccess(result) {
169
- setListData(result.list);
170
+ setListData(_toConsumableArray(result.list));
170
171
  // setPagination( result.pagination );
171
172
  }
172
173
  }),
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -185,8 +186,8 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
185
186
  });
186
187
  }, {
187
188
  onSuccess: function onSuccess(result) {
188
- setListData(result.list);
189
- setPagination(result.pagination);
189
+ setListData(_toConsumableArray(result.list));
190
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
190
191
  amountInfo.finish = 0;
191
192
  amountInfo.fail = 0;
192
193
  amountInfo.progress = 0;
@@ -232,6 +233,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
232
233
  title: "\u53D1\u5E03\u7EDF\u8BA1",
233
234
  className: "video-publish-statistic-list",
234
235
  extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticPublishListQuery, {
236
+ loading: loadingTaskList,
235
237
  defaultQuery: query,
236
238
  onQuery: function onQuery(query) {
237
239
  return _onQuery(query);
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './query.less';
3
3
  interface Props {
4
+ loading: boolean;
4
5
  defaultQuery: VideoPublishStatisticPublish.ListQuery;
5
6
  onQuery: (query: VideoPublishStatisticPublish.ListQuery) => void;
6
7
  }
@@ -8,7 +8,8 @@ import { ClockCircleOutlined, ExclamationCircleOutlined, SendOutlined } from "@a
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublishListQuery(_ref) {
11
- var defaultQuery = _ref.defaultQuery,
11
+ var loading = _ref.loading,
12
+ defaultQuery = _ref.defaultQuery,
12
13
  _ref$onQuery = _ref.onQuery,
13
14
  onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
14
15
  var _Form$useForm = Form.useForm(),
@@ -33,6 +34,7 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
33
34
  children: /*#__PURE__*/_jsx(Form, {
34
35
  form: form,
35
36
  initialValues: _objectSpread({}, query),
37
+ disabled: loading,
36
38
  onFinish: onFinish,
37
39
  children: /*#__PURE__*/_jsxs(Space, {
38
40
  children: [/*#__PURE__*/_jsx(Form.Item, {
@@ -67,6 +69,7 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
67
69
  }), /*#__PURE__*/_jsx(Button, {
68
70
  type: "primary",
69
71
  htmlType: "submit",
72
+ loading: loading,
70
73
  children: "\u641C\u7D22"
71
74
  })]
72
75
  })
@@ -1,7 +1,7 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
1
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
6
  import React, { useState } from "react";
7
7
  import "./index.less";
@@ -37,7 +37,7 @@ var VideoPublishTaskVideoTopic = function VideoPublishTaskVideoTopic(_ref) {
37
37
  });
38
38
  }, {
39
39
  onSuccess: function onSuccess(result) {
40
- setListData(result);
40
+ setListData(_toConsumableArray(result));
41
41
  }
42
42
  }),
43
43
  run = _useRequest.run,
@@ -1,6 +1,6 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
2
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import React, { useEffect, useState } from 'react';
6
6
  import { Table, Popover, Tag } from 'antd';
@@ -168,7 +168,7 @@ var VipCompare = function VipCompare(_ref) {
168
168
  manual: !isInClient(),
169
169
  onSuccess: function onSuccess(result) {
170
170
  // @ts-ignore
171
- setListData(result.list || result);
171
+ setListData(_toConsumableArray(result.list || result));
172
172
  }
173
173
  }),
174
174
  loading = _useRequest2.loading,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  import React, { useState } from "react";
3
4
  import "./index.less";
@@ -27,7 +28,7 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
27
28
  });
28
29
  }, {
29
30
  onSuccess: function onSuccess(result) {
30
- setListData(result);
31
+ setListData(_toConsumableArray(result));
31
32
  }
32
33
  }),
33
34
  run = _useRequest.run,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",