bri-components 1.2.91 → 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
|
};
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:formList="canSearchFormList"
|
|
31
31
|
:useChainField="useChainField"
|
|
32
32
|
:dynamicFormList="dynamicFormList"
|
|
33
|
-
@change="change('
|
|
33
|
+
@change="change('loopSearch', conditionItem, ...arguments)"
|
|
34
34
|
>
|
|
35
35
|
<slot
|
|
36
36
|
slot-scope="{ conditionItem }"
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
<template v-else-if="['subSearch', 'subTableSearch'].includes(conditionItem.fieldOperator)">
|
|
73
73
|
<dsh-adv-search
|
|
74
74
|
v-if="conditionItem.finished === true"
|
|
75
|
+
style="padding: 0px 0px 0px 8px;"
|
|
75
76
|
:mode="mode"
|
|
76
77
|
:isInner="true"
|
|
77
78
|
:value="conditionItem.fieldSearch"
|
|
@@ -324,7 +325,7 @@
|
|
|
324
325
|
}
|
|
325
326
|
|
|
326
327
|
&-logic {
|
|
327
|
-
margin:
|
|
328
|
+
margin: 0px 0px 10px;
|
|
328
329
|
.dsh-flex-row-start-center();
|
|
329
330
|
|
|
330
331
|
&-title {
|
|
@@ -369,7 +370,7 @@
|
|
|
369
370
|
|
|
370
371
|
&-item {
|
|
371
372
|
padding: 0!important;
|
|
372
|
-
margin-bottom:
|
|
373
|
+
margin-bottom: 8px!important;
|
|
373
374
|
cursor: pointer;
|
|
374
375
|
|
|
375
376
|
&-loading {
|
|
@@ -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,7 +148,15 @@ export default {
|
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
// 发生改动
|
|
151
|
-
change (operationType, conditionItem) {
|
|
151
|
+
change (operationType, conditionItem, ...params) {
|
|
152
|
+
if (operationType === "loopSearch") {
|
|
153
|
+
const subAdvSearchObj = params[0];
|
|
154
|
+
Object.assign(conditionItem, subAdvSearchObj);
|
|
155
|
+
} else if (operationType === "subSearch") {
|
|
156
|
+
const subAdvSearchObj = params[0];
|
|
157
|
+
Object.assign(conditionItem.fieldSearch, subAdvSearchObj);
|
|
158
|
+
}
|
|
159
|
+
|
|
152
160
|
const advSearchObj = {
|
|
153
161
|
...this.advSearchObj,
|
|
154
162
|
conditions: this.transformConditions(this.advSearchObj.conditions)
|
|
@@ -213,6 +221,7 @@ export default {
|
|
|
213
221
|
};
|
|
214
222
|
} else {
|
|
215
223
|
return {
|
|
224
|
+
_id: this.$ObjectID().str,
|
|
216
225
|
...initContion,
|
|
217
226
|
__isDelete__: true, // 前端用它标识对应字段已被删除的筛选项
|
|
218
227
|
formItem: {
|
|
@@ -222,24 +231,30 @@ export default {
|
|
|
222
231
|
}
|
|
223
232
|
} else if (["and", "or"].includes(initContion.logic)) {
|
|
224
233
|
return {
|
|
234
|
+
_id: this.$ObjectID().str,
|
|
225
235
|
logic: "and",
|
|
226
236
|
conditions: [],
|
|
227
237
|
...initContion
|
|
228
238
|
};
|
|
229
239
|
} else if (["text"].includes(initContion.logic)) {
|
|
230
240
|
return {
|
|
241
|
+
_id: this.$ObjectID().str,
|
|
231
242
|
logic: "text",
|
|
232
243
|
textSearch: "",
|
|
233
244
|
...initContion
|
|
234
245
|
};
|
|
235
246
|
} else if (["native"].includes(initContion.logic)) {
|
|
236
247
|
return {
|
|
248
|
+
_id: this.$ObjectID().str,
|
|
237
249
|
logic: "native",
|
|
238
250
|
nativeSearch: {},
|
|
239
251
|
...initContion
|
|
240
252
|
};
|
|
241
253
|
} else {
|
|
242
|
-
return
|
|
254
|
+
return {
|
|
255
|
+
_id: this.$ObjectID().str,
|
|
256
|
+
...initContion
|
|
257
|
+
};
|
|
243
258
|
}
|
|
244
259
|
},
|
|
245
260
|
// 获取表单配置
|
|
@@ -326,7 +341,7 @@ export default {
|
|
|
326
341
|
: item[key]
|
|
327
342
|
)
|
|
328
343
|
: item[key]
|
|
329
|
-
|
|
344
|
+
}), {})
|
|
330
345
|
);
|
|
331
346
|
};
|
|
332
347
|
|