cloud-web-corejs 1.0.54-dev.12 → 1.0.54-dev.121

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 (167) hide show
  1. package/package.json +9 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/view.vue +2 -1
  6. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  7. package/src/components/excelExport/index.js +2 -1
  8. package/src/components/excelExport/index.vue +8 -6
  9. package/src/components/excelExport/mixins.js +1 -2
  10. package/src/components/excelImport/index.vue +2 -1
  11. package/src/components/excelImport/mixins.js +1 -1
  12. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  13. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
  14. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  15. package/src/components/fileLibrary/filterDialog.vue +383 -0
  16. package/src/components/fileLibrary/index.vue +23 -24
  17. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  18. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  19. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  20. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +15 -10
  21. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +8 -5
  22. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  23. package/src/components/fileLibrary/mixins/indexMixins.js +76 -26
  24. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  25. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  26. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  27. package/src/components/fileLibrary/shareDialog.vue +1 -1
  28. package/src/components/jsonImport/mixins.js +1 -1
  29. package/src/components/onlineTalk/index.vue +327 -5
  30. package/src/components/onlineTalk/mixins.js +1 -1
  31. package/src/components/table/index.js +2 -1
  32. package/src/components/table/tableForm.vue +36 -2
  33. package/src/components/table/tableFormMixin.js +222 -1
  34. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  35. package/src/components/wf/wf.js +1763 -1
  36. package/src/components/wf/wfStartDialog.vue +1 -1
  37. package/src/components/wf/wfUtil.js +279 -1
  38. package/src/components/xform/form-designer/designer.js +1514 -1
  39. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
  40. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
  41. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  42. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
  43. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  44. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  45. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +11 -5
  46. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  47. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
  48. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
  49. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  50. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  51. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  52. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  53. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1026 -1
  54. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  55. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  56. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  57. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +67 -3
  58. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
  59. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
  60. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  61. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +80 -0
  62. package/src/components/xform/form-designer/indexMixin.js +773 -1
  63. package/src/components/xform/form-designer/setting-panel/form-setting.vue +59 -36
  64. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  65. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  66. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +9 -0
  67. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  68. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +595 -299
  69. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  70. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  71. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  72. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +20 -1
  73. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  74. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  75. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  76. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  77. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
  78. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  79. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +39 -1
  80. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  81. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +177 -0
  82. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
  83. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  84. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +1 -1
  85. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
  86. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
  87. package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
  88. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +145 -147
  89. package/src/components/xform/form-render/container-item/data-table-item.vue +6 -5
  90. package/src/components/xform/form-render/container-item/data-table-mixin.js +2122 -18
  91. package/src/components/xform/form-render/indexMixin.js +1792 -1
  92. package/src/components/xform/mixins/defaultHandle.js +120 -1
  93. package/src/components/xform/mixins/scriptHttp.js +82 -1
  94. package/src/components/xform/utils/emitter.js +4 -4
  95. package/src/components/xform/utils/util.js +1631 -1
  96. package/src/layout/components/Sidebar/default.vue +50 -6
  97. package/src/layout/components/TagsView/index.vue +0 -1
  98. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  99. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  100. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  101. package/src/mixins/selectDialog/index.js +1 -1
  102. package/src/router/modules/customer.js +15 -0
  103. package/src/store/config/index.js +664 -1
  104. package/src/store/modules/permission.js +1 -1
  105. package/src/store/modules/user.js +1 -1
  106. package/src/utils/index.js +4 -2
  107. package/src/utils/pddLog.js +103 -0
  108. package/src/utils/request.js +28 -28
  109. package/src/utils/vab.js +1 -1
  110. package/src/views/bd/setting/form_import_log/edit.vue +120 -0
  111. package/src/views/bd/setting/form_import_log/list.vue +195 -0
  112. package/src/views/bd/setting/form_script/edit1.vue +1 -1
  113. package/src/views/bd/setting/form_script/mixins/edit.js +167 -1
  114. package/src/views/bd/setting/form_script/mixins/edit1.js +165 -1
  115. package/src/views/bd/setting/form_script/mixins/list.js +176 -1
  116. package/src/views/bd/setting/form_script/mixins/list1.js +345 -14
  117. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  118. package/src/views/bd/setting/form_template/edit.vue +9 -1
  119. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  120. package/src/views/bd/setting/form_template/list.vue +4 -2
  121. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  122. package/src/views/bd/setting/form_template/mixins/edit.js +170 -1
  123. package/src/views/bd/setting/form_template/mixins/list.js +522 -1
  124. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  125. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  126. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  127. package/src/views/bd/setting/menu_kind/mixins/list.js +176 -1
  128. package/src/views/bd/setting/table_model/edit.vue +71 -13
  129. package/src/views/bd/setting/table_model/list.vue +4 -2
  130. package/src/views/bd/setting/table_model/mixins/edit.js +901 -13
  131. package/src/views/bd/setting/table_model/mixins/list.js +345 -14
  132. package/src/views/user/area/dialog.vue +21 -9
  133. package/src/views/user/bill_setting/edit.vue +1 -1
  134. package/src/views/user/bill_setting/list.vue +1 -1
  135. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  136. package/src/views/user/common_attribute/list.vue +1 -1
  137. package/src/views/user/common_script/edit.vue +1 -1
  138. package/src/views/user/common_script/list.vue +1 -1
  139. package/src/views/user/company_info/dialog.vue +19 -9
  140. package/src/views/user/company_info/edit.vue +1 -1
  141. package/src/views/user/extend_datasource/dialog.vue +1 -0
  142. package/src/views/user/extend_datasource/edit.vue +3 -0
  143. package/src/views/user/extend_datasource/list.vue +2 -1
  144. package/src/views/user/file_type/edit.vue +30 -1
  145. package/src/views/user/file_type/list.vue +28 -0
  146. package/src/views/user/form/vform/designer.vue +5 -1
  147. package/src/views/user/groups/edit.vue +2 -0
  148. package/src/views/user/groups/list.vue +1 -0
  149. package/src/views/user/home/default.vue +15 -11
  150. package/src/views/user/home/dev.vue +29 -0
  151. package/src/views/user/home/index.vue +16 -6
  152. package/src/views/user/login/default.vue +4 -2
  153. package/src/views/user/login/index2.vue +131 -0
  154. package/src/views/user/notify_message/dialog.vue +1 -1
  155. package/src/views/user/outLink/form_view.vue +39 -12
  156. package/src/views/user/outLink/index.vue +17 -0
  157. package/src/views/user/outLink/view.vue +39 -13
  158. package/src/views/user/push_setting/list.vue +2 -2
  159. package/src/views/user/user/edit.vue +9 -9
  160. package/src/views/user/user/form_edit.vue +117 -49
  161. package/src/views/user/user/form_info.vue +210 -0
  162. package/src/views/user/user/form_list.vue +1 -0
  163. package/src/views/user/user/list.vue +3 -3
  164. package/src/views/user/wf/wf_manage/list.vue +1 -1
  165. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  166. package/src/views/user/wf/wf_obj_config/list.vue +19 -3
  167. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -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]
@@ -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"
@@ -126,6 +137,7 @@
126
137
  <script>
127
138
  import xeUtils from "xe-utils";
128
139
  import groudDialog from "@base/views/user/groups/dialog.vue";
140
+ import {getBdEnv} from "@base/api/user";
129
141
 
130
142
  export default {
131
143
  name: 'UserEdit',
@@ -170,7 +182,6 @@ export default {
170
182
  flag: 8,
171
183
  groupCode: null
172
184
  },
173
- vxeOption: {},
174
185
  companyInfoOption: {},
175
186
  userRoleOption: {},
176
187
  showRoleDialog: false,
@@ -218,7 +229,10 @@ export default {
218
229
  showCountryDialog: false,
219
230
  userInfo: {},
220
231
  userGroups: [],
221
- showGroupDialog: false
232
+ showGroupDialog: false,
233
+ vxeOption: {},
234
+ menuKindAuthDTOs: [],
235
+ isDev: true
222
236
  };
223
237
  },
224
238
  computed: {
@@ -231,19 +245,19 @@ export default {
231
245
  },
232
246
  async mounted() {
233
247
 
234
- // this.getEainsGroupDTO();
235
- // await this.initOutUserRoleCode();
236
- // await this.initDistributorRole();
237
248
  this.getUserInfo()
238
249
  this.getUserGroups()
239
250
  this.getData();
240
251
  this.getConpanyInfo()
252
+ await this.initBdEnv();
253
+ this.initTableM1();
241
254
  },
242
255
  methods: {
243
256
  getData() {
244
257
  if (this.dataId && !isNaN(this.dataId)) {
245
258
  this.isEdit = true;
246
259
  this.$commonHttp({
260
+ aes: true,
247
261
  url: USER_PREFIX + `/user/get`,
248
262
  method: `post`,
249
263
  data: {
@@ -287,6 +301,7 @@ export default {
287
301
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
288
302
  var url = USER_PREFIX + (this.isEdit ? '/user/update' : '/user/save');
289
303
  this.$http({
304
+ aes: true,
290
305
  url: url,
291
306
  method: `post`,
292
307
  data: this.user,
@@ -317,6 +332,7 @@ export default {
317
332
  getSaleOrgData() {
318
333
  if (this.dataId) {
319
334
  this.$http({
335
+ aes: true,
320
336
  url: USER_PREFIX + '/user/getUserSaleOrg',
321
337
  method: `post`,
322
338
  data: {id: this.dataId},
@@ -337,6 +353,7 @@ export default {
337
353
  getUserRoleData() {
338
354
  if (this.dataId) {
339
355
  this.$http({
356
+ aes: true,
340
357
  url: USER_PREFIX + '/user/getUserRole',
341
358
  method: `post`,
342
359
  data: {id: this.dataId},
@@ -360,6 +377,7 @@ export default {
360
377
  getCompanyInfoData(callback) {
361
378
  if (this.dataId) {
362
379
  this.$http({
380
+ aes: true,
363
381
  url: USER_PREFIX + '/user/getUserCompanyInfo',
364
382
  method: `post`,
365
383
  data: {id: this.dataId},
@@ -409,6 +427,7 @@ export default {
409
427
  },
410
428
  getConpanyInfo() {
411
429
  this.$http({
430
+ aes: true,
412
431
  url: USER_PREFIX + '/company_info/getCurrent',
413
432
  method: `post`,
414
433
  isLoading: true,
@@ -431,53 +450,11 @@ export default {
431
450
  addCurrentCompany(callback) {
432
451
  this.confirmInsertCompany([this.companyInfo], callback);
433
452
  },
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
453
  unlock() {
478
454
  this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
479
455
  var url = USER_PREFIX + '/user/unlockLoginAccount';
480
456
  this.$http({
457
+ aes: true,
481
458
  url: url,
482
459
  method: `post`,
483
460
  data: {
@@ -506,6 +483,7 @@ export default {
506
483
  },
507
484
  getUserInfo() {
508
485
  return this.$http({
486
+ aes: true,
509
487
  url: USER_PREFIX + '/user/currentUser',
510
488
  method: 'post',
511
489
  success: res => {
@@ -519,6 +497,7 @@ export default {
519
497
  },
520
498
  getUserGroups() {
521
499
  return this.$http({
500
+ aes: true,
522
501
  url: USER_PREFIX + '/groups/listPage',
523
502
  method: 'post',
524
503
  data: {},
@@ -526,7 +505,96 @@ export default {
526
505
  this.userGroups = res.objx?.records || [];
527
506
  }
528
507
  });
529
- }
508
+ },
509
+ initTableM1() {
510
+ const tableOption = {
511
+ vue: this,
512
+ tableRef: 'table-m1',
513
+ tableName: 'edit-user-menuKind-m1',
514
+ columns: [
515
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
516
+ {
517
+ title: this.$t1('表单分类名称'),
518
+ field: 'menuKindName',
519
+ width: 350,
520
+ fixed: 'left'
521
+ },
522
+ {
523
+ title: this.$t1('编辑'),
524
+ field: 'editAuth',
525
+ width: 150,
526
+ slots: {
527
+ default: ({row}) => {
528
+ if (row.editAuth) {
529
+ return [<div class="txt-status">{this.$t1('是')}</div>];
530
+ } else {
531
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
532
+ }
533
+ }
534
+ }
535
+ },
536
+ {
537
+ title: this.$t1('导出发布'),
538
+ field: 'exportAuth',
539
+ width: 150,
540
+ slots: {
541
+ default: ({row}) => {
542
+ if (row.exportAuth) {
543
+ return [<div class="txt-status">{this.$t1('是')}</div>];
544
+ } else {
545
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
546
+ }
547
+ }
548
+ }
549
+ },
550
+ ...(this.isDev ? [{
551
+ title: this.$t1('可选导出发布类型'),
552
+ field: 'selectTypeAuth',
553
+ width: 200,
554
+ slots: {
555
+ default: ({row}) => {
556
+ if (row.selectTypeAuth) {
557
+ return [<div class="txt-status">{this.$t1('是')}</div>];
558
+ } else {
559
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
560
+ }
561
+ }
562
+ }
563
+ }] : []),
564
+ {
565
+ width: 47,
566
+ fixed: 'right',
567
+ title: '',
568
+ sortable: false
569
+ }
570
+ ]
571
+ };
572
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
573
+ this.vxeOption = opts;
574
+ });
575
+ if (this.dataId) {
576
+ this.$http({
577
+ aes: true,
578
+ url: USER_PREFIX + `/menu_kind_auth/list`,
579
+ method: `post`,
580
+ data: {
581
+ userId: this.dataId
582
+ },
583
+ isLoading: true,
584
+ modalStrictly: true,
585
+ success: res => {
586
+ this.menuKindAuthDTOs = res.objx || [];
587
+ }
588
+ });
589
+ }
590
+ },
591
+ initBdEnv() {
592
+ return getBdEnv({
593
+ success: res => {
594
+ this.isDev = res.objx == "dev"
595
+ }
596
+ });
597
+ },
530
598
  }
531
599
  };
532
600
  </script>