cloud-web-corejs 1.0.28 → 1.0.30

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 (205) hide show
  1. package/package.json +2 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/langTag/addButton.vue +22 -0
  4. package/src/components/langTag/deleteButton.vue +22 -0
  5. package/src/components/langTag/mixins/addButton.js +5 -0
  6. package/src/components/langTag/mixins/deleteButton.js +5 -0
  7. package/src/components/langTag/mixins/view.js +5 -0
  8. package/src/components/langTag/view.vue +33 -0
  9. package/src/components/projectTag/addButton.vue +3 -50
  10. package/src/components/projectTag/deleteButton.vue +3 -50
  11. package/src/components/projectTag/mixins/addButton.js +5 -0
  12. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  13. package/src/components/projectTag/mixins/view.js +5 -0
  14. package/src/components/projectTag/view.vue +33 -72
  15. package/src/components/xform/mixins/scriptHttp.js +1 -1
  16. package/src/index.js +0 -2
  17. package/src/layout/components/Sidebar/default.vue +3 -4
  18. package/src/router/modules/system.js +1 -1
  19. package/src/store/config/index.js +1 -1
  20. package/src/store/getters.js +2 -0
  21. package/src/store/modules/permission.js +1 -1
  22. package/src/store/modules/user.js +2 -1
  23. package/src/utils/request.js +28 -29
  24. package/src/utils/vab.js +27 -27
  25. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  26. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  27. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  28. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  29. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  30. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  31. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  32. package/src/views/bd/setting/form_script/edit.vue +3 -127
  33. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  34. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  35. package/src/views/bd/setting/form_script/list.vue +6 -174
  36. package/src/views/bd/setting/form_script/list1.vue +6 -333
  37. package/src/views/bd/setting/form_script/list2.vue +3 -4
  38. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  39. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  40. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  41. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  42. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  43. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  44. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  45. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  46. package/src/views/bd/setting/form_template/edit.vue +183 -329
  47. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  48. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  49. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  50. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  51. package/src/views/bd/setting/form_template/list.vue +7 -562
  52. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  53. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  54. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  55. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  56. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  57. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  58. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  59. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  60. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  61. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  62. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  63. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  64. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +255 -0
  65. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  66. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  67. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  68. package/src/views/bd/setting/table_model/edit.vue +5 -767
  69. package/src/views/bd/setting/table_model/list.vue +8 -369
  70. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  71. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  72. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  73. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  74. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  75. package/src/views/support/export_template/edit.vue +40 -36
  76. package/src/views/support/export_template/list.vue +40 -52
  77. package/src/views/user/access_log/edit.vue +18 -17
  78. package/src/views/user/access_log/list.vue +27 -26
  79. package/src/views/user/access_log/statistics_list.vue +19 -17
  80. package/src/views/user/api_request/edit.vue +14 -11
  81. package/src/views/user/api_request/list.vue +13 -11
  82. package/src/views/user/area/dialog.vue +14 -27
  83. package/src/views/user/area_attribute/configDialog.vue +11 -13
  84. package/src/views/user/area_attribute/edit.vue +8 -6
  85. package/src/views/user/area_attribute/list.vue +1 -1
  86. package/src/views/user/attachment/uploadDialog.vue +1 -1
  87. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  88. package/src/views/user/bill_setting/compareView.vue +1 -1
  89. package/src/views/user/bill_setting/edit.vue +24 -17
  90. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  91. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  92. package/src/views/user/bill_setting/list.vue +28 -26
  93. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  94. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  95. package/src/views/user/bill_setting/render.vue +29 -29
  96. package/src/views/user/bill_setting/userDialog.vue +7 -5
  97. package/src/views/user/code_rules/edit.vue +21 -18
  98. package/src/views/user/code_rules/list.vue +27 -19
  99. package/src/views/user/commMenu/index.vue +3 -3
  100. package/src/views/user/common_attribute/edit.vue +7 -5
  101. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  102. package/src/views/user/common_attribute/list.vue +25 -24
  103. package/src/views/user/common_script/edit.vue +12 -12
  104. package/src/views/user/common_script/list.vue +30 -32
  105. package/src/views/user/company_info/dialog.vue +9 -9
  106. package/src/views/user/company_info/edit.vue +11 -8
  107. package/src/views/user/country/dialog.vue +11 -9
  108. package/src/views/user/country/edit.vue +12 -9
  109. package/src/views/user/country/list.vue +12 -12
  110. package/src/views/user/data_type_setting/dialog.vue +10 -10
  111. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  112. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  113. package/src/views/user/ea/eagroup/edit.vue +48 -42
  114. package/src/views/user/ea/eaobj/edit.vue +6 -5
  115. package/src/views/user/ea/eaobj/list.vue +9 -8
  116. package/src/views/user/extend_datasource/dialog.vue +19 -24
  117. package/src/views/user/extend_datasource/edit.vue +20 -16
  118. package/src/views/user/extend_datasource/list.vue +23 -24
  119. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  120. package/src/views/user/fieldTranslation/list.vue +59 -57
  121. package/src/views/user/field_values_invisible/edit.vue +15 -14
  122. package/src/views/user/field_values_invisible/list.vue +23 -22
  123. package/src/views/user/file_type/edit.vue +12 -21
  124. package/src/views/user/file_type/list.vue +21 -36
  125. package/src/views/user/file_type/userEdit.vue +14 -9
  126. package/src/views/user/file_view_area/edit.vue +3 -3
  127. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  128. package/src/views/user/file_view_area/list.vue +17 -16
  129. package/src/views/user/file_view_ins/list.vue +29 -28
  130. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  131. package/src/views/user/form/form_template/edit.vue +1 -1
  132. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  133. package/src/views/user/form/form_template/itemList.vue +2 -2
  134. package/src/views/user/form/form_template/list.vue +3 -3
  135. package/src/views/user/form/form_type/edit.vue +1 -1
  136. package/src/views/user/form/form_type/list.vue +1 -1
  137. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  138. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  139. package/src/views/user/form/vform/designer.vue +2 -0
  140. package/src/views/user/form/vform/out_render.vue +1 -0
  141. package/src/views/user/form/vform/render.vue +1 -0
  142. package/src/views/user/form/view/list.vue +2 -1
  143. package/src/views/user/groups/dialog.vue +159 -0
  144. package/src/views/user/groups/edit.vue +131 -0
  145. package/src/views/user/groups/list.vue +167 -0
  146. package/src/views/user/home/index.vue +1 -2
  147. package/src/views/user/lang_tag/dialog.vue +185 -0
  148. package/src/views/user/lang_tag/edit.vue +138 -0
  149. package/src/views/user/lang_tag/list.vue +170 -0
  150. package/src/views/user/language_setting/edit.vue +11 -9
  151. package/src/views/user/language_setting/list.vue +20 -18
  152. package/src/views/user/login/default.vue +129 -0
  153. package/src/views/user/login/index.vue +3 -117
  154. package/src/views/user/menu/list.vue +39 -55
  155. package/src/views/user/mobile_menu/list.vue +18 -54
  156. package/src/views/user/notify_message/dialog.vue +1 -1
  157. package/src/views/user/notify_message/infoDialog.vue +1 -1
  158. package/src/views/user/notify_message/list.vue +24 -23
  159. package/src/views/user/notify_template/edit.vue +13 -11
  160. package/src/views/user/notify_template/list.vue +19 -16
  161. package/src/views/user/oplog/edit.vue +12 -12
  162. package/src/views/user/oplog/list.vue +20 -18
  163. package/src/views/user/position/dialog.vue +6 -6
  164. package/src/views/user/position/edit.vue +11 -8
  165. package/src/views/user/position/list.vue +11 -11
  166. package/src/views/user/project_tag/dialog.vue +11 -9
  167. package/src/views/user/project_tag/edit.vue +8 -6
  168. package/src/views/user/project_tag/list.vue +15 -12
  169. package/src/views/user/push_setting/edit.vue +20 -17
  170. package/src/views/user/push_setting/list.vue +1 -1
  171. package/src/views/user/role/dialog.vue +11 -11
  172. package/src/views/user/role/edit.vue +14 -12
  173. package/src/views/user/role/list.vue +14 -12
  174. package/src/views/user/sale_org/dialog.vue +12 -12
  175. package/src/views/user/sale_org/list.vue +43 -48
  176. package/src/views/user/system_notice/edit.vue +13 -11
  177. package/src/views/user/system_notice/infoDialog.vue +2 -2
  178. package/src/views/user/system_notice/list.vue +19 -17
  179. package/src/views/user/system_parameter/edit.vue +7 -6
  180. package/src/views/user/system_parameter/list.vue +12 -10
  181. package/src/views/user/user/edit.vue +1 -1
  182. package/src/views/user/user/form_edit.vue +50 -7
  183. package/src/views/user/user/form_list.vue +34 -132
  184. package/src/views/user/user/info.vue +20 -19
  185. package/src/views/user/user/infoEdit.vue +18 -18
  186. package/src/views/user/user/infoIframeDialog.vue +1 -1
  187. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  188. package/src/views/user/wf/iframe/dialog.vue +1 -1
  189. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  190. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  191. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  192. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  193. package/src/views/user/wf/wf_manage/list.vue +66 -61
  194. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  195. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  196. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  197. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  198. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  199. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  200. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  201. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  202. package/src/views/user/wf/wf_param/edit.vue +7 -5
  203. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  204. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  205. package/src/views/user/home/distributor.vue +0 -849
@@ -0,0 +1,159 @@
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('用户组列表')"
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="$t1('用户组名称')+':'" field="groupName">
40
+ <template v-slot>
41
+ <el-input v-model="formData.groupName" size="small" clearable/>
42
+ </template>
43
+ </vxe-form-item>
44
+ <vxe-form-item :title="$t1('用户组编码')+':'" field="groupCode">
45
+ <template v-slot>
46
+ <el-input v-model="formData.groupCode" size="small" clearable/>
47
+ </template>
48
+ </vxe-form-item>
49
+ <vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
50
+ </vxe-form>
51
+ </template>
52
+ </vxe-grid>
53
+ </div>
54
+ <label id="labBtn" class="transverse">
55
+ <div class="icon">
56
+ <i class="el-icon-more"></i>
57
+ <i class="el-icon-more"></i>
58
+ </div>
59
+ </label>
60
+ <div class="multipleChoice">
61
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
62
+ class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
63
+ <div class="list">
64
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
65
+ <p>{{ checkRow.groupName }}</p>
66
+ <a class="el-icon-close" @click="clearTable1Select(index)"></a>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <span slot="footer" class="dialog-footer">
71
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
72
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
73
+ <i class="el-icon-close el-icon"></i>
74
+ {{ $t1('取 消') }}
75
+ </el-button>
76
+ <el-button type="primary" @click="dialogPrimary" class="button-sty">
77
+ <i class="el-icon-check el-icon"></i>
78
+ {{ $t1('确 定') }}
79
+ </el-button>
80
+ </span>
81
+ </el-dialog>
82
+ </template>
83
+
84
+ <script>
85
+ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
86
+
87
+ export default {
88
+ name: 'groupsDialog',
89
+ props: ['visiable', 'multi', 'rows', 'param'],
90
+ mixins: [selectDialogMixins],
91
+ created() {
92
+ this.initSetting();
93
+ },
94
+ mounted() {
95
+ this.initTableM1();
96
+ },
97
+ data() {
98
+ var that = this;
99
+ return {
100
+ showDialog: true,
101
+ falseValue: false,
102
+ selectMulti: true,
103
+ formData: {},
104
+ vxeOption: {}
105
+ };
106
+ },
107
+ methods: {
108
+ initTableM1() {
109
+ let that = this;
110
+ let url = USER_PREFIX + '/groups/listPage';
111
+ let tableOption = {
112
+ vue: that,
113
+ tableRef: 'table-m1',
114
+ tableName: 'user_groups_dialog-m1',
115
+ path: url,
116
+ param: () => {
117
+ this.formData.enabled = true;
118
+ return this.formData;
119
+ },
120
+ columns: [
121
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
122
+ {
123
+ title: this.$t1('用户组名称'),
124
+ field: 'groupName',
125
+ width: 250,
126
+ fixed: 'left'
127
+ },
128
+ {
129
+ field: 'groupCode',
130
+ title: this.$t1('用户组编码'),
131
+ width: 250
132
+ },
133
+ {
134
+ field: 'createDate',
135
+ title: this.$t1('创建时间'),
136
+ width: 150
137
+ },
138
+ {
139
+ width: 47,
140
+ fixed: 'right',
141
+ title: '',
142
+ sortable: false
143
+ }
144
+ ],
145
+ config: {
146
+ checkboxConfig: {
147
+ checkStrictly: true,
148
+ showHeader: this.selectMulti,
149
+ trigger: 'row'
150
+ }
151
+ }
152
+ };
153
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
154
+ that.vxeOption = opts;
155
+ });
156
+ }
157
+ }
158
+ };
159
+ </script>
@@ -0,0 +1,131 @@
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="groups">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info"/>
7
+ {{ dataId ? $t1('查看用户组') : $t1('新增用户组') }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
+ {{ $t1('重置') }}
12
+ </el-button>
13
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
14
+ </el-button>
15
+ </div>
16
+ </div>
17
+ <div class="d-cont">
18
+ <div class="d-item">
19
+ <div class="title first"><b>{{ $t1('基本信息') }}</b></div>
20
+ <table class="table-detail">
21
+ <tbody>
22
+ <tr>
23
+ <th>
24
+ <em class="f-red">*</em>
25
+ {{ $t1('用户组名称') }}
26
+ </th>
27
+ <td>
28
+ <el-form-item prop="groupName" :rules="[{ required: true, trigger: 'blur' }]">
29
+ <el-input type="text" autocomplete="off" v-model="groups.groupName" clearable/>
30
+ </el-form-item>
31
+ </td>
32
+ <th>
33
+ {{ $t1('用户组编码') }}
34
+ </th>
35
+ <td>
36
+ {{ groups.groupCode }}
37
+ </td>
38
+ </tr>
39
+ <tr>
40
+ <th>{{ $t1('创建人') }}</th>
41
+ <td>{{ groups._createBy }}</td>
42
+ <th>{{ $t1('创建时间') }}</th>
43
+ <td>{{ groups.createDate }}</td>
44
+ <th>{{ $t1('更新人') }}</th>
45
+ <td>{{ groups._modifyBy }}</td>
46
+ <th>{{ $t1('更新时间') }}</th>
47
+ <td>{{ groups.modifyDate }}</td>
48
+ </tr>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+ </div>
53
+ </el-form>
54
+ </div>
55
+ </template>
56
+
57
+ <script>
58
+ export default {
59
+ name: 'groupsEdit',
60
+ props: {
61
+ _dataId: [String, Number]
62
+ },
63
+ components: {},
64
+ data() {
65
+ return {
66
+ isEdit: false,
67
+ tabIndex: 'first',
68
+ dataId: '',
69
+ groups: {}
70
+ };
71
+ },
72
+ created() {
73
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
74
+ },
75
+ mounted() {
76
+ this.getData();
77
+ },
78
+ methods: {
79
+ getData() {
80
+ if (this.dataId && !isNaN(this.dataId)) {
81
+ this.isEdit = true;
82
+ this.$commonHttp({
83
+ url: USER_PREFIX + `/groups/get`,
84
+ method: `post`,
85
+ data: {
86
+ id: this.dataId
87
+ },
88
+ isLoading: true,
89
+ modalStrictly: true,
90
+ success: res => {
91
+ this.groups = res.objx || {};
92
+ }
93
+ });
94
+ }
95
+ },
96
+ saveData() {
97
+ this.$refs.editForm.$baseValidate(valid => {
98
+ if (valid) {
99
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
100
+ var url = USER_PREFIX + (this.isEdit ? `/groups/update` : `/groups/save`);
101
+ this.$http({
102
+ url: url,
103
+ method: `post`,
104
+ data: this.groups,
105
+ isLoading: true,
106
+ success: res => {
107
+ this.$message({
108
+ message: res.content,
109
+ type: 'success',
110
+ duration: 500,
111
+ onClose: t => {
112
+ if (this.isEdit) {
113
+ this.$baseReload();
114
+ } else {
115
+ this.$baseReload({
116
+ updateParam: {
117
+ _dataId: res.objx
118
+ }
119
+ });
120
+ }
121
+ }
122
+ });
123
+ }
124
+ });
125
+ });
126
+ }
127
+ });
128
+ }
129
+ }
130
+ };
131
+ </script>
@@ -0,0 +1,167 @@
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
+ @reload="$reloadHandle"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="grid-height">
10
+ <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle">
12
+ <template #form>
13
+ <div class="clearfix screen-btns">
14
+ <div class="fl">
15
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
16
+ {{ $t1('新增') }}
17
+ </vxe-button>
18
+ <base-table-export :option="{ title: $t1('用户组导出'), targetRef: 'table-m1'}"
19
+ :parent-target="_self"/>
20
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
21
+ </div>
22
+ <div class="fr">
23
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
+ plain>{{ $t1('重置') }}
25
+ </vxe-button>
26
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
27
+ {{ $t1('搜索') }}
28
+ </vxe-button>
29
+ </div>
30
+ </div>
31
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
32
+ @submit="searchEvent" @reset="searchEvent">
33
+ <vxe-form-item :title="$t1('用户组名称')+':'" field="groupName">
34
+ <template v-slot>
35
+ <el-input v-model="formData.groupName" size="small" clearable/>
36
+ </template>
37
+ </vxe-form-item>
38
+ <vxe-form-item :title="$t1('用户组编码')+':'" field="groupCode">
39
+ <template v-slot>
40
+ <el-input v-model="formData.groupCode" size="small" clearable/>
41
+ </template>
42
+ </vxe-form-item>
43
+ </vxe-form>
44
+ </template>
45
+ </vxe-grid>
46
+ </div>
47
+ </el-tab-pane>
48
+ </el-tabs>
49
+ </div>
50
+ </template>
51
+
52
+ <script>
53
+ import editView from './edit.vue';
54
+
55
+ export default {
56
+ name: 'groups:list',
57
+ components: {editView},
58
+ data() {
59
+ return {
60
+ activeName: 'second',
61
+ dataId: 0,
62
+ showEdit: false,
63
+ vxeOption: {},
64
+ formData: {}
65
+ };
66
+ },
67
+ mounted() {
68
+ this.initTableList();
69
+ },
70
+ methods: {
71
+ searchEvent() {
72
+ this.$refs['table-m1'].commitProxy('reload');
73
+ },
74
+ resetEvent() {
75
+ this.formData = {};
76
+ this.$refs['table-m1'].commitProxy('reload');
77
+ },
78
+ openEditDialog(id) {
79
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
80
+ this.activeName = 'first';
81
+ this.$openEditView('showEdit');
82
+ },
83
+ initTableList() {
84
+ let that = this;
85
+ let tableOption = {
86
+ vue: this,
87
+ tableRef: 'table-m1',
88
+ tableName: 'user_groups_list-m1',
89
+ path: USER_PREFIX + '/groups/listPage',
90
+ param: () => {
91
+ return this.formData;
92
+ },
93
+ columns: [
94
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
95
+ {
96
+ title: this.$t1('用户组名称'),
97
+ field: 'groupName',
98
+ width: 150,
99
+ fixed: 'left'
100
+ },
101
+ {
102
+ field: 'groupCode',
103
+ title: this.$t1('用户组编码'),
104
+ width: 250
105
+ },
106
+ {
107
+ field: 'createDate',
108
+ title: this.$t1('创建时间'),
109
+ width: 150
110
+ },
111
+ {
112
+ field: '_createBy',
113
+ title: this.$t1('创建人'),
114
+ width: 150
115
+ },
116
+ {
117
+ field: '_modifyBy',
118
+ title: this.$t1('更新人'),
119
+ width: 150
120
+ },
121
+ {
122
+ width: 47,
123
+ fixed: 'right',
124
+ title: '',
125
+ sortable: false,
126
+ slots: {
127
+ default: ({row}) => {
128
+ return [
129
+ <div>
130
+ <a
131
+ href="javascript:void(0);"
132
+ class="a-link"
133
+ onclick={() => {
134
+ this.openEditDialog(row.id);
135
+ }}
136
+ >
137
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
138
+ popper-class="tooltip-skin">
139
+ <i class="el-icon-edit"/>
140
+ </el-tooltip>
141
+ </a>
142
+ </div>
143
+ ];
144
+ }
145
+ }
146
+ }
147
+ ]
148
+ };
149
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
150
+ this.vxeOption = opts;
151
+ });
152
+ },
153
+ importExcel() {
154
+ let that = this;
155
+ that.$excelImport({
156
+ prefix: USER_PREFIX,
157
+ excel: USER_PREFIX + '/excelTemplate/groups/groups.xlsx',
158
+ multi: false,
159
+ saveUrl: USER_PREFIX + '/groups/save',
160
+ callback: () => {
161
+ that.searchEvent();
162
+ }
163
+ });
164
+ }
165
+ }
166
+ };
167
+ </script>
@@ -11,11 +11,10 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
- /*import distributorView from './distributor'*/
15
14
 
16
15
  export default {
17
16
  name: 'home',
18
- components: {/*, distributorView*/},
17
+ components: {},
19
18
  data() {
20
19
  return {
21
20
  flag: 0,
@@ -0,0 +1,185 @@
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('多语言标签列表')"
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
+ }}
35
+ </vxe-button>
36
+ </div>
37
+ </div>
38
+ <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
39
+ @reset="resetEvent">
40
+ <vxe-form-item :title="$t1('标签名称')+':'" field="tagName">
41
+ <template v-slot>
42
+ <el-input v-model="formData.tagName" size="small" clearable/>
43
+ </template>
44
+ </vxe-form-item>
45
+ <vxe-form-item :title="$t1('标签编码')+':'" field="tagCode">
46
+ <template v-slot>
47
+ <el-input v-model="formData.tagCode" size="small" clearable/>
48
+ </template>
49
+ </vxe-form-item>
50
+ <vxe-form-item :title="$t1('标签说明')+':'" field="tagRemark">
51
+ <template v-slot>
52
+ <el-input v-model="formData.tagRemark" size="small" clearable/>
53
+ </template>
54
+ </vxe-form-item>
55
+ <vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
56
+ </vxe-form>
57
+ </template>
58
+ </vxe-grid>
59
+ </div>
60
+ <label id="labBtn" class="transverse">
61
+ <div class="icon">
62
+ <i class="el-icon-more"></i>
63
+ <i class="el-icon-more"></i>
64
+ </div>
65
+ </label>
66
+ <div class="multipleChoice">
67
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
68
+ class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
69
+ <div class="list">
70
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
71
+ <p>{{ checkRow.tagName }}</p>
72
+ <a class="el-icon-close" @click="clearTable1Select(index)"></a>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ <span slot="footer" class="dialog-footer">
77
+ <span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
78
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
79
+ <i class="el-icon-close el-icon"></i>
80
+ {{ $t1('取 消') }}
81
+ </el-button>
82
+ <el-button type="primary" @click="dialogPrimary" class="button-sty">
83
+ <i class="el-icon-check el-icon"></i>
84
+ {{ $t1('确 定') }}
85
+ </el-button>
86
+ </span>
87
+ </el-dialog>
88
+ </template>
89
+
90
+ <script>
91
+ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
92
+
93
+ export default {
94
+ name: 'positionDialog',
95
+ props: ['visiable', 'multi', 'rows', 'param'],
96
+ mixins: [selectDialogMixins],
97
+ created() {
98
+ if (this.$attrs.fieldKey) {
99
+ this.fieldKey = this.$attrs.fieldKey;
100
+ }
101
+ this.initSetting();
102
+ },
103
+ mounted() {
104
+ this.initTableM1();
105
+ },
106
+ data() {
107
+ var that = this;
108
+ return {
109
+ showDialog: true,
110
+ falseValue: false,
111
+ selectMulti: true,
112
+ formData: {},
113
+ vxeOption: {}
114
+ };
115
+ },
116
+ methods: {
117
+ initTableM1() {
118
+ let that = this;
119
+ let url = USER_PREFIX + '/langTag/listPage';
120
+ let tableOption = {
121
+ vue: that,
122
+ tableRef: 'table-m1',
123
+ tableName: 'user_langTag_dialog-m1',
124
+ path: url,
125
+ param: () => {
126
+ return {
127
+ ...this.formData,
128
+ enabled: true
129
+ };
130
+ },
131
+ columns: [
132
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
133
+ {
134
+ title: this.$t1('标签名称'),
135
+ field: 'tagName',
136
+ width: 150,
137
+ fixed: 'left'
138
+ },
139
+ {
140
+ title: this.$t1('标签编码'),
141
+ field: 'tagCode',
142
+ width: 150
143
+ },
144
+ {
145
+ title: this.$t1('标签说明'),
146
+ field: 'tagRemark',
147
+ width: 250
148
+ },
149
+ {
150
+ field: 'createDate',
151
+ title: this.$t1('创建时间'),
152
+ width: 150
153
+ },
154
+ {
155
+ field: '_createBy',
156
+ title: this.$t1('创建人'),
157
+ width: 150
158
+ },
159
+ {
160
+ field: '_modifyBy',
161
+ title: this.$t1('更新人'),
162
+ width: 150
163
+ },
164
+ {
165
+ width: 47,
166
+ fixed: 'right',
167
+ title: '',
168
+ sortable: false
169
+ }
170
+ ],
171
+ config: {
172
+ checkboxConfig: {
173
+ checkStrictly: true,
174
+ showHeader: this.selectMulti,
175
+ trigger: 'row'
176
+ }
177
+ }
178
+ };
179
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
180
+ that.vxeOption = opts;
181
+ });
182
+ }
183
+ }
184
+ };
185
+ </script>