bri-components 1.2.92 → 1.2.93
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
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
return {};
|
|
22
22
|
},
|
|
23
23
|
computed: {
|
|
24
|
-
|
|
25
|
-
return this.propsObj.modForm;
|
|
24
|
+
modFormList () {
|
|
25
|
+
return this.propsObj.modForm || [];
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
created () {},
|
|
29
29
|
methods: {
|
|
30
30
|
// 字段 -点击返回
|
|
31
31
|
clickBack (operationItem, formItem, formIndex) {
|
|
32
|
-
this.$emit("changeField", this.
|
|
32
|
+
this.$emit("changeField", this.modFormList.find(formItem => formItem._key === this.value[this.controlKey]), null, null);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
@@ -168,16 +168,7 @@
|
|
|
168
168
|
onDftSearch: true,
|
|
169
169
|
_line: true,
|
|
170
170
|
_useColor: false,
|
|
171
|
-
_optionKind: "dropdown"
|
|
172
|
-
|
|
173
|
-
...(
|
|
174
|
-
// date、daterange类型的(formItem._type基本不会为daterange)
|
|
175
|
-
["date", "daterange"].includes(formItem._type)
|
|
176
|
-
? {
|
|
177
|
-
_useShortcuts: false
|
|
178
|
-
}
|
|
179
|
-
: {}
|
|
180
|
-
)
|
|
171
|
+
_optionKind: "dropdown"
|
|
181
172
|
};
|
|
182
173
|
}
|
|
183
174
|
}
|
|
@@ -148,10 +148,12 @@ export default {
|
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
// 发生改动
|
|
151
|
-
change (operationType, conditionItem,
|
|
151
|
+
change (operationType, conditionItem, ...params) {
|
|
152
152
|
if (operationType === "loopSearch") {
|
|
153
|
+
const subAdvSearchObj = params[0];
|
|
153
154
|
Object.assign(conditionItem, subAdvSearchObj);
|
|
154
155
|
} else if (operationType === "subSearch") {
|
|
156
|
+
const subAdvSearchObj = params[0];
|
|
155
157
|
Object.assign(conditionItem.fieldSearch, subAdvSearchObj);
|
|
156
158
|
}
|
|
157
159
|
|
|
@@ -339,7 +341,7 @@ export default {
|
|
|
339
341
|
: item[key]
|
|
340
342
|
)
|
|
341
343
|
: item[key]
|
|
342
|
-
|
|
344
|
+
}), {})
|
|
343
345
|
);
|
|
344
346
|
};
|
|
345
347
|
|