cloud-web-corejs 1.0.54-dev.19 → 1.0.54-dev.191

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 (215) hide show
  1. package/package.json +10 -4
  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 +22 -6
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +22 -13
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  10. package/src/components/excelExport/index.js +2 -1
  11. package/src/components/excelExport/index.vue +8 -6
  12. package/src/components/excelExport/mixins.js +1 -2
  13. package/src/components/excelImport/index.vue +1 -0
  14. package/src/components/excelImport/mixins.js +1 -1
  15. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  16. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  17. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  18. package/src/components/fileLibrary/filterDialog.vue +383 -0
  19. package/src/components/fileLibrary/index.vue +23 -24
  20. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  21. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  23. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  24. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  26. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  27. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  28. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  29. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  30. package/src/components/fileLibrary/shareDialog.vue +1 -1
  31. package/src/components/jsonImport/mixins.js +1 -1
  32. package/src/components/onlineTalk/index.vue +327 -5
  33. package/src/components/onlineTalk/mixins.js +1 -1
  34. package/src/components/table/CellSlot.vue +1 -0
  35. package/src/components/table/index.js +12 -10
  36. package/src/components/table/tableForm.vue +99 -63
  37. package/src/components/table/tableFormMixin.js +1 -1
  38. package/src/components/table/vxeFilter/mixin.js +1 -1
  39. package/src/components/vb-tabs/x-tabs.vue +3 -2
  40. package/src/components/wf/wf.js +1 -1
  41. package/src/components/wf/wfStartDialog.vue +1 -1
  42. package/src/components/wf/wfUtil.js +1 -1
  43. package/src/components/xform/form-designer/designer.js +1 -1
  44. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  45. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  46. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  47. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  48. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +23 -7
  49. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  50. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  51. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  52. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  53. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  54. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  55. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  56. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1389 -16
  57. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +196 -6
  58. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +5 -8
  59. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +80 -0
  60. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  61. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  62. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +67 -3
  64. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
  65. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +12 -3
  67. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  68. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  69. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  70. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +4 -1
  71. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  72. package/src/components/xform/form-designer/indexMixin.js +866 -1
  73. package/src/components/xform/form-designer/setting-panel/form-setting.vue +67 -36
  74. package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
  75. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  76. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  77. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  78. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  79. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
  80. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1054 -1042
  81. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  82. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +812 -455
  83. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  84. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  85. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  86. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  87. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  88. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  89. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  90. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -2
  91. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  93. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  94. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  95. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +19 -8
  96. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +80 -0
  97. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  98. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  99. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +42 -4
  101. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  103. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  104. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  105. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +177 -0
  106. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
  107. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  108. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
  109. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
  110. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
  111. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -0
  112. package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -7
  113. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  114. package/src/components/xform/form-designer/widget-panel/indexMixin.js +277 -1
  115. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +321 -276
  116. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  117. package/src/components/xform/form-render/container-item/data-table-item.vue +37 -15
  118. package/src/components/xform/form-render/container-item/data-table-mixin.js +2167 -18
  119. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  120. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  121. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  122. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  123. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  124. package/src/components/xform/form-render/indexMixin.js +2029 -1
  125. package/src/components/xform/lang/zh-CN.js +3 -2
  126. package/src/components/xform/mixins/defaultHandle.js +1 -1
  127. package/src/components/xform/mixins/scriptHttp.js +3 -1
  128. package/src/components/xform/utils/emitter.js +4 -4
  129. package/src/components/xform/utils/util.js +1 -1
  130. package/src/layout/components/Sidebar/default.vue +50 -6
  131. package/src/layout/components/TagsView/index.vue +0 -1
  132. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  133. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  134. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  135. package/src/mixins/selectDialog/index.js +241 -1
  136. package/src/mixins/tableTree/index.js +1 -1
  137. package/src/router/modules/customer.js +15 -0
  138. package/src/store/config/index.js +1 -1
  139. package/src/store/modules/permission.js +1 -1
  140. package/src/store/modules/settings.js +1 -1
  141. package/src/store/modules/user.js +1 -1
  142. package/src/utils/index.js +4 -2
  143. package/src/utils/pddLog.js +103 -0
  144. package/src/utils/request.js +28 -28
  145. package/src/utils/vab.js +19 -27
  146. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  147. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  148. package/src/views/bd/setting/form_script/edit1.vue +1 -1
  149. package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
  150. package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
  151. package/src/views/bd/setting/form_script/mixins/list.js +1 -1
  152. package/src/views/bd/setting/form_script/mixins/list1.js +14 -14
  153. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  154. package/src/views/bd/setting/form_template/edit.vue +9 -1
  155. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  156. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  157. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  158. package/src/views/bd/setting/form_template/mixins/list.js +25 -22
  159. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  160. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  161. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  162. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  163. package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
  164. package/src/views/bd/setting/table_model/edit.vue +834 -426
  165. package/src/views/bd/setting/table_model/mixins/dialog.js +72 -1
  166. package/src/views/bd/setting/table_model/mixins/edit.js +1117 -13
  167. package/src/views/bd/setting/table_model/mixins/list.js +14 -14
  168. package/src/views/user/area/dialog.vue +21 -9
  169. package/src/views/user/bill_setting/edit.vue +1 -1
  170. package/src/views/user/bill_setting/list.vue +1 -1
  171. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  172. package/src/views/user/common_attribute/list.vue +1 -1
  173. package/src/views/user/common_script/edit.vue +1 -1
  174. package/src/views/user/common_script/list.vue +1 -1
  175. package/src/views/user/company_info/dialog.vue +164 -154
  176. package/src/views/user/company_info/edit.vue +1 -1
  177. package/src/views/user/extend_datasource/dialog.vue +1 -0
  178. package/src/views/user/extend_datasource/edit.vue +3 -0
  179. package/src/views/user/extend_datasource/list.vue +2 -1
  180. package/src/views/user/file_type/edit.vue +30 -1
  181. package/src/views/user/file_type/list.vue +28 -0
  182. package/src/views/user/form/vform/designer.vue +772 -749
  183. package/src/views/user/form/view/list.vue +27 -9
  184. package/src/views/user/groups/edit.vue +2 -0
  185. package/src/views/user/groups/list.vue +1 -0
  186. package/src/views/user/home/default.vue +1022 -979
  187. package/src/views/user/home/dev.vue +29 -0
  188. package/src/views/user/home/index.vue +16 -6
  189. package/src/views/user/login/default.vue +4 -2
  190. package/src/views/user/login/index2.vue +131 -0
  191. package/src/views/user/notify_message/dialog.vue +1 -1
  192. package/src/views/user/notify_template/edit.vue +188 -187
  193. package/src/views/user/notify_template/edit2.vue +176 -0
  194. package/src/views/user/notify_template/list.vue +4 -1
  195. package/src/views/user/notify_template/list2.vue +190 -0
  196. package/src/views/user/outLink/form_view.vue +39 -12
  197. package/src/views/user/outLink/index.vue +17 -0
  198. package/src/views/user/outLink/view.vue +39 -13
  199. package/src/views/user/position/list.vue +4 -4
  200. package/src/views/user/push_setting/list.vue +2 -2
  201. package/src/views/user/role/dialog.vue +1 -1
  202. package/src/views/user/role/list.vue +4 -4
  203. package/src/views/user/sale_org/dialog.vue +1 -1
  204. package/src/views/user/sale_org/list.vue +4 -1
  205. package/src/views/user/user/dialog.vue +1 -1
  206. package/src/views/user/user/edit.vue +39 -19
  207. package/src/views/user/user/form_edit.vue +63 -2
  208. package/src/views/user/user/form_info.vue +210 -0
  209. package/src/views/user/user/form_list.vue +1 -0
  210. package/src/views/user/user/list.vue +4 -4
  211. package/src/views/user/wf/wf_manage/list.vue +1 -1
  212. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  213. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  214. package/src/views/user/wf/wf_obj_config/list.vue +94 -8
  215. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -0,0 +1,176 @@
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="notifyTemplate">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info"/>
7
+ {{ dataId ? $t1('查看邮件模板') : $t1('新增邮件模板') }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
+ {{ $t1('重置') }}
12
+ </el-button>
13
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
14
+ </el-button>
15
+ </div>
16
+ </div>
17
+ <baseTabs>
18
+ <baseTabPane :label="$t1('基本信息')">
19
+ <template #default>
20
+ <table class="table-detail">
21
+ <tbody>
22
+ <tr>
23
+ <th><em class="f-red">*</em>{{ $t1('邮件模板编码') }}</th>
24
+ <td>
25
+ <el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
26
+ <el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
27
+ </el-form-item>
28
+ </td>
29
+ <th>
30
+ <em class="f-red">*</em>
31
+ {{ $t1('主题') }}
32
+ </th>
33
+ <td>
34
+ <el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
35
+ <el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
36
+ </el-form-item>
37
+ </td>
38
+ <th>{{ $t1('是否启用') }}</th>
39
+ <td>
40
+ <el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
41
+ <el-radio-group v-model="notifyTemplate.enabled">
42
+ <el-radio :label="true">{{ $t1('启用') }}</el-radio>
43
+ <el-radio :label="false">{{ $t1('禁用') }}</el-radio>
44
+ </el-radio-group>
45
+ </el-form-item>
46
+ </td>
47
+ </tr>
48
+ <tr>
49
+ <th>{{ $t1('备注') }}</th>
50
+ <td colspan="7">
51
+ <el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
52
+ clearable></el-input>
53
+ </td>
54
+ </tr>
55
+ <tr>
56
+ <th><em class="f-red">*</em>{{ $t1('内容') }}</th>
57
+ <td colspan="7">
58
+ <el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
59
+ <tinymce v-model="notifyTemplate.content" :language="lan" :height="300"/>
60
+ </el-form-item>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <th>
65
+ {{ $t1('脚本(获取通知人)') }}
66
+ <scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
67
+ </th>
68
+ <td colspan="7">
69
+ <el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
70
+ <code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
71
+ v-if="showCodeEditor"></code-editor>
72
+ </el-form-item>
73
+ </td>
74
+ </tr>
75
+ <tr>
76
+ <th>{{ $t1('创建人') }}</th>
77
+ <td>{{ notifyTemplate.createBy }}</td>
78
+ <th>{{ $t1('创建时间') }}</th>
79
+ <td>{{ notifyTemplate.createDate }}</td>
80
+ <th>{{ $t1('更新人') }}</th>
81
+ <td>{{ notifyTemplate.modifyBy }}</td>
82
+ <th>{{ $t1('更新时间') }}</th>
83
+ <td>{{ notifyTemplate.modifyDate }}</td>
84
+ </tr>
85
+ </tbody>
86
+ </table>
87
+ </template>
88
+ </baseTabPane>
89
+ </baseTabs>
90
+ </el-form>
91
+ </div>
92
+ </template>
93
+
94
+ <script>
95
+ import Tinymce from '@base/components/Tinymce';
96
+ export default {
97
+ name: 'notify_templateEdit',
98
+ props: {
99
+ _dataId: [String, Number]
100
+ },
101
+ components: {Tinymce},
102
+ data() {
103
+ return {
104
+ isEdit: false,
105
+ tabIndex: 'first',
106
+ dataId: '',
107
+ notifyTemplate: {
108
+ enabled: true,
109
+ ntType:1
110
+ },
111
+ showCodeEditor: false
112
+ };
113
+ },
114
+ created() {
115
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
116
+ },
117
+ mounted() {
118
+ this.getData();
119
+ },
120
+ methods: {
121
+ getData() {
122
+ if (this.dataId && !isNaN(this.dataId)) {
123
+ this.isEdit = true;
124
+ this.$commonHttp({
125
+ url: USER_PREFIX + `/notify_template/get`,
126
+ method: `post`,
127
+ data: {
128
+ id: this.dataId
129
+ },
130
+ isLoading: true,
131
+ modalStrictly: true,
132
+ success: res => {
133
+ this.notifyTemplate = res.objx || {};
134
+ this.showCodeEditor = true;
135
+ }
136
+ });
137
+ } else {
138
+ this.showCodeEditor = true;
139
+ }
140
+ },
141
+ saveData() {
142
+ this.$refs.editForm.$baseValidate(valid => {
143
+ if (valid) {
144
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
145
+ var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
146
+ this.$http({
147
+ url: url,
148
+ method: `post`,
149
+ data: this.notifyTemplate,
150
+ isLoading: true,
151
+ success: res => {
152
+ this.$message({
153
+ message: res.content,
154
+ type: 'success',
155
+ duration: 500,
156
+ onClose: t => {
157
+ if (this.isEdit) {
158
+ this.$baseReload();
159
+ } else {
160
+ this.$baseReload({
161
+ updateParam: {
162
+ _dataId: res.objx
163
+ }
164
+ });
165
+ }
166
+ }
167
+ });
168
+ }
169
+ });
170
+ });
171
+ }
172
+ });
173
+ }
174
+ }
175
+ };
176
+ </script>
@@ -95,7 +95,10 @@ export default {
95
95
  tableName: 'basic_notifyTemplate_list-m1',
96
96
  path: USER_PREFIX + '/notify_template/listPage',
97
97
  param: () => {
98
- return this.formData;
98
+ return {
99
+ ...this.formData,
100
+ ntType: 0
101
+ };
99
102
  },
100
103
  columns: [
101
104
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
@@ -0,0 +1,190 @@
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
+ @reload="$reloadHandle"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="grid-height">
10
+ <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle">
12
+ <template #form>
13
+ <div class="clearfix screen-btns">
14
+ <div class="fl">
15
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
16
+ {{ $t1('新增') }}
17
+ </vxe-button>
18
+ <base-table-export :option="{ title: $t1('邮件模板导出'), targetRef: 'table-m1'}"
19
+ :parent-target="_self"/>
20
+ </div>
21
+ <div class="fr">
22
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
+ plain>{{ $t1('重置') }}
24
+ </vxe-button>
25
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
+ {{ $t1('搜索') }}
27
+ </vxe-button>
28
+ </div>
29
+ </div>
30
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
31
+ @submit="searchEvent" @reset="searchEvent">
32
+ <vxe-form-item :title="$t1('邮件模板编码')+':'" field="ntCode">
33
+ <template v-slot>
34
+ <el-input v-model="formData.notifyType" size="small" clearable/>
35
+ </template>
36
+ </vxe-form-item>
37
+ <vxe-form-item :title="$t1('主题')+':'" field="ntName">
38
+ <template v-slot>
39
+ <el-input v-model="formData.ntName" size="small" clearable/>
40
+ </template>
41
+ </vxe-form-item>
42
+ <vxe-form-item :title="$t1('是否启用')+':'">
43
+ <template v-slot>
44
+ <el-select v-model="formData.enabled" clearable>
45
+ <el-option :value="true" :label="$t1('启用')"></el-option>
46
+ <el-option :value="false" :label="$t1('禁用')"></el-option>
47
+ </el-select>
48
+ </template>
49
+ </vxe-form-item>
50
+ </vxe-form>
51
+ </template>
52
+ </vxe-grid>
53
+ </div>
54
+ </el-tab-pane>
55
+ </el-tabs>
56
+ </div>
57
+ </template>
58
+
59
+ <script>
60
+ import editView from './edit2.vue';
61
+
62
+ export default {
63
+ name: 'notify_template:list2',
64
+ components: {editView},
65
+ data() {
66
+ return {
67
+ activeName: 'second',
68
+ dataId: 0,
69
+ showEdit: false,
70
+ vxeOption: {},
71
+ formData: {}
72
+ };
73
+ },
74
+ mounted() {
75
+ this.initTableList();
76
+ },
77
+ methods: {
78
+ searchEvent() {
79
+ this.$refs['table-m1'].commitProxy('reload');
80
+ },
81
+ resetEvent() {
82
+ this.formData = {};
83
+ this.$refs['table-m1'].commitProxy('reload');
84
+ },
85
+ openEditDialog(id) {
86
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
87
+ this.activeName = 'first';
88
+ this.$openEditView('showEdit');
89
+ },
90
+ initTableList() {
91
+ let that = this;
92
+ let tableOption = {
93
+ vue: this,
94
+ tableRef: 'table-m1',
95
+ tableName: 'basic_notifyTemplate_list-m2',
96
+ path: USER_PREFIX + '/notify_template/listPage',
97
+ param: () => {
98
+ return {
99
+ ...this.formData,
100
+ ntType: 1
101
+ };
102
+ },
103
+ columns: [
104
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
105
+ {
106
+ title: this.$t1('邮件模板编码'),
107
+ field: 'notifyType',
108
+ width: 250,
109
+ fixed: 'left'
110
+ },
111
+ {
112
+ title: this.$t1('主题'),
113
+ field: 'ntName',
114
+ width: 150
115
+ },
116
+ {
117
+ title: this.$t1('是否启用'),
118
+ field: 'enabled',
119
+ width: 150,
120
+ slots: {
121
+ default: ({row}) => {
122
+ if (row.enabled) {
123
+ return [
124
+ <div class="txt-status">
125
+ <span>{this.$t1('启用')}</span>
126
+ </div>
127
+ ];
128
+ } else {
129
+ return [
130
+ <div class="txt-status disable">
131
+ <span>{this.$t1('禁用')}</span>
132
+ </div>
133
+ ];
134
+ }
135
+ }
136
+ }
137
+ },
138
+ {title: this.$t1('备注'), field: 'remark', width: 150},
139
+ {
140
+ title: this.$t1('创建时间'),
141
+ field: 'createDate',
142
+ width: 150
143
+ },
144
+ {
145
+ width: 47,
146
+ fixed: 'right',
147
+ title: '',
148
+ sortable: false,
149
+ slots: {
150
+ default: ({row}) => {
151
+ return [
152
+ <div>
153
+ <a
154
+ href="javascript:void(0);"
155
+ class="a-link"
156
+ onclick={() => {
157
+ this.openEditDialog(row.id);
158
+ }}
159
+ >
160
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
161
+ popper-class="tooltip-skin">
162
+ <i class="el-icon-edit"/>
163
+ </el-tooltip>
164
+ </a>
165
+ </div>
166
+ ];
167
+ }
168
+ }
169
+ }
170
+ ]
171
+ };
172
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
173
+ this.vxeOption = opts;
174
+ });
175
+ },
176
+ importExcel() {
177
+ let that = this;
178
+ that.$excelImport({
179
+ prefix: USER_PREFIX,
180
+ excel: USER_PREFIX + '/excelTemplate/notify_template/notifyTemplate.xlsx',
181
+ multi: false,
182
+ saveUrl: USER_PREFIX + '/notify_template/save',
183
+ callback: () => {
184
+ that.searchEvent();
185
+ }
186
+ });
187
+ }
188
+ }
189
+ };
190
+ </script>
@@ -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;
@@ -33,11 +33,11 @@
33
33
  <el-input v-model="formData.name" size="small" clearable/>
34
34
  </template>
35
35
  </vxe-form-item>
36
- <vxe-form-item :title="$t1('岗位编码')+':'" field="code">
36
+ <!-- <vxe-form-item :title="$t1('岗位编码')+':'" field="code">
37
37
  <template v-slot>
38
38
  <el-input v-model="formData.code" size="small" clearable/>
39
39
  </template>
40
- </vxe-form-item>
40
+ </vxe-form-item> -->
41
41
  </vxe-form>
42
42
  </template>
43
43
  </vxe-grid>
@@ -96,11 +96,11 @@ export default {
96
96
  width: 150,
97
97
  fixed: 'left'
98
98
  },
99
- {
99
+ /* {
100
100
  field: 'code',
101
101
  title: this.$t1('岗位编码'),
102
102
  width: 250
103
- },
103
+ }, */
104
104
  {title: this.$t1('所属组织'), field: 'companyName', width: 150},
105
105
  {
106
106
  field: 'enabled',
@@ -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
  },
@@ -12,7 +12,7 @@
12
12
  v-el-drag-dialog
13
13
  v-el-dialog-center
14
14
  >
15
- <div class="cont" style="height:450px">
15
+ <div class="cont" style="height:65vh">
16
16
  <vxe-grid
17
17
  class="is-pointer"
18
18
  ref="table-m1"
@@ -34,11 +34,11 @@
34
34
  <el-input v-model="formData.name" size="small" clearable/>
35
35
  </template>
36
36
  </vxe-form-item>
37
- <vxe-form-item :title="$t1('角色编码')+':'" field="code">
37
+ <!-- <vxe-form-item :title="$t1('角色编码')+':'" field="code">
38
38
  <template v-slot>
39
39
  <el-input v-model="formData.code" size="small" clearable/>
40
40
  </template>
41
- </vxe-form-item>
41
+ </vxe-form-item> -->
42
42
  </vxe-form>
43
43
  </template>
44
44
  </vxe-grid>
@@ -106,11 +106,11 @@ export default {
106
106
  sortable: true,
107
107
  fixed: 'left'
108
108
  },
109
- {
109
+ /* {
110
110
  title: this.$t1('角色编码'),
111
111
  field: 'code',
112
112
  width: 150
113
- },
113
+ }, */
114
114
  {
115
115
  title: this.$t1('角色描述'),
116
116
  field: 'description',
@@ -12,7 +12,7 @@
12
12
  v-el-drag-dialog
13
13
  v-el-dialog-center
14
14
  >
15
- <div class="cont" style="height:450px">
15
+ <div class="cont" style="height:65vh">
16
16
  <vxe-grid
17
17
  class="is-pointer"
18
18
  ref="table-m1"
@@ -7,7 +7,10 @@
7
7
  @custom="$vxeTableUtil.customHandle">
8
8
  <template #form>
9
9
  <div class="clearfix screen-btns">
10
- <div class="fl"></div>
10
+ <div class="fl">
11
+ <base-table-export :option="{ title: $t1('机构导出'), targetRef: 'table-m1', conditionExport: false}"
12
+ :parent-target="_self"/>
13
+ </div>
11
14
  <div class="fr">
12
15
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
13
16
  plain>{{ $t1('重置') }}