n20-common-lib 3.2.33 → 3.2.34
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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<el-form-item
|
|
6
6
|
v-for="item in GroupData"
|
|
7
7
|
:key="getOnlyKey(item)"
|
|
8
|
-
:class="[prefixCls + '-item', activeClassMap[item.value || item[onlyKey]] || '',{notStyle: item.notStyle}]"
|
|
8
|
+
:class="[prefixCls + '-item', activeClassMap[item.value || item[onlyKey]] || '', { notStyle: item.notStyle }]"
|
|
9
9
|
:label="item.label"
|
|
10
10
|
:required="!!item.required"
|
|
11
11
|
:disabled="item.props && item.props.disabled"
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
249
249
|
this.GroupData.forEach((item) => {
|
|
250
250
|
const key = item.value || item[this.onlyKey]
|
|
251
251
|
let isActive = false
|
|
252
|
-
if(!item.notActive) {
|
|
252
|
+
if (!item.notActive) {
|
|
253
253
|
if (item.type === 'numberrange') {
|
|
254
254
|
isActive = hasRange(item.startValue, item.endValue)
|
|
255
255
|
} else if (rangeTypes.includes(item.type)) {
|
|
@@ -372,9 +372,7 @@ export default {
|
|
|
372
372
|
// 找出 filterList 中 static 但不在 GroupData 的项
|
|
373
373
|
const staticItemsInFilterList = this.filterList.filter((item) => item.static)
|
|
374
374
|
const existingIds = this.GroupData.map((item) => item[this.onlyKey])
|
|
375
|
-
const missingStaticItems = staticItemsInFilterList.filter(
|
|
376
|
-
(item) => !existingIds.includes(item[this.onlyKey])
|
|
377
|
-
)
|
|
375
|
+
const missingStaticItems = staticItemsInFilterList.filter((item) => !existingIds.includes(item[this.onlyKey]))
|
|
378
376
|
// 缺失的 static 项浅拷贝后补到 GroupData 开头
|
|
379
377
|
if (missingStaticItems.length > 0) {
|
|
380
378
|
const staticItemsToAdd = missingStaticItems.map((item) => ({ ...item }))
|
|
@@ -636,7 +634,13 @@ export default {
|
|
|
636
634
|
{
|
|
637
635
|
userNo: this.userNo,
|
|
638
636
|
pageId: this.filterId,
|
|
639
|
-
showStructure: JSON.stringify(
|
|
637
|
+
showStructure: JSON.stringify(
|
|
638
|
+
data.map((item) => {
|
|
639
|
+
const { options, ...result } = item
|
|
640
|
+
console.log('drop options', options)
|
|
641
|
+
return result
|
|
642
|
+
})
|
|
643
|
+
)
|
|
640
644
|
},
|
|
641
645
|
{ loading: false }
|
|
642
646
|
)
|
|
@@ -705,11 +709,7 @@ export default {
|
|
|
705
709
|
// 如果过滤后没有有效数据,使用默认逻辑
|
|
706
710
|
if (_data.length === 0) {
|
|
707
711
|
if (this.removeLoad) {
|
|
708
|
-
this.GroupData = this.filterList.filter((item) =>
|
|
709
|
-
if (item.isDefault) {
|
|
710
|
-
return item
|
|
711
|
-
}
|
|
712
|
-
})
|
|
712
|
+
this.GroupData = this.filterList.filter((item) => item.isDefault)
|
|
713
713
|
} else {
|
|
714
714
|
this.GroupData = []
|
|
715
715
|
}
|