cloud-web-corejs 1.0.54-dev.1 → 1.0.54-dev.100

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 (136) 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 +211 -0
  6. package/src/components/excelExport/index.js +6 -5
  7. package/src/components/excelExport/index.vue +8 -5
  8. package/src/components/excelExport/mixins.js +3 -1
  9. package/src/components/excelImport/index.js +13 -13
  10. package/src/components/excelImport/index.vue +9 -6
  11. package/src/components/excelImport/mixins.js +1 -1
  12. package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
  13. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -1
  14. package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
  15. package/src/components/fileLibrary/filterDialog.vue +379 -0
  16. package/src/components/fileLibrary/index.vue +28 -17
  17. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +27 -7
  18. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
  19. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
  20. package/src/components/fileLibrary/mixins/indexMixins.js +68 -15
  21. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
  22. package/src/components/fileLibrary/propertiesDialog.vue +4 -0
  23. package/src/components/jsonImport/mixins.js +1 -1
  24. package/src/components/onlineTalk/index.vue +327 -5
  25. package/src/components/onlineTalk/mixins.js +1 -1
  26. package/src/components/table/index.js +2 -1
  27. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  28. package/src/components/wf/wf.js +1737 -1
  29. package/src/components/wf/wfUtil.js +278 -1
  30. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
  31. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
  32. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  33. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
  34. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  35. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  36. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +8 -5
  37. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  38. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
  39. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  40. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  41. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  42. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  43. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +989 -1
  44. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  45. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  46. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  47. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +26 -2
  48. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  49. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +79 -0
  50. package/src/components/xform/form-designer/indexMixin.js +864 -1
  51. package/src/components/xform/form-designer/setting-panel/form-setting.vue +43 -3
  52. package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
  53. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -0
  54. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  55. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +13 -0
  56. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  57. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  58. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  59. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +20 -1
  60. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  61. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  62. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  63. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  64. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
  65. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  66. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  67. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +66 -0
  68. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +83 -6
  69. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +269 -27
  70. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  71. package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +189 -0
  72. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +57 -7
  73. package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
  74. package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
  75. package/src/components/xform/form-render/indexMixin.js +1703 -1
  76. package/src/components/xform/utils/emitter.js +4 -4
  77. package/src/layout/components/Sidebar/default.vue +1234 -1222
  78. package/src/layout/components/notify_message/unreadDialog.vue +11 -5
  79. package/src/mixins/selectDialog/index.js +1 -1
  80. package/src/router/modules/customer.js +15 -0
  81. package/src/store/config/index.js +1 -1
  82. package/src/store/modules/permission.js +1 -1
  83. package/src/store/modules/user.js +302 -1
  84. package/src/utils/pddLog.js +103 -0
  85. package/src/utils/request.js +28 -28
  86. package/src/utils/vab.js +1 -1
  87. package/src/views/bd/setting/bd_attach_setting/edit.vue +1 -1
  88. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +1 -1
  89. package/src/views/bd/setting/form_script/list1.vue +1 -2
  90. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  91. package/src/views/bd/setting/form_template/edit.vue +6 -2
  92. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  93. package/src/views/bd/setting/form_template/list.vue +5 -4
  94. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  95. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  96. package/src/views/bd/setting/form_template/mixins/list.js +1 -1
  97. package/src/views/bd/setting/form_template/mixins/wf_list.js +434 -0
  98. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  99. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  100. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  101. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  102. package/src/views/bd/setting/table_model/edit.vue +1 -1
  103. package/src/views/bd/setting/table_model/list.vue +5 -4
  104. package/src/views/bd/setting/table_model/mixins/list.js +14 -14
  105. package/src/views/user/area/dialog.vue +21 -8
  106. package/src/views/user/bill_setting/edit.vue +1 -1
  107. package/src/views/user/bill_setting/list.vue +1 -1
  108. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  109. package/src/views/user/common_attribute/list.vue +1 -1
  110. package/src/views/user/common_script/edit.vue +1 -1
  111. package/src/views/user/common_script/list.vue +1 -1
  112. package/src/views/user/company_info/dialog.vue +19 -9
  113. package/src/views/user/company_info/edit.vue +9 -1
  114. package/src/views/user/extend_datasource/dialog.vue +1 -0
  115. package/src/views/user/extend_datasource/edit.vue +3 -0
  116. package/src/views/user/extend_datasource/list.vue +2 -1
  117. package/src/views/user/file_type/edit.vue +30 -1
  118. package/src/views/user/file_type/list.vue +28 -0
  119. package/src/views/user/groups/edit.vue +2 -0
  120. package/src/views/user/groups/list.vue +1 -0
  121. package/src/views/user/home/dev.vue +29 -0
  122. package/src/views/user/home/index.vue +20 -8
  123. package/src/views/user/login/default.vue +4 -2
  124. package/src/views/user/outLink/form_view.vue +39 -12
  125. package/src/views/user/outLink/index.vue +17 -0
  126. package/src/views/user/outLink/view.vue +39 -13
  127. package/src/views/user/push_setting/list.vue +2 -2
  128. package/src/views/user/system_notice/infoDialog.vue +25 -1
  129. package/src/views/user/user/edit.vue +9 -9
  130. package/src/views/user/user/form_edit.vue +117 -49
  131. package/src/views/user/user/form_info.vue +210 -0
  132. package/src/views/user/user/form_list.vue +1 -0
  133. package/src/views/user/user/list.vue +563 -563
  134. package/src/views/user/wf/wf_obj_config/edit.vue +5 -1
  135. package/src/views/user/wf/wf_obj_config/list.vue +34 -3
  136. 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'},
@@ -45,11 +45,19 @@
45
45
  <td>{{ companyInfo.companyCode }}</td>
46
46
  </tr>
47
47
  <tr>
48
+ <th>
49
+ {{ $t1('组织默认首页') }}
50
+ </th>
51
+ <td colspan="3">
52
+ <el-form-item prop="defaultHomePage" :rules="[{ required: false, trigger: 'blur' }]">
53
+ <el-input type="text" autocomplete="off" v-model="companyInfo.defaultHomePage" clearable/>
54
+ </el-form-item>
55
+ </td>
48
56
  <th>
49
57
  <em class="f-red">*</em>
50
58
  {{ $t1('组织唯一标志') }}
51
59
  </th>
52
- <td colspan="5">{{ companyInfo.uniqueIdentify }}</td>
60
+ <td colspan="3">{{ companyInfo.uniqueIdentify }}</td>
53
61
  </tr>
54
62
  <tr>
55
63
  <th>{{ $t1('备注') }}</th>
@@ -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>
@@ -21,6 +21,7 @@ export default {
21
21
  flag: 0,
22
22
  homeContent: null,
23
23
  showHomeContent: false,
24
+ userInfo: {}
24
25
  };
25
26
  },
26
27
  created() {
@@ -33,10 +34,9 @@ export default {
33
34
  method: 'post',
34
35
  success: res => {
35
36
  let userInfo = res.objx;
37
+ this.userInfo = userInfo;
36
38
  let flag = userInfo.flag;
37
- if (flag !== 6 && flag !== 7 && flag !== 8) {
38
- this.initHome();
39
- }
39
+ this.initHome();
40
40
  }
41
41
  });
42
42
  },
@@ -57,6 +57,15 @@ export default {
57
57
  });
58
58
  },
59
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
+ }
60
69
  this.$http({
61
70
  url: USER_PREFIX + '/menu/currentList',
62
71
  data: {},
@@ -66,17 +75,20 @@ export default {
66
75
  let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
67
76
  let menuUrl = homeMenu?.url;
68
77
 
78
+ let userInfo = this.userInfo;
79
+ let flag = userInfo.flag;
80
+
69
81
  let str1 = "@base/views";
70
82
  let str2 = "@/views";
71
- let url = null;
72
- if (menuUrl) {
83
+
84
+ if (menuUrl && flag !== 1) {
85
+ //超级管理员不使用角色首页
73
86
  url = menuUrl + '.vue';
74
87
  } else {
75
- let homeConfig = corejsConfig.homeConfig || {}
76
- url = homeConfig.url ? homeConfig.url : '@base/views/user/home/default.vue'
88
+ let defaultHomePage = this.userInfo.defaultHomePage;
89
+ url = defaultHomePage ? defaultHomePage : '@base/views/user/home/default.vue'
77
90
  }
78
91
  if (url.startsWith(str1)) {
79
- let a = url.slice(str1.length);
80
92
  this.homeContent = require('@base/views' + url.slice(str1.length)).default;
81
93
  } else if (url.startsWith(str2)) {
82
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
  },
@@ -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 : '';