cloud-web-corejs 1.0.54-dev.3 → 1.0.54-dev.31

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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/mixins.js +1 -1
  3. package/src/components/excelExport/exportFieldDialog.vue +201 -0
  4. package/src/components/excelExport/index.js +5 -5
  5. package/src/components/excelExport/index.vue +1 -0
  6. package/src/components/excelExport/mixins.js +4 -1
  7. package/src/components/excelImport/index.js +13 -13
  8. package/src/components/excelImport/index.vue +9 -6
  9. package/src/components/excelImport/mixins.js +1 -1
  10. package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
  11. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -1
  12. package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
  13. package/src/components/fileLibrary/index.vue +2 -2
  14. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +29 -7
  15. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
  16. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
  17. package/src/components/fileLibrary/mixins/indexMixins.js +18 -0
  18. package/src/components/onlineTalk/index.vue +327 -5
  19. package/src/components/onlineTalk/mixins.js +1 -1
  20. package/src/components/table/index.js +1 -1
  21. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  22. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
  23. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
  24. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  25. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  26. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +5 -4
  27. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  28. package/src/layout/components/Sidebar/default.vue +1222 -1222
  29. package/src/layout/components/notify_message/unreadDialog.vue +11 -5
  30. package/src/utils/request.js +28 -28
  31. package/src/utils/vab.js +1 -1
  32. package/src/views/bd/setting/bd_attach_setting/edit.vue +1 -1
  33. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +1 -1
  34. package/src/views/bd/setting/form_template/list.vue +4 -2
  35. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  36. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  37. package/src/views/bd/setting/table_model/list.vue +4 -2
  38. package/src/views/user/company_info/edit.vue +9 -1
  39. package/src/views/user/file_type/edit.vue +30 -1
  40. package/src/views/user/file_type/list.vue +28 -0
  41. package/src/views/user/home/index.vue +4 -2
  42. package/src/views/user/login/default.vue +4 -2
  43. package/src/views/user/outLink/view.vue +21 -0
  44. package/src/views/user/system_notice/infoDialog.vue +25 -1
  45. package/src/views/user/user/edit.vue +4 -4
  46. package/src/views/user/user/form_edit.vue +56 -49
  47. package/src/views/user/user/list.vue +563 -563
  48. package/src/views/user/wf/wf_obj_config/list.vue +30 -2
  49. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -55,6 +55,25 @@ export default {
55
55
 
56
56
  delete queryParam.urlmobile;
57
57
  delete queryParam.url;
58
+
59
+ if(purl.indexOf('.html')>=0){
60
+ let eUrl = purl;
61
+ let pstr = Object.keys(queryParam).map(key=>{
62
+ return key+"="+queryParam[key]
63
+ }).join("&")
64
+
65
+ if(pstr){
66
+ if(purl.indexOf('.html?')>=0){
67
+ eUrl = eUrl+'&'+pstr
68
+ }else{
69
+ eUrl = eUrl+'?'+pstr
70
+ }
71
+ }
72
+
73
+ location.href = eUrl;
74
+ return
75
+ }
76
+
58
77
  delete queryParam.dataId;
59
78
  delete queryParam.showWfContent;
60
79
  delete queryParam.access_token;
@@ -62,6 +81,8 @@ export default {
62
81
  delete queryParam.thirdparty_info;
63
82
  delete queryParam.i18nLang;
64
83
 
84
+
85
+
65
86
  let url = purl + '.vue';
66
87
  this.queryParam = queryParam;
67
88
  this.showWfContent = true;
@@ -51,6 +51,9 @@ export default {
51
51
  },
52
52
  param: {
53
53
  default: null
54
+ },
55
+ queryParam: {
56
+ default: null
54
57
  }
55
58
  },
56
59
  created() {
@@ -102,7 +105,8 @@ export default {
102
105
  url: url,
103
106
  data: {
104
107
  publish: true,
105
- current: pageNumber
108
+ current: pageNumber,
109
+ ...this.queryParam
106
110
  },
107
111
  success: res => {
108
112
  let page = res.objx;
@@ -121,9 +125,11 @@ export default {
121
125
  });
122
126
  this.currentRow = currentRow;
123
127
  this.currentIndex = currentIndex;
128
+ this.handleRead(this.currentIndex)
124
129
  } else {
125
130
  this.currentIndex = 0;
126
131
  this.currentRow = page.records.length > 0 ? page.records[0] : {};
132
+ this.handleRead(this.currentIndex)
127
133
  }
128
134
  }
129
135
  });
@@ -132,6 +138,24 @@ export default {
132
138
  this.flag = 0;
133
139
  this.currentIndex = index;
134
140
  this.currentRow = item;
141
+ this.handleRead(index)
142
+ },
143
+ handleRead(index, callback) {
144
+ let row = this.page.records[index];
145
+ if (row.readed !== 1) {
146
+ this.$http({
147
+ url: USER_PREFIX + `/system_notice/read`,
148
+ method: `post`,
149
+ data: {id: row.id},
150
+ isLoading: true,
151
+ success: res => {
152
+ row.readed = 1;
153
+ callback && callback()
154
+ }
155
+ });
156
+ } else {
157
+ callback && callback()
158
+ }
135
159
  },
136
160
  initAttachfo() {
137
161
  let id = this.currentRow && this.currentRow.id ? this.currentRow.id : '';
@@ -7,7 +7,7 @@
7
7
  {{ dataId ? $t1('查看用户') : $t1('新增用户') }}
8
8
  </div>
9
9
  <div class="fr">
10
- <!-- <temp-storage-button :option="tempStorageOption" v-if="!dataId"></temp-storage-button>-->
10
+ <temp-storage-button :option="tempStorageOption" v-if="!dataId"></temp-storage-button>
11
11
  <base-input-export :option="exportOption" :parent-target="_self" v-if="dataId"/>
12
12
  <el-button type="primary" plain class="button-sty" icon="el-icon-unlock" @click="unlock" v-if="user.locked"
13
13
  v-hasPermi="'user:unlock'">{{ $t1('解锁') }}
@@ -297,7 +297,7 @@
297
297
 
298
298
  <script>
299
299
  import xeUtils from "xe-utils";
300
- /*import tempStorageButton from "@base/components/tempStorage/index.vue";*/
300
+ import tempStorageButton from "@base/components/tempStorage/index.vue";
301
301
 
302
302
 
303
303
  export default {
@@ -307,8 +307,8 @@ export default {
307
307
  companyDialog: () => import('../../../views/user/company_info/dialog.vue'),
308
308
  saleOrgDialog: () => import('../../../views/user/sale_org/dialog.vue'),
309
309
  positionDialog: () => import('../../../views/user/position/dialog.vue'),
310
- countryDialog: () => import('../../../views/user/country/dialog.vue')/*,
311
- tempStorageButton*/
310
+ countryDialog: () => import('../../../views/user/country/dialog.vue'),
311
+ tempStorageButton
312
312
  },
313
313
  props: ['_dataId', 'userType', 'flag'],
314
314
  data() {
@@ -116,6 +116,17 @@
116
116
  </table>
117
117
  </template>
118
118
  </baseTabPane>
119
+ <baseTabPane :label="$t1('表单分类信息')">
120
+ <template #default>
121
+ <vxe-grid
122
+ ref="table-m1"
123
+ :data="menuKindAuthDTOs"
124
+ v-bind="vxeOption"
125
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
126
+ @custom="$vxeTableUtil.customHandle"
127
+ ></vxe-grid>
128
+ </template>
129
+ </baseTabPane>
119
130
  </baseTabs>
120
131
  </el-form>
121
132
  <groudDialog v-if="showGroupDialog" :visiable.sync="showGroupDialog"
@@ -170,7 +181,6 @@ export default {
170
181
  flag: 8,
171
182
  groupCode: null
172
183
  },
173
- vxeOption: {},
174
184
  companyInfoOption: {},
175
185
  userRoleOption: {},
176
186
  showRoleDialog: false,
@@ -218,7 +228,9 @@ export default {
218
228
  showCountryDialog: false,
219
229
  userInfo: {},
220
230
  userGroups: [],
221
- showGroupDialog: false
231
+ showGroupDialog: false,
232
+ vxeOption:{},
233
+ menuKindAuthDTOs:[]
222
234
  };
223
235
  },
224
236
  computed: {
@@ -231,13 +243,11 @@ export default {
231
243
  },
232
244
  async mounted() {
233
245
 
234
- // this.getEainsGroupDTO();
235
- // await this.initOutUserRoleCode();
236
- // await this.initDistributorRole();
237
246
  this.getUserInfo()
238
247
  this.getUserGroups()
239
248
  this.getData();
240
249
  this.getConpanyInfo()
250
+ this.initTableM1();
241
251
  },
242
252
  methods: {
243
253
  getData() {
@@ -431,49 +441,6 @@ export default {
431
441
  addCurrentCompany(callback) {
432
442
  this.confirmInsertCompany([this.companyInfo], callback);
433
443
  },
434
- initDistributorRole() {
435
- if (this.outUserCodes && this.outUserCodes.length == 1) {
436
- return this.$http({
437
- url: USER_PREFIX + '/role/list',
438
- method: 'post',
439
- success: res => {
440
- let roleList = res.objx || [];
441
- let distributorCode = this.outUserCodes[0];
442
- this.distributorRole = roleList.find(item => item.code == distributorCode);
443
- }
444
- });
445
- }
446
- },
447
- async initOutUserRoleCode() {
448
- //初始化外部用户编码
449
- return this.$http({
450
- url: USER_PREFIX + '/system_parameter/getByCode',
451
- method: 'post',
452
- data: {"code": "outUserRoleCode"},
453
- success: res => {
454
- let value = (!res.objx || !res.objx.value) ? "distributor" : res.objx.value;
455
- let codes = value.split(',');
456
- this.outUserCodes = codes;//外部用户编码
457
- this.initRoleDialogParam();//初始化角色弹框的查询参数
458
- }
459
- });
460
- },
461
- initRoleDialogParam() {
462
- //初始化角色弹框的查询参数
463
- if (this.userType == 1) {
464
- //企业用户
465
- this.roleDialogParam = {
466
- queryAll: true,
467
- neCodes: [...this.outUserCodes]
468
- };
469
- } else if (this.userType == 2) {
470
- //外部用户
471
- this.roleDialogParam = {
472
- queryAll: true,
473
- eqCodes: [...this.outUserCodes]
474
- };
475
- }
476
- },
477
444
  unlock() {
478
445
  this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
479
446
  var url = USER_PREFIX + '/user/unlockLoginAccount';
@@ -526,7 +493,47 @@ export default {
526
493
  this.userGroups = res.objx?.records || [];
527
494
  }
528
495
  });
529
- }
496
+ },
497
+ initTableM1() {
498
+ const tableOption = {
499
+ vue: this,
500
+ tableRef: 'table-m1',
501
+ tableName: 'edit-user-menuKind-m1',
502
+ columns: [
503
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
504
+ {
505
+ title: this.$t1('表单分类名称'),
506
+ field: 'menuKindName',
507
+ width: 350,
508
+ fixed: 'left'
509
+ },
510
+ {
511
+ width: 47,
512
+ fixed: 'right',
513
+ title: '',
514
+ sortable: false
515
+ }
516
+ ]
517
+ };
518
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
519
+ this.vxeOption = opts;
520
+ });
521
+ if (this.dataId) {
522
+ this.$http({
523
+ aes: true,
524
+ url: USER_PREFIX + `/menu_kind_auth/list`,
525
+ method: `post`,
526
+ data: {
527
+ userId: this.dataId
528
+ },
529
+ isLoading: true,
530
+ modalStrictly: true,
531
+ success: res => {
532
+ this.menuKindAuthDTOs = res.objx || [];
533
+ }
534
+ });
535
+ }
536
+ },
530
537
  }
531
538
  };
532
539
  </script>