doway-coms 1.6.22 → 1.6.23

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.6.22",
3
+ "version": "1.6.23",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -898,23 +898,38 @@ export default {
898
898
  linkField: y.linkField,
899
899
  };
900
900
  });
901
- if (fieldNames.length) {
901
+ if (fieldNames.length) {
902
902
  vm.searchRows.forEach((info) => {
903
- vm.propTableData.forEach((item) => {
904
- // 接口字段可能和表字段field不一致,linkField一致
905
- let arr = [];
903
+ // 分为有参查询和无参查询
904
+ if (tempExp.expressions.length) {
905
+ let arr = []
906
906
  for (let j = 0; j < fieldNames.length; j++) {
907
- if (
908
- info[fieldNames[j].field] == item[fieldNames[j].linkField]
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) => {
@@ -163,6 +163,12 @@ export default new Vuex.Store({
163
163
  SET_IDENTITY_URL:(state,url) => {
164
164
  state.identityUrl = url
165
165
  },
166
+ SET_PUR_SCH_DEFAULT_START_TIME:(state,purSchDefaultStartTime)=>{
167
+ state.purSchDefaultStartTime = purSchDefaultStartTime
168
+ },
169
+ SET_PUR_SCH_DEFAULT_CLOSING_TIME:(state,purSchDefaultClosingTime)=>{
170
+ state.purSchDefaultClosingTime = purSchDefaultClosingTime
171
+ },
166
172
  },
167
173
  actions: {
168
174
  /**