aldehyde 0.1.62 → 0.1.64
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/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +0 -3
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +0 -3
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +0 -12
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +2 -20
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +0 -6
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/module/ltmpl-page.d.ts +6 -5
- package/lib/module/ltmpl-page.d.ts.map +1 -1
- package/lib/module/ltmpl-page.js +28 -32
- package/lib/module/ltmpl-page.js.map +1 -1
- package/lib/table/act-table.d.ts +8 -2
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +73 -30
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/modal-select-table.js +1 -1
- package/lib/table/modal-select-table.js.map +1 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +5 -4
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +5 -2
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.d.ts.map +1 -1
- package/lib/table/select-table.js +1 -4
- package/lib/table/select-table.js.map +1 -1
- package/lib/table/table-util.d.ts +1 -1
- package/lib/table/table-util.d.ts.map +1 -1
- package/lib/table/table-util.js +4 -8
- package/lib/table/table-util.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +3 -15
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +1 -2
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/welcome/HCWelcome.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/entity-select/entity-select.tsx +1 -3
- package/src/aldehyde/controls/entry-control.tsx +0 -3
- package/src/aldehyde/controls/relation-existion/index.tsx +1 -7
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +0 -15
- package/src/aldehyde/form/criteria-form.tsx +25 -39
- package/src/aldehyde/form/dtmpl-form.tsx +0 -7
- package/src/aldehyde/module/ltmpl-page.tsx +32 -42
- package/src/aldehyde/table/act-table.tsx +170 -114
- package/src/aldehyde/table/modal-select-table.tsx +1 -1
- package/src/aldehyde/table/query-table.tsx +5 -6
- package/src/aldehyde/table/relation-table.tsx +4 -2
- package/src/aldehyde/table/select-table.tsx +1 -4
- package/src/aldehyde/table/table-util.tsx +6 -13
- package/src/aldehyde/tmpl/hcservice-v3.tsx +0 -14
- package/src/aldehyde/tmpl/interface.tsx +1 -3
- package/src/aldehyde/welcome/HCWelcome.js +10 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
import Units from "../units";
|
|
3
|
-
import {Badge, Tag} from "antd";
|
|
4
1
|
import React from "react";
|
|
5
|
-
import {EnumItem, FieldConfig} from "../tmpl/interface";
|
|
6
|
-
import ViewControl from "../controls/view-control";
|
|
7
2
|
|
|
8
3
|
export default {
|
|
9
|
-
sort(col, itemType: string) {
|
|
4
|
+
sort(col, itemType: string,defaultSort?) {
|
|
10
5
|
let colName=col['dataIndex'];
|
|
11
6
|
if (itemType === "decimal" || itemType === "int" || itemType === "float" || itemType === "double") { //排序b
|
|
12
7
|
col["sorter"] = (a, b) => a[colName] - b[colName];
|
|
@@ -21,13 +16,11 @@ export default {
|
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
}
|
|
24
|
-
|
|
19
|
+
if(defaultSort){
|
|
20
|
+
col['defaultSortOrder'] = defaultSort;
|
|
21
|
+
}
|
|
22
|
+
|
|
25
23
|
col['showSorterTooltip'] = false;
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
// render(column, fieldConfig: FieldConfig) {
|
|
29
|
-
// column['render'] = (text, record) => {
|
|
30
|
-
// return <ViewControl fieldConfig={fieldConfig}/>
|
|
31
|
-
// }
|
|
32
|
-
// }
|
|
25
|
+
|
|
33
26
|
}
|
|
@@ -97,28 +97,14 @@ export default class HcserviceV3 {
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
static async requestSelectConfig(sourceId) {
|
|
100
|
-
//let url = `/v3/${sourceName}/select/config`
|
|
101
100
|
let url = `/v3/select/config`
|
|
102
101
|
let res = await Super.super({
|
|
103
102
|
url,
|
|
104
103
|
method: "GET",
|
|
105
104
|
query:{sourceId}
|
|
106
105
|
});
|
|
107
|
-
|
|
108
106
|
return res.selectConfig;
|
|
109
107
|
}
|
|
110
|
-
// static async requestSelectConfig(sourceName:SourceName,sourceId) {
|
|
111
|
-
// //let url = `/v3/${sourceName}/select/config`
|
|
112
|
-
// let url = `/v3/relation-select/config`
|
|
113
|
-
// let res = await Super.super({
|
|
114
|
-
// url,
|
|
115
|
-
// method: "GET",
|
|
116
|
-
// query:{sourceId}
|
|
117
|
-
// });
|
|
118
|
-
//
|
|
119
|
-
// return res.selectConfig;
|
|
120
|
-
// }
|
|
121
|
-
|
|
122
108
|
|
|
123
109
|
static async requestLtmplConfig(sourceId) {
|
|
124
110
|
let url = `/v3/ltmpl/config`
|
|
@@ -4,8 +4,6 @@ export type ViewOrEdit = 'view' | 'edit' ;
|
|
|
4
4
|
|
|
5
5
|
export type AddOrUpdate = 'add' | 'update'| 'copy' ;
|
|
6
6
|
|
|
7
|
-
export type SourceName = 'menu' | 'ratmpl' | 'user' | 'rfield' | 'field-group' | 'rcriteria' ;
|
|
8
|
-
|
|
9
7
|
export type ConfigName = 'statViewConfig' | 'ltmplConfig';
|
|
10
8
|
|
|
11
9
|
export type BeforeExeConfirm = 'default' | 'danger' | 'none' ;
|
|
@@ -84,7 +82,7 @@ export interface ColumnConfig extends FieldConfig {
|
|
|
84
82
|
|
|
85
83
|
export type FieldGroupType = 'relation' | 'fieldGroup' ;
|
|
86
84
|
|
|
87
|
-
export type ButtonName = 'rowAdd' | 'rowEdit' | '
|
|
85
|
+
export type ButtonName = 'rowAdd' | 'rowEdit' | 'batchDelete'|'singleDelete'| 'selectAdd' | 'dtmplAdd' | 'dtmplEdit' | 'copy'|
|
|
88
86
|
'exportDtmplExcel' | 'importDtmplExcel' | 'fusionMode' | 'history' | 'dtmplSave' | 'query' |
|
|
89
87
|
'detail' | 'exportLtmplExcel' | 'importLtmplExcel' | 'showChart'|'dtmplCustomEdit'|'dtmplCustomAdd'|'customDetail'
|
|
90
88
|
| 'statRefresh' | 'ltmplRefresh' | 'dtmplRefresh' | 'analysis' | 'ltmplSelectAdd' | 'reStat' | 'drilling';
|
|
@@ -8,7 +8,8 @@ import TimePrograss from './img/time-prograss.png';
|
|
|
8
8
|
import PainPoint from './img/pain-point.png';
|
|
9
9
|
import Target from './img/target.png';
|
|
10
10
|
import Development from './img/development.png';
|
|
11
|
-
import
|
|
11
|
+
import LtmplPage from "../module/ltmpl-page";
|
|
12
|
+
import { UnorderedListOutlined } from '@ant-design/icons';
|
|
12
13
|
|
|
13
14
|
export default class HCWelcome extends React.Component {
|
|
14
15
|
state = {}
|
|
@@ -223,6 +224,14 @@ export default class HCWelcome extends React.Component {
|
|
|
223
224
|
</Col>
|
|
224
225
|
</Row>
|
|
225
226
|
</Col>
|
|
227
|
+
{/*<Col>*/}
|
|
228
|
+
{/* <Card bodyStyle={{padding: '4px'}}>*/}
|
|
229
|
+
{/* <LtmplPage doCreate={(d)=>{*/}
|
|
230
|
+
{/* d();*/}
|
|
231
|
+
{/* }} title={<><UnorderedListOutlined style={{color:'#2f54eb'}} /> 列表管理</>} mainCode={'DGUYqE2lWO'} funcMode={'common'}*/}
|
|
232
|
+
{/* sourceId={'231313748303873'}></LtmplPage>*/}
|
|
233
|
+
{/* </Card>*/}
|
|
234
|
+
{/*</Col>*/}
|
|
226
235
|
</Row>
|
|
227
236
|
{/*<Row>*/}
|
|
228
237
|
{/* <Col span={24}>*/}
|