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
@@ -26,34 +26,39 @@
26
26
  <template #form>
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary" plain>重置</vxe-button>
30
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
29
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
+ plain>{{ $t1('重置') }}
31
+ </vxe-button>
32
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
+ {{ $t1('搜索') }}
34
+ </vxe-button>
31
35
  </div>
32
36
  </div>
33
- <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent" @reset="resetEvent">
37
+ <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
38
+ @reset="resetEvent">
34
39
  <vxe-form-item title="模板名称:" field="formName">
35
40
  <template v-slot>
36
- <el-input v-model="formData.formName" size="small" clearable />
41
+ <el-input v-model="formData.formName" size="small" clearable/>
37
42
  </template>
38
43
  </vxe-form-item>
39
44
  <vxe-form-item title="模板编码:" field="formCode">
40
45
  <template v-slot>
41
- <el-input v-model="formData.formCode" size="small" clearable />
46
+ <el-input v-model="formData.formCode" size="small" clearable/>
42
47
  </template>
43
48
  </vxe-form-item>
44
49
  <vxe-form-item title="模板版本:" field="formVersion">
45
50
  <template v-slot>
46
- <base-input-number v-model="formData.formVersion" />
51
+ <base-input-number v-model="formData.formVersion"/>
47
52
  </template>
48
53
  </vxe-form-item>
49
54
  <vxe-form-item title="数据表名:" field="ftableName">
50
55
  <template v-slot>
51
- <el-input v-model="formData.ftableName" size="small" clearable />
56
+ <el-input v-model="formData.ftableName" size="small" clearable/>
52
57
  </template>
53
58
  </vxe-form-item>
54
59
  <vxe-form-item title="数据表别名:" field="ftableAlias">
55
60
  <template v-slot>
56
- <el-input v-model="formData.ftableAlias" size="small" clearable />
61
+ <el-input v-model="formData.ftableAlias" size="small" clearable/>
57
62
  </template>
58
63
  </vxe-form-item>
59
64
  </vxe-form>
@@ -67,7 +72,8 @@
67
72
  </div>
68
73
  </label>
69
74
  <div class="multipleChoice">
70
- <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
75
+ <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a
76
+ class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
71
77
  <div class="list">
72
78
  <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
73
79
  <p>{{ checkRow.formName }}</p>
@@ -76,24 +82,25 @@
76
82
  </div>
77
83
  </div>
78
84
  <span slot="footer" class="dialog-footer">
79
- <span class="fl tips" v-if="!selectMulti">注:双击确认选择(单选)</span>
85
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
80
86
  <el-button type="primary" plain class="button-sty" @click="dialogClose">
81
87
  <i class="el-icon-close el-icon"></i>
82
- 取 消
88
+ {{ $t1('取 消') }}
83
89
  </el-button>
84
90
  <el-button type="primary" @click="dialogPrimary" class="button-sty">
85
91
  <i class="el-icon-check el-icon"></i>
86
- 确 定
92
+ {{ $t1('确 定') }}
87
93
  </el-button>
88
94
  </span>
89
95
  </el-dialog>
90
96
  </template>
91
97
 
92
98
  <script>
93
- import { selectDialogMixins } from '@base/mixins/selectDialog/index.js';
99
+ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
100
+
94
101
  export default {
95
102
  name: 'areaDialog',
96
- props: ['visiable', 'multi', 'rows','param'],
103
+ props: ['visiable', 'multi', 'rows', 'param'],
97
104
  mixins: [selectDialogMixins],
98
105
  created() {
99
106
  this.initSetting();
@@ -122,7 +129,7 @@ export default {
122
129
  param: () => {
123
130
  return {
124
131
  ...this.formData,
125
- enabled:true,
132
+ enabled: true,
126
133
  history: false
127
134
  };
128
135
  },
@@ -134,7 +141,7 @@ export default {
134
141
  }
135
142
  },
136
143
  columns: [
137
- { type: 'checkbox', width: 48, resizable: false, fixed: 'left' },
144
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
138
145
  {
139
146
  title: '模板名称',
140
147
  field: 'formName',
@@ -156,7 +163,7 @@ export default {
156
163
  field: 'enabled',
157
164
  width: 150,
158
165
  slots: {
159
- default: ({ row }) => {
166
+ default: ({row}) => {
160
167
  if (row.enabled) {
161
168
  return [
162
169
  <div class="txt-status">
@@ -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">
@@ -52,7 +52,10 @@
52
52
  <td>
53
53
  <el-form-item prop="serviceId" :rules="[{ required: true, trigger: 'blur' }]">
54
54
  <el-select v-model="formTemplate.serviceId">
55
- <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId">{{ serviceId }}</el-option>
55
+ <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId">{{
56
+ serviceId
57
+ }}
58
+ </el-option>
56
59
  </el-select>
57
60
  </el-form-item>
58
61
  </td>
@@ -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" :formTemplate="formTemplate"></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">
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
  <div class="fr">
23
23
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
- plain>重置
24
+ plain>{{$t1('重置')}}
25
25
  </vxe-button>
26
26
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
27
27
  </vxe-button>
@@ -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="tree-box fl">
10
10
  <div class="tit" @click="clearNodeClick"><b>表单类型</b></div>
11
11
  <div class="tree-btns" style="margin-top: 10px;">
@@ -47,12 +47,13 @@
47
47
  <div class="fl">
48
48
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增
49
49
  </vxe-button>
50
- <base-table-export :option="{ title: '报表模板导出', targetRef: 'table-m1'}" :parent-target="_self"/>
50
+ <base-table-export :option="{ title: '报表模板导出', targetRef: 'table-m1'}"
51
+ :parent-target="_self"/>
51
52
  <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
52
53
  </div>
53
54
  <div class="fr">
54
55
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
55
- plain>重置
56
+ plain>{{$t1('重置')}}
56
57
  </vxe-button>
57
58
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
58
59
  </vxe-button>
@@ -27,9 +27,11 @@
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
+ </vxe-button>
32
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
+ {{ $t1('搜索') }}
31
34
  </vxe-button>
32
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
33
35
  </div>
34
36
  </div>
35
37
  <!-- <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
@@ -55,8 +57,9 @@
55
57
  </div>
56
58
  </label>
57
59
  <div class="multipleChoice">
58
- <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a class="allDel icon-quanbushanchu"
59
- @click="clearChecked()"></a>
60
+ <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a
61
+ class="allDel icon-quanbushanchu"
62
+ @click="clearChecked()"></a>
60
63
  </el-tooltip>
61
64
  <div class="list">
62
65
  <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
@@ -66,14 +69,14 @@
66
69
  </div>
67
70
  </div>
68
71
  <span slot="footer" class="dialog-footer">
69
- <span class="fl tips" v-if="!selectMulti">注:双击确认选择(单选)</span>
72
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
70
73
  <el-button type="primary" plain class="button-sty" @click="dialogClose">
71
74
  <i class="el-icon-close el-icon"></i>
72
- 取 消
75
+ {{ $t1('取 消') }}
73
76
  </el-button>
74
77
  <el-button type="primary" @click="dialogPrimary" class="button-sty">
75
78
  <i class="el-icon-check el-icon"></i>
76
- 确 定
79
+ {{ $t1('确 定') }}
77
80
  </el-button>
78
81
  </span>
79
82
  </el-dialog>
@@ -140,7 +143,7 @@ export default {
140
143
  showHeader: this.selectMulti,
141
144
  trigger: 'row'
142
145
  },
143
- proxyConfig:{
146
+ proxyConfig: {
144
147
  props: {
145
148
  result: "objx", // 配置响应结果列表字段
146
149
  total: "objx.length", // 配置响应结果总页数字段
@@ -1,149 +1,156 @@
1
1
  <template>
2
- <el-dialog
3
- title="表单类型列表"
4
- :append-to-body="true"
5
- :modal-append-to-body="true"
6
- :close-on-click-modal="falseValue"
7
- :visible.sync="showDialog"
8
- :modal="falseValue"
9
- custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
- width="1200px"
11
- @close="dialogClose"
12
- v-el-drag-dialog
13
- v-el-dialog-center
14
- >
15
- <div class="cont" style="height:450px">
16
- <vxe-grid
17
- class="is-pointer"
18
- ref="table-m1"
19
- v-bind="vxeOption"
20
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
21
- @custom="$vxeTableUtil.customHandle"
22
- @checkbox-change="addDataTable"
23
- @checkbox-all="checkAll"
24
- @cell-dblclick="checkWithSubmit"
25
- >
26
- <template #form>
27
- <div class="clearfix screen-btns">
28
- <div class="fr">
29
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary" plain>重置</vxe-button>
30
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
31
- </div>
32
- </div>
33
- <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent" @reset="resetEvent">
34
- <vxe-form-item title="表单类型名称:" field="formTypeName">
35
- <template v-slot>
36
- <el-input v-model="formData.formTypeName" size="small" clearable />
37
- </template>
38
- </vxe-form-item>
39
- <vxe-form-item title="表单类型编码:" field="formTypeCode">
40
- <template v-slot>
41
- <el-input v-model="formData.formTypeCode" size="small" clearable />
42
- </template>
43
- </vxe-form-item>
44
- </vxe-form>
45
- </template>
46
- </vxe-grid>
47
- </div>
48
- <label id="labBtn" class="transverse">
49
- <div class="icon">
50
- <i class="el-icon-more"></i>
51
- <i class="el-icon-more"></i>
52
- </div>
53
- </label>
54
- <div class="multipleChoice">
55
- <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
56
- <div class="list">
57
- <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
58
- <p>{{ checkRow.formTypeName }}</p>
59
- <a class="el-icon-close" @click="clearTable1Select(index)"></a>
60
- </div>
61
- </div>
62
- </div>
63
- <span slot="footer" class="dialog-footer">
64
- <span class="fl tips" v-if="!selectMulti">注:双击确认选择(单选)</span>
2
+ <el-dialog
3
+ title="表单类型列表"
4
+ :append-to-body="true"
5
+ :modal-append-to-body="true"
6
+ :close-on-click-modal="falseValue"
7
+ :visible.sync="showDialog"
8
+ :modal="falseValue"
9
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
+ width="1200px"
11
+ @close="dialogClose"
12
+ v-el-drag-dialog
13
+ v-el-dialog-center
14
+ >
15
+ <div class="cont" style="height:450px">
16
+ <vxe-grid
17
+ class="is-pointer"
18
+ ref="table-m1"
19
+ v-bind="vxeOption"
20
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
21
+ @custom="$vxeTableUtil.customHandle"
22
+ @checkbox-change="addDataTable"
23
+ @checkbox-all="checkAll"
24
+ @cell-dblclick="checkWithSubmit"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fr">
29
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
+ plain>{{ $t1('重置') }}
31
+ </vxe-button>
32
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
+ {{ $t1('搜索') }}
34
+ </vxe-button>
35
+ </div>
36
+ </div>
37
+ <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
38
+ @reset="resetEvent">
39
+ <vxe-form-item title="表单类型名称:" field="formTypeName">
40
+ <template v-slot>
41
+ <el-input v-model="formData.formTypeName" size="small" clearable/>
42
+ </template>
43
+ </vxe-form-item>
44
+ <vxe-form-item title="表单类型编码:" field="formTypeCode">
45
+ <template v-slot>
46
+ <el-input v-model="formData.formTypeCode" size="small" clearable/>
47
+ </template>
48
+ </vxe-form-item>
49
+ </vxe-form>
50
+ </template>
51
+ </vxe-grid>
52
+ </div>
53
+ <label id="labBtn" class="transverse">
54
+ <div class="icon">
55
+ <i class="el-icon-more"></i>
56
+ <i class="el-icon-more"></i>
57
+ </div>
58
+ </label>
59
+ <div class="multipleChoice">
60
+ <el-tooltip :enterable="false" effect="dark" content="全部删除" placement="top"><a
61
+ class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
62
+ <div class="list">
63
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
64
+ <p>{{ checkRow.formTypeName }}</p>
65
+ <a class="el-icon-close" @click="clearTable1Select(index)"></a>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <span slot="footer" class="dialog-footer">
70
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
65
71
  <el-button type="primary" plain class="button-sty" @click="dialogClose">
66
72
  <i class="el-icon-close el-icon"></i>
67
- 取 消
73
+ {{ $t1('取 消') }}
68
74
  </el-button>
69
75
  <el-button type="primary" @click="dialogPrimary" class="button-sty">
70
76
  <i class="el-icon-check el-icon"></i>
71
- 确 定
77
+ {{ $t1('确 定') }}
72
78
  </el-button>
73
79
  </span>
74
- </el-dialog>
80
+ </el-dialog>
75
81
  </template>
76
82
 
77
83
  <script>
78
- import { selectDialogMixins } from '@base/mixins/selectDialog/index.js';
84
+ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
85
+
79
86
  export default {
80
- name: 'form_typeDialog',
81
- props: ['visiable', 'multi', 'rows', 'param'],
82
- mixins: [selectDialogMixins],
83
- created() {
84
- this.initSetting();
85
- },
86
- mounted() {
87
- this.initTableM1();
88
- },
89
- data() {
90
- return {
91
- showDialog: true,
92
- falseValue: false,
93
- selectMulti: true,
94
- formData: {},
95
- vxeOption: {}
96
- };
97
- },
98
- methods: {
99
- initTableM1() {
100
- let that = this;
101
- let url = USER_PREFIX + '/form_type/listPage';
102
- let tableOption = {
103
- vue: that,
104
- tableRef: 'table-m1',
105
- tableName: 'user_form_type_dialog-m1',
106
- path: url,
107
- param: () => {
108
- return this.formData;
109
- },
110
- columns: [
111
- { type: 'checkbox', fixed: 'left', width: 48, resizable: false },
112
- {
87
+ name: 'form_typeDialog',
88
+ props: ['visiable', 'multi', 'rows', 'param'],
89
+ mixins: [selectDialogMixins],
90
+ created() {
91
+ this.initSetting();
92
+ },
93
+ mounted() {
94
+ this.initTableM1();
95
+ },
96
+ data() {
97
+ return {
98
+ showDialog: true,
99
+ falseValue: false,
100
+ selectMulti: true,
101
+ formData: {},
102
+ vxeOption: {}
103
+ };
104
+ },
105
+ methods: {
106
+ initTableM1() {
107
+ let that = this;
108
+ let url = USER_PREFIX + '/form_type/listPage';
109
+ let tableOption = {
110
+ vue: that,
111
+ tableRef: 'table-m1',
112
+ tableName: 'user_form_type_dialog-m1',
113
+ path: url,
114
+ param: () => {
115
+ return this.formData;
116
+ },
117
+ columns: [
118
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
119
+ {
113
120
  title: '表单类型编码',
114
121
  field: 'formTypeCode',
115
- width: 150,
122
+ width: 150,
116
123
  fixed: 'left'
117
- },
124
+ },
118
125
  {
119
126
  title: '表单类型名称',
120
127
  field: 'formTypeName',
121
128
  width: 250
122
129
  },
123
- {
124
- field: 'createDate',
125
- title: '创建时间',
126
- width: 150
127
- },
128
- {
129
- width: 47,
130
- fixed: 'right',
131
- title: '',
132
- sortable: false
133
- }
134
- ],
135
- config: {
136
- checkboxConfig: {
137
- checkStrictly: true,
138
- showHeader: this.selectMulti,
139
- trigger: 'row'
140
- }
141
- }
142
- };
143
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
144
- that.vxeOption = opts;
145
- });
146
- }
147
- }
130
+ {
131
+ field: 'createDate',
132
+ title: '创建时间',
133
+ width: 150
134
+ },
135
+ {
136
+ width: 47,
137
+ fixed: 'right',
138
+ title: '',
139
+ sortable: false
140
+ }
141
+ ],
142
+ config: {
143
+ checkboxConfig: {
144
+ checkStrictly: true,
145
+ showHeader: this.selectMulti,
146
+ trigger: 'row'
147
+ }
148
+ }
149
+ };
150
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
151
+ that.vxeOption = opts;
152
+ });
153
+ }
154
+ }
148
155
  };
149
156
  </script>
@@ -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">
@@ -22,7 +22,7 @@
22
22
  表单类型编码
23
23
  </th>
24
24
  <td>
25
- {{formType.formTypeCode}}
25
+ {{ formType.formTypeCode }}
26
26
  </td>
27
27
  <th>
28
28
  <em class="f-red">*</em>
@@ -13,9 +13,10 @@
13
13
  @close="close"
14
14
  >
15
15
  <div class="cont">
16
- <el-form ref="editForm" :model="formType" label-width="110px" class="adSearchForm" style="width: 362px;height: auto;">
16
+ <el-form ref="editForm" :model="formType" label-width="110px" class="adSearchForm"
17
+ style="width: 362px;height: auto;">
17
18
  <el-form-item label="表单类型编码">
18
- <span>{{formType.formTypeCode}}</span>
19
+ <span>{{ formType.formTypeCode }}</span>
19
20
  </el-form-item>
20
21
  <el-form-item label="表单类型名称" :rules="[{ required: true, trigger: 'blur' }]">
21
22
  <el-input v-model="formType.formTypeName" clearable class="all-width"/>
@@ -25,11 +26,11 @@
25
26
  <span slot="footer" class="dialog-footer">
26
27
  <el-button type="primary" plain class="button-sty" @click="showDialog=false">
27
28
  <i class="el-icon-close el-icon"></i>
28
- 取 消
29
+ {{ $t1('取 消') }}
29
30
  </el-button>
30
31
  <el-button type="primary" @click="saveData" class="button-sty">
31
32
  <i class="el-icon-check el-icon"></i>
32
- 确 定
33
+ {{ $t1('确 定') }}
33
34
  </el-button>
34
35
  </span>
35
36
  </el-dialog>
@@ -46,7 +47,7 @@ export default {
46
47
  tabIndex: 'first',
47
48
  dataId: '',
48
49
  formType: {},
49
- showDialog:true
50
+ showDialog: true
50
51
  };
51
52
  },
52
53
  created() {
@@ -92,9 +93,9 @@ export default {
92
93
  duration: 500,
93
94
  onClose: t => {
94
95
  this.dataId = res.objx;
95
- this.getData((row)=>{
96
+ this.getData((row) => {
96
97
  this.close();
97
- this.$emit('confirm',row)
98
+ this.$emit('confirm', row)
98
99
  })
99
100
  }
100
101
  });
@@ -104,9 +105,9 @@ export default {
104
105
  }
105
106
  });
106
107
  },
107
- close(){
108
+ close() {
108
109
  this.showDialog = false;
109
- this.$emit('update:visiable',false)
110
+ this.$emit('update:visiable', false)
110
111
  }
111
112
  }
112
113
  }