tianheng-ui 0.1.41 → 0.1.42
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/package.json
CHANGED
@@ -16,25 +16,28 @@
|
|
16
16
|
<el-collapse v-model="collapseValue">
|
17
17
|
<el-collapse-item title="查询字段" name="group-fields_search">
|
18
18
|
<el-tree
|
19
|
+
ref="fieldsSearchTreeRef"
|
19
20
|
:data="fieldsTree.search"
|
20
21
|
:default-checked-keys="searchActiveFields"
|
21
22
|
show-checkbox
|
22
23
|
node-key="key"
|
24
|
+
:default-expand-all="true"
|
25
|
+
:check-strictly="true"
|
23
26
|
:props="{ label: 'label', value: 'prop' }"
|
24
|
-
ref="fieldsTreeRef"
|
25
27
|
@check-change="handleTreeCheckChange('search')"
|
26
28
|
>
|
27
29
|
</el-tree>
|
28
30
|
</el-collapse-item>
|
29
31
|
<el-collapse-item title="列表字段" name="group-fields_table">
|
30
32
|
<el-tree
|
33
|
+
ref="fieldsTableTreeRef"
|
31
34
|
:data="fieldsTree.table"
|
32
35
|
:default-checked-keys="tableActiveFields"
|
33
36
|
show-checkbox
|
34
37
|
node-key="key"
|
38
|
+
:default-expand-all="true"
|
35
39
|
:check-strictly="true"
|
36
40
|
:props="{ label: 'label', value: 'prop' }"
|
37
|
-
ref="fieldsTreeRef"
|
38
41
|
@check-change="handleTreeCheckChange('table')"
|
39
42
|
>
|
40
43
|
</el-tree>
|
@@ -735,11 +738,11 @@ export default {
|
|
735
738
|
initParams(this.fieldsTree.table);
|
736
739
|
},
|
737
740
|
handleTreeCheckChange(action) {
|
738
|
-
let nodes = deepClone(this.$refs.fieldsTreeRef.getCheckedNodes());
|
739
741
|
if (action === "search") {
|
740
742
|
const keys = this.config.search.options.map(item => {
|
741
743
|
return item.key;
|
742
744
|
});
|
745
|
+
let nodes = deepClone(this.$refs.fieldsSearchTreeRef.getCheckedNodes());
|
743
746
|
nodes.map(item => {
|
744
747
|
const index = keys.indexOf(item.key);
|
745
748
|
if (index > -1) {
|
@@ -754,6 +757,7 @@ export default {
|
|
754
757
|
return item.key;
|
755
758
|
});
|
756
759
|
|
760
|
+
let nodes = deepClone(this.$refs.fieldsTableTreeRef.getCheckedNodes());
|
757
761
|
nodes = nodes.map(item => {
|
758
762
|
const index = keys.indexOf(item.key);
|
759
763
|
if (index > -1) {
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<div class="table-item-custom">拖动</div>
|
13
13
|
<div>列名</div>
|
14
14
|
<el-tooltip
|
15
|
-
content="
|
15
|
+
content="对应列内容的字段名,非必要不修改!"
|
16
16
|
placement="top-start"
|
17
17
|
effect="light"
|
18
18
|
>
|
@@ -91,7 +91,7 @@
|
|
91
91
|
<div class="table-item-custom">拖动</div>
|
92
92
|
<div>列名</div>
|
93
93
|
<el-tooltip
|
94
|
-
content="
|
94
|
+
content="对应列内容的字段名,非必要不修改!"
|
95
95
|
placement="top-start"
|
96
96
|
effect="light"
|
97
97
|
>
|