cloud-web-corejs 1.0.17 → 1.0.19

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 (187) hide show
  1. package/package.json +2 -1
  2. package/src/components/jsonImport/index.js +3 -1
  3. package/src/components/jsonImport/mixins.js +16 -16
  4. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  5. package/src/layout/components/Sidebar/default.vue +10 -4
  6. package/src/router/modules/customer.js +8 -8
  7. package/src/router/modules/system.js +1 -1
  8. package/src/utils/aes.js +1 -0
  9. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -4
  10. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -3
  11. package/src/views/bd/setting/bd_attach_setting/list.vue +3 -3
  12. package/src/views/bd/setting/form_script/dialog.vue +14 -12
  13. package/src/views/bd/setting/form_script/edit.vue +6 -5
  14. package/src/views/bd/setting/form_script/edit1.vue +4 -4
  15. package/src/views/bd/setting/form_script/form_list.vue +3 -3
  16. package/src/views/bd/setting/form_script/list.vue +4 -4
  17. package/src/views/bd/setting/form_script/list1.vue +4 -4
  18. package/src/views/bd/setting/form_script/list2.vue +1 -1
  19. package/src/views/bd/setting/form_template/dialog.vue +24 -17
  20. package/src/views/bd/setting/form_template/edit.vue +3 -3
  21. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +1 -1
  22. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -5
  23. package/src/views/bd/setting/form_template/itemEdit.vue +3 -3
  24. package/src/views/bd/setting/form_template/itemList.vue +3 -3
  25. package/src/views/bd/setting/form_template/list.vue +4 -4
  26. package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
  27. package/src/views/bd/setting/menu_kind/authDialog.vue +2 -2
  28. package/src/views/bd/setting/menu_kind/dialog.vue +23 -16
  29. package/src/views/bd/setting/menu_kind/list.vue +4 -4
  30. package/src/views/bd/setting/table_model/dialog.vue +4 -4
  31. package/src/views/bd/setting/table_model/edit.vue +1123 -1123
  32. package/src/views/bd/setting/table_model/list.vue +4 -4
  33. package/src/views/bd/setting/table_model/zdDialog.vue +4 -4
  34. package/src/views/mobile/user/area/dialog.vue +3 -2
  35. package/src/views/mobile/user/user/dialog.vue +3 -2
  36. package/src/views/support/export_template/edit.vue +4 -4
  37. package/src/views/support/export_template/list.vue +12 -12
  38. package/src/views/user/access_log/edit.vue +2 -2
  39. package/src/views/user/access_log/list.vue +8 -8
  40. package/src/views/user/access_log/statistics_list.vue +16 -11
  41. package/src/views/user/api_request/edit.vue +7 -4
  42. package/src/views/user/api_request/list.vue +7 -5
  43. package/src/views/user/area/dialog.vue +4 -4
  44. package/src/views/user/area_attribute/configDialog.vue +319 -319
  45. package/src/views/user/area_attribute/edit.vue +2 -2
  46. package/src/views/user/area_attribute/list.vue +1 -1
  47. package/src/views/user/attachment/uploadDialog.vue +11 -11
  48. package/src/views/user/bill_setting/edit.vue +6 -5
  49. package/src/views/user/bill_setting/h5_ModifyDialog.vue +5 -3
  50. package/src/views/user/bill_setting/h5_view.vue +4 -4
  51. package/src/views/user/bill_setting/itemViewDialog.vue +1 -1
  52. package/src/views/user/bill_setting/list.vue +5 -4
  53. package/src/views/user/bill_setting/queryDialog.vue +3 -3
  54. package/src/views/user/bill_setting/render.vue +6 -6
  55. package/src/views/user/bill_setting/template2.json +44 -11
  56. package/src/views/user/bill_setting/userDialog.vue +4 -4
  57. package/src/views/user/code_rules/edit.vue +3 -3
  58. package/src/views/user/code_rules/list.vue +3 -3
  59. package/src/views/user/commMenu/index.vue +2 -2
  60. package/src/views/user/common_attribute/edit.vue +3 -3
  61. package/src/views/user/common_attribute/itemEdit.vue +3 -3
  62. package/src/views/user/common_attribute/list.vue +3 -3
  63. package/src/views/user/common_script/edit.vue +5 -4
  64. package/src/views/user/common_script/list.vue +14 -13
  65. package/src/views/user/company_info/dialog.vue +138 -131
  66. package/src/views/user/company_info/edit.vue +2 -2
  67. package/src/views/user/company_info/view.vue +1 -1
  68. package/src/views/user/country/dialog.vue +6 -6
  69. package/src/views/user/country/edit.vue +8 -7
  70. package/src/views/user/country/list.vue +170 -160
  71. package/src/views/user/data_type_setting/dialog.vue +10 -7
  72. package/src/views/user/data_type_setting/editDialog.vue +12 -11
  73. package/src/views/user/ea/eagroup/eaobj_list.vue +331 -310
  74. package/src/views/user/ea/eagroup/edit.vue +492 -475
  75. package/src/views/user/ea/eaobj/edit.vue +153 -148
  76. package/src/views/user/ea/eaobj/list.vue +147 -135
  77. package/src/views/user/error-page/401.vue +42 -34
  78. package/src/views/user/error-page/404.vue +19 -3
  79. package/src/views/user/extend_datasource/dialog.vue +124 -116
  80. package/src/views/user/extend_datasource/edit.vue +5 -4
  81. package/src/views/user/extend_datasource/list.vue +3 -3
  82. package/src/views/user/fieldTranslation/editDialog.vue +2 -2
  83. package/src/views/user/fieldTranslation/list.vue +4 -3
  84. package/src/views/user/field_values_invisible/edit.vue +85 -83
  85. package/src/views/user/field_values_invisible/list.vue +32 -21
  86. package/src/views/user/file_type/edit.vue +3 -3
  87. package/src/views/user/file_type/list.vue +7 -4
  88. package/src/views/user/file_type/userEdit.vue +188 -188
  89. package/src/views/user/file_view_area/edit.vue +3 -3
  90. package/src/views/user/file_view_area/itemEdit.vue +168 -165
  91. package/src/views/user/file_view_area/list.vue +3 -3
  92. package/src/views/user/file_view_ins/list.vue +55 -36
  93. package/src/views/user/file_view_ins/propertiesDialog.vue +218 -218
  94. package/src/views/user/form/form_ins_list/edit.vue +421 -421
  95. package/src/views/user/form/form_template/dialog.vue +24 -17
  96. package/src/views/user/form/form_template/edit.vue +7 -4
  97. package/src/views/user/form/form_template/itemEdit.vue +3 -3
  98. package/src/views/user/form/form_template/itemList.vue +3 -3
  99. package/src/views/user/form/form_template/list.vue +5 -4
  100. package/src/views/user/form/form_template_field/dialog.vue +11 -8
  101. package/src/views/user/form/form_type/dialog.vue +134 -127
  102. package/src/views/user/form/form_type/edit.vue +4 -4
  103. package/src/views/user/form/form_type/editDialog.vue +10 -9
  104. package/src/views/user/form/form_type/list.vue +128 -118
  105. package/src/views/user/form/report_requestaccess/dialog.vue +106 -99
  106. package/src/views/user/form/report_requestaccess/edit.vue +272 -234
  107. package/src/views/user/form/report_requestaccess/list.vue +29 -18
  108. package/src/views/user/form/vform/designer.vue +164 -164
  109. package/src/views/user/form/vform/formFieldMapping.js +151 -169
  110. package/src/views/user/form/vform/out_render.vue +3 -2
  111. package/src/views/user/form/vform/render.vue +2 -2
  112. package/src/views/user/form/view/edit.vue +7 -7
  113. package/src/views/user/form/view/list.vue +2 -2
  114. package/src/views/user/home/distributor.vue +374 -118
  115. package/src/views/user/home/index.vue +1 -1
  116. package/src/views/user/language_setting/edit.vue +167 -166
  117. package/src/views/user/language_setting/list.vue +3 -3
  118. package/src/views/user/ledger_library/list.vue +2 -2
  119. package/src/views/user/ledger_library/private_list.vue +3 -3
  120. package/src/views/user/login/auth-redirect.vue +1 -1
  121. package/src/views/user/login/index.vue +1 -1
  122. package/src/views/user/login/indexMixin.js +4 -1
  123. package/src/views/user/menu/list.vue +3 -3
  124. package/src/views/user/mobile_menu/list.vue +2 -2
  125. package/src/views/user/notify_message/dialog.vue +8 -6
  126. package/src/views/user/notify_message/list.vue +4 -3
  127. package/src/views/user/notify_template/edit.vue +185 -185
  128. package/src/views/user/notify_template/list.vue +4 -4
  129. package/src/views/user/oplog/edit.vue +108 -103
  130. package/src/views/user/oplog/list.vue +3 -3
  131. package/src/views/user/outLink/form_view.vue +144 -143
  132. package/src/views/user/outLink/index.vue +7 -5
  133. package/src/views/user/outLink/view.vue +119 -117
  134. package/src/views/user/position/dialog.vue +145 -138
  135. package/src/views/user/position/edit.vue +4 -4
  136. package/src/views/user/position/list.vue +170 -160
  137. package/src/views/user/project_tag/dialog.vue +5 -5
  138. package/src/views/user/project_tag/edit.vue +3 -3
  139. package/src/views/user/project_tag/list.vue +3 -3
  140. package/src/views/user/push_setting/edit.vue +7 -4
  141. package/src/views/user/push_setting/list.vue +44 -34
  142. package/src/views/user/redirect/index.vue +4 -4
  143. package/src/views/user/role/dialog.vue +10 -7
  144. package/src/views/user/role/edit.vue +427 -427
  145. package/src/views/user/role/list.vue +125 -114
  146. package/src/views/user/sale_org/dialog.vue +3 -3
  147. package/src/views/user/sale_org/list.vue +11 -11
  148. package/src/views/user/sale_org/moveDialog.vue +2 -2
  149. package/src/views/user/sale_org_net/list.vue +9 -9
  150. package/src/views/user/system_notice/edit.vue +184 -184
  151. package/src/views/user/system_notice/list.vue +156 -145
  152. package/src/views/user/system_parameter/edit.vue +140 -137
  153. package/src/views/user/system_parameter/list.vue +131 -120
  154. package/src/views/user/user/dialog.vue +31 -24
  155. package/src/views/user/user/edit.vue +1021 -1019
  156. package/src/views/user/user/form_edit.vue +481 -483
  157. package/src/views/user/user/form_list.vue +5 -5
  158. package/src/views/user/user/info.vue +271 -256
  159. package/src/views/user/user/infoContent.vue +12 -11
  160. package/src/views/user/user/infoEdit.vue +111 -92
  161. package/src/views/user/user/inner_list.vue +1 -1
  162. package/src/views/user/user/list.vue +55 -50
  163. package/src/views/user/user/list2.vue +1 -1
  164. package/src/views/user/user/modifyPasswordDialog.vue +3 -3
  165. package/src/views/user/user/out_list.vue +1 -1
  166. package/src/views/user/wf/formCustDialog/list.vue +13 -15
  167. package/src/views/user/wf/iframe/index.vue +12 -12
  168. package/src/views/user/wf/iframe/index2.vue +2 -2
  169. package/src/views/user/wf/wf_auto_submit_data/edit.vue +1 -1
  170. package/src/views/user/wf/wf_auto_submit_data/edith.vue +1 -1
  171. package/src/views/user/wf/wf_auto_submit_data/list.vue +8 -6
  172. package/src/views/user/wf/wf_diy_attribute/edit.vue +5 -5
  173. package/src/views/user/wf/wf_manage/list.vue +5 -4
  174. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +11 -10
  175. package/src/views/user/wf/wf_obj_config/dialog.vue +10 -7
  176. package/src/views/user/wf/wf_obj_config/edit.vue +7 -4
  177. package/src/views/user/wf/wf_obj_config/edit_form.vue +70 -63
  178. package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
  179. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +3 -3
  180. package/src/views/user/wf/wf_obj_config/list.vue +4 -4
  181. package/src/views/user/wf/wf_obj_config/list_form.vue +22 -22
  182. package/src/views/user/wf/wf_param/edit.vue +4 -4
  183. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +27 -13
  184. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +25 -10
  185. package/src/views/user/wf/wf_work_calendar/configDialog.vue +8 -5
  186. package/src/views/user/wf/wf_work_calendar/date.js +10 -10
  187. package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
@@ -1,185 +1,185 @@
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 ? '查看' : '新增' }}通知模板
8
- </div>
9
- <div class="fr">
10
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">重置
11
- </el-button>
12
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">保存</el-button>
13
- </div>
14
- </div>
15
- <baseTabs>
16
- <baseTabPane label="基本信息">
17
- <template #default>
18
- <table class="table-detail">
19
- <tbody>
20
- <tr>
21
- <th><em class="f-red">*</em>通知模板编码</th>
22
- <td>
23
- <el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
24
- <el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
25
- </el-form-item>
26
- </td>
27
- <th>
28
- <em class="f-red">*</em>
29
- 通知模板名称
30
- </th>
31
- <td>
32
- <el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
33
- <el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
34
- </el-form-item>
35
- </td>
36
- <th>是否启用</th>
37
- <td>
38
- <el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
39
- <el-radio-group v-model="notifyTemplate.enabled">
40
- <el-radio :label="true">启用</el-radio>
41
- <el-radio :label="false">禁用</el-radio>
42
- </el-radio-group>
43
- </el-form-item>
44
- </td>
45
- </tr>
46
- <tr>
47
- <th><em class="f-red">*</em>通知内容</th>
48
- <td colspan="5">
49
- <el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
50
- <el-input type="textarea" :rows="2" size="small"
51
- v-model="notifyTemplate.content"
52
- clearable></el-input>
53
- </el-form-item>
54
- </td>
55
- </tr>
56
- <tr>
57
- <th>跳转内容</th>
58
- <td colspan="5">
59
- <el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
60
- <el-input type="textarea" :rows="2" size="small"
61
- v-model="notifyTemplate.jumpContent"
62
- clearable></el-input>
63
- </el-form-item>
64
- </td>
65
- </tr>
66
- <tr>
67
- <th>备注</th>
68
- <td colspan="5">
69
- <el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
70
- clearable></el-input>
71
- </td>
72
- </tr>
73
- <tr>
74
- <th>
75
- 脚本(获取通知人)
76
- <!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
77
- <scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
78
- </th>
79
- <td colspan="7">
80
- <el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
81
- <code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
82
- v-if="showCodeEditor"></code-editor>
83
- </el-form-item>
84
- </td>
85
- </tr>
86
- <tr>
87
- <th>创建人</th>
88
- <td>{{ notifyTemplate.createBy }}</td>
89
- <th>创建时间</th>
90
- <td>{{ notifyTemplate.createDate }}</td>
91
- <th>更新人</th>
92
- <td>{{ notifyTemplate.modifyBy }}</td>
93
- <th>更新时间</th>
94
- <td>{{ notifyTemplate.modifyDate }}</td>
95
- </tr>
96
- </tbody>
97
- </table>
98
- </template>
99
- </baseTabPane>
100
- </baseTabs>
101
- </el-form>
102
- </div>
103
- </template>
104
-
105
- <script>
106
- export default {
107
- name: 'notify_templateEdit',
108
- props: {
109
- _dataId: [String, Number]
110
- },
111
- components: {},
112
- data() {
113
- return {
114
- isEdit: false,
115
- tabIndex: 'first',
116
- dataId: '',
117
- notifyTemplate: {
118
- enabled: true
119
- },
120
- showCodeEditor: false
121
- };
122
- },
123
- created() {
124
- if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
125
- },
126
- mounted() {
127
- this.getData();
128
- },
129
- methods: {
130
- getData() {
131
- if (this.dataId && !isNaN(this.dataId)) {
132
- this.isEdit = true;
133
- this.$commonHttp({
134
- url: USER_PREFIX + `/notify_template/get`,
135
- method: `post`,
136
- data: {
137
- id: this.dataId
138
- },
139
- isLoading: true,
140
- modalStrictly: true,
141
- success: res => {
142
- this.notifyTemplate = res.objx || {};
143
- this.showCodeEditor = true;
144
- }
145
- });
146
- } else {
147
- this.showCodeEditor = true;
148
- }
149
- },
150
- saveData() {
151
- this.$refs.editForm.$baseValidate(valid => {
152
- if (valid) {
153
- this.$baseConfirm('您确定要保存吗?').then(() => {
154
- var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
155
- this.$http({
156
- url: url,
157
- method: `post`,
158
- data: this.notifyTemplate,
159
- isLoading: true,
160
- success: res => {
161
- this.$message({
162
- message: res.content,
163
- type: 'success',
164
- duration: 500,
165
- onClose: t => {
166
- if (this.isEdit) {
167
- this.$baseReload();
168
- } else {
169
- this.$baseReload({
170
- updateParam: {
171
- _dataId: res.objx
172
- }
173
- });
174
- }
175
- }
176
- });
177
- }
178
- });
179
- });
180
- }
181
- });
182
- }
183
- }
184
- };
185
- </script>
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">{{$t1('重置')}}
11
+ </el-button>
12
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
13
+ </div>
14
+ </div>
15
+ <baseTabs>
16
+ <baseTabPane :label="$t1('基本信息')">
17
+ <template #default>
18
+ <table class="table-detail">
19
+ <tbody>
20
+ <tr>
21
+ <th><em class="f-red">*</em>通知模板编码</th>
22
+ <td>
23
+ <el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
24
+ <el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
25
+ </el-form-item>
26
+ </td>
27
+ <th>
28
+ <em class="f-red">*</em>
29
+ 通知模板名称
30
+ </th>
31
+ <td>
32
+ <el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
33
+ <el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
34
+ </el-form-item>
35
+ </td>
36
+ <th>是否启用</th>
37
+ <td>
38
+ <el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
39
+ <el-radio-group v-model="notifyTemplate.enabled">
40
+ <el-radio :label="true">启用</el-radio>
41
+ <el-radio :label="false">禁用</el-radio>
42
+ </el-radio-group>
43
+ </el-form-item>
44
+ </td>
45
+ </tr>
46
+ <tr>
47
+ <th><em class="f-red">*</em>通知内容</th>
48
+ <td colspan="5">
49
+ <el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
50
+ <el-input type="textarea" :rows="2" size="small"
51
+ v-model="notifyTemplate.content"
52
+ clearable></el-input>
53
+ </el-form-item>
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <th>跳转内容</th>
58
+ <td colspan="5">
59
+ <el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
60
+ <el-input type="textarea" :rows="2" size="small"
61
+ v-model="notifyTemplate.jumpContent"
62
+ clearable></el-input>
63
+ </el-form-item>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <th>备注</th>
68
+ <td colspan="5">
69
+ <el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
70
+ clearable></el-input>
71
+ </td>
72
+ </tr>
73
+ <tr>
74
+ <th>
75
+ 脚本(获取通知人)
76
+ <!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
77
+ <scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
78
+ </th>
79
+ <td colspan="7">
80
+ <el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
81
+ <code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
82
+ v-if="showCodeEditor"></code-editor>
83
+ </el-form-item>
84
+ </td>
85
+ </tr>
86
+ <tr>
87
+ <th>创建人</th>
88
+ <td>{{ notifyTemplate.createBy }}</td>
89
+ <th>创建时间</th>
90
+ <td>{{ notifyTemplate.createDate }}</td>
91
+ <th>更新人</th>
92
+ <td>{{ notifyTemplate.modifyBy }}</td>
93
+ <th>更新时间</th>
94
+ <td>{{ notifyTemplate.modifyDate }}</td>
95
+ </tr>
96
+ </tbody>
97
+ </table>
98
+ </template>
99
+ </baseTabPane>
100
+ </baseTabs>
101
+ </el-form>
102
+ </div>
103
+ </template>
104
+
105
+ <script>
106
+ export default {
107
+ name: 'notify_templateEdit',
108
+ props: {
109
+ _dataId: [String, Number]
110
+ },
111
+ components: {},
112
+ data() {
113
+ return {
114
+ isEdit: false,
115
+ tabIndex: 'first',
116
+ dataId: '',
117
+ notifyTemplate: {
118
+ enabled: true
119
+ },
120
+ showCodeEditor: false
121
+ };
122
+ },
123
+ created() {
124
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
125
+ },
126
+ mounted() {
127
+ this.getData();
128
+ },
129
+ methods: {
130
+ getData() {
131
+ if (this.dataId && !isNaN(this.dataId)) {
132
+ this.isEdit = true;
133
+ this.$commonHttp({
134
+ url: USER_PREFIX + `/notify_template/get`,
135
+ method: `post`,
136
+ data: {
137
+ id: this.dataId
138
+ },
139
+ isLoading: true,
140
+ modalStrictly: true,
141
+ success: res => {
142
+ this.notifyTemplate = res.objx || {};
143
+ this.showCodeEditor = true;
144
+ }
145
+ });
146
+ } else {
147
+ this.showCodeEditor = true;
148
+ }
149
+ },
150
+ saveData() {
151
+ this.$refs.editForm.$baseValidate(valid => {
152
+ if (valid) {
153
+ this.$baseConfirm('您确定要保存吗?').then(() => {
154
+ var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
155
+ this.$http({
156
+ url: url,
157
+ method: `post`,
158
+ data: this.notifyTemplate,
159
+ isLoading: true,
160
+ success: res => {
161
+ this.$message({
162
+ message: res.content,
163
+ type: 'success',
164
+ duration: 500,
165
+ onClose: t => {
166
+ if (this.isEdit) {
167
+ this.$baseReload();
168
+ } else {
169
+ this.$baseReload({
170
+ updateParam: {
171
+ _dataId: res.objx
172
+ }
173
+ });
174
+ }
175
+ }
176
+ });
177
+ }
178
+ });
179
+ });
180
+ }
181
+ });
182
+ }
183
+ }
184
+ };
185
+ </script>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div id="containt">
3
3
  <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane label="常规" name="first">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
5
  <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
6
  @reload="$reloadHandle"></editView>
7
7
  </el-tab-pane>
8
- <el-tab-pane label="列表" name="second">
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
9
  <div class="grid-height">
10
10
  <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
11
  @custom="$vxeTableUtil.customHandle">
@@ -14,11 +14,11 @@
14
14
  <div class="fl">
15
15
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增
16
16
  </vxe-button>
17
- <base-table-export :option="{ title: '通知模板导出', targetRef: 'table-m1'}" :parent-target="_self" />
17
+ <base-table-export :option="{ title: '通知模板导出', targetRef: 'table-m1'}" :parent-target="_self"/>
18
18
  </div>
19
19
  <div class="fr">
20
20
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
21
- plain>重置
21
+ plain>{{$t1('重置')}}
22
22
  </vxe-button>
23
23
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
24
24
  </vxe-button>
@@ -1,111 +1,116 @@
1
1
  <template>
2
- <div class="detail-wrap">
3
- <el-form ref="editForm" :model="oplog">
4
- <div class="d-header clearfix">
5
- <div class="fl">
6
- <i class="el-icon-info" />
7
- {{ dataId ? '查看' : '新增' }}操作日志
8
- </div>
9
- <div class="fr"><el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">重置</el-button></div>
10
- </div>
11
- <div class="d-cont">
12
- <div class="d-item">
13
- <div class="title first"><b>基本信息</b></div>
14
- <table class="table-detail">
15
- <tbody>
16
- <tr>
17
- <th>操作类型</th>
18
- <td>{{ oplog.typeName }}</td>
19
- <th>访问IP</th>
20
- <td>{{ oplog.ip }}</td>
21
- <th>操作对象</th>
22
- <td>{{ oplog.code }}</td>
23
- <th>产生日志时间</th>
24
- <td>{{ oplog.operDate }}</td>
25
- </tr>
26
- <tr>
27
- <th>冗余字段1</th>
28
- <td>{{ oplog.field1 }}</td>
29
- <th>冗余字段2</th>
30
- <td>{{ oplog.field2 }}</td>
31
- <th>冗余字段3</th>
32
- <td>{{ oplog.field3 }}</td>
33
- <th>冗余字段4</th>
34
- <td>{{ oplog.field4 }}</td>
35
- </tr>
36
- <tr>
37
- <th>冗余字段5</th>
38
- <td>{{ oplog.field5 }}</td>
39
- <th>服务名</th>
40
- <td>{{ oplog.serverName }}</td>
41
- <th>创建人</th>
42
- <td>{{ oplog.createBy }}</td>
43
- <th>创建时间</th>
44
- <td>{{ oplog.createDate }}</td>
45
- </tr>
46
- <tr>
47
- <th>内容</th>
48
- <td colspan="7">{{ oplog.content }}</td>
49
- </tr>
50
- </tbody>
51
- </table>
52
- </div>
53
- </div>
54
- </el-form>
55
- </div>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="oplog">
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
+ </div>
14
+ </div>
15
+ <div class="d-cont">
16
+ <div class="d-item">
17
+ <div class="title first"><b>基本信息</b></div>
18
+ <table class="table-detail">
19
+ <tbody>
20
+ <tr>
21
+ <th>操作类型</th>
22
+ <td>{{ oplog.typeName }}</td>
23
+ <th>访问IP</th>
24
+ <td>{{ oplog.ip }}</td>
25
+ <th>操作对象</th>
26
+ <td>{{ oplog.code }}</td>
27
+ <th>产生日志时间</th>
28
+ <td>{{ oplog.operDate }}</td>
29
+ </tr>
30
+ <tr>
31
+ <th>冗余字段1</th>
32
+ <td>{{ oplog.field1 }}</td>
33
+ <th>冗余字段2</th>
34
+ <td>{{ oplog.field2 }}</td>
35
+ <th>冗余字段3</th>
36
+ <td>{{ oplog.field3 }}</td>
37
+ <th>冗余字段4</th>
38
+ <td>{{ oplog.field4 }}</td>
39
+ </tr>
40
+ <tr>
41
+ <th>冗余字段5</th>
42
+ <td>{{ oplog.field5 }}</td>
43
+ <th>服务名</th>
44
+ <td>{{ oplog.serverName }}</td>
45
+ <th>创建人</th>
46
+ <td>{{ oplog.createBy }}</td>
47
+ <th>创建时间</th>
48
+ <td>{{ oplog.createDate }}</td>
49
+ </tr>
50
+ <tr>
51
+ <th>内容</th>
52
+ <td colspan="7">{{ oplog.content }}</td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ </div>
57
+ </div>
58
+ </el-form>
59
+ </div>
56
60
  </template>
57
61
 
58
62
  <script>
59
63
  export default {
60
- name: 'oplogEdit',
61
- props: {
62
- _dataId: [String, Number]
63
- },
64
- components: {},
65
- data() {
66
- return {
67
- tabIndex: 0,
68
- isEdit: false,
69
- dataId: '',
70
- oplog: {
71
- enabled: true
72
- },
73
- wfReloadFlag: true,
74
- wfStartVisible: false
75
- };
76
- },
77
- created() {
78
- if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
79
- },
80
- mounted() {
81
- var that = this;
82
- this.getData();
83
- },
84
- methods: {
85
- getData() {
86
- if (this.dataId && !isNaN(this.dataId)) {
87
- this.isEdit = true;
88
- this.$commonHttp({
89
- url: USER_PREFIX + `/oplog/get`,
90
- method: `post`,
91
- data: {
92
- id: this.dataId
93
- },
94
- isLoading: true,
95
- modalStrictly: true,
96
- success: res => {
97
- this.oplog = res.objx || {};
98
- }
99
- });
100
- } else {
101
- this.isEdit = false;
102
- this.oplog = {
103
- enabled: true
104
- };
105
- }
106
- },
107
- saveData() {}
108
- }
64
+ name: 'oplogEdit',
65
+ props: {
66
+ _dataId: [String, Number]
67
+ },
68
+ components: {},
69
+ data() {
70
+ return {
71
+ tabIndex: 0,
72
+ isEdit: false,
73
+ dataId: '',
74
+ oplog: {
75
+ enabled: true
76
+ },
77
+ wfReloadFlag: true,
78
+ wfStartVisible: false
79
+ };
80
+ },
81
+ created() {
82
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
83
+ },
84
+ mounted() {
85
+ var that = this;
86
+ this.getData();
87
+ },
88
+ methods: {
89
+ getData() {
90
+ if (this.dataId && !isNaN(this.dataId)) {
91
+ this.isEdit = true;
92
+ this.$commonHttp({
93
+ url: USER_PREFIX + `/oplog/get`,
94
+ method: `post`,
95
+ data: {
96
+ id: this.dataId
97
+ },
98
+ isLoading: true,
99
+ modalStrictly: true,
100
+ success: res => {
101
+ this.oplog = res.objx || {};
102
+ }
103
+ });
104
+ } else {
105
+ this.isEdit = false;
106
+ this.oplog = {
107
+ enabled: true
108
+ };
109
+ }
110
+ },
111
+ saveData() {
112
+ }
113
+ }
109
114
  };
110
115
  </script>
111
116
 
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div id="containt">
3
3
  <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane label="常规" name="first">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
5
  <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
6
  @reload="$reloadHandle"></editView>
7
7
  </el-tab-pane>
8
- <el-tab-pane label="列表" name="second">
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
9
  <div class="grid-height">
10
10
  <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
11
  @custom="$vxeTableUtil.customHandle">
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  <div class="fr">
18
18
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
19
- plain>重置
19
+ plain>{{$t1('重置')}}
20
20
  </vxe-button>
21
21
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
22
22
  </vxe-button>