doway-coms 1.8.2 → 1.8.4
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
|
@@ -926,8 +926,9 @@ export default {
|
|
|
926
926
|
})
|
|
927
927
|
return tempD.length !== fieldNames.length
|
|
928
928
|
})
|
|
929
|
+
let arr = []
|
|
929
930
|
// 分为有参查询和无参查询
|
|
930
|
-
if (tempExp.expressions.length && fieldNames.length
|
|
931
|
+
if (tempExp.expressions.length && fieldNames.length >= 1) {
|
|
931
932
|
for (let j = 0; j < fieldNames.length; j++) {
|
|
932
933
|
let mapArr = tempArr.map(
|
|
933
934
|
(item) => item[fieldNames[j].linkField]
|
|
@@ -943,7 +944,7 @@ export default {
|
|
|
943
944
|
} else {
|
|
944
945
|
tempArr.forEach((item) => {
|
|
945
946
|
// 接口字段可能和表字段field不一致,linkField一致
|
|
946
|
-
|
|
947
|
+
|
|
947
948
|
for (let j = 0; j < fieldNames.length; j++) {
|
|
948
949
|
if (
|
|
949
950
|
info[fieldNames[j].field] == item[fieldNames[j].linkField]
|
|
@@ -956,13 +957,28 @@ export default {
|
|
|
956
957
|
}
|
|
957
958
|
})
|
|
958
959
|
}
|
|
960
|
+
let repeatArr = []
|
|
961
|
+
for (let j = 0; j < fieldNames.length; j++) {
|
|
962
|
+
if (
|
|
963
|
+
this.row[fieldNames[j].linkField] ===
|
|
964
|
+
info[fieldNames[j].field]
|
|
965
|
+
) {
|
|
966
|
+
repeatArr.push(true)
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
if (repeatArr.length === fieldNames.length) {
|
|
970
|
+
info.sysRepeat = true
|
|
971
|
+
}
|
|
959
972
|
if (info.sysRepeat && this.contrasts.length) {
|
|
960
973
|
let flag = 0
|
|
961
974
|
info.sysRepeat = false
|
|
962
975
|
XEUtils.arrayEach(this.propTableData, (item) => {
|
|
963
976
|
if (item[this.field] === info[this.field]) {
|
|
964
977
|
XEUtils.arrayEach(this.contrasts, (loop) => {
|
|
965
|
-
if (
|
|
978
|
+
if (
|
|
979
|
+
item[loop] === this.row[loop] &&
|
|
980
|
+
item.id !== this.row.id
|
|
981
|
+
) {
|
|
966
982
|
flag++
|
|
967
983
|
}
|
|
968
984
|
})
|