cloud-web-corejs 1.0.54-dev.35 → 1.0.54-dev.37

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.35",
4
+ "version": "1.0.54-dev.37",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1008,36 +1008,44 @@ modules = {
1008
1008
  rows.forEach((value) => {
1009
1009
  value.leaf = !value.hasChild;
1010
1010
  });
1011
+ let items = [];
1011
1012
  if (node.level === 0) {
1013
+ let item = {
1014
+ parent: null,
1015
+ fileName: this.title,
1016
+ leaf: rows.length == 0,
1017
+ allFileBtn: true,
1018
+ id: 0,
1019
+ children: rows,
1020
+ };
1021
+ items.push(item);
1012
1022
  setTimeout(() => {
1013
1023
  this.$refs.tree.setCurrentKey(node.childNodes[0].data);
1014
1024
  this.handleNodeData(node.childNodes[0]);
1015
1025
  node.childNodes[0].expand();
1026
+ if (this.option.treeExpandAll) {
1027
+ //默认全部展开树分类
1028
+ node.childNodes[0].childNodes.forEach(item => {
1029
+ if (!item.data.leaf) item.expand();
1030
+ })
1031
+ }
1016
1032
  }, 200);
1017
1033
  this.$nextTick(() => {
1018
1034
  callback && callback();
1019
1035
  });
1020
1036
  this.searchEvent();
1021
1037
  } else {
1038
+ items = rows;
1022
1039
  this.$nextTick(() => {
1040
+ if (this.option.treeExpandAll) {
1041
+ //默认全部展开树分类
1042
+ node.childNodes.forEach(item => {
1043
+ if (!item.data.leaf) item.expand();
1044
+ })
1045
+ }
1023
1046
  callback && callback();
1024
1047
  });
1025
1048
  }
1026
- let items = [];
1027
- if (node.level === 0) {
1028
- let item = {
1029
- parent: null,
1030
- fileName: this.title,
1031
- leaf: rows.length == 0,
1032
- allFileBtn: true,
1033
- id: 0,
1034
- children: rows,
1035
- };
1036
- items.push(item);
1037
- } else {
1038
- items = rows;
1039
- }
1040
-
1041
1049
  resolve(items);
1042
1050
  },
1043
1051
  });
@@ -76,6 +76,7 @@ export default {
76
76
  if (this.dataId && !isNaN(this.dataId)) {
77
77
  this.isEdit = true;
78
78
  this.$commonHttp({
79
+ aes:true,
79
80
  url: USER_PREFIX + `/groups/get`,
80
81
  method: `post`,
81
82
  data: {
@@ -95,6 +96,7 @@ export default {
95
96
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
96
97
  var url = USER_PREFIX + (this.isEdit ? `/groups/update` : `/groups/save`);
97
98
  this.$http({
99
+ aes:true,
98
100
  url: url,
99
101
  method: `post`,
100
102
  data: this.groups,
@@ -86,6 +86,7 @@ export default {
86
86
  vue: this,
87
87
  tableRef: 'table-m1',
88
88
  tableName: 'user_groups_list-m1',
89
+ aes: true,
89
90
  path: USER_PREFIX + '/groups/listPage',
90
91
  param: () => {
91
92
  return this.formData;
@@ -257,6 +257,7 @@ export default {
257
257
  if (this.dataId && !isNaN(this.dataId)) {
258
258
  this.isEdit = true;
259
259
  this.$commonHttp({
260
+ aes: true,
260
261
  url: USER_PREFIX + `/user/get`,
261
262
  method: `post`,
262
263
  data: {
@@ -300,6 +301,7 @@ export default {
300
301
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
301
302
  var url = USER_PREFIX + (this.isEdit ? '/user/update' : '/user/save');
302
303
  this.$http({
304
+ aes: true,
303
305
  url: url,
304
306
  method: `post`,
305
307
  data: this.user,
@@ -330,6 +332,7 @@ export default {
330
332
  getSaleOrgData() {
331
333
  if (this.dataId) {
332
334
  this.$http({
335
+ aes: true,
333
336
  url: USER_PREFIX + '/user/getUserSaleOrg',
334
337
  method: `post`,
335
338
  data: {id: this.dataId},
@@ -350,6 +353,7 @@ export default {
350
353
  getUserRoleData() {
351
354
  if (this.dataId) {
352
355
  this.$http({
356
+ aes: true,
353
357
  url: USER_PREFIX + '/user/getUserRole',
354
358
  method: `post`,
355
359
  data: {id: this.dataId},
@@ -373,6 +377,7 @@ export default {
373
377
  getCompanyInfoData(callback) {
374
378
  if (this.dataId) {
375
379
  this.$http({
380
+ aes: true,
376
381
  url: USER_PREFIX + '/user/getUserCompanyInfo',
377
382
  method: `post`,
378
383
  data: {id: this.dataId},
@@ -422,6 +427,7 @@ export default {
422
427
  },
423
428
  getConpanyInfo() {
424
429
  this.$http({
430
+ aes: true,
425
431
  url: USER_PREFIX + '/company_info/getCurrent',
426
432
  method: `post`,
427
433
  isLoading: true,
@@ -448,6 +454,7 @@ export default {
448
454
  this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
449
455
  var url = USER_PREFIX + '/user/unlockLoginAccount';
450
456
  this.$http({
457
+ aes: true,
451
458
  url: url,
452
459
  method: `post`,
453
460
  data: {
@@ -476,6 +483,7 @@ export default {
476
483
  },
477
484
  getUserInfo() {
478
485
  return this.$http({
486
+ aes: true,
479
487
  url: USER_PREFIX + '/user/currentUser',
480
488
  method: 'post',
481
489
  success: res => {
@@ -489,6 +497,7 @@ export default {
489
497
  },
490
498
  getUserGroups() {
491
499
  return this.$http({
500
+ aes: true,
492
501
  url: USER_PREFIX + '/groups/listPage',
493
502
  method: 'post',
494
503
  data: {},
@@ -222,6 +222,7 @@ export default {
222
222
  getUserGroups() {
223
223
  return new Promise((resolve, reject) => {
224
224
  this.$http({
225
+ aes: true,
225
226
  url: USER_PREFIX + '/groups/listPage',
226
227
  method: 'post',
227
228
  data: {},