cloud-web-corejs 1.0.28 → 1.0.29

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 (199) hide show
  1. package/package.json +1 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/projectTag/addButton.vue +3 -50
  4. package/src/components/projectTag/deleteButton.vue +3 -50
  5. package/src/components/projectTag/mixins/addButton.js +5 -0
  6. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  7. package/src/components/projectTag/mixins/view.js +5 -0
  8. package/src/components/projectTag/view.vue +33 -72
  9. package/src/components/xform/mixins/scriptHttp.js +1 -1
  10. package/src/index.js +0 -2
  11. package/src/layout/components/Sidebar/default.vue +3 -4
  12. package/src/router/modules/system.js +1 -1
  13. package/src/store/config/index.js +1 -1
  14. package/src/store/getters.js +2 -0
  15. package/src/store/modules/permission.js +1 -1
  16. package/src/store/modules/user.js +2 -1
  17. package/src/utils/request.js +28 -29
  18. package/src/utils/vab.js +27 -27
  19. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  20. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  21. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  22. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  23. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  24. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  25. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  26. package/src/views/bd/setting/form_script/edit.vue +3 -127
  27. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  28. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  29. package/src/views/bd/setting/form_script/list.vue +6 -174
  30. package/src/views/bd/setting/form_script/list1.vue +6 -333
  31. package/src/views/bd/setting/form_script/list2.vue +3 -4
  32. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  33. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  34. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  35. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  36. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  37. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  38. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  39. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  40. package/src/views/bd/setting/form_template/edit.vue +183 -329
  41. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  42. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  43. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  44. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  45. package/src/views/bd/setting/form_template/list.vue +7 -562
  46. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  47. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  48. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  49. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  50. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  51. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  52. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  53. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  54. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  55. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  56. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  57. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  58. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
  59. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  60. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  61. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  62. package/src/views/bd/setting/table_model/edit.vue +5 -767
  63. package/src/views/bd/setting/table_model/list.vue +8 -369
  64. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  65. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  66. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  67. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  68. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  69. package/src/views/support/export_template/edit.vue +40 -36
  70. package/src/views/support/export_template/list.vue +40 -52
  71. package/src/views/user/access_log/edit.vue +18 -17
  72. package/src/views/user/access_log/list.vue +27 -26
  73. package/src/views/user/access_log/statistics_list.vue +19 -17
  74. package/src/views/user/api_request/edit.vue +14 -11
  75. package/src/views/user/api_request/list.vue +13 -11
  76. package/src/views/user/area/dialog.vue +14 -27
  77. package/src/views/user/area_attribute/configDialog.vue +11 -13
  78. package/src/views/user/area_attribute/edit.vue +8 -6
  79. package/src/views/user/area_attribute/list.vue +1 -1
  80. package/src/views/user/attachment/uploadDialog.vue +1 -1
  81. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  82. package/src/views/user/bill_setting/compareView.vue +1 -1
  83. package/src/views/user/bill_setting/edit.vue +24 -17
  84. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  85. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  86. package/src/views/user/bill_setting/list.vue +28 -26
  87. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  88. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  89. package/src/views/user/bill_setting/render.vue +29 -29
  90. package/src/views/user/bill_setting/userDialog.vue +7 -5
  91. package/src/views/user/code_rules/edit.vue +21 -18
  92. package/src/views/user/code_rules/list.vue +27 -19
  93. package/src/views/user/commMenu/index.vue +3 -3
  94. package/src/views/user/common_attribute/edit.vue +7 -5
  95. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  96. package/src/views/user/common_attribute/list.vue +25 -24
  97. package/src/views/user/common_script/edit.vue +12 -12
  98. package/src/views/user/common_script/list.vue +30 -32
  99. package/src/views/user/company_info/dialog.vue +9 -9
  100. package/src/views/user/company_info/edit.vue +11 -8
  101. package/src/views/user/country/dialog.vue +11 -9
  102. package/src/views/user/country/edit.vue +12 -9
  103. package/src/views/user/country/list.vue +12 -12
  104. package/src/views/user/data_type_setting/dialog.vue +10 -10
  105. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  106. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  107. package/src/views/user/ea/eagroup/edit.vue +48 -42
  108. package/src/views/user/ea/eaobj/edit.vue +6 -5
  109. package/src/views/user/ea/eaobj/list.vue +9 -8
  110. package/src/views/user/extend_datasource/dialog.vue +19 -24
  111. package/src/views/user/extend_datasource/edit.vue +20 -16
  112. package/src/views/user/extend_datasource/list.vue +23 -24
  113. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  114. package/src/views/user/fieldTranslation/list.vue +59 -57
  115. package/src/views/user/field_values_invisible/edit.vue +15 -14
  116. package/src/views/user/field_values_invisible/list.vue +23 -22
  117. package/src/views/user/file_type/edit.vue +12 -21
  118. package/src/views/user/file_type/list.vue +21 -36
  119. package/src/views/user/file_type/userEdit.vue +14 -9
  120. package/src/views/user/file_view_area/edit.vue +3 -3
  121. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  122. package/src/views/user/file_view_area/list.vue +17 -16
  123. package/src/views/user/file_view_ins/list.vue +29 -28
  124. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  125. package/src/views/user/form/form_template/edit.vue +1 -1
  126. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  127. package/src/views/user/form/form_template/itemList.vue +2 -2
  128. package/src/views/user/form/form_template/list.vue +3 -3
  129. package/src/views/user/form/form_type/edit.vue +1 -1
  130. package/src/views/user/form/form_type/list.vue +1 -1
  131. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  132. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  133. package/src/views/user/form/vform/designer.vue +2 -0
  134. package/src/views/user/form/vform/out_render.vue +1 -0
  135. package/src/views/user/form/vform/render.vue +1 -0
  136. package/src/views/user/form/view/list.vue +2 -1
  137. package/src/views/user/groups/dialog.vue +159 -0
  138. package/src/views/user/groups/edit.vue +131 -0
  139. package/src/views/user/groups/list.vue +167 -0
  140. package/src/views/user/home/index.vue +1 -2
  141. package/src/views/user/lang_tag/dialog.vue +185 -0
  142. package/src/views/user/lang_tag/edit.vue +138 -0
  143. package/src/views/user/lang_tag/list.vue +170 -0
  144. package/src/views/user/language_setting/edit.vue +11 -9
  145. package/src/views/user/language_setting/list.vue +20 -18
  146. package/src/views/user/login/default.vue +129 -0
  147. package/src/views/user/login/index.vue +3 -117
  148. package/src/views/user/menu/list.vue +39 -55
  149. package/src/views/user/mobile_menu/list.vue +18 -54
  150. package/src/views/user/notify_message/dialog.vue +1 -1
  151. package/src/views/user/notify_message/infoDialog.vue +1 -1
  152. package/src/views/user/notify_message/list.vue +24 -23
  153. package/src/views/user/notify_template/edit.vue +13 -11
  154. package/src/views/user/notify_template/list.vue +19 -16
  155. package/src/views/user/oplog/edit.vue +12 -12
  156. package/src/views/user/oplog/list.vue +20 -18
  157. package/src/views/user/position/dialog.vue +6 -6
  158. package/src/views/user/position/edit.vue +11 -8
  159. package/src/views/user/position/list.vue +11 -11
  160. package/src/views/user/project_tag/dialog.vue +11 -9
  161. package/src/views/user/project_tag/edit.vue +8 -6
  162. package/src/views/user/project_tag/list.vue +15 -12
  163. package/src/views/user/push_setting/edit.vue +20 -17
  164. package/src/views/user/push_setting/list.vue +1 -1
  165. package/src/views/user/role/dialog.vue +11 -11
  166. package/src/views/user/role/edit.vue +14 -12
  167. package/src/views/user/role/list.vue +14 -12
  168. package/src/views/user/sale_org/dialog.vue +12 -12
  169. package/src/views/user/sale_org/list.vue +43 -48
  170. package/src/views/user/system_notice/edit.vue +13 -11
  171. package/src/views/user/system_notice/infoDialog.vue +2 -2
  172. package/src/views/user/system_notice/list.vue +19 -17
  173. package/src/views/user/system_parameter/edit.vue +7 -6
  174. package/src/views/user/system_parameter/list.vue +12 -10
  175. package/src/views/user/user/edit.vue +1 -1
  176. package/src/views/user/user/form_edit.vue +50 -7
  177. package/src/views/user/user/form_list.vue +34 -132
  178. package/src/views/user/user/info.vue +20 -19
  179. package/src/views/user/user/infoEdit.vue +18 -18
  180. package/src/views/user/user/infoIframeDialog.vue +1 -1
  181. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  182. package/src/views/user/wf/iframe/dialog.vue +1 -1
  183. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  184. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  185. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  186. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  187. package/src/views/user/wf/wf_manage/list.vue +66 -61
  188. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  189. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  190. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  191. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  192. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  193. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  194. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  195. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  196. package/src/views/user/wf/wf_param/edit.vue +7 -5
  197. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  198. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  199. package/src/views/user/home/distributor.vue +0 -849
@@ -4,10 +4,11 @@
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ dataId ? $t1('查看') : $t1('新增') }} 访问统计
7
+ {{ dataId ? $t1('查看访问统计') : $t1('新增访问统计') }}
8
8
  </div>
9
9
  <div class="fr">
10
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">{{$t1('重置')}}
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
+ {{ $t1('重置') }}
11
12
  </el-button>
12
13
  </div>
13
14
  </div>
@@ -17,37 +18,37 @@
17
18
  <table class="table-detail">
18
19
  <tbody>
19
20
  <tr>
20
- <th>操作类型</th>
21
+ <th>{{ $t1('操作类型') }}</th>
21
22
  <td>{{ logTypeMap[userLog.logType] }}</td>
22
23
  </tr>
23
24
  <tr>
24
- <th>操作内容</th>
25
+ <th>{{ $t1('操作内容') }}</th>
25
26
  <td colspan="7">{{ userLog.content }}</td>
26
27
  </tr>
27
28
  <tr>
28
- <th>请求地址</th>
29
+ <th>{{ $t1('请求地址') }}</th>
29
30
  <td colspan="7">{{ userLog.path }}</td>
30
31
  </tr>
31
32
  <tr>
32
- <th>客户端</th>
33
+ <th>{{ $t1('客户端') }}</th>
33
34
  <td colspan="7">{{ userLog.client }}</td>
34
35
  </tr>
35
36
  <tr>
36
- <th>冗余字段1</th>
37
+ <th>{{ $t1('冗余字段1') }}</th>
37
38
  <td>{{ userLog.param1 }}</td>
38
- <th>冗余字段2</th>
39
+ <th>{{ $t1('冗余字段2') }}</th>
39
40
  <td>{{ userLog.param2 }}</td>
40
41
  </tr>
41
42
  <tr>
42
- <th>操作人</th>
43
+ <th>{{ $t1('操作人') }}</th>
43
44
  <td>{{ userLog.nickName }}</td>
44
- <th>请求IP</th>
45
+ <th>{{ $t1('请求IP') }}</th>
45
46
  <td>{{ userLog.ip }}</td>
46
- <th>服务名</th>
47
+ <th>{{ $t1('服务名') }}</th>
47
48
  <td colspan="3">{{ userLog.serverName }}</td>
48
49
  </tr>
49
50
  <tr>
50
- <th>内部信息数据</th>
51
+ <th>{{ $t1('内部信息数据') }}</th>
51
52
  <td colspan="7">{{ userLog.msg }}</td>
52
53
  </tr>
53
54
  <tr>
@@ -82,11 +83,11 @@ export default {
82
83
  dataId: '',
83
84
  userLog: {},
84
85
  logTypeMap: {
85
- 'login': '登录成功',
86
- 'loginFailed': '登录失败',
87
- 'logout': '退出登录',
88
- 'accessMenu': '访问菜单',
89
- 'changePassword': '修改密码'
86
+ 'login': this.$t1('登录成功'),
87
+ 'loginFailed': this.$t1('登录失败'),
88
+ 'logout': this.$t1('退出登录'),
89
+ 'accessMenu': this.$t1('访问菜单'),
90
+ 'changePassword': this.$t1('修改密码')
90
91
  }
91
92
  };
92
93
  },
@@ -7,7 +7,7 @@
7
7
  </el-tab-pane>
8
8
  <el-tab-pane :label="$t1('列表')" name="second">
9
9
  <div class="tree-box fl">
10
- <div class="tit"><b>操作类型</b></div>
10
+ <div class="tit"><b>{{ $t1('操作类型') }}</b></div>
11
11
  <el-tree
12
12
  :props="defaultProps"
13
13
  :load="loadNode"
@@ -34,7 +34,7 @@
34
34
  <template #form>
35
35
  <div class="clearfix screen-btns">
36
36
  <div class="fl">
37
- <base-table-export :option="{ title: '访问统计导出', targetRef: 'table-m1'}"
37
+ <base-table-export :option="{ title: $t1('访问统计导出'), targetRef: 'table-m1'}"
38
38
  :parent-target="_self"/>
39
39
  </div>
40
40
  <div class="fr">
@@ -42,20 +42,21 @@
42
42
  @click="showAdvancedSearch = true">{{ $t1('高级筛选') }}
43
43
  </vxe-button>
44
44
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
45
- plain>{{$t1('重置')}}
45
+ plain>{{ $t1('重置') }}
46
46
  </vxe-button>
47
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
47
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
48
+ {{ $t1('搜索') }}
48
49
  </vxe-button>
49
50
  </div>
50
51
  </div>
51
52
  <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
52
53
  @submit="searchEvent" @reset="searchEvent">
53
- <vxe-form-item title="操作类型:">
54
+ <vxe-form-item :title="$t1('操作类型')+':'">
54
55
  <template v-slot>
55
56
  <el-input v-model="checkNode.label" :disabled="true"></el-input>
56
57
  </template>
57
58
  </vxe-form-item>
58
- <vxe-form-item title="访问日期:">
59
+ <vxe-form-item :title="$t1('访问日期')+':'">
59
60
  <template v-slot>
60
61
  <el-date-picker
61
62
  v-model="formData.startTime"
@@ -84,7 +85,7 @@
84
85
  </div>
85
86
  </div>
86
87
  </el-tab-pane>
87
- <el-tab-pane label="统计" name="third">
88
+ <el-tab-pane :label="$t1('统计')" name="third">
88
89
  <statistics_list v-if="showStatisticsList"></statistics_list>
89
90
  </el-tab-pane>
90
91
  </el-tabs>
@@ -92,17 +93,17 @@
92
93
  :formData.sync="advancedFormData" @confirm="searchEvent">
93
94
  <template #form>
94
95
  <vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">
95
- <vxe-form-item title="操作内容:" class-name="block">
96
+ <vxe-form-item :title="$t1('操作内容') + ':'" class-name="block">
96
97
  <template v-slot>
97
98
  <el-input v-model="advancedFormData.content" size="small" clearable></el-input>
98
99
  </template>
99
100
  </vxe-form-item>
100
- <vxe-form-item title="冗余字段1:">
101
+ <vxe-form-item :title="$t1('冗余字段1') +':'">
101
102
  <template v-slot>
102
103
  <el-input v-model="advancedFormData.param1" size="small" clearable></el-input>
103
104
  </template>
104
105
  </vxe-form-item>
105
- <vxe-form-item title="冗余字段2:">
106
+ <vxe-form-item :title="$t1('冗余字段2') +':'">
106
107
  <template v-slot>
107
108
  <el-input v-model="advancedFormData.param2" size="small" clearable></el-input>
108
109
  </template>
@@ -145,11 +146,11 @@ export default {
145
146
  advancedFormData: {},
146
147
  showStatisticsList: false,
147
148
  logTypeMap: {
148
- 'login': '登录成功',
149
- 'loginFailed': '登录失败',
150
- 'logout': '退出登录',
151
- 'accessMenu': '访问菜单',
152
- 'changePassword': '修改密码'
149
+ 'login': this.$t1('登录成功'),
150
+ 'loginFailed': this.$t1('登录失败'),
151
+ 'logout': this.$t1('退出登录'),
152
+ 'accessMenu': this.$t1('访问菜单'),
153
+ 'changePassword': this.$t1('修改密码')
153
154
  }
154
155
  };
155
156
  },
@@ -207,7 +208,7 @@ export default {
207
208
  columns: [
208
209
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
209
210
  {
210
- title: '操作类型',
211
+ title: this.$t1('操作类型'),
211
212
  field: 'logType',
212
213
  fixed: 'left',
213
214
  width: 150,
@@ -218,42 +219,42 @@ export default {
218
219
  }
219
220
  },
220
221
  {
221
- title: '操作内容',
222
+ title: this.$t1('操作内容'),
222
223
  field: 'content',
223
224
  width: 200
224
225
  },
225
226
  {
226
- title: '请求地址',
227
+ title: this.$t1('请求地址'),
227
228
  field: 'path',
228
229
  width: 200
229
230
  },
230
231
  {
231
- title: '客户端',
232
+ title: this.$t1('客户端'),
232
233
  field: 'client',
233
234
  width: 150
234
235
  },
235
236
  {
236
- title: '冗余字段1',
237
+ title: this.$t1('冗余字段1'),
237
238
  field: 'param1',
238
239
  width: 150
239
240
  },
240
241
  {
241
- title: '冗余字段2',
242
+ title: this.$t1('冗余字段2'),
242
243
  field: 'param2',
243
244
  width: 150
244
245
  },
245
246
  {
246
- title: '操作人',
247
+ title: this.$t1('操作人'),
247
248
  field: 'nickName',
248
249
  width: 150
249
250
  },
250
251
  {
251
- title: '服务名',
252
+ title: this.$t1('服务名'),
252
253
  field: 'serverName',
253
254
  width: 250
254
255
  },
255
256
  {
256
- title: '请求IP',
257
+ title: this.$t1('请求IP'),
257
258
  field: 'ip',
258
259
  width: 150
259
260
  },
@@ -278,7 +279,7 @@ export default {
278
279
  this.openEditDialog(row.id);
279
280
  }}
280
281
  >
281
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
282
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
282
283
  popper-class="tooltip-skin">
283
284
  <i class="el-icon-edit"/>
284
285
  </el-tooltip>
@@ -313,7 +314,7 @@ export default {
313
314
  let logTypeMap = this.logTypeMap;
314
315
  let data = [
315
316
  {
316
- label: '全部类型',
317
+ label: this.$t1('全部类型'),
317
318
  all: true,
318
319
  id: -1,
319
320
  leaf: true,
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <div class="tree-box fl">
4
- <div class="tit"><b>操作类型</b></div>
4
+ <div class="tit"><b>{{ $t1('操作类型') }}</b></div>
5
5
  <el-tree
6
6
  :props="defaultProps"
7
7
  :load="loadNode"
@@ -25,18 +25,19 @@
25
25
  <div class="grid-height">
26
26
  <template v-if="logType=='login'">
27
27
  <div class="statistics-box">
28
- <div class="name"><i class="el-icon-user-solid f-blue"></i>登录成功</div>
28
+ <div class="name"><i class="el-icon-user-solid f-blue"></i>{{ $t1('登录成功') }}</div>
29
29
  <template>
30
30
  <block v-for="(item,index) in accessLogs" :key="index">
31
31
  <template v-if="item.flag!=='total'">
32
- <div class="item"><span class="date-txt">{{ item.logDate }}</span> 共有 <span
33
- class="f-red">{{ item.numbers }}</span> 人登录
32
+ <div class="item"><span class="date-txt">{{ item.logDate }}</span> {{ $t1('共有') }} <span
33
+ class="f-red">{{ item.numbers }}</span> {{ $t1('人登录') }}
34
34
  </div>
35
35
  </template>
36
36
  <template v-else>
37
37
  <div class="last">
38
- 合计:<span class="d">{{ item.startDate }}</span> 至 <span class="d">{{ item.endDate }}</span> 共有
39
- <span class="f-red">{{ item.numbers }}</span> 人登录
38
+ {{ $t1('合计') }}:<span class="d">{{ item.startDate }}</span> {{ $t1('至') }} <span
39
+ class="d">{{ item.endDate }}</span> {{ $t1('共有') }}
40
+ <span class="f-red">{{ item.numbers }}</span> {{ $t1('人登录') }}
40
41
  </div>
41
42
  </template>
42
43
  </block>
@@ -51,13 +52,14 @@
51
52
  <div class="fl">
52
53
  </div>
53
54
  <div class="fr">
54
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
55
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
56
+ {{ $t1('搜索') }}
55
57
  </vxe-button>
56
58
  </div>
57
59
  </div>
58
60
  <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
59
61
  @submit="searchEvent" @reset="searchEvent">
60
- <vxe-form-item title="访问日期:">
62
+ <vxe-form-item :title="$t1('访问日期')+':'">
61
63
  <template v-slot>
62
64
  <el-date-picker
63
65
  v-model="formData.startDate"
@@ -81,15 +83,15 @@
81
83
  <el-button style="margin-left: 15px;" icon="el-icon-date" class="button-sty"
82
84
  @click="checkDateButton(7)"
83
85
  type="success"
84
- >近7天
86
+ >{{ $t1('近7天') }}
85
87
  </el-button>
86
88
  <el-button icon="el-icon-date" class="button-sty" @click="checkDateButton(30)"
87
89
  type="success"
88
- >近30天
90
+ >{{ $t1('近30天') }}
89
91
  </el-button>
90
92
  <el-button icon="el-icon-date" class="button-sty" @click="checkDateButton(90)"
91
93
  type="success"
92
- >近90天
94
+ >{{ $t1('近90天') }}
93
95
  </el-button>
94
96
  </template>
95
97
  </vxe-form-item>
@@ -161,7 +163,7 @@ export default {
161
163
  })
162
164
  } else {
163
165
  if (!this.formData.startDate || !this.formData.endDate) {
164
- this.$baseAlert("请选择访问日期");
166
+ this.$baseAlert(this.$t1('请选择访问日期'));
165
167
  return
166
168
  }
167
169
  this.$refs['table-m1'].commitProxy('reload');
@@ -205,19 +207,19 @@ export default {
205
207
  columns: [
206
208
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
207
209
  {
208
- title: '访问菜单名',
210
+ title: this.$t1('访问菜单名'),
209
211
  field: 'businessCode',
210
212
  width: 250,
211
213
  fixed: 'left',
212
214
  },
213
215
  {
214
216
  field: 'times',
215
- title: '菜单访问总量',
217
+ title: this.$t1('菜单访问总量'),
216
218
  width: 150
217
219
  },
218
220
  {
219
221
  field: 'numbers',
220
- title: '菜单访问人数',
222
+ title: this.$t1('菜单访问人数'),
221
223
  width: 150
222
224
  },
223
225
  {
@@ -244,13 +246,13 @@ export default {
244
246
  loadNode(node, resolve) {
245
247
  let data = [
246
248
  {
247
- label: '登录成功',
249
+ label: this.$t1('登录成功'),
248
250
  value: "login",
249
251
  id: 1,
250
252
  leaf: true
251
253
  },
252
254
  {
253
- label: '访问菜单',
255
+ label: this.$t1('访问菜单'),
254
256
  value: "accessMenu",
255
257
  id: 2,
256
258
  leaf: true
@@ -4,15 +4,17 @@
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ dataId ? $t1('查看') : $t1('新增') }} API请求定义
7
+ {{ dataId ? $t1('查看API请求定义') : $t1('新增API请求定义') }}
8
8
  </div>
9
9
  <div class="fr">
10
- <el-button type="warning" class="button-sty" icon="el-icon-copy-document" @click="copy" v-if="!!dataId">复制
10
+ <el-button type="warning" class="button-sty" icon="el-icon-copy-document" @click="copy" v-if="!!dataId">
11
+ {{ $t1('复制') }}
11
12
  </el-button>
12
13
  <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
13
14
  {{ $t1('重置') }}
14
15
  </el-button>
15
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
16
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
17
+ </el-button>
16
18
  </div>
17
19
  </div>
18
20
  <div class="d-cont">
@@ -23,24 +25,24 @@
23
25
  <tr>
24
26
  <th>
25
27
  <em class="f-red">*</em>
26
- API请求名称
28
+ {{ $t1('API请求名称') }}
27
29
  </th>
28
30
  <td colspan="3">
29
31
  <el-form-item prop="apiReqName" :rules="[{ required: true, trigger: 'blur' }]">
30
32
  <el-input type="text" autocomplete="off" v-model="apiRequest.apiReqName" clearable/>
31
33
  </el-form-item>
32
34
  </td>
33
- <th>API请求编码</th>
35
+ <th>{{ $t1('API请求编码') }}</th>
34
36
  <td>{{ apiRequest.apiReqCode }}</td>
35
37
  <th>
36
38
  <em class="f-red">*</em>
37
- 是否启用
39
+ {{ $t1('是否启用') }}
38
40
  </th>
39
41
  <td>
40
42
  <el-form-item prop="enabled" :rules="[{ required: true, trigger: 'blur' }]">
41
43
  <el-radio-group v-model="apiRequest.enabled">
42
- <el-radio :label="true">启用</el-radio>
43
- <el-radio :label="false">禁用</el-radio>
44
+ <el-radio :label="true">{{ $t1('启用') }}</el-radio>
45
+ <el-radio :label="false">{{ $t1('禁用') }}</el-radio>
44
46
  </el-radio-group>
45
47
  </el-form-item>
46
48
  </td>
@@ -48,7 +50,7 @@
48
50
  <tr>
49
51
  <th>
50
52
  <em class="f-red">*</em>
51
- 请求URL
53
+ {{ $t1('请求URL') }}
52
54
  </th>
53
55
  <td colspan="7">
54
56
  <el-form-item prop="url" :rules="[{ required: true, trigger: 'blur' }]">
@@ -59,14 +61,15 @@
59
61
  <tr>
60
62
  <th>{{ $t1('备注') }}</th>
61
63
  <td colspan="7">
62
- <el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small" v-model="apiRequest.remark"
64
+ <el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
65
+ v-model="apiRequest.remark"
63
66
  clearable></el-input>
64
67
  </td>
65
68
  </tr>
66
69
  <tr>
67
70
  <th>
68
71
  <em class="f-red">*</em>
69
- 脚本
72
+ {{ $t1('脚本') }}
70
73
  <scriptDescriptionButton path="static/readme/ApiRequest.txt"></scriptDescriptionButton>
71
74
  <scriptTestButton :script.sync="apiRequest.script"></scriptTestButton>
72
75
  </th>
@@ -13,42 +13,44 @@
13
13
  <template #form>
14
14
  <div class="clearfix screen-btns">
15
15
  <div class="fl">
16
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增
16
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
17
+ {{ $t1('新增') }}
17
18
  </vxe-button>
18
- <base-table-export :option="{ title: 'API请求定义导出', targetRef: 'table-m1'}"
19
+ <base-table-export :option="{ title: $t1('API请求定义导出'), targetRef: 'table-m1'}"
19
20
  :parent-target="_self"/>
20
21
  </div>
21
22
  <div class="fr">
22
23
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{$t1('重置')}}
24
+ plain>{{ $t1('重置') }}
24
25
  </vxe-button>
25
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
26
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
27
+ {{ $t1('搜索') }}
26
28
  </vxe-button>
27
29
  </div>
28
30
  </div>
29
31
  <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
30
32
  @submit="searchEvent" @reset="searchEvent">
31
- <vxe-form-item title="API请求名称:" field="apiReqName">
33
+ <vxe-form-item :title="$t1('API请求名称')+':'" field="apiReqName">
32
34
  <template v-slot>
33
35
  <el-input v-model="formData.apiReqName" size="small" clearable/>
34
36
  </template>
35
37
  </vxe-form-item>
36
- <vxe-form-item title="API请求编码:" field="apiReqCode">
38
+ <vxe-form-item :title="$t1('API请求编码')+':'" field="apiReqCode">
37
39
  <template v-slot>
38
40
  <el-input v-model="formData.apiReqCode" size="small" clearable/>
39
41
  </template>
40
42
  </vxe-form-item>
41
- <vxe-form-item title="备注:" field="remark">
43
+ <vxe-form-item :title="$t1('备注')+':'" field="remark">
42
44
  <template v-slot>
43
45
  <el-input v-model="formData.remark" size="small" clearable/>
44
46
  </template>
45
47
  </vxe-form-item>
46
48
 
47
- <vxe-form-item title="是否启用:" field="enabled">
49
+ <vxe-form-item :title="$t1('是否启用')+':'" field="enabled">
48
50
  <template v-slot>
49
51
  <el-select v-model="formData.enabled" clearable>
50
- <el-option :value="true" label="启用"></el-option>
51
- <el-option :value="false" label="禁用"></el-option>
52
+ <el-option :value="true" :label="$t1('启用')"></el-option>
53
+ <el-option :value="false" :label="$t1('禁用')"></el-option>
52
54
  </el-select>
53
55
  </template>
54
56
  </vxe-form-item>
@@ -180,7 +182,7 @@ export default {
180
182
  this.openEditDialog(row.id);
181
183
  }}
182
184
  >
183
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
185
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
184
186
  popper-class="tooltip-skin">
185
187
  <i class="el-icon-edit"/>
186
188
  </el-tooltip>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-dialog
3
- title="地区列表"
3
+ :title="$t1('地区列表')"
4
4
  :append-to-body="true"
5
5
  :modal-append-to-body="true"
6
6
  :close-on-click-modal="falseValue"
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <div class="cont" style="height:450px">
16
16
  <el-tabs v-model="activeName" class="tab-box">
17
- <el-tab-pane label="下拉选择" name="first">
17
+ <el-tab-pane :label="$t1('下拉选择')" name="first">
18
18
  <el-popover
19
19
  placement="bottom"
20
20
  width="630"
@@ -29,7 +29,7 @@
29
29
  <label class="adr-select-txt" :class="{noNone:(!!value1)}" slot="reference">
30
30
  <!-- <i :class="row.menuImg" class="iconfont"></i>-->
31
31
  <span v-if="!!value1">{{ getItemLabel(provinces, value1) }}</span>
32
- <span v-if="!value1" style="color: #e8e8e8;">请选择</span>
32
+ <span v-if="!value1" style="color: #e8e8e8;">{{ $t1('请选择') }}</span>
33
33
  <i class="el-icon-arrow-down"></i>
34
34
  <i class="el-icon-circle-close icon-box_del" @click.stop="clearCheckItem(1)"></i>
35
35
  </label>
@@ -49,7 +49,7 @@
49
49
  <label class="adr-select-txt" :class="{noNone:(!!value2)}" slot="reference">
50
50
  <!-- <i :class="row.menuImg" class="iconfont"></i>-->
51
51
  <span v-if="!!value2">{{ getItemLabel(cities, value2) }}</span>
52
- <span v-if="!value2" style="color: #e8e8e8;">请选择</span>
52
+ <span v-if="!value2" style="color: #e8e8e8;">{{ $t1('请选择') }}</span>
53
53
  <i class="el-icon-arrow-down"></i>
54
54
  <i class="el-icon-circle-close icon-box_del" @click.stop="clearCheckItem(2)"></i>
55
55
  </label>
@@ -69,7 +69,7 @@
69
69
  <label class="adr-select-txt" :class="{noNone:(!!value3)}" slot="reference">
70
70
  <!-- <i :class="row.menuImg" class="iconfont"></i>-->
71
71
  <span v-if="!!value3">{{ getItemLabel(districts, value3) }}</span>
72
- <span v-if="!value3" style="color: #e8e8e8;">请选择</span>
72
+ <span v-if="!value3" style="color: #e8e8e8;">{{ $t1('请选择') }}</span>
73
73
  <i class="el-icon-arrow-down"></i>
74
74
  <i class="el-icon-circle-close icon-box_del" @click.stop="clearCheckItem(3)"></i>
75
75
  </label>
@@ -89,27 +89,13 @@
89
89
  <label class="adr-select-txt" :class="{noNone:(!!value4)}" slot="reference">
90
90
  <!-- <i :class="row.menuImg" class="iconfont"></i>-->
91
91
  <span v-if="!!value4">{{ getItemLabel(counties, value4) }}</span>
92
- <span v-if="!value4" style="color: #e8e8e8;">请选择</span>
92
+ <span v-if="!value4" style="color: #e8e8e8;">{{ $t1('请选择') }}</span>
93
93
  <i class="el-icon-arrow-down"></i>
94
94
  <i class="el-icon-circle-close icon-box_del" @click.stop="clearCheckItem(4)"></i>
95
95
  </label>
96
96
  </el-popover>
97
-
98
- <!-- <el-select v-model="value1" @change="(val)=>{changeSelect(val,1)}">
99
- <el-option v-for="(item,rowIndex) in provinces" :key="rowIndex" :value="item.id"
100
- :label="item.name"></el-option>
101
- </el-select>
102
- <el-select v-model="value2" v-if="checkSize>0" @change="(val)=>{changeSelect(val,2)}">
103
- <el-option value="" label=""></el-option>
104
- </el-select>
105
- <el-select v-model="value3" v-if="checkSize>1" @change="(val)=>{changeSelect(val,3)}">
106
- <el-option value="" label=""></el-option>
107
- </el-select>
108
- <el-select v-model="value4" v-if="checkSize>3" @change="(val)=>{changeSelect(val,4)}">
109
- <el-option value="" label=""></el-option>
110
- </el-select>-->
111
97
  </el-tab-pane>
112
- <el-tab-pane label="列表选择" name="second">
98
+ <el-tab-pane :label="$t1('列表选择')" name="second">
113
99
  <div style="height:400px">
114
100
  <vxe-grid
115
101
  class="is-pointer"
@@ -125,21 +111,22 @@
125
111
  <div class="clearfix screen-btns">
126
112
  <div class="fr">
127
113
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
128
- plain>{{$t1('重置')}}
114
+ plain>{{ $t1('重置') }}
129
115
  </vxe-button>
130
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
116
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
117
+ {{ $t1('搜索') }}
131
118
  </vxe-button>
132
119
  </div>
133
120
  </div>
134
121
  <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData"
135
122
  @submit="searchEvent"
136
123
  @reset="resetEvent">
137
- <vxe-form-item title="地区名称:" field="name">
124
+ <vxe-form-item :title="$t1('地区名称')+':'" field="name">
138
125
  <template v-slot>
139
126
  <el-input v-model="formData.name" size="small" clearable/>
140
127
  </template>
141
128
  </vxe-form-item>
142
- <vxe-form-item title="地区全称:" field="fullName">
129
+ <vxe-form-item :title="$t1('地区全称')+':'" field="fullName">
143
130
  <template v-slot>
144
131
  <el-input v-model="formData.fullName" size="small" clearable/>
145
132
  </template>
@@ -387,7 +374,7 @@ export default {
387
374
  columns: [
388
375
  {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
389
376
  {
390
- title: '地区名称',
377
+ title: this.$t1('地区名称'),
391
378
  field: 'name',
392
379
  width: 250,
393
380
  fixed: 'left',
@@ -395,7 +382,7 @@ export default {
395
382
  },
396
383
  {
397
384
  field: 'fullName',
398
- title: '地区全称',
385
+ title: this.$t1('地区全称'),
399
386
  width: 250
400
387
  },
401
388
  {