venus-design 1.1.17 → 1.1.18
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.
|
@@ -30,7 +30,7 @@ import { ProTable } from '@ant-design/pro-components';
|
|
|
30
30
|
import { SlidersOutlined } from '@ant-design/icons';
|
|
31
31
|
import { saveAs } from "file-saver";
|
|
32
32
|
import * as ExcelJs from 'exceljs';
|
|
33
|
-
import
|
|
33
|
+
import { DrawerDataAuth } from "../..";
|
|
34
34
|
|
|
35
35
|
// 拖拽辅助线
|
|
36
36
|
var ResizeGuideLine = function ResizeGuideLine(_ref) {
|
|
@@ -269,14 +269,29 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
269
269
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
270
270
|
while (1) switch (_context.prev = _context.next) {
|
|
271
271
|
case 0:
|
|
272
|
-
|
|
272
|
+
if (!props.dataSource) {
|
|
273
|
+
_context.next = 4;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
//全量数据
|
|
277
|
+
if (props.getExportData != undefined) {
|
|
278
|
+
//使用自定义组装数据的方法
|
|
279
|
+
tableExport(props.getExportData(props.dataSource), props.columnsFnExport != undefined ? props.columnsFnExport : props.columns, props.exportFileName != undefined ? props.exportFileName : "导出");
|
|
280
|
+
} else {
|
|
281
|
+
//调用默认组装数据的方法
|
|
282
|
+
tableExport(getClientDataZ(props.dataSource, props.columns), props.columns, props.exportFileName != undefined ? props.exportFileName : "导出");
|
|
283
|
+
}
|
|
284
|
+
_context.next = 8;
|
|
285
|
+
break;
|
|
286
|
+
case 4:
|
|
287
|
+
_context.next = 6;
|
|
273
288
|
return props.request({
|
|
274
289
|
current: 1,
|
|
275
290
|
pageSize: pageSize,
|
|
276
291
|
limit: 10000,
|
|
277
292
|
page: 1
|
|
278
293
|
});
|
|
279
|
-
case
|
|
294
|
+
case 6:
|
|
280
295
|
res = _context.sent;
|
|
281
296
|
if (res.success) {
|
|
282
297
|
if (res.total > pageSize) {
|
|
@@ -292,7 +307,7 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
292
307
|
}
|
|
293
308
|
}
|
|
294
309
|
}
|
|
295
|
-
case
|
|
310
|
+
case 8:
|
|
296
311
|
case "end":
|
|
297
312
|
return _context.stop();
|
|
298
313
|
}
|
|
@@ -384,7 +399,7 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
384
399
|
}
|
|
385
400
|
}))]);
|
|
386
401
|
}
|
|
387
|
-
})), /*#__PURE__*/React.createElement(
|
|
402
|
+
})), /*#__PURE__*/React.createElement(DrawerDataAuth, {
|
|
388
403
|
open: qxVisible,
|
|
389
404
|
onClose: function onClose() {
|
|
390
405
|
return setQxVisible(false);
|
package/dist/VenusTable/index.js
CHANGED
|
@@ -142,6 +142,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
142
142
|
setEditingMap = _useState18[1];
|
|
143
143
|
var filterDrawerRef = React.useRef(null);
|
|
144
144
|
var toggleEdit = function toggleEdit(key, editing) {
|
|
145
|
+
console.log(key, editing);
|
|
145
146
|
setEditingMap(function (prev) {
|
|
146
147
|
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, editing));
|
|
147
148
|
});
|
|
@@ -241,8 +242,6 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
241
242
|
columns.push(v);
|
|
242
243
|
});
|
|
243
244
|
}
|
|
244
|
-
console.log(columns);
|
|
245
|
-
|
|
246
245
|
//@ts-ignore
|
|
247
246
|
setColumns(columns || []);
|
|
248
247
|
};
|
|
@@ -469,7 +468,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
469
468
|
param: dataParam,
|
|
470
469
|
toolBarRender: function toolBarRender() {
|
|
471
470
|
var res = props.toolBarRender == undefined ? [] : props.toolBarRender();
|
|
472
|
-
return [].concat(_toConsumableArray(res), [props.searchHigh
|
|
471
|
+
return [].concat(_toConsumableArray(res), [props.searchHigh ? isSearchFilterHaveData() ? /*#__PURE__*/React.createElement(_Button, {
|
|
473
472
|
danger: true,
|
|
474
473
|
size: "small",
|
|
475
474
|
className: "venus-table-exist-filter",
|
|
@@ -505,7 +504,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
505
504
|
cursor: 'pointer',
|
|
506
505
|
color: isSearchFilterHaveData() ? '#1890FF' : '#000'
|
|
507
506
|
}
|
|
508
|
-
}))]);
|
|
507
|
+
})) : null]);
|
|
509
508
|
}
|
|
510
509
|
//@ts-ignore
|
|
511
510
|
,
|
|
@@ -529,6 +529,7 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
529
529
|
}
|
|
530
530
|
var key = "".concat(record.innerId, "-").concat(column.fieldId);
|
|
531
531
|
var editing = Boolean(actions.editingMap[key]);
|
|
532
|
+
console.log(actions.editingMap);
|
|
532
533
|
|
|
533
534
|
/* 统一回写 */
|
|
534
535
|
var finishEdit = function finishEdit(newVal) {
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as CheckBoxInput } from './CheckBoxInput';
|
|
|
11
11
|
export { default as VenusUploadSecLevelForm } from './VenusUploadForm';
|
|
12
12
|
export { default as UploadImage } from './UploadImage';
|
|
13
13
|
export { default as NotificationManager, notifier } from './NotificationManager';
|
|
14
|
+
export { default as DrawerDataAuth } from './Drawer';
|
|
14
15
|
export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getElementRules, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword, excelFieldTable, downloadExcelTemplateUrl } from './Config/api';
|
|
15
16
|
export { default as request } from './Config/request';
|
|
16
17
|
export { default as storage, checkCookieAuth } from './Config/storage';
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,8 @@ export { default as CheckBoxInput } from "./CheckBoxInput";
|
|
|
11
11
|
export { default as VenusUploadSecLevelForm } from "./VenusUploadForm";
|
|
12
12
|
export { default as UploadImage } from "./UploadImage";
|
|
13
13
|
export { default as NotificationManager, notifier } from "./NotificationManager";
|
|
14
|
+
//数据权限
|
|
15
|
+
export { default as DrawerDataAuth } from "./Drawer";
|
|
14
16
|
export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getElementRules, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword, excelFieldTable, downloadExcelTemplateUrl } from "./Config/api";
|
|
15
17
|
export { default as request } from "./Config/request";
|
|
16
18
|
export { default as storage, checkCookieAuth } from "./Config/storage";
|