doway-coms 1.6.22 → 1.6.24
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
|
@@ -898,23 +898,38 @@ export default {
|
|
|
898
898
|
linkField: y.linkField,
|
|
899
899
|
};
|
|
900
900
|
});
|
|
901
|
-
|
|
901
|
+
if (fieldNames.length) {
|
|
902
902
|
vm.searchRows.forEach((info) => {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
let arr = []
|
|
903
|
+
// 分为有参查询和无参查询
|
|
904
|
+
if (tempExp.expressions.length) {
|
|
905
|
+
let arr = []
|
|
906
906
|
for (let j = 0; j < fieldNames.length; j++) {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
) {
|
|
910
|
-
arr.push(true)
|
|
907
|
+
let mapArr = vm.propTableData.map(item => item[fieldNames[j].linkField])
|
|
908
|
+
let setArr = new Set(mapArr)
|
|
909
|
+
if (setArr.size < mapArr.length) {
|
|
910
|
+
arr.push(true)
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
if (fieldNames.length === arr.length) {
|
|
914
914
|
info.sysRepeat = true;
|
|
915
915
|
}
|
|
916
|
-
}
|
|
917
|
-
|
|
916
|
+
} else {
|
|
917
|
+
vm.propTableData.forEach((item) => {
|
|
918
|
+
// 接口字段可能和表字段field不一致,linkField一致
|
|
919
|
+
let arr = [];
|
|
920
|
+
for (let j = 0; j < fieldNames.length; j++) {
|
|
921
|
+
if (
|
|
922
|
+
info[fieldNames[j].field] == item[fieldNames[j].linkField]
|
|
923
|
+
) {
|
|
924
|
+
arr.push(true);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
if (fieldNames.length === arr.length) {
|
|
928
|
+
info.sysRepeat = true;
|
|
929
|
+
}
|
|
930
|
+
})
|
|
931
|
+
}
|
|
932
|
+
})
|
|
918
933
|
}
|
|
919
934
|
})
|
|
920
935
|
.catch((error) => {
|
package/packages/utils/common.js
CHANGED
|
@@ -542,7 +542,13 @@ export function getExportParams(columns) {
|
|
|
542
542
|
return tempParams
|
|
543
543
|
}
|
|
544
544
|
export function setFormButtons(toolBtns,statusBtns,permissionBtns){
|
|
545
|
-
|
|
545
|
+
// 将获取的数据进行排序
|
|
546
|
+
let tempSortArr = permissionBtns.sort(function(a,b){
|
|
547
|
+
a.sort = a.sort?a.sort:1
|
|
548
|
+
b.sort = b.sort?b.sort:1
|
|
549
|
+
return a.sort-b.sort
|
|
550
|
+
})
|
|
551
|
+
XEUtils.arrayEach(tempSortArr,loopBtn=>{
|
|
546
552
|
let pushBtn = {
|
|
547
553
|
code: loopBtn.code,
|
|
548
554
|
caption: loopBtn.name,
|