venus-design 0.1.5 → 0.1.6
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/BISpin/index.d.ts +1 -1
- package/dist/BISpin/index.js +1 -1
- package/dist/DataView/index.d.ts +1 -1
- package/dist/DataView/index.js +1 -1
- package/dist/DataView/resizable/index.js +3 -12
- package/dist/Descriptions/index.d.ts +1 -1
- package/dist/Descriptions/index.js +1 -1
- package/dist/NumberPercent/index.d.ts +1 -1
- package/dist/NumberPercent/index.js +1 -1
- package/dist/NumberUnits/index.d.ts +1 -1
- package/dist/NumberUnits/index.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/chooseBox.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/chooseBox.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/panel.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/panel.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/expression.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/expression.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/org.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/org.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/role.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/role.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/user.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/user.js +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/searchBox.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserBySecLevelId/searchBox.js +1 -1
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/model/index.d.ts +1 -0
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/model/index.js +3 -3
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/dept.d.ts +1 -0
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/dept.js +8 -8
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/role.d.ts +1 -0
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/role.js +8 -9
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/user.d.ts +1 -1
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/user.js +17 -18
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/{styles.module.less → styles.less} +27 -27
- package/dist/VenusAdjust/index.js +8 -8
- package/dist/VenusDetail/index.js +1 -1
- package/dist/VenusDetail/style.less +1 -1
- package/dist/VenusEditTable/handleVenusEditTableFormFunctions.js +23 -23
- package/dist/VenusEditTable/handleVenusFormFunctions.js +38 -38
- package/dist/VenusEditTable/index.d.ts +1 -1
- package/dist/VenusEditTable/index.js +66 -68
- package/dist/VenusEditTable/staticAttr.js +18 -18
- package/dist/VenusEditTable/{style.module.less → style.less} +54 -54
- package/dist/VenusEditTable/tableStaticAttr.js +6 -6
- package/dist/VenusEditTable/utils.js +2 -2
- package/dist/VenusForm/index.d.ts +1 -0
- package/dist/VenusForm/index.js +12 -13
- package/dist/VenusForm/{style.module.less → style.less} +3 -3
- package/package.json +122 -122
- package/dist/Upload/styles.module.less +0 -45
- package/dist/VenusAdjustBatch/style.less +0 -0
- /package/dist/BISpin/{index.module.less → index.less} +0 -0
- /package/dist/DataView/{styles.module.less → styles.less} +0 -0
- /package/dist/Descriptions/{styles.module.less → styles.less} +0 -0
- /package/dist/NumberPercent/{styles.module.less → styles.less} +0 -0
- /package/dist/NumberUnits/{styles.module.less → styles.less} +0 -0
- /package/dist/SelectCompoments/SelectUserBySecLevelId/{styles.module.less → styles.less} +0 -0
package/dist/BISpin/index.d.ts
CHANGED
package/dist/BISpin/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import React, { Component } from 'react';
|
|
|
19
19
|
import lottie from 'lottie-web';
|
|
20
20
|
import classnames from 'classnames';
|
|
21
21
|
import animationData from "./loading.json";
|
|
22
|
-
import "./index.
|
|
22
|
+
import "./index.less";
|
|
23
23
|
;
|
|
24
24
|
var BISpin = /*#__PURE__*/function (_Component) {
|
|
25
25
|
_inherits(BISpin, _Component);
|
package/dist/DataView/index.d.ts
CHANGED
package/dist/DataView/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
13
13
|
//import {addData,SelectBysceneIdAndCreateBy} from './service';
|
|
14
14
|
import ResizeTable from "./resizable";
|
|
15
15
|
import { addData, SelectBysceneIdAndCreateBy } from "./service";
|
|
16
|
-
import "./styles.
|
|
16
|
+
import "./styles.less";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 拖拽列宽
|
|
@@ -255,18 +255,9 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
255
255
|
};
|
|
256
256
|
return /*#__PURE__*/React.createElement("div", {
|
|
257
257
|
id: "VenusProTable"
|
|
258
|
-
}, /*#__PURE__*/React.createElement(ProTable
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
labelWidth: 'auto',
|
|
262
|
-
size: "small"
|
|
263
|
-
},
|
|
264
|
-
options: {
|
|
265
|
-
reload: true,
|
|
266
|
-
setting: true,
|
|
267
|
-
sso: false,
|
|
268
|
-
density: false
|
|
269
|
-
},
|
|
258
|
+
}, /*#__PURE__*/React.createElement(ProTable
|
|
259
|
+
//options={{reload:true,setting:true,sso:false,density:false}}
|
|
260
|
+
, _extends({
|
|
270
261
|
scroll: scroll
|
|
271
262
|
}, props, {
|
|
272
263
|
toolBarRender: function toolBarRender() {
|
|
@@ -6,7 +6,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
6
6
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import "./styles.
|
|
9
|
+
import "./styles.less";
|
|
10
10
|
var PageDescriptions = function PageDescriptions(props) {
|
|
11
11
|
var children = props.children,
|
|
12
12
|
others = _objectWithoutProperties(props, _excluded);
|
|
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import "./styles.
|
|
8
|
+
import "./styles.less";
|
|
9
9
|
var NumberUnits = function NumberUnits(props) {
|
|
10
10
|
var value = props.value,
|
|
11
11
|
unitName = props.unitName,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './styles.
|
|
2
|
+
import './styles.less';
|
|
3
3
|
declare const NumberUnits: (props: any) => React.JSX.Element;
|
|
4
4
|
export declare const unitConfig: any;
|
|
5
5
|
export declare const formateDetail: (unit: string, number: number, unitName: string) => string | number;
|
|
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import "./styles.
|
|
8
|
+
import "./styles.less";
|
|
9
9
|
var NumberUnits = function NumberUnits(props) {
|
|
10
10
|
var value = props.value,
|
|
11
11
|
unitName = props.unitName,
|
|
@@ -2,7 +2,7 @@ import "antd/es/avatar/style";
|
|
|
2
2
|
import _Avatar from "antd/es/avatar";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { CloseCircleOutlined } from '@ant-design/icons';
|
|
5
|
-
import "./styles.
|
|
5
|
+
import "./styles.less";
|
|
6
6
|
import userIcon from "./assets/avatar.png";
|
|
7
7
|
import rogIcon from "./assets/org-icon.png";
|
|
8
8
|
//@ts-ignore
|
|
@@ -24,7 +24,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import ChooseBox from "./chooseBox";
|
|
26
26
|
import RenderSearch from "./searchBox";
|
|
27
|
-
import "./styles.
|
|
27
|
+
import "./styles.less";
|
|
28
28
|
import { notifier } from "../..";
|
|
29
29
|
var defaultPannelConfig = {
|
|
30
30
|
role: {
|
|
@@ -24,7 +24,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import lodash from 'lodash';
|
|
26
26
|
import { CheckCircleOutlined } from '@ant-design/icons';
|
|
27
|
-
import "../styles.
|
|
27
|
+
import "../styles.less";
|
|
28
28
|
import rogIcon from "../assets/expression.png";
|
|
29
29
|
import { getExpressionList } from "../../..";
|
|
30
30
|
var Search = _Input.Search;
|
|
@@ -23,7 +23,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import { CheckCircleOutlined } from '@ant-design/icons';
|
|
26
|
-
import "../styles.
|
|
26
|
+
import "../styles.less";
|
|
27
27
|
import { checkoutChildren } from "../_utils/utils";
|
|
28
28
|
import { getUserOrgTreeList, IconFont } from "../../..";
|
|
29
29
|
var TreeNode = _Tree.TreeNode;
|
|
@@ -24,7 +24,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import lodash from 'lodash';
|
|
26
26
|
import { CheckCircleOutlined } from '@ant-design/icons';
|
|
27
|
-
import "../styles.
|
|
27
|
+
import "../styles.less";
|
|
28
28
|
import { defaultConfig } from "../_utils/utils";
|
|
29
29
|
import rogIcon from "../assets/org-icon.png";
|
|
30
30
|
import { getRoleList } from "../../..";
|
|
@@ -24,7 +24,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import lodash from 'lodash';
|
|
26
26
|
import { CheckCircleOutlined } from '@ant-design/icons';
|
|
27
|
-
import "../styles.
|
|
27
|
+
import "../styles.less";
|
|
28
28
|
import { defaultConfig } from "../_utils/utils";
|
|
29
29
|
import { getUserListBySecLevelId } from "../../..";
|
|
30
30
|
var Search = _Input.Search;
|
|
@@ -15,7 +15,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
17
|
import React from 'react';
|
|
18
|
-
import "./styles.
|
|
18
|
+
import "./styles.less";
|
|
19
19
|
import UserList from "./search/user";
|
|
20
20
|
import Department from "./search/org";
|
|
21
21
|
import RoleList from "./search/role";
|
|
@@ -13,8 +13,8 @@ import React, { useState } from 'react';
|
|
|
13
13
|
import VenusUser from "../selectPanel/user";
|
|
14
14
|
import VenusDept from "../selectPanel/dept";
|
|
15
15
|
import VenusRole from "../selectPanel/role";
|
|
16
|
-
import
|
|
17
|
-
|
|
16
|
+
import "../styles.less";
|
|
17
|
+
|
|
18
18
|
/**
|
|
19
19
|
* 弹出窗口选择人员/组织/角色
|
|
20
20
|
*/
|
|
@@ -52,7 +52,7 @@ var ModelComSelect = function ModelComSelect(props) {
|
|
|
52
52
|
,
|
|
53
53
|
title: props.title,
|
|
54
54
|
onOk: handleOk,
|
|
55
|
-
className:
|
|
55
|
+
className: "selectUserOrDept_modalSelect",
|
|
56
56
|
width: modalWidth,
|
|
57
57
|
mask: false,
|
|
58
58
|
keyboard: true
|
|
@@ -25,11 +25,11 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
25
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
import React, { useState, useEffect } from 'react';
|
|
27
27
|
import { CloseCircleOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
28
|
-
import
|
|
28
|
+
import "../styles.less";
|
|
29
29
|
import { getOrgTreeList } from "../services";
|
|
30
30
|
import { queryDeptTree } from "../utils";
|
|
31
31
|
import { getApp } from "../../..";
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
//组织
|
|
34
34
|
var Search = _Input.Search;
|
|
35
35
|
var VenusDept = function VenusDept(props) {
|
|
@@ -185,12 +185,12 @@ var VenusDept = function VenusDept(props) {
|
|
|
185
185
|
}
|
|
186
186
|
}, [treeData, props.value]);
|
|
187
187
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
188
|
-
className:
|
|
188
|
+
className: "selectUserOrDept_userDiv"
|
|
189
189
|
}, /*#__PURE__*/React.createElement("div", {
|
|
190
|
-
className:
|
|
190
|
+
className: "selectUserOrDept_userTreeDiv"
|
|
191
191
|
}, /*#__PURE__*/React.createElement(Search, {
|
|
192
192
|
allowClear: true,
|
|
193
|
-
className:
|
|
193
|
+
className: "selectUserOrDept_search",
|
|
194
194
|
onPressEnter: onSearch,
|
|
195
195
|
placeholder: "\u641C\u7D22\u7EC4\u7EC7",
|
|
196
196
|
onSearch: onSearch
|
|
@@ -205,7 +205,7 @@ var VenusDept = function VenusDept(props) {
|
|
|
205
205
|
selectedKeys: selectedKeys,
|
|
206
206
|
treeData: treeData
|
|
207
207
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
|
208
|
-
className:
|
|
208
|
+
className: "selectUserOrDept_userListDivDept"
|
|
209
209
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
210
210
|
type: "link",
|
|
211
211
|
size: "small",
|
|
@@ -224,7 +224,7 @@ var VenusDept = function VenusDept(props) {
|
|
|
224
224
|
renderItem: function renderItem(item, index) {
|
|
225
225
|
return /*#__PURE__*/React.createElement(_List.Item, {
|
|
226
226
|
extra: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CloseCircleOutlined, {
|
|
227
|
-
className:
|
|
227
|
+
className: "selectUserOrDept_deleteSelectUser",
|
|
228
228
|
onClick: function onClick() {
|
|
229
229
|
onDeleteSelectedUserList(item, index);
|
|
230
230
|
}
|
|
@@ -241,7 +241,7 @@ var VenusDept = function VenusDept(props) {
|
|
|
241
241
|
//@ts-ignore
|
|
242
242
|
item.title.substring(0, 1)),
|
|
243
243
|
title: /*#__PURE__*/React.createElement("a", {
|
|
244
|
-
className:
|
|
244
|
+
className: "selectUserOrDept_userSelectName"
|
|
245
245
|
},
|
|
246
246
|
//@ts-ignore
|
|
247
247
|
item.title)
|
|
@@ -28,11 +28,10 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
import React, { useState, useEffect } from 'react';
|
|
30
30
|
import { CloseCircleOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
31
|
-
import
|
|
31
|
+
import "../styles.less";
|
|
32
32
|
import { getRoleList } from "../services";
|
|
33
33
|
//组织
|
|
34
34
|
var Search = _Input.Search;
|
|
35
|
-
var style = styles.default;
|
|
36
35
|
//角色
|
|
37
36
|
var VenusRole = function VenusRole(props) {
|
|
38
37
|
var _useState = useState([]),
|
|
@@ -198,12 +197,12 @@ var VenusRole = function VenusRole(props) {
|
|
|
198
197
|
}
|
|
199
198
|
}, [treeData, props.value]);
|
|
200
199
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
201
|
-
className:
|
|
200
|
+
className: "selectUserOrDept_userDiv"
|
|
202
201
|
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
-
className:
|
|
202
|
+
className: "selectUserOrDept_userTreeDiv"
|
|
204
203
|
}, /*#__PURE__*/React.createElement(Search, {
|
|
205
204
|
allowClear: true,
|
|
206
|
-
className:
|
|
205
|
+
className: "selectUserOrDept_search",
|
|
207
206
|
onPressEnter: onSearch,
|
|
208
207
|
placeholder: "\u641C\u7D22\u89D2\u8272",
|
|
209
208
|
onSearch: onSearch
|
|
@@ -213,7 +212,7 @@ var VenusRole = function VenusRole(props) {
|
|
|
213
212
|
renderItem: function renderItem(item, index) {
|
|
214
213
|
var isChecked = onCheck(item);
|
|
215
214
|
return /*#__PURE__*/React.createElement(_List.Item, {
|
|
216
|
-
className: isChecked ?
|
|
215
|
+
className: isChecked ? "selectUserOrDept_userSearchListItemed" : "selectUserOrDept_userSearchListItem",
|
|
217
216
|
onClick: function onClick() {
|
|
218
217
|
return onSelect(selectedKeys, {
|
|
219
218
|
selected: !isChecked,
|
|
@@ -234,7 +233,7 @@ var VenusRole = function VenusRole(props) {
|
|
|
234
233
|
}));
|
|
235
234
|
}
|
|
236
235
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
|
237
|
-
className:
|
|
236
|
+
className: "selectUserOrDept_userListDivRole"
|
|
238
237
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
239
238
|
type: "link",
|
|
240
239
|
size: "small",
|
|
@@ -253,7 +252,7 @@ var VenusRole = function VenusRole(props) {
|
|
|
253
252
|
renderItem: function renderItem(item, index) {
|
|
254
253
|
return /*#__PURE__*/React.createElement(_List.Item, {
|
|
255
254
|
extra: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CloseCircleOutlined, {
|
|
256
|
-
className:
|
|
255
|
+
className: "selectUserOrDept_deleteSelectUser",
|
|
257
256
|
onClick: function onClick() {
|
|
258
257
|
onDeleteSelectedUserList(item, index);
|
|
259
258
|
}
|
|
@@ -268,7 +267,7 @@ var VenusRole = function VenusRole(props) {
|
|
|
268
267
|
gap: 1
|
|
269
268
|
}, item.name.substring(0, 1)),
|
|
270
269
|
title: /*#__PURE__*/React.createElement("a", {
|
|
271
|
-
className:
|
|
270
|
+
className: "selectUserOrDept_userSelectName"
|
|
272
271
|
}, item.name)
|
|
273
272
|
}));
|
|
274
273
|
}
|
|
@@ -38,15 +38,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
38
38
|
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; } }
|
|
39
39
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
40
40
|
import React, { useEffect, useRef, useState } from 'react';
|
|
41
|
-
import * as styles from "../styles.module.less";
|
|
42
41
|
import { LeftCircleOutlined, CloseCircleOutlined, PlusCircleOutlined, DeleteOutlined, RightCircleOutlined } from '@ant-design/icons';
|
|
43
42
|
import { columnsFnUser } from "../columns/userColumn";
|
|
44
|
-
import "../styles.
|
|
43
|
+
import "../styles.less";
|
|
45
44
|
import { queryUserByDeptTree } from "../utils";
|
|
46
45
|
import { getUserListBySecLevelId, getUserOrgTreeList } from "../services";
|
|
47
46
|
import { getApp, isNotNullVenus, DataView, storage, getUserList } from "../../..";
|
|
48
47
|
var Search = _Input.Search;
|
|
49
|
-
|
|
48
|
+
|
|
50
49
|
//用户
|
|
51
50
|
var VenusUser = function VenusUser(props) {
|
|
52
51
|
var _getApp = getApp(),
|
|
@@ -464,24 +463,24 @@ var VenusUser = function VenusUser(props) {
|
|
|
464
463
|
}
|
|
465
464
|
};
|
|
466
465
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
467
|
-
className:
|
|
466
|
+
className: "selectUserOrDept_userDiv"
|
|
468
467
|
}, /*#__PURE__*/React.createElement("div", {
|
|
469
|
-
className: visUserTable ?
|
|
468
|
+
className: visUserTable ? "selectUserOrDept_userTreeDivShowUserTable" : "selectUserOrDept_userTreeDiv"
|
|
470
469
|
}, /*#__PURE__*/React.createElement(Search, {
|
|
471
470
|
allowClear: true,
|
|
472
|
-
className:
|
|
471
|
+
className: "selectUserOrDept_search",
|
|
473
472
|
onPressEnter: onSearch,
|
|
474
473
|
placeholder: "\u641C\u7D22\u7528\u6237",
|
|
475
474
|
onSearch: onSearch
|
|
476
475
|
}), searchedUserData.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
477
|
-
className:
|
|
476
|
+
className: "selectUserOrDept_userSearchList"
|
|
478
477
|
}, /*#__PURE__*/React.createElement(_List, {
|
|
479
478
|
size: "small",
|
|
480
479
|
dataSource: searchedUserData,
|
|
481
480
|
renderItem: function renderItem(item, index) {
|
|
482
481
|
var isChecked = onCheck(item);
|
|
483
482
|
return /*#__PURE__*/React.createElement(_List.Item, {
|
|
484
|
-
className: isChecked ?
|
|
483
|
+
className: isChecked ? "selectUserOrDept_userSearchListItemed" : "selectUserOrDept_userSearchListItem",
|
|
485
484
|
onClick: function onClick() {
|
|
486
485
|
return onSelect(selectedKeys, {
|
|
487
486
|
node: _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -533,7 +532,7 @@ var VenusUser = function VenusUser(props) {
|
|
|
533
532
|
marginLeft: 5
|
|
534
533
|
}
|
|
535
534
|
}, nodeData.title)), nodeData.children != undefined && nodeData.children.length > 0 ? /*#__PURE__*/React.createElement("span", {
|
|
536
|
-
className:
|
|
535
|
+
className: "selectUserOrDept_deptTreeAddButton"
|
|
537
536
|
}, nodeData.parentId != "-1" ? /*#__PURE__*/React.createElement(_Tooltip, {
|
|
538
537
|
color: "#000000",
|
|
539
538
|
title: "\u9009\u62E9\u8BE5\u90E8\u95E8\u4E0B\u7684\u6240\u6709\u4EBA"
|
|
@@ -548,7 +547,7 @@ var VenusUser = function VenusUser(props) {
|
|
|
548
547
|
})) : null) : null);
|
|
549
548
|
}
|
|
550
549
|
})) : null), searchedUserData.length > 0 ? null : /*#__PURE__*/React.createElement("div", {
|
|
551
|
-
className:
|
|
550
|
+
className: "selectUserOrDept_centerButton"
|
|
552
551
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
553
552
|
size: "small",
|
|
554
553
|
type: "link",
|
|
@@ -558,9 +557,9 @@ var VenusUser = function VenusUser(props) {
|
|
|
558
557
|
},
|
|
559
558
|
icon: visUserTable ? /*#__PURE__*/React.createElement(LeftCircleOutlined, null) : /*#__PURE__*/React.createElement(RightCircleOutlined, null)
|
|
560
559
|
})), visUserTable ? /*#__PURE__*/React.createElement("div", {
|
|
561
|
-
className:
|
|
560
|
+
className: "selectUserOrDept_centerButtonShow"
|
|
562
561
|
}, /*#__PURE__*/React.createElement("div", {
|
|
563
|
-
className:
|
|
562
|
+
className: "selectUserOrDept_table"
|
|
564
563
|
}, /*#__PURE__*/React.createElement(DataView
|
|
565
564
|
//onChange={onChangeTable}
|
|
566
565
|
, {
|
|
@@ -605,12 +604,12 @@ var VenusUser = function VenusUser(props) {
|
|
|
605
604
|
search: false,
|
|
606
605
|
dateFormatter: "string"
|
|
607
606
|
}))) : null, /*#__PURE__*/React.createElement("div", {
|
|
608
|
-
className: visUserTable ?
|
|
607
|
+
className: visUserTable ? "selectUserOrDept_userListDivShowUserTable" : "selectUserOrDept_userListDiv"
|
|
609
608
|
}, /*#__PURE__*/React.createElement("div", {
|
|
610
|
-
className:
|
|
609
|
+
className: "selectUserOrDept_userSelectedHead"
|
|
611
610
|
}, /*#__PURE__*/React.createElement(Search, {
|
|
612
611
|
allowClear: true,
|
|
613
|
-
className:
|
|
612
|
+
className: "selectUserOrDept_search",
|
|
614
613
|
onPressEnter: onSearchSelectEd,
|
|
615
614
|
placeholder: "\u641C\u7D22\u5DF2\u9009\u62E9\u7528\u6237",
|
|
616
615
|
onSearch: onSearchSelectEd
|
|
@@ -625,7 +624,7 @@ var VenusUser = function VenusUser(props) {
|
|
|
625
624
|
dataKeysData = [];
|
|
626
625
|
}
|
|
627
626
|
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
628
|
-
className:
|
|
627
|
+
className: "selectUserOrDept_selectedUser"
|
|
629
628
|
}, /*#__PURE__*/React.createElement(_List, {
|
|
630
629
|
locale: {
|
|
631
630
|
emptyText: "没有选择的用户信息!"
|
|
@@ -638,7 +637,7 @@ var VenusUser = function VenusUser(props) {
|
|
|
638
637
|
extra: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Tag, {
|
|
639
638
|
color: "volcano"
|
|
640
639
|
}, item.username)), /*#__PURE__*/React.createElement(CloseCircleOutlined, {
|
|
641
|
-
className:
|
|
640
|
+
className: "selectUserOrDept_deleteSelectUser",
|
|
642
641
|
onClick: function onClick() {
|
|
643
642
|
onDeleteSelectedUserList(item, index);
|
|
644
643
|
}
|
|
@@ -653,7 +652,7 @@ var VenusUser = function VenusUser(props) {
|
|
|
653
652
|
gap: 1
|
|
654
653
|
}, item.userRealName.substring(0, 1)),
|
|
655
654
|
title: /*#__PURE__*/React.createElement("a", {
|
|
656
|
-
className:
|
|
655
|
+
className: "selectUserOrDept_userSelectName"
|
|
657
656
|
}, item.userRealName)
|
|
658
657
|
}));
|
|
659
658
|
}
|