tianheng-ui 0.1.74 → 0.1.75
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -805,15 +805,25 @@ export default {
|
|
805
805
|
},
|
806
806
|
mounted() {
|
807
807
|
bus.$on("fieldsInParamsActive", activeParams => {
|
808
|
-
const data =
|
809
|
-
|
810
|
-
|
808
|
+
const data = [];
|
809
|
+
const initParams = list => {
|
810
|
+
list.map(item => {
|
811
|
+
if (activeParams.includes(item.id)) data.push(item);
|
812
|
+
if (item.children) initParams(item.children);
|
813
|
+
});
|
814
|
+
};
|
815
|
+
initParams(this.fieldsData.inParams);
|
811
816
|
this.config.search.options = data;
|
812
817
|
});
|
813
818
|
bus.$on("fieldsOutParamsActive", activeParams => {
|
814
|
-
const data =
|
815
|
-
|
816
|
-
|
819
|
+
const data = [];
|
820
|
+
const initParams = list => {
|
821
|
+
list.map(item => {
|
822
|
+
if (activeParams.includes(item.id)) data.push(item);
|
823
|
+
if (item.children) initParams(item.children);
|
824
|
+
});
|
825
|
+
};
|
826
|
+
initParams(this.fieldsData.outParams);
|
817
827
|
this.config.table.options = data;
|
818
828
|
});
|
819
829
|
},
|