@zgfe/modules-settings 1.2.51-zhongyuan.5 → 1.2.51-zhongyuan.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.
@@ -14,12 +14,14 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
16
  import React, { useEffect, useState } from 'react';
17
- import { Tabs, Empty, Button, Modal, Space, Table, Input, message, Form, Spin } from 'antd';
17
+ import { Tabs, Button, Modal, Space, Table, Input, message, Form, Spin } from 'antd';
18
18
  import { SettingOutlined, SearchOutlined } from '@ant-design/icons';
19
19
  import apis from '../../constants/api';
20
20
  import request from '../../utils/ajax';
21
21
  import DictionaryType from './DictionaryType';
22
22
  import moment from 'moment';
23
+ var emptyData = require('./img/empty-data.png');
24
+ console.log(emptyData, 'emptyData');
23
25
  var pageName = 'DictionaryPage';
24
26
  var Dictionary = function Dictionary() {
25
27
  var _useState = useState(false),
@@ -47,8 +49,8 @@ var Dictionary = function Dictionary() {
47
49
  getList();
48
50
  };
49
51
  useEffect(function () {
50
- setLoadingStatus(true);
51
- getList();
52
+ // setLoadingStatus(true);
53
+ // getList();
52
54
  }, []);
53
55
  var getList = function getList() {
54
56
  request(apis.setting.getDictionaryList, {
@@ -280,17 +282,13 @@ var Dictionary = function Dictionary() {
280
282
  style: {
281
283
  padding: '16px'
282
284
  }
283
- }, dictionaryList.length < 1 && !loadingStatus && (/*#__PURE__*/React.createElement(Empty, {
284
- image: "./img/empty-data.png",
285
- imageStyle: {
286
- height: 120
287
- },
288
- description: /*#__PURE__*/React.createElement("span", {
289
- style: {
290
- color: '#999'
291
- }
292
- }, "\u8BF7\u5148\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B")
293
- }, /*#__PURE__*/React.createElement(Button, {
285
+ }, dictionaryList.length < 1 && !loadingStatus && (/*#__PURE__*/React.createElement("div", {
286
+ className: "".concat(pageName, "-emptyDom")
287
+ }, /*#__PURE__*/React.createElement("img", {
288
+ src: emptyData
289
+ }), /*#__PURE__*/React.createElement("p", {
290
+ className: "".concat(pageName, "-emptyDom-tip")
291
+ }, "\u8BF7\u5148\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B"), /*#__PURE__*/React.createElement(Button, {
294
292
  type: "primary",
295
293
  onClick: function onClick() {
296
294
  return setIsTypeModalOpen(true);
@@ -75,19 +75,8 @@
75
75
  border-bottom: 1px solid #f2f3f4;
76
76
  }
77
77
  .DictionaryPage-modal-content-itemLeft {
78
- position: relative;
79
78
  display: inline-block;
80
79
  flex: 1;
81
- height: 100%;
82
- }
83
- .DictionaryPage-modal-content-itemLeft .error-tip {
84
- position: absolute;
85
- bottom: -28px;
86
- left: 3px;
87
- width: 100%;
88
- color: red;
89
- font-size: 14px;
90
- letter-spacing: 1px;
91
80
  }
92
81
  .DictionaryPage-modal-content-itemRight {
93
82
  display: inline-block;
@@ -113,14 +102,3 @@
113
102
  justify-content: space-between;
114
103
  margin: 16px 0px;
115
104
  }
116
- .DocumentSetting-header {
117
- height: 48px;
118
- line-height: 48px;
119
- border-bottom: 1px solid #e8efff;
120
- }
121
- .DocumentSetting-search {
122
- display: flex;
123
- align-items: center;
124
- justify-content: space-between;
125
- margin: 16px 0px 16px;
126
- }
@@ -16,6 +16,19 @@
16
16
  }
17
17
  }
18
18
  .DictionaryPage {
19
+ &-emptyDom {
20
+ margin: 50px 0px 0px;
21
+ text-align: center;
22
+ img {
23
+ display: block;
24
+ width: 248px;
25
+ margin: auto;
26
+ }
27
+ &-tip {
28
+ margin: 0px 0px 10px;
29
+ color: #999;
30
+ }
31
+ }
19
32
  .ant-tabs-nav {
20
33
  padding-right: 10%;
21
34
  }
@@ -62,6 +75,9 @@
62
75
  vertical-align: middle;
63
76
  }
64
77
  }
78
+ .ant-input-affix-wrapper {
79
+ vertical-align: middle;
80
+ }
65
81
  .DictionaryPage-modal-content {
66
82
  padding: 10px 16px 0px;
67
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "1.2.51-zhongyuan.5",
3
+ "version": "1.2.51-zhongyuan.8",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",