cloud-web-corejs 1.0.18 → 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 (186) 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/utils/aes.js +1 -0
  8. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -4
  9. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -3
  10. package/src/views/bd/setting/bd_attach_setting/list.vue +3 -3
  11. package/src/views/bd/setting/form_script/dialog.vue +14 -12
  12. package/src/views/bd/setting/form_script/edit.vue +5 -4
  13. package/src/views/bd/setting/form_script/edit1.vue +3 -3
  14. package/src/views/bd/setting/form_script/form_list.vue +3 -3
  15. package/src/views/bd/setting/form_script/list.vue +4 -4
  16. package/src/views/bd/setting/form_script/list1.vue +4 -4
  17. package/src/views/bd/setting/form_script/list2.vue +1 -1
  18. package/src/views/bd/setting/form_template/dialog.vue +24 -17
  19. package/src/views/bd/setting/form_template/edit.vue +3 -3
  20. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +1 -1
  21. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -5
  22. package/src/views/bd/setting/form_template/itemEdit.vue +3 -3
  23. package/src/views/bd/setting/form_template/itemList.vue +3 -3
  24. package/src/views/bd/setting/form_template/list.vue +4 -4
  25. package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
  26. package/src/views/bd/setting/menu_kind/authDialog.vue +2 -2
  27. package/src/views/bd/setting/menu_kind/dialog.vue +23 -16
  28. package/src/views/bd/setting/menu_kind/list.vue +3 -3
  29. package/src/views/bd/setting/table_model/dialog.vue +4 -4
  30. package/src/views/bd/setting/table_model/edit.vue +1123 -1123
  31. package/src/views/bd/setting/table_model/list.vue +4 -4
  32. package/src/views/bd/setting/table_model/zdDialog.vue +4 -4
  33. package/src/views/mobile/user/area/dialog.vue +3 -2
  34. package/src/views/mobile/user/user/dialog.vue +3 -2
  35. package/src/views/support/export_template/edit.vue +4 -4
  36. package/src/views/support/export_template/list.vue +12 -12
  37. package/src/views/user/access_log/edit.vue +2 -2
  38. package/src/views/user/access_log/list.vue +8 -8
  39. package/src/views/user/access_log/statistics_list.vue +16 -11
  40. package/src/views/user/api_request/edit.vue +7 -4
  41. package/src/views/user/api_request/list.vue +7 -5
  42. package/src/views/user/area/dialog.vue +4 -4
  43. package/src/views/user/area_attribute/configDialog.vue +319 -319
  44. package/src/views/user/area_attribute/edit.vue +2 -2
  45. package/src/views/user/area_attribute/list.vue +1 -1
  46. package/src/views/user/attachment/uploadDialog.vue +11 -11
  47. package/src/views/user/bill_setting/edit.vue +6 -5
  48. package/src/views/user/bill_setting/h5_ModifyDialog.vue +5 -3
  49. package/src/views/user/bill_setting/h5_view.vue +4 -4
  50. package/src/views/user/bill_setting/itemViewDialog.vue +1 -1
  51. package/src/views/user/bill_setting/list.vue +5 -4
  52. package/src/views/user/bill_setting/queryDialog.vue +3 -3
  53. package/src/views/user/bill_setting/render.vue +6 -6
  54. package/src/views/user/bill_setting/template2.json +44 -11
  55. package/src/views/user/bill_setting/userDialog.vue +4 -4
  56. package/src/views/user/code_rules/edit.vue +3 -3
  57. package/src/views/user/code_rules/list.vue +3 -3
  58. package/src/views/user/commMenu/index.vue +2 -2
  59. package/src/views/user/common_attribute/edit.vue +3 -3
  60. package/src/views/user/common_attribute/itemEdit.vue +3 -3
  61. package/src/views/user/common_attribute/list.vue +3 -3
  62. package/src/views/user/common_script/edit.vue +5 -4
  63. package/src/views/user/common_script/list.vue +14 -13
  64. package/src/views/user/company_info/dialog.vue +138 -131
  65. package/src/views/user/company_info/edit.vue +2 -2
  66. package/src/views/user/company_info/view.vue +1 -1
  67. package/src/views/user/country/dialog.vue +6 -6
  68. package/src/views/user/country/edit.vue +8 -7
  69. package/src/views/user/country/list.vue +170 -160
  70. package/src/views/user/data_type_setting/dialog.vue +10 -7
  71. package/src/views/user/data_type_setting/editDialog.vue +12 -11
  72. package/src/views/user/ea/eagroup/eaobj_list.vue +331 -310
  73. package/src/views/user/ea/eagroup/edit.vue +492 -475
  74. package/src/views/user/ea/eaobj/edit.vue +153 -148
  75. package/src/views/user/ea/eaobj/list.vue +147 -135
  76. package/src/views/user/error-page/401.vue +42 -34
  77. package/src/views/user/error-page/404.vue +19 -3
  78. package/src/views/user/extend_datasource/dialog.vue +124 -116
  79. package/src/views/user/extend_datasource/edit.vue +5 -4
  80. package/src/views/user/extend_datasource/list.vue +3 -3
  81. package/src/views/user/fieldTranslation/editDialog.vue +2 -2
  82. package/src/views/user/fieldTranslation/list.vue +4 -3
  83. package/src/views/user/field_values_invisible/edit.vue +85 -83
  84. package/src/views/user/field_values_invisible/list.vue +32 -21
  85. package/src/views/user/file_type/edit.vue +3 -3
  86. package/src/views/user/file_type/list.vue +7 -4
  87. package/src/views/user/file_type/userEdit.vue +188 -188
  88. package/src/views/user/file_view_area/edit.vue +3 -3
  89. package/src/views/user/file_view_area/itemEdit.vue +168 -165
  90. package/src/views/user/file_view_area/list.vue +3 -3
  91. package/src/views/user/file_view_ins/list.vue +55 -36
  92. package/src/views/user/file_view_ins/propertiesDialog.vue +218 -218
  93. package/src/views/user/form/form_ins_list/edit.vue +421 -421
  94. package/src/views/user/form/form_template/dialog.vue +24 -17
  95. package/src/views/user/form/form_template/edit.vue +7 -4
  96. package/src/views/user/form/form_template/itemEdit.vue +3 -3
  97. package/src/views/user/form/form_template/itemList.vue +3 -3
  98. package/src/views/user/form/form_template/list.vue +5 -4
  99. package/src/views/user/form/form_template_field/dialog.vue +11 -8
  100. package/src/views/user/form/form_type/dialog.vue +134 -127
  101. package/src/views/user/form/form_type/edit.vue +4 -4
  102. package/src/views/user/form/form_type/editDialog.vue +10 -9
  103. package/src/views/user/form/form_type/list.vue +128 -118
  104. package/src/views/user/form/report_requestaccess/dialog.vue +106 -99
  105. package/src/views/user/form/report_requestaccess/edit.vue +272 -234
  106. package/src/views/user/form/report_requestaccess/list.vue +29 -18
  107. package/src/views/user/form/vform/designer.vue +164 -164
  108. package/src/views/user/form/vform/formFieldMapping.js +151 -169
  109. package/src/views/user/form/vform/out_render.vue +3 -2
  110. package/src/views/user/form/vform/render.vue +2 -2
  111. package/src/views/user/form/view/edit.vue +7 -7
  112. package/src/views/user/form/view/list.vue +2 -2
  113. package/src/views/user/home/distributor.vue +374 -118
  114. package/src/views/user/home/index.vue +1 -1
  115. package/src/views/user/language_setting/edit.vue +167 -166
  116. package/src/views/user/language_setting/list.vue +3 -3
  117. package/src/views/user/ledger_library/list.vue +2 -2
  118. package/src/views/user/ledger_library/private_list.vue +3 -3
  119. package/src/views/user/login/auth-redirect.vue +1 -1
  120. package/src/views/user/login/index.vue +1 -1
  121. package/src/views/user/login/indexMixin.js +4 -1
  122. package/src/views/user/menu/list.vue +3 -3
  123. package/src/views/user/mobile_menu/list.vue +2 -2
  124. package/src/views/user/notify_message/dialog.vue +8 -6
  125. package/src/views/user/notify_message/list.vue +4 -3
  126. package/src/views/user/notify_template/edit.vue +185 -185
  127. package/src/views/user/notify_template/list.vue +4 -4
  128. package/src/views/user/oplog/edit.vue +108 -103
  129. package/src/views/user/oplog/list.vue +3 -3
  130. package/src/views/user/outLink/form_view.vue +144 -143
  131. package/src/views/user/outLink/index.vue +7 -5
  132. package/src/views/user/outLink/view.vue +119 -117
  133. package/src/views/user/position/dialog.vue +145 -138
  134. package/src/views/user/position/edit.vue +4 -4
  135. package/src/views/user/position/list.vue +170 -160
  136. package/src/views/user/project_tag/dialog.vue +5 -5
  137. package/src/views/user/project_tag/edit.vue +3 -3
  138. package/src/views/user/project_tag/list.vue +3 -3
  139. package/src/views/user/push_setting/edit.vue +7 -4
  140. package/src/views/user/push_setting/list.vue +44 -34
  141. package/src/views/user/redirect/index.vue +4 -4
  142. package/src/views/user/role/dialog.vue +10 -7
  143. package/src/views/user/role/edit.vue +427 -427
  144. package/src/views/user/role/list.vue +125 -114
  145. package/src/views/user/sale_org/dialog.vue +3 -3
  146. package/src/views/user/sale_org/list.vue +11 -11
  147. package/src/views/user/sale_org/moveDialog.vue +2 -2
  148. package/src/views/user/sale_org_net/list.vue +9 -9
  149. package/src/views/user/system_notice/edit.vue +184 -184
  150. package/src/views/user/system_notice/list.vue +156 -145
  151. package/src/views/user/system_parameter/edit.vue +140 -137
  152. package/src/views/user/system_parameter/list.vue +131 -120
  153. package/src/views/user/user/dialog.vue +31 -24
  154. package/src/views/user/user/edit.vue +1021 -1019
  155. package/src/views/user/user/form_edit.vue +481 -483
  156. package/src/views/user/user/form_list.vue +5 -5
  157. package/src/views/user/user/info.vue +271 -256
  158. package/src/views/user/user/infoContent.vue +12 -11
  159. package/src/views/user/user/infoEdit.vue +111 -92
  160. package/src/views/user/user/inner_list.vue +1 -1
  161. package/src/views/user/user/list.vue +55 -50
  162. package/src/views/user/user/list2.vue +1 -1
  163. package/src/views/user/user/modifyPasswordDialog.vue +3 -3
  164. package/src/views/user/user/out_list.vue +1 -1
  165. package/src/views/user/wf/formCustDialog/list.vue +13 -15
  166. package/src/views/user/wf/iframe/index.vue +12 -12
  167. package/src/views/user/wf/iframe/index2.vue +2 -2
  168. package/src/views/user/wf/wf_auto_submit_data/edit.vue +1 -1
  169. package/src/views/user/wf/wf_auto_submit_data/edith.vue +1 -1
  170. package/src/views/user/wf/wf_auto_submit_data/list.vue +8 -6
  171. package/src/views/user/wf/wf_diy_attribute/edit.vue +5 -5
  172. package/src/views/user/wf/wf_manage/list.vue +5 -4
  173. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +11 -10
  174. package/src/views/user/wf/wf_obj_config/dialog.vue +10 -7
  175. package/src/views/user/wf/wf_obj_config/edit.vue +7 -4
  176. package/src/views/user/wf/wf_obj_config/edit_form.vue +70 -63
  177. package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
  178. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +3 -3
  179. package/src/views/user/wf/wf_obj_config/list.vue +4 -4
  180. package/src/views/user/wf/wf_obj_config/list_form.vue +22 -22
  181. package/src/views/user/wf/wf_param/edit.vue +4 -4
  182. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +27 -13
  183. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +25 -10
  184. package/src/views/user/wf/wf_work_calendar/configDialog.vue +8 -5
  185. package/src/views/user/wf/wf_work_calendar/date.js +10 -10
  186. package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
@@ -1,125 +1,134 @@
1
1
  <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane label="常规" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self" @reload="$reloadHandle"></editView>
6
- </el-tab-pane>
7
- <el-tab-pane label="列表" name="second">
8
- <div class="grid-height">
9
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange" @custom="$vxeTableUtil.customHandle">
10
- <template #form>
11
- <div class="clearfix screen-btns">
12
- <div class="fl">
13
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增</vxe-button>
14
- <base-table-export :option="{ title: '岗位导出', targetRef: 'table-m1'}" :parent-target="_self" />
15
- <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
16
- </div>
17
- <div class="fr">
18
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary" plain>重置</vxe-button>
19
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
20
- </div>
21
- </div>
22
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent" @reset="searchEvent">
23
- <vxe-form-item title="岗位名称:" field="name">
24
- <template v-slot>
25
- <el-input v-model="formData.name" size="small" clearable />
26
- </template>
27
- </vxe-form-item>
28
- <vxe-form-item title="岗位编码:" field="code">
29
- <template v-slot>
30
- <el-input v-model="formData.code" size="small" clearable />
31
- </template>
32
- </vxe-form-item>
33
- </vxe-form>
34
- </template>
35
- </vxe-grid>
36
- </div>
37
- </el-tab-pane>
38
- </el-tabs>
39
- </div>
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
+ </vxe-button>
17
+ <base-table-export :option="{ title: '岗位导出', targetRef: 'table-m1'}" :parent-target="_self"/>
18
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
19
+ </div>
20
+ <div class="fr">
21
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
22
+ plain>{{ $t1('重置') }}
23
+ </vxe-button>
24
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
25
+ {{ $t1('搜索') }}
26
+ </vxe-button>
27
+ </div>
28
+ </div>
29
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
30
+ @submit="searchEvent" @reset="searchEvent">
31
+ <vxe-form-item title="岗位名称:" field="name">
32
+ <template v-slot>
33
+ <el-input v-model="formData.name" size="small" clearable/>
34
+ </template>
35
+ </vxe-form-item>
36
+ <vxe-form-item title="岗位编码:" field="code">
37
+ <template v-slot>
38
+ <el-input v-model="formData.code" size="small" clearable/>
39
+ </template>
40
+ </vxe-form-item>
41
+ </vxe-form>
42
+ </template>
43
+ </vxe-grid>
44
+ </div>
45
+ </el-tab-pane>
46
+ </el-tabs>
47
+ </div>
40
48
  </template>
41
49
 
42
50
  <script>
43
51
  import editView from './edit.vue';
52
+
44
53
  export default {
45
- name: 'position:list',
46
- components: { editView },
47
- data() {
48
- return {
49
- activeName: 'second',
50
- dataId: 0,
51
- showEdit: false,
52
- vxeOption: {},
53
- formData: {}
54
- };
55
- },
56
- mounted() {
57
- this.initTableList();
58
- },
59
- methods: {
60
- searchEvent() {
61
- this.$refs['table-m1'].commitProxy('reload');
62
- },
63
- resetEvent() {
64
- this.formData = {};
65
- this.$refs['table-m1'].commitProxy('reload');
66
- },
67
- openEditDialog(id) {
68
- this.dataId = !id || typeof id == 'object' ? 0 : id;
69
- this.activeName = 'first';
70
- this.$openEditView('showEdit');
71
- },
72
- initTableList() {
73
- let that = this;
74
- let tableOption = {
75
- vue: this,
76
- tableRef: 'table-m1',
77
- tableName: 'basic_position_list-m2',
78
- path: USER_PREFIX + '/position/listCurrentPage',
79
- param: () => {
80
- return this.formData;
81
- },
82
- columns: [
83
- { type: 'checkbox', width: 48, resizable: false, fixed: 'left' },
84
- {
85
- title: '岗位名称',
86
- field: 'name',
87
- width: 150,
88
- fixed: 'left'
89
- },
90
- {
91
- field: 'code',
92
- title: '岗位编码',
93
- width: 250
94
- },
95
- { title: '所属组织', field: 'companyName', width: 150 },
96
- {
97
- field: 'enabled',
98
- title: '是否启用',
99
- width: 150,
100
- slots: {
101
- default: ({ row }) => {
102
- if (row.enabled) {
103
- return [
104
- <div class="txt-status">
105
- <span>启用</span>
106
- </div>
107
- ];
108
- } else {
109
- return [
110
- <div class="txt-status disable">
111
- <span>禁用</span>
112
- </div>
113
- ];
114
- }
115
- }
116
- }
117
- },
118
- {
119
- field: 'createDate',
120
- title: '创建时间',
121
- width: 150
122
- },
54
+ name: 'position:list',
55
+ components: {editView},
56
+ data() {
57
+ return {
58
+ activeName: 'second',
59
+ dataId: 0,
60
+ showEdit: false,
61
+ vxeOption: {},
62
+ formData: {}
63
+ };
64
+ },
65
+ mounted() {
66
+ this.initTableList();
67
+ },
68
+ methods: {
69
+ searchEvent() {
70
+ this.$refs['table-m1'].commitProxy('reload');
71
+ },
72
+ resetEvent() {
73
+ this.formData = {};
74
+ this.$refs['table-m1'].commitProxy('reload');
75
+ },
76
+ openEditDialog(id) {
77
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
78
+ this.activeName = 'first';
79
+ this.$openEditView('showEdit');
80
+ },
81
+ initTableList() {
82
+ let that = this;
83
+ let tableOption = {
84
+ vue: this,
85
+ tableRef: 'table-m1',
86
+ tableName: 'basic_position_list-m2',
87
+ path: USER_PREFIX + '/position/listCurrentPage',
88
+ param: () => {
89
+ return this.formData;
90
+ },
91
+ columns: [
92
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
93
+ {
94
+ title: '岗位名称',
95
+ field: 'name',
96
+ width: 150,
97
+ fixed: 'left'
98
+ },
99
+ {
100
+ field: 'code',
101
+ title: '岗位编码',
102
+ width: 250
103
+ },
104
+ {title: '所属组织', field: 'companyName', width: 150},
105
+ {
106
+ field: 'enabled',
107
+ title: '是否启用',
108
+ width: 150,
109
+ slots: {
110
+ default: ({row}) => {
111
+ if (row.enabled) {
112
+ return [
113
+ <div class="txt-status">
114
+ <span>启用</span>
115
+ </div>
116
+ ];
117
+ } else {
118
+ return [
119
+ <div class="txt-status disable">
120
+ <span>禁用</span>
121
+ </div>
122
+ ];
123
+ }
124
+ }
125
+ }
126
+ },
127
+ {
128
+ field: 'createDate',
129
+ title: '创建时间',
130
+ width: 150
131
+ },
123
132
  {
124
133
  field: '_createBy',
125
134
  title: '创建人',
@@ -130,49 +139,50 @@ export default {
130
139
  title: '更新人',
131
140
  width: 150
132
141
  },
133
- {
134
- width: 47,
135
- fixed: 'right',
136
- title: '',
137
- sortable: false,
138
- slots: {
139
- default: ({ row }) => {
140
- return [
141
- <div>
142
- <a
143
- href="javascript:void(0);"
144
- class="a-link"
145
- onclick={() => {
146
- this.openEditDialog(row.id);
147
- }}
148
- >
149
- <el-tooltip enterable={false} effect="dark" content="查看" placement="top" popper-class="tooltip-skin">
150
- <i class="el-icon-edit" />
151
- </el-tooltip>
152
- </a>
153
- </div>
154
- ];
155
- }
156
- }
157
- }
158
- ]
159
- };
160
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
161
- this.vxeOption = opts;
162
- });
163
- },
164
- importExcel() {
165
- let that = this;
166
- that.$excelImport({
167
- prefix: USER_PREFIX,
168
- excel: USER_PREFIX + '/excelTemplate/position/position.xlsx',
169
- multi: false,
170
- saveUrl: USER_PREFIX + '/position/save',
171
- callback: () => {
172
- that.searchEvent();
173
- }
174
- });
175
- }
176
- }
142
+ {
143
+ width: 47,
144
+ fixed: 'right',
145
+ title: '',
146
+ sortable: false,
147
+ slots: {
148
+ default: ({row}) => {
149
+ return [
150
+ <div>
151
+ <a
152
+ href="javascript:void(0);"
153
+ class="a-link"
154
+ onclick={() => {
155
+ this.openEditDialog(row.id);
156
+ }}
157
+ >
158
+ <el-tooltip enterable={false} effect="dark" content="查看" placement="top"
159
+ popper-class="tooltip-skin">
160
+ <i class="el-icon-edit"/>
161
+ </el-tooltip>
162
+ </a>
163
+ </div>
164
+ ];
165
+ }
166
+ }
167
+ }
168
+ ]
169
+ };
170
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
171
+ this.vxeOption = opts;
172
+ });
173
+ },
174
+ importExcel() {
175
+ let that = this;
176
+ that.$excelImport({
177
+ prefix: USER_PREFIX,
178
+ excel: USER_PREFIX + '/excelTemplate/position/position.xlsx',
179
+ multi: false,
180
+ saveUrl: USER_PREFIX + '/position/save',
181
+ callback: () => {
182
+ that.searchEvent();
183
+ }
184
+ });
185
+ }
186
+ }
177
187
  };
178
188
  </script>
@@ -27,7 +27,7 @@
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>重置
30
+ plain>{{$t1('重置')}}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
33
33
  </vxe-button>
@@ -72,14 +72,14 @@
72
72
  </div>
73
73
  </div>
74
74
  <span slot="footer" class="dialog-footer">
75
- <span class="fl tips" v-if="!selectMulti">注:双击确认选择(单选)</span>
75
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
76
76
  <el-button type="primary" plain class="button-sty" @click="dialogClose">
77
77
  <i class="el-icon-close el-icon"></i>
78
- 取 消
78
+ {{ $t1('取 消') }}
79
79
  </el-button>
80
80
  <el-button type="primary" @click="dialogPrimary" class="button-sty">
81
81
  <i class="el-icon-check el-icon"></i>
82
- 确 定
82
+ {{ $t1('确 定') }}
83
83
  </el-button>
84
84
  </span>
85
85
  </el-dialog>
@@ -93,7 +93,7 @@ export default {
93
93
  props: ['visiable', 'multi', 'rows', 'param'],
94
94
  mixins: [selectDialogMixins],
95
95
  created() {
96
- if(this.$attrs.fieldKey){
96
+ if (this.$attrs.fieldKey) {
97
97
  this.fieldKey = this.$attrs.fieldKey;
98
98
  }
99
99
  this.initSetting();
@@ -4,12 +4,12 @@
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ dataId ? '查看' : '新增' }}项目标签
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">重置
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">{{$t1('重置')}}
11
11
  </el-button>
12
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">保存</el-button>
12
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
13
13
  </div>
14
14
  </div>
15
15
  <div class="d-cont">
@@ -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">
@@ -18,7 +18,7 @@
18
18
  </template>
19
19
  <template #buttonRight>
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>
@@ -4,12 +4,15 @@
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ dataId ? '查看' : '新增' }}推送数据设置
7
+ {{ dataId ? $t1('查看') : $t1('新增') }} 推送数据设置
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">复制</el-button>
11
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">重置</el-button>
12
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">保存</el-button>
10
+ <el-button type="warning" class="button-sty" icon="el-icon-copy-document" @click="copy" v-if="!!dataId">复制
11
+ </el-button>
12
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
13
+ {{$t1('重置')}}
14
+ </el-button>
15
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
13
16
  </div>
14
17
  </div>
15
18
  <div class="d-cont">
@@ -1,33 +1,41 @@
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">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :copyId.sync="copyId" :parent-target="_self" @reload="$reloadHandle"></editView>
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :copyId.sync="copyId"
6
+ :parent-target="_self" @reload="$reloadHandle"></editView>
6
7
  </el-tab-pane>
7
- <el-tab-pane label="列表" name="second">
8
+ <el-tab-pane :label="$t1('列表')" name="second">
8
9
  <div class="grid-height">
9
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange" @custom="$vxeTableUtil.customHandle">
10
+ <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle">
10
12
  <template #form>
11
13
  <div class="clearfix screen-btns">
12
14
  <div class="fl">
13
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增</vxe-button>
14
- <base-table-export :option="{ title: '推送数据导出', targetRef: 'table-m1'}" :parent-target="_self" />
15
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增
16
+ </vxe-button>
17
+ <base-table-export :option="{ title: '推送数据导出', targetRef: 'table-m1'}" :parent-target="_self"/>
15
18
  </div>
16
19
  <div class="fr">
17
- <!-- <vxe-button status="warning" icon="iconfont icon-shaixuan" class="button-sty orgn" @click="showAdvancedSearch = true">高级筛选</vxe-button>-->
18
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary" plain>重置</vxe-button>
19
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
20
+ <!-- <vxe-button status="warning" icon="iconfont icon-shaixuan" class="button-sty orgn" @click="showAdvancedSearch = true">高级筛选</vxe-button>-->
21
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
22
+ plain>{{$t1('重置')}}
23
+ </vxe-button>
24
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
25
+ {{$t1('搜索')}}
26
+ </vxe-button>
20
27
  </div>
21
28
  </div>
22
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent" @reset="searchEvent">
29
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
30
+ @submit="searchEvent" @reset="searchEvent">
23
31
  <vxe-form-item title="推送数据类型:" field="dataType">
24
32
  <template v-slot>
25
- <el-input v-model="formData.dataType" size="small" clearable />
33
+ <el-input v-model="formData.dataType" size="small" clearable/>
26
34
  </template>
27
35
  </vxe-form-item>
28
36
  <vxe-form-item title="推送企业编码:" field="pushCompanyCode">
29
37
  <template v-slot>
30
- <el-input v-model="formData.pushCompanyCode" size="small" clearable />
38
+ <el-input v-model="formData.pushCompanyCode" size="small" clearable/>
31
39
  </template>
32
40
  </vxe-form-item>
33
41
  <vxe-form-item title="是否启用:" field="enabled">
@@ -48,12 +56,12 @@
48
56
  </vxe-form-item>
49
57
  <vxe-form-item title="脚本:" field="script">
50
58
  <template v-slot>
51
- <el-input v-model="formData.script" size="small" clearable />
59
+ <el-input v-model="formData.script" size="small" clearable/>
52
60
  </template>
53
61
  </vxe-form-item>
54
62
  <vxe-form-item title="脚本备注:" field="remark" class-name="block">
55
63
  <template v-slot>
56
- <el-input v-model="formData.remark" size="small" clearable />
64
+ <el-input v-model="formData.remark" size="small" clearable/>
57
65
  </template>
58
66
  </vxe-form-item>
59
67
  </vxe-form>
@@ -62,25 +70,26 @@
62
70
  </div>
63
71
  </el-tab-pane>
64
72
  </el-tabs>
65
- <!-- <advancedSearchDialog v-if="showAdvancedSearch" :visiable.sync="showAdvancedSearch" :formData.sync="advancedFormData" @confirm="searchEvent">-->
66
- <!-- <template #form>-->
67
- <!-- <vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">-->
68
- <!-- <vxe-form-item title="脚本备注:" field="remark" class-name="block">-->
69
- <!-- <template v-slot>-->
70
- <!-- <el-input v-model="advancedFormData.remark" size="small" clearable />-->
71
- <!-- </template>-->
72
- <!-- </vxe-form-item>-->
73
- <!-- </vxe-form>-->
74
- <!-- </template>-->
75
- <!-- </advancedSearchDialog>-->
73
+ <!-- <advancedSearchDialog v-if="showAdvancedSearch" :visiable.sync="showAdvancedSearch" :formData.sync="advancedFormData" @confirm="searchEvent">-->
74
+ <!-- <template #form>-->
75
+ <!-- <vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">-->
76
+ <!-- <vxe-form-item title="脚本备注:" field="remark" class-name="block">-->
77
+ <!-- <template v-slot>-->
78
+ <!-- <el-input v-model="advancedFormData.remark" size="small" clearable />-->
79
+ <!-- </template>-->
80
+ <!-- </vxe-form-item>-->
81
+ <!-- </vxe-form>-->
82
+ <!-- </template>-->
83
+ <!-- </advancedSearchDialog>-->
76
84
  </div>
77
85
  </template>
78
86
 
79
87
  <script>
80
88
  import editView from './edit.vue';
89
+
81
90
  export default {
82
91
  name: 'push_setting:list',
83
- components: { editView },
92
+ components: {editView},
84
93
  data() {
85
94
  return {
86
95
  activeName: 'second',
@@ -113,7 +122,7 @@ export default {
113
122
  },
114
123
  initTableList() {
115
124
  let that = this;
116
- let pushTypeMap = { 0: '异步推送', 1: '同步调用' };
125
+ let pushTypeMap = {0: '异步推送', 1: '同步调用'};
117
126
  let tableOption = {
118
127
  vue: this,
119
128
  tableRef: 'table-m1',
@@ -126,7 +135,7 @@ export default {
126
135
  }
127
136
  },
128
137
  columns: [
129
- { type: 'checkbox', width: 48, resizable: false, fixed: 'left' },
138
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
130
139
  {
131
140
  title: '推送数据类型',
132
141
  field: 'dataType',
@@ -143,7 +152,7 @@ export default {
143
152
  field: 'pushType',
144
153
  width: 150,
145
154
  slots: {
146
- default: ({ row }) => {
155
+ default: ({row}) => {
147
156
  return pushTypeMap[row.pushType] || '';
148
157
  }
149
158
  }
@@ -168,7 +177,7 @@ export default {
168
177
  title: '是否启用',
169
178
  width: 150,
170
179
  slots: {
171
- default: ({ row }) => {
180
+ default: ({row}) => {
172
181
  if (row.enabled) {
173
182
  return [
174
183
  <div class="txt-status">
@@ -190,14 +199,14 @@ export default {
190
199
  title: '创建时间',
191
200
  width: 150
192
201
  },
193
- { title: '更新时间', field: 'modifyDate', width: 150 },
202
+ {title: '更新时间', field: 'modifyDate', width: 150},
194
203
  {
195
204
  width: 47,
196
205
  fixed: 'right',
197
206
  title: '',
198
207
  sortable: false,
199
208
  slots: {
200
- default: ({ row }) => {
209
+ default: ({row}) => {
201
210
  return [
202
211
  <div>
203
212
  <a
@@ -207,8 +216,9 @@ export default {
207
216
  this.openEditDialog(row.id);
208
217
  }}
209
218
  >
210
- <el-tooltip enterable={false} effect="dark" content="查看" placement="top" popper-class="tooltip-skin">
211
- <i class="el-icon-edit" />
219
+ <el-tooltip enterable={false} effect="dark" content="查看" placement="top"
220
+ popper-class="tooltip-skin">
221
+ <i class="el-icon-edit"/>
212
222
  </el-tooltip>
213
223
  </a>
214
224
  </div>
@@ -1,11 +1,11 @@
1
1
  <script>
2
2
  export default {
3
3
  created() {
4
- const { params, query } = this.$route
5
- const { path } = params
6
- this.$router.replace({ path: '/' + path, query })
4
+ const {params, query} = this.$route
5
+ const {path} = params
6
+ this.$router.replace({path: '/' + path, query})
7
7
  },
8
- render: function(h) {
8
+ render: function (h) {
9
9
  return h() // avoid warning message
10
10
  }
11
11
  }