ztxkui 3.5.8 → 3.5.9
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/TableDemo/EditableTable.js +2 -2
- package/dist/components/Table/table.js +1 -0
- package/dist/components/Table/utils/validate.js +3 -3
- package/dist/components/business/Signatures/components/DetailTable.d.ts +1 -0
- package/dist/components/business/Signatures/components/DetailTable.js +3 -3
- package/dist/components/business/Signatures/index.js +1 -0
- package/package.json +1 -1
|
@@ -129,7 +129,7 @@ var EditableTable = function () {
|
|
|
129
129
|
return Promise.reject({
|
|
130
130
|
errorFields: [
|
|
131
131
|
{
|
|
132
|
-
errors: "\
|
|
132
|
+
errors: "\u6D4B\u8BD5-\u660E\u7EC6\u8868 \u7B2C" + index + "\u884C \u6D4B\u8BD52 \u4E0D\u80FD\u5C0F\u4E8E102\uFF01",
|
|
133
133
|
},
|
|
134
134
|
],
|
|
135
135
|
});
|
|
@@ -331,6 +331,6 @@ var EditableTable = function () {
|
|
|
331
331
|
// tableValidate
|
|
332
332
|
tableHandleRef: tableHandleRef, tableName: "\u6211\u662F\u4E00\u4E2A\u8868\u683C",
|
|
333
333
|
// 显隐配置
|
|
334
|
-
configInfo: tableConfig })));
|
|
334
|
+
configInfo: tableConfig, showColumnDynamic: true, showColumnDynamicKey: "test-o-0011" })));
|
|
335
335
|
};
|
|
336
336
|
export default EditableTable;
|
|
@@ -42,11 +42,11 @@ import { ERROR_TD_CLASSNAME } from '../index';
|
|
|
42
42
|
export function tableValidate(dataSource, mergeColumns, restParams) {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
44
44
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
-
var getCurrentTable, rowSelection, tableName, requiredFileds, resultTr, i, item, j, _o, dataIndex, title, validate, index, value, err_1, errorTr, errorTds, errorTd, errorTr, errorTds, errorTd, errorTr, errorTds, errorTd;
|
|
45
|
+
var getCurrentTable, rowSelection, tableName, expandable, requiredFileds, resultTr, i, item, j, _o, dataIndex, title, validate, index, value, err_1, errorTr, errorTds, errorTd, errorTr, errorTds, errorTd, errorTr, errorTds, errorTd;
|
|
46
46
|
return __generator(this, function (_p) {
|
|
47
47
|
switch (_p.label) {
|
|
48
48
|
case 0:
|
|
49
|
-
getCurrentTable = restParams.getCurrentTable, rowSelection = restParams.rowSelection, tableName = restParams.tableName;
|
|
49
|
+
getCurrentTable = restParams.getCurrentTable, rowSelection = restParams.rowSelection, tableName = restParams.tableName, expandable = restParams.expandable;
|
|
50
50
|
if (!Array.isArray(dataSource) || dataSource.length === 0) {
|
|
51
51
|
console.info('没有数据,无需验证!');
|
|
52
52
|
return [2 /*return*/];
|
|
@@ -63,7 +63,7 @@ export function tableValidate(dataSource, mergeColumns, restParams) {
|
|
|
63
63
|
dataIndex: column.validate.dataIndex || column.dataIndex,
|
|
64
64
|
title: column.validate.title || column.title,
|
|
65
65
|
validate: column.validate.validate,
|
|
66
|
-
index: index + (rowSelection ? 1 : 0),
|
|
66
|
+
index: index + (rowSelection ? 1 : 0) + (expandable ? 1 : 0),
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -18,7 +18,7 @@ import { Table, Button } from '../../../../index';
|
|
|
18
18
|
// 自定义组件
|
|
19
19
|
import AttachOperation from './AttachOperation';
|
|
20
20
|
var DetailTable = function (_a) {
|
|
21
|
-
var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus;
|
|
21
|
+
var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus, showContranctNum = _a.showContranctNum;
|
|
22
22
|
var authToken = token || '';
|
|
23
23
|
/** 下载水印附件 */
|
|
24
24
|
var downFileFn = function (_record) {
|
|
@@ -130,12 +130,12 @@ var DetailTable = function (_a) {
|
|
|
130
130
|
} },
|
|
131
131
|
React.createElement("div", { style: __assign({}, (!!(qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.vertifyCode) ? {} : { display: 'none' })) },
|
|
132
132
|
React.createElement(Button, { type: "link", size: "small", onClick: querySealStatus }, "\u67E5\u8BE2\u7528\u5370\u72B6\u6001")),
|
|
133
|
-
React.createElement("div", null,
|
|
133
|
+
showContranctNum && (React.createElement("div", null,
|
|
134
134
|
React.createElement("span", { style: {
|
|
135
135
|
color: '#888888',
|
|
136
136
|
} }, "\u5408\u540C\u4EFD\u6570\uFF1A"),
|
|
137
137
|
(qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.contranctNum) || '',
|
|
138
|
-
" \u4EFD"),
|
|
138
|
+
" \u4EFD")),
|
|
139
139
|
React.createElement("div", null,
|
|
140
140
|
React.createElement("span", { style: {
|
|
141
141
|
color: '#888888',
|
|
@@ -690,6 +690,7 @@ var Sinatures = function (_a) {
|
|
|
690
690
|
querySealStatus: querySealStatus,
|
|
691
691
|
needQj: needQj,
|
|
692
692
|
needQys: needQys,
|
|
693
|
+
showContranctNum: showContranctNum,
|
|
693
694
|
};
|
|
694
695
|
return (React.createElement(React.Fragment, null, isEdit ? (React.createElement(Table, { columns: columnsLast, rowKey: "attachId", dataSource: records, scroll: { x: 'max-content' } })) : (React.createElement(DetailTable, __assign({}, detail)))));
|
|
695
696
|
};
|