cloud-web-corejs 1.0.54-dev.9 → 1.0.54-dev.91

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 (119) hide show
  1. package/package.json +9 -3
  2. package/src/components/VabUpload/index.vue +2 -1
  3. package/src/components/VabUpload/mixins.js +1 -1
  4. package/src/components/VabUpload/view.vue +2 -1
  5. package/src/components/excelExport/exportFieldDialog.vue +17 -7
  6. package/src/components/excelExport/index.js +2 -1
  7. package/src/components/excelExport/index.vue +8 -6
  8. package/src/components/excelExport/mixins.js +1 -2
  9. package/src/components/excelImport/index.vue +2 -1
  10. package/src/components/excelImport/mixins.js +1 -1
  11. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  12. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
  13. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  14. package/src/components/fileLibrary/index.vue +3 -3
  15. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +8 -3
  16. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
  17. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
  18. package/src/components/fileLibrary/mixins/indexMixins.js +31 -17
  19. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
  20. package/src/components/fileLibrary/propertiesDialog.vue +4 -0
  21. package/src/components/jsonImport/mixins.js +1 -1
  22. package/src/components/onlineTalk/index.vue +327 -5
  23. package/src/components/onlineTalk/mixins.js +1 -1
  24. package/src/components/table/index.js +2 -1
  25. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  26. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
  27. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
  28. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  29. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
  30. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  31. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  32. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +8 -5
  33. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  34. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
  35. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  36. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  37. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  38. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  39. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  40. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  41. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  42. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  43. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  44. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +79 -0
  45. package/src/components/xform/form-designer/indexMixin.js +1 -1
  46. package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -3
  47. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -0
  48. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  49. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +13 -0
  50. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  51. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  52. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  53. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  54. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  55. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  56. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
  57. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  58. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  59. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  60. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +109 -22
  61. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  62. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -4
  63. package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
  64. package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
  65. package/src/components/xform/form-render/indexMixin.js +1669 -1
  66. package/src/layout/components/Sidebar/default.vue +18 -6
  67. package/src/mixins/selectDialog/index.js +1 -1
  68. package/src/router/modules/customer.js +15 -0
  69. package/src/store/config/index.js +1 -1
  70. package/src/store/modules/permission.js +1 -1
  71. package/src/store/modules/user.js +302 -1
  72. package/src/utils/pddLog.js +2 -0
  73. package/src/utils/request.js +28 -28
  74. package/src/utils/vab.js +1 -1
  75. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  76. package/src/views/bd/setting/form_template/edit.vue +2 -2
  77. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  78. package/src/views/bd/setting/form_template/list.vue +4 -2
  79. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  80. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  81. package/src/views/bd/setting/form_template/mixins/list.js +1 -1
  82. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  83. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  84. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  85. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  86. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  87. package/src/views/bd/setting/table_model/edit.vue +1 -1
  88. package/src/views/bd/setting/table_model/list.vue +4 -2
  89. package/src/views/bd/setting/table_model/mixins/list.js +14 -14
  90. package/src/views/user/area/dialog.vue +21 -8
  91. package/src/views/user/bill_setting/edit.vue +1 -1
  92. package/src/views/user/bill_setting/list.vue +1 -1
  93. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  94. package/src/views/user/common_attribute/list.vue +1 -1
  95. package/src/views/user/common_script/edit.vue +1 -1
  96. package/src/views/user/common_script/list.vue +1 -1
  97. package/src/views/user/company_info/dialog.vue +19 -9
  98. package/src/views/user/company_info/edit.vue +1 -1
  99. package/src/views/user/extend_datasource/dialog.vue +1 -0
  100. package/src/views/user/extend_datasource/edit.vue +3 -0
  101. package/src/views/user/extend_datasource/list.vue +2 -1
  102. package/src/views/user/file_type/edit.vue +30 -1
  103. package/src/views/user/file_type/list.vue +28 -0
  104. package/src/views/user/groups/edit.vue +2 -0
  105. package/src/views/user/groups/list.vue +1 -0
  106. package/src/views/user/home/dev.vue +29 -0
  107. package/src/views/user/home/index.vue +16 -6
  108. package/src/views/user/login/default.vue +4 -2
  109. package/src/views/user/outLink/form_view.vue +39 -12
  110. package/src/views/user/outLink/index.vue +17 -0
  111. package/src/views/user/outLink/view.vue +39 -13
  112. package/src/views/user/push_setting/list.vue +2 -2
  113. package/src/views/user/user/edit.vue +9 -9
  114. package/src/views/user/user/form_edit.vue +117 -49
  115. package/src/views/user/user/form_info.vue +210 -0
  116. package/src/views/user/user/form_list.vue +1 -0
  117. package/src/views/user/user/list.vue +3 -3
  118. package/src/views/user/wf/wf_obj_config/list.vue +19 -3
  119. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-dialog
3
- :title="$t1('组织列表')"
3
+ :title="title || $t1('组织列表')"
4
4
  :append-to-body="true"
5
5
  :modal-append-to-body="true"
6
6
  :close-on-click-modal="falseValue"
@@ -8,6 +8,7 @@
8
8
  :modal="falseValue"
9
9
  custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
10
  width="1200px"
11
+ :before-close="handleBeforeClose"
11
12
  @close="dialogClose"
12
13
  v-el-drag-dialog
13
14
  v-el-dialog-center
@@ -64,7 +65,7 @@
64
65
  </div>
65
66
  <span slot="footer" class="dialog-footer">
66
67
  <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
67
- <el-button type="primary" plain class="button-sty" @click="dialogClose">
68
+ <el-button type="primary" plain class="button-sty" @click="dialogCancel">
68
69
  <i class="el-icon-close el-icon"></i>
69
70
  {{ $t1('取 消') }}
70
71
  </el-button>
@@ -81,38 +82,47 @@ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
81
82
 
82
83
  export default {
83
84
  name: 'company_info_dialog',
84
- props: ['visiable', 'multi', 'rows', 'param', 'firstEnabled'],
85
+ props: ['title', 'visiable', 'multi', 'rows', 'param', 'firstEnabled', 'allCompany'],
85
86
  mixins: [selectDialogMixins],
86
87
  created() {
88
+ if (this.$attrs.fieldKey) this.fieldKey = this.$attrs.fieldKey;
87
89
  this.initSetting();
88
90
  },
89
91
  mounted() {
90
92
  this.initTableM1();
91
93
  },
92
94
  data() {
93
- var that = this;
94
95
  return {
95
96
  showDialog: true,
96
97
  falseValue: false,
97
98
  selectMulti: true,
98
99
  formData: {},
99
- vxeOption: {}
100
+ vxeOption: {},
100
101
  };
101
102
  },
102
103
  methods: {
103
104
  initTableM1() {
104
105
  let that = this;
106
+ let path = USER_PREFIX + '/user_company_info/getCurrentList';
107
+ let treeNodeUrl = USER_PREFIX + '/user_company_info/getChildren';
108
+ if (this.allCompany) {
109
+ path = USER_PREFIX + '/company_info/getRoot';
110
+ treeNodeUrl = USER_PREFIX + '/company_info/getChildren';
111
+ }
105
112
  let tableOption = {
106
113
  vue: that,
107
114
  tableRef: 'table-m1',
108
115
  tableName: 'basic_ompany_info_dialog_list',
109
- path: USER_PREFIX + '/user_company_info/getCurrentList',
110
- treeNodeUrl: USER_PREFIX + '/user_company_info/getChildren',
116
+ path: path,
117
+ treeNodeUrl: treeNodeUrl,
111
118
  treeNodeParam: function (row) {
112
- return {parentCompanyCode: row.companyCode};
119
+ return {enabled: true, parentCompanyCode: row.companyCode};
113
120
  },
114
121
  param: () => {
115
- return this.formData;
122
+ return {
123
+ enabled: true,
124
+ ...this.formData
125
+ }
116
126
  },
117
127
  columns: [
118
128
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
@@ -46,7 +46,7 @@
46
46
  </tr>
47
47
  <tr>
48
48
  <th>
49
- {{ $t1('企业默认首页') }}
49
+ {{ $t1('组织默认首页') }}
50
50
  </th>
51
51
  <td colspan="3">
52
52
  <el-form-item prop="defaultHomePage" :rules="[{ required: false, trigger: 'blur' }]">
@@ -119,6 +119,7 @@ export default {
119
119
  tableRef: 'table-m1',
120
120
  tableName: 'report_datasource_dialog-m1',
121
121
  path: USER_PREFIX + '/extend_datasource/listPage',
122
+ aes: true,
122
123
  param: () => {
123
124
  return {
124
125
  enabled: true,
@@ -168,6 +168,7 @@ export default {
168
168
  if (this.dataId && !isNaN(this.dataId)) {
169
169
  this.isEdit = true;
170
170
  this.$http({
171
+ aes: true,
171
172
  url: USER_PREFIX + `/extend_datasource/get`,
172
173
  method: `post`,
173
174
  data: {
@@ -189,6 +190,7 @@ export default {
189
190
  if (valid) {
190
191
  this.$baseConfirm(this.$t1('您确定要测试数据库链接吗?')).then(() => {
191
192
  this.$http({
193
+ aes: true,
192
194
  url: USER_PREFIX + '/extend_datasource/dblinktest',
193
195
  method: `post`,
194
196
  data: this.dataSource,
@@ -211,6 +213,7 @@ export default {
211
213
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
212
214
  var url = USER_PREFIX + (this.isEdit ? `/extend_datasource/update` : `/extend_datasource/save`);
213
215
  this.$http({
216
+ aes: true,
214
217
  url: url,
215
218
  method: `post`,
216
219
  data: this.dataSource,
@@ -72,7 +72,7 @@
72
72
  import editView from './edit.vue';
73
73
 
74
74
  export default {
75
- name: 'report_datasource:list',
75
+ name: 'extend_datasource:list',
76
76
  components: {editView},
77
77
  data() {
78
78
  return {
@@ -106,6 +106,7 @@ export default {
106
106
  tableRef: 'table-m1',
107
107
  tableName: 'user_report_datasource_list-m1',
108
108
  path: USER_PREFIX + '/extend_datasource/listPage',
109
+ aes: true,
109
110
  param: () => {
110
111
  return this.formData;
111
112
  },
@@ -55,6 +55,30 @@
55
55
  </el-radio-group>
56
56
  </el-form-item>
57
57
  </td>
58
+ <th>
59
+ <em class="f-red">*</em>
60
+ {{ $t1('文件操作,是否发系统通知') }}
61
+ </th>
62
+ <td>
63
+ <el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
64
+ <el-radio-group v-model="fileStoreArea.toNotify">
65
+ <el-radio :label="1">{{ $t1('是') }}</el-radio>
66
+ <el-radio :label="0">{{ $t1('否') }}</el-radio>
67
+ </el-radio-group>
68
+ </el-form-item>
69
+ </td>
70
+ <th>
71
+ <em class="f-red">*</em>
72
+ {{ $t1('文件下载,是否打水印') }}
73
+ </th>
74
+ <td>
75
+ <el-form-item prop="toDownWatermark" :rules="[{ required: true, trigger: 'blur' }]">
76
+ <el-radio-group v-model="fileStoreArea.toDownWatermark">
77
+ <el-radio :label="1">{{ $t1('是') }}</el-radio>
78
+ <el-radio :label="0">{{ $t1('否') }}</el-radio>
79
+ </el-radio-group>
80
+ </el-form-item>
81
+ </td>
58
82
  </tr>
59
83
  <tr>
60
84
  <th>{{ $t1('备注') }}</th>
@@ -94,7 +118,12 @@ export default {
94
118
  tabIndex: 0,
95
119
  isEdit: false,
96
120
  dataId: '',
97
- fileStoreArea: {storeAreaType: 0, hasAuth: 0},
121
+ fileStoreArea: {
122
+ storeAreaType: 0,
123
+ hasAuth: 0,
124
+ toNotify: 0,
125
+ toDownWatermark: 0
126
+ },
98
127
  };
99
128
  },
100
129
  created() {
@@ -154,6 +154,34 @@ export default {
154
154
  }
155
155
  }
156
156
  },
157
+ {
158
+ field: 'toNotify',
159
+ title: this.$t1('文件操作,是否发系统通知'),
160
+ width: 220,
161
+ slots: {
162
+ default: ({row}) => {
163
+ if (row.toNotify == 1) {
164
+ return [<div class="txt-status">{this.$t1('是')}</div>];
165
+ } else {
166
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
167
+ }
168
+ }
169
+ }
170
+ },
171
+ {
172
+ field: 'toDownWatermark',
173
+ title: this.$t1('文件下载,是否打水印'),
174
+ width: 200,
175
+ slots: {
176
+ default: ({row}) => {
177
+ if (row.toDownWatermark == 1) {
178
+ return [<div class="txt-status">{this.$t1('是')}</div>];
179
+ } else {
180
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
181
+ }
182
+ }
183
+ }
184
+ },
157
185
  {
158
186
  title: this.$t1('备注'),
159
187
  field: 'note',
@@ -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;
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div id="containt" class="index-home-sys">
3
+ <i class="iconfont icon-a-kaifa1"></i>
4
+ <span>{{$t1('开发管理平台')}}</span>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+
10
+ export default {
11
+ data() {
12
+ return {
13
+ }
14
+ },
15
+ methods: {
16
+ }
17
+
18
+ };
19
+ </script>
20
+ <style scoped lang="scss">
21
+ .index-home-sys{
22
+ background-color: #DEE9F2 !important;margin-top: 10px !important;height: calc(100vh - 52px);border-radius: 12px !important;text-align: center;line-height: calc(100vh - 60px);letter-spacing: 2px;
23
+ font-size: 48px;font-weight: 600;
24
+ i{vertical-align: middle;font-weight: 400;margin-right: 24px;color:#225076;font-size:48px;}
25
+ span{position: relative;
26
+ &:before{content: "";position: absolute;bottom:0;left:0;width: 223px;height: 16px;background: #96B4CD;z-index: -1;opacity: 0.8;}
27
+ }
28
+ }
29
+ </style>
@@ -36,9 +36,7 @@ export default {
36
36
  let userInfo = res.objx;
37
37
  this.userInfo = userInfo;
38
38
  let flag = userInfo.flag;
39
- if (flag !== 6 && flag !== 7 && flag !== 8) {
40
- this.initHome();
41
- }
39
+ this.initHome();
42
40
  }
43
41
  });
44
42
  },
@@ -59,6 +57,15 @@ export default {
59
57
  });
60
58
  },
61
59
  initHome() {
60
+ let url = null;
61
+ let userInfo = this.userInfo;
62
+ let flag = userInfo.flag;
63
+ if (flag == 6 || flag == 7 || flag == 8) {
64
+ let url = '/user/home/dev.vue'
65
+ this.homeContent = require('@base/views' + url).default;
66
+ this.showHomeContent = true;
67
+ return
68
+ }
62
69
  this.$http({
63
70
  url: USER_PREFIX + '/menu/currentList',
64
71
  data: {},
@@ -68,17 +75,20 @@ export default {
68
75
  let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
69
76
  let menuUrl = homeMenu?.url;
70
77
 
78
+ let userInfo = this.userInfo;
79
+ let flag = userInfo.flag;
80
+
71
81
  let str1 = "@base/views";
72
82
  let str2 = "@/views";
73
- let url = null;
74
- if (menuUrl) {
83
+
84
+ if (menuUrl && flag !== 1) {
85
+ //超级管理员不使用角色首页
75
86
  url = menuUrl + '.vue';
76
87
  } else {
77
88
  let defaultHomePage = this.userInfo.defaultHomePage;
78
89
  url = defaultHomePage ? defaultHomePage : '@base/views/user/home/default.vue'
79
90
  }
80
91
  if (url.startsWith(str1)) {
81
- let a = url.slice(str1.length);
82
92
  this.homeContent = require('@base/views' + url.slice(str1.length)).default;
83
93
  } else if (url.startsWith(str2)) {
84
94
  this.homeContent = require('@/views' + url.slice(str2.length)).default;
@@ -59,8 +59,10 @@
59
59
  </el-tabs>
60
60
  </div>
61
61
  <div class="tc copyright">
62
- © 广州同望科技发展有限公司
63
- <span style="margin-left:50px;">4000646100</span>
62
+ <slot name="footer">
63
+ © 广州同望科技发展有限公司
64
+ <span style="margin-left:50px;">4000646100</span>
65
+ </slot>
64
66
  </div>
65
67
  </div>
66
68
  </template>
@@ -64,6 +64,25 @@ export default {
64
64
 
65
65
  delete queryParam.urlmobile;
66
66
  delete queryParam.url;
67
+
68
+ if (purl.indexOf('.html') >= 0) {
69
+ let eUrl = purl;
70
+ let pstr = Object.keys(queryParam).map(key => {
71
+ return key + "=" + queryParam[key]
72
+ }).join("&")
73
+
74
+ if (pstr) {
75
+ if (purl.indexOf('.html?') >= 0) {
76
+ eUrl = eUrl + '&' + pstr
77
+ } else {
78
+ eUrl = eUrl + '?' + pstr
79
+ }
80
+ }
81
+
82
+ location.href = eUrl;
83
+ return
84
+ }
85
+
67
86
  delete queryParam.dataId;
68
87
  delete queryParam.showWfContent;
69
88
  delete queryParam.access_token;
@@ -74,7 +93,6 @@ export default {
74
93
  let url = purl + '.vue';
75
94
  this.queryParam = queryParam;
76
95
  this.showWfContent = true;
77
- await this.initI18n();
78
96
  // this.wfContent = require('@/views' + url).default;
79
97
  let t = "@base/views";
80
98
  let urlArr = [
@@ -82,25 +100,34 @@ export default {
82
100
  '/user/form/view/list.vue',
83
101
  '/user/form/view/edit.vue'
84
102
  ]
85
- if (urlArr.includes(url)) {
86
- this.wfContent = require('@base/views' + url).default;
87
- } else if (url.startsWith(t)) {
88
- let path = url.slice(t.length);
89
- this.wfContent = require('@base/views' + path).default;
90
- } else {
91
- this.wfContent = require('@/views' + url).default;
92
- }
93
-
103
+ this.initUserInfo(() => {
104
+ this.initI18n();
105
+ if (urlArr.includes(url)) {
106
+ this.wfContent = require('@base/views' + url).default;
107
+ } else if (url.startsWith(t)) {
108
+ let path = url.slice(t.length);
109
+ this.wfContent = require('@base/views' + path).default;
110
+ } else {
111
+ this.wfContent = require('@/views' + url).default;
112
+ }
113
+ })
114
+ },
115
+ initUserInfo(callback) {
116
+ this.$store
117
+ .dispatch('user/getInfo2')
118
+ .then(() => {
119
+ callback && callback();
120
+ });
94
121
  },
95
122
  getI18nLang() {
96
123
  let i18nLang = this.$route.query.i18nLang || "zh";
97
124
  return i18nLang;
98
125
  },
99
- initI18n() {
126
+ async initI18n() {
100
127
  let lang = this.getI18nLang();
101
128
  this.$i18n.locale = lang // 设置给本地的i18n插件
102
129
  localStorage.setItem("i18n-lang", lang);
103
- return indexUtil.initI18nMessage("business", lang, true);
130
+ await indexUtil.initI18nMessage("business", lang, true);
104
131
  },
105
132
  login() {
106
133
  let token = this.$route.query.access_token;
@@ -8,6 +8,8 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import {getToken} from "@base/utils/auth";
12
+
11
13
  export default {
12
14
  name: 'outLink',
13
15
  data() {
@@ -36,6 +38,21 @@ export default {
36
38
  this.type = 1;
37
39
  }
38
40
  });
41
+ }else if (url.indexOf('token=platform_token') >= 0) {
42
+ this.$http({
43
+ url: YX_PREFIX + `/fundPlatform/getToken`,
44
+ method: `post`,
45
+ data: {},
46
+ isLoading: true,
47
+ success: res => {
48
+ this.url = url.replace('token=platform_token', 'token=' + res.objx);
49
+ this.type = 1;
50
+ }
51
+ });
52
+ } else if (url.indexOf('token=true') >= 0) {
53
+ let token = getToken();
54
+ this.url = url.replace('token=true', ('token=' + token))
55
+ this.type = 1;
39
56
  } else {
40
57
  this.url = url;
41
58
  this.type = 1;
@@ -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;
@@ -72,27 +91,34 @@ export default {
72
91
  '/user/form/view/list.vue',
73
92
  '/user/form/view/edit.vue'
74
93
  ]
75
- if (urlArr.includes(url)) {
76
- this.wfContent = require('@base/views' + url).default;
77
- } else if (url.startsWith(t)) {
78
- let path = url.slice(t.length);
79
- this.wfContent = require('@base/views' + path).default;
80
- } else {
81
- this.wfContent = require('@/views' + url).default;
82
- }
83
-
84
- this.initI18n();
85
-
94
+ this.initUserInfo(() => {
95
+ this.initI18n();
96
+ if (urlArr.includes(url)) {
97
+ this.wfContent = require('@base/views' + url).default;
98
+ } else if (url.startsWith(t)) {
99
+ let path = url.slice(t.length);
100
+ this.wfContent = require('@base/views' + path).default;
101
+ } else {
102
+ this.wfContent = require('@/views' + url).default;
103
+ }
104
+ })
105
+ },
106
+ initUserInfo(callback) {
107
+ this.$store
108
+ .dispatch('user/getInfo2')
109
+ .then(() => {
110
+ callback && callback();
111
+ });
86
112
  },
87
113
  getI18nLang() {
88
114
  let i18nLang = this.$route.query.i18nLang || "zh";
89
115
  return i18nLang;
90
116
  },
91
- initI18n() {
117
+ async initI18n() {
92
118
  let lang = this.getI18nLang();
93
119
  this.$i18n.locale = lang // 设置给本地的i18n插件
94
120
  localStorage.setItem("i18n-lang", lang);
95
- indexUtil.initI18nMessage("business", lang, true);
121
+ await indexUtil.initI18nMessage("business", lang, true);
96
122
  },
97
123
  login() {
98
124
  let token = this.$route.query.access_token;
@@ -32,7 +32,7 @@
32
32
  <el-input v-model="formData.dataType" size="small" clearable/>
33
33
  </template>
34
34
  </vxe-form-item>
35
- <vxe-form-item title="推送企业编码:" field="pushCompanyCode">
35
+ <vxe-form-item title="推送组织编码:" field="pushCompanyCode">
36
36
  <template v-slot>
37
37
  <el-input v-model="formData.pushCompanyCode" size="small" clearable/>
38
38
  </template>
@@ -142,7 +142,7 @@ export default {
142
142
  fixed: 'left'
143
143
  },
144
144
  {
145
- title: '推送企业编码',
145
+ title: '推送组织编码',
146
146
  field: 'pushCompanyCode',
147
147
  width: 150
148
148
  },
@@ -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('解锁') }}
@@ -136,14 +136,14 @@
136
136
  <el-input size="small" v-model="user.email" maxlength="200" clearable/>
137
137
  </el-form-item>
138
138
  </td>
139
- <th v-if="flag!=='2'">
139
+ <!-- <th v-if="flag!=='2'">
140
140
  GUID
141
141
  </th>
142
142
  <td v-if="flag!=='2'">
143
143
  <el-form-item prop="guid" :rules="[{ required: false, trigger: 'blur' }]">
144
144
  <el-input size="small" v-model="user.guid" maxlength="200" clearable/>
145
145
  </el-form-item>
146
- </td>
146
+ </td>-->
147
147
  <th>{{ $t1('地址') }}</th>
148
148
  <td colspan="3">
149
149
  <el-input size="small" v-model="user.address" class="b" maxlength="255" clearable/>
@@ -215,7 +215,7 @@
215
215
  </el-button>
216
216
  </div>
217
217
  <div class="title-form">
218
- <span v-if="flag==='2'">
218
+ <span>
219
219
  <el-form-item label="GUID" :prop="'userCompanyInfoDTOs.'+index1+'.guid'"
220
220
  :rules="[{ required: false, trigger: 'blur' }]">
221
221
  <el-input size="small" v-model="item.guid" maxlength="200" clearable/>
@@ -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() {
@@ -698,7 +698,7 @@ export default {
698
698
  if (rows.length > 0) {
699
699
  let outUserCodes = this.outUserCodes;
700
700
  if (this.userType === 1) {
701
- //企业用户
701
+ //组织用户
702
702
  rows = rows.filter(row => !outUserCodes.includes(row.code));
703
703
  } else if (this.userType === 2) {
704
704
  //外部用户
@@ -973,7 +973,7 @@ export default {
973
973
  initRoleDialogParam() {
974
974
  //初始化角色弹框的查询参数
975
975
  if (this.userType == 1) {
976
- //企业用户
976
+ //组织用户
977
977
  this.roleDialogParam = {
978
978
  queryAll: true,
979
979
  neCodes: [...this.outUserCodes]