@leevan/jtui 2.0.21 → 2.0.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": "@leevan/jtui",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -260,6 +260,10 @@ export default {
260
260
  collapseTags:{
261
261
  type:Boolean,
262
262
  default:false
263
+ },
264
+ lazyLoadParams:{
265
+ type: Object,
266
+ default: null
263
267
  }
264
268
  },
265
269
  methods:{
@@ -317,7 +321,7 @@ export default {
317
321
  async lazyLoad (node, resolve) {
318
322
  const { level ,data:res } = node;
319
323
  if(level === 0) {
320
- const {data} = await _this.$axios.post(path + childPath,param);
324
+ const {data} = await _this.$axios.post(path + childPath,param,this.lazyLoadParams);
321
325
  resolve(data.map(item => ({
322
326
  label:item.name,
323
327
  leaf:item.path === '-' || !item.path,
@@ -331,7 +335,7 @@ export default {
331
335
  resolve();
332
336
  return;
333
337
  }
334
- const {data} = await _this.$axios.post(path + res.path,param);
338
+ const {data} = await _this.$axios.post(path + res.path,param,this.lazyLoadParams);
335
339
  resolve(data.map(item => ({
336
340
  label:item.name,
337
341
  leaf:item.path === '-' || !item.path,
@@ -948,6 +948,10 @@ export default {
948
948
  type: Boolean,
949
949
  default: false,
950
950
  },
951
+ lazyLoadParams:{
952
+ type: Object,
953
+ default: null
954
+ }
951
955
  },
952
956
  data() {
953
957
  return {
@@ -984,7 +988,8 @@ export default {
984
988
  pageTotal: 0,
985
989
  dataTotal: 0,
986
990
  dataTreeObj: {},
987
- treeTempData: []
991
+ treeTempData: [],
992
+ sortAfterData:[]
988
993
  };
989
994
  },
990
995
  methods: {
@@ -1138,6 +1143,7 @@ export default {
1138
1143
  if (order === "desc") {
1139
1144
  list.reverse();
1140
1145
  }
1146
+ this.sortAfterData = list.concat(data2);
1141
1147
  return list.concat(data2);
1142
1148
  },
1143
1149
  //筛选列默认禁用处理
@@ -1455,7 +1461,7 @@ export default {
1455
1461
  resolve(this.treeTempData);
1456
1462
  } else {
1457
1463
  const { data } = await this.$axios.post(
1458
- this.treeTypeConfig.path + row.path
1464
+ this.treeTypeConfig.path + row.path,this.lazyLoadParams
1459
1465
  );
1460
1466
  if (data[0].Result > 0) {
1461
1467
  resolve(data[0].DataArray);