doway-coms 1.4.96 → 1.4.97

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.96",
3
+ "version": "1.4.97",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -793,20 +793,22 @@
793
793
  linkField: y.linkField,
794
794
  }
795
795
  })
796
- vm.searchRows.forEach(info => {
797
- vm.propTableData.forEach(item=>{
798
- // 接口字段可能和表字段field不一致,linkField一致
799
- let arr= []
800
- for(let j=0;j<fieldNames.length;j++){
801
- if(info[fieldNames[j].field] == item[fieldNames[j].linkField]){
802
- arr.push(true)
796
+ if (fieldNames.length) {
797
+ vm.searchRows.forEach(info => {
798
+ vm.propTableData.forEach(item=>{
799
+ // 接口字段可能和表字段field不一致,linkField一致
800
+ let arr= []
801
+ for(let j=0;j<fieldNames.length;j++){
802
+ if(info[fieldNames[j].field] == item[fieldNames[j].linkField]){
803
+ arr.push(true)
804
+ }
803
805
  }
804
- }
805
- if(fieldNames.length === arr.length){
806
- info.sysRepeat = true
807
- }
806
+ if(fieldNames.length === arr.length){
807
+ info.sysRepeat = true
808
+ }
809
+ })
808
810
  })
809
- })
811
+ }
810
812
  })
811
813
  .catch(error => {
812
814
  console.error(error)