cloud-web-corejs 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/package.json +2 -1
  2. package/src/components/jsonImport/index.js +3 -1
  3. package/src/components/jsonImport/mixins.js +16 -16
  4. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  5. package/src/layout/components/Sidebar/default.vue +10 -4
  6. package/src/router/modules/customer.js +8 -8
  7. package/src/router/modules/system.js +1 -1
  8. package/src/utils/aes.js +1 -0
  9. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -4
  10. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -3
  11. package/src/views/bd/setting/bd_attach_setting/list.vue +3 -3
  12. package/src/views/bd/setting/form_script/dialog.vue +14 -12
  13. package/src/views/bd/setting/form_script/edit.vue +6 -5
  14. package/src/views/bd/setting/form_script/edit1.vue +4 -4
  15. package/src/views/bd/setting/form_script/form_list.vue +3 -3
  16. package/src/views/bd/setting/form_script/list.vue +4 -4
  17. package/src/views/bd/setting/form_script/list1.vue +4 -4
  18. package/src/views/bd/setting/form_script/list2.vue +1 -1
  19. package/src/views/bd/setting/form_template/dialog.vue +24 -17
  20. package/src/views/bd/setting/form_template/edit.vue +3 -3
  21. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +1 -1
  22. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -5
  23. package/src/views/bd/setting/form_template/itemEdit.vue +3 -3
  24. package/src/views/bd/setting/form_template/itemList.vue +3 -3
  25. package/src/views/bd/setting/form_template/list.vue +4 -4
  26. package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
  27. package/src/views/bd/setting/menu_kind/authDialog.vue +2 -2
  28. package/src/views/bd/setting/menu_kind/dialog.vue +23 -16
  29. package/src/views/bd/setting/menu_kind/list.vue +4 -4
  30. package/src/views/bd/setting/table_model/dialog.vue +4 -4
  31. package/src/views/bd/setting/table_model/edit.vue +1123 -1123
  32. package/src/views/bd/setting/table_model/list.vue +4 -4
  33. package/src/views/bd/setting/table_model/zdDialog.vue +4 -4
  34. package/src/views/mobile/user/area/dialog.vue +3 -2
  35. package/src/views/mobile/user/user/dialog.vue +3 -2
  36. package/src/views/support/export_template/edit.vue +4 -4
  37. package/src/views/support/export_template/list.vue +12 -12
  38. package/src/views/user/access_log/edit.vue +2 -2
  39. package/src/views/user/access_log/list.vue +8 -8
  40. package/src/views/user/access_log/statistics_list.vue +16 -11
  41. package/src/views/user/api_request/edit.vue +7 -4
  42. package/src/views/user/api_request/list.vue +7 -5
  43. package/src/views/user/area/dialog.vue +4 -4
  44. package/src/views/user/area_attribute/configDialog.vue +319 -319
  45. package/src/views/user/area_attribute/edit.vue +2 -2
  46. package/src/views/user/area_attribute/list.vue +1 -1
  47. package/src/views/user/attachment/uploadDialog.vue +11 -11
  48. package/src/views/user/bill_setting/edit.vue +6 -5
  49. package/src/views/user/bill_setting/h5_ModifyDialog.vue +5 -3
  50. package/src/views/user/bill_setting/h5_view.vue +4 -4
  51. package/src/views/user/bill_setting/itemViewDialog.vue +1 -1
  52. package/src/views/user/bill_setting/list.vue +5 -4
  53. package/src/views/user/bill_setting/queryDialog.vue +3 -3
  54. package/src/views/user/bill_setting/render.vue +6 -6
  55. package/src/views/user/bill_setting/template2.json +44 -11
  56. package/src/views/user/bill_setting/userDialog.vue +4 -4
  57. package/src/views/user/code_rules/edit.vue +3 -3
  58. package/src/views/user/code_rules/list.vue +3 -3
  59. package/src/views/user/commMenu/index.vue +2 -2
  60. package/src/views/user/common_attribute/edit.vue +3 -3
  61. package/src/views/user/common_attribute/itemEdit.vue +3 -3
  62. package/src/views/user/common_attribute/list.vue +3 -3
  63. package/src/views/user/common_script/edit.vue +5 -4
  64. package/src/views/user/common_script/list.vue +14 -13
  65. package/src/views/user/company_info/dialog.vue +138 -131
  66. package/src/views/user/company_info/edit.vue +2 -2
  67. package/src/views/user/company_info/view.vue +1 -1
  68. package/src/views/user/country/dialog.vue +6 -6
  69. package/src/views/user/country/edit.vue +8 -7
  70. package/src/views/user/country/list.vue +170 -160
  71. package/src/views/user/data_type_setting/dialog.vue +10 -7
  72. package/src/views/user/data_type_setting/editDialog.vue +12 -11
  73. package/src/views/user/ea/eagroup/eaobj_list.vue +331 -310
  74. package/src/views/user/ea/eagroup/edit.vue +492 -475
  75. package/src/views/user/ea/eaobj/edit.vue +153 -148
  76. package/src/views/user/ea/eaobj/list.vue +147 -135
  77. package/src/views/user/error-page/401.vue +42 -34
  78. package/src/views/user/error-page/404.vue +19 -3
  79. package/src/views/user/extend_datasource/dialog.vue +124 -116
  80. package/src/views/user/extend_datasource/edit.vue +5 -4
  81. package/src/views/user/extend_datasource/list.vue +3 -3
  82. package/src/views/user/fieldTranslation/editDialog.vue +2 -2
  83. package/src/views/user/fieldTranslation/list.vue +4 -3
  84. package/src/views/user/field_values_invisible/edit.vue +85 -83
  85. package/src/views/user/field_values_invisible/list.vue +32 -21
  86. package/src/views/user/file_type/edit.vue +3 -3
  87. package/src/views/user/file_type/list.vue +7 -4
  88. package/src/views/user/file_type/userEdit.vue +188 -188
  89. package/src/views/user/file_view_area/edit.vue +3 -3
  90. package/src/views/user/file_view_area/itemEdit.vue +168 -165
  91. package/src/views/user/file_view_area/list.vue +3 -3
  92. package/src/views/user/file_view_ins/list.vue +55 -36
  93. package/src/views/user/file_view_ins/propertiesDialog.vue +218 -218
  94. package/src/views/user/form/form_ins_list/edit.vue +421 -421
  95. package/src/views/user/form/form_template/dialog.vue +24 -17
  96. package/src/views/user/form/form_template/edit.vue +7 -4
  97. package/src/views/user/form/form_template/itemEdit.vue +3 -3
  98. package/src/views/user/form/form_template/itemList.vue +3 -3
  99. package/src/views/user/form/form_template/list.vue +5 -4
  100. package/src/views/user/form/form_template_field/dialog.vue +11 -8
  101. package/src/views/user/form/form_type/dialog.vue +134 -127
  102. package/src/views/user/form/form_type/edit.vue +4 -4
  103. package/src/views/user/form/form_type/editDialog.vue +10 -9
  104. package/src/views/user/form/form_type/list.vue +128 -118
  105. package/src/views/user/form/report_requestaccess/dialog.vue +106 -99
  106. package/src/views/user/form/report_requestaccess/edit.vue +272 -234
  107. package/src/views/user/form/report_requestaccess/list.vue +29 -18
  108. package/src/views/user/form/vform/designer.vue +164 -164
  109. package/src/views/user/form/vform/formFieldMapping.js +151 -169
  110. package/src/views/user/form/vform/out_render.vue +3 -2
  111. package/src/views/user/form/vform/render.vue +2 -2
  112. package/src/views/user/form/view/edit.vue +7 -7
  113. package/src/views/user/form/view/list.vue +2 -2
  114. package/src/views/user/home/distributor.vue +374 -118
  115. package/src/views/user/home/index.vue +1 -1
  116. package/src/views/user/language_setting/edit.vue +167 -166
  117. package/src/views/user/language_setting/list.vue +3 -3
  118. package/src/views/user/ledger_library/list.vue +2 -2
  119. package/src/views/user/ledger_library/private_list.vue +3 -3
  120. package/src/views/user/login/auth-redirect.vue +1 -1
  121. package/src/views/user/login/index.vue +1 -1
  122. package/src/views/user/login/indexMixin.js +4 -1
  123. package/src/views/user/menu/list.vue +3 -3
  124. package/src/views/user/mobile_menu/list.vue +2 -2
  125. package/src/views/user/notify_message/dialog.vue +8 -6
  126. package/src/views/user/notify_message/list.vue +4 -3
  127. package/src/views/user/notify_template/edit.vue +185 -185
  128. package/src/views/user/notify_template/list.vue +4 -4
  129. package/src/views/user/oplog/edit.vue +108 -103
  130. package/src/views/user/oplog/list.vue +3 -3
  131. package/src/views/user/outLink/form_view.vue +144 -143
  132. package/src/views/user/outLink/index.vue +7 -5
  133. package/src/views/user/outLink/view.vue +119 -117
  134. package/src/views/user/position/dialog.vue +145 -138
  135. package/src/views/user/position/edit.vue +4 -4
  136. package/src/views/user/position/list.vue +170 -160
  137. package/src/views/user/project_tag/dialog.vue +5 -5
  138. package/src/views/user/project_tag/edit.vue +3 -3
  139. package/src/views/user/project_tag/list.vue +3 -3
  140. package/src/views/user/push_setting/edit.vue +7 -4
  141. package/src/views/user/push_setting/list.vue +44 -34
  142. package/src/views/user/redirect/index.vue +4 -4
  143. package/src/views/user/role/dialog.vue +10 -7
  144. package/src/views/user/role/edit.vue +427 -427
  145. package/src/views/user/role/list.vue +125 -114
  146. package/src/views/user/sale_org/dialog.vue +3 -3
  147. package/src/views/user/sale_org/list.vue +11 -11
  148. package/src/views/user/sale_org/moveDialog.vue +2 -2
  149. package/src/views/user/sale_org_net/list.vue +9 -9
  150. package/src/views/user/system_notice/edit.vue +184 -184
  151. package/src/views/user/system_notice/list.vue +156 -145
  152. package/src/views/user/system_parameter/edit.vue +140 -137
  153. package/src/views/user/system_parameter/list.vue +131 -120
  154. package/src/views/user/user/dialog.vue +31 -24
  155. package/src/views/user/user/edit.vue +1021 -1019
  156. package/src/views/user/user/form_edit.vue +481 -483
  157. package/src/views/user/user/form_list.vue +5 -5
  158. package/src/views/user/user/info.vue +271 -256
  159. package/src/views/user/user/infoContent.vue +12 -11
  160. package/src/views/user/user/infoEdit.vue +111 -92
  161. package/src/views/user/user/inner_list.vue +1 -1
  162. package/src/views/user/user/list.vue +55 -50
  163. package/src/views/user/user/list2.vue +1 -1
  164. package/src/views/user/user/modifyPasswordDialog.vue +3 -3
  165. package/src/views/user/user/out_list.vue +1 -1
  166. package/src/views/user/wf/formCustDialog/list.vue +13 -15
  167. package/src/views/user/wf/iframe/index.vue +12 -12
  168. package/src/views/user/wf/iframe/index2.vue +2 -2
  169. package/src/views/user/wf/wf_auto_submit_data/edit.vue +1 -1
  170. package/src/views/user/wf/wf_auto_submit_data/edith.vue +1 -1
  171. package/src/views/user/wf/wf_auto_submit_data/list.vue +8 -6
  172. package/src/views/user/wf/wf_diy_attribute/edit.vue +5 -5
  173. package/src/views/user/wf/wf_manage/list.vue +5 -4
  174. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +11 -10
  175. package/src/views/user/wf/wf_obj_config/dialog.vue +10 -7
  176. package/src/views/user/wf/wf_obj_config/edit.vue +7 -4
  177. package/src/views/user/wf/wf_obj_config/edit_form.vue +70 -63
  178. package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
  179. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +3 -3
  180. package/src/views/user/wf/wf_obj_config/list.vue +4 -4
  181. package/src/views/user/wf/wf_obj_config/list_form.vue +22 -22
  182. package/src/views/user/wf/wf_param/edit.vue +4 -4
  183. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +27 -13
  184. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +25 -10
  185. package/src/views/user/wf/wf_work_calendar/configDialog.vue +8 -5
  186. package/src/views/user/wf/wf_work_calendar/date.js +10 -10
  187. package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
@@ -1,132 +1,142 @@
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
- </div>
16
- <div class="fr">
17
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary" plain>重置</vxe-button>
18
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索</vxe-button>
19
- </div>
20
- </div>
21
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent" @reset="searchEvent">
22
- <vxe-form-item title="表单类型名称:" field="formTypeName">
23
- <template v-slot>
24
- <el-input v-model="formData.formTypeName" size="small" clearable />
25
- </template>
26
- </vxe-form-item>
27
- <vxe-form-item title="表单类型编码:" field="formTypeCode">
28
- <template v-slot>
29
- <el-input v-model="formData.formTypeCode" size="small" clearable />
30
- </template>
31
- </vxe-form-item>
32
- </vxe-form>
33
- </template>
34
- </vxe-grid>
35
- </div>
36
- </el-tab-pane>
37
- </el-tabs>
38
- </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
+ </div>
19
+ <div class="fr">
20
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
21
+ plain>{{ $t1('重置') }}
22
+ </vxe-button>
23
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
24
+ {{ $t1('搜索') }}
25
+ </vxe-button>
26
+ </div>
27
+ </div>
28
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
29
+ @submit="searchEvent" @reset="searchEvent">
30
+ <vxe-form-item title="表单类型名称:" field="formTypeName">
31
+ <template v-slot>
32
+ <el-input v-model="formData.formTypeName" size="small" clearable/>
33
+ </template>
34
+ </vxe-form-item>
35
+ <vxe-form-item title="表单类型编码:" field="formTypeCode">
36
+ <template v-slot>
37
+ <el-input v-model="formData.formTypeCode" size="small" clearable/>
38
+ </template>
39
+ </vxe-form-item>
40
+ </vxe-form>
41
+ </template>
42
+ </vxe-grid>
43
+ </div>
44
+ </el-tab-pane>
45
+ </el-tabs>
46
+ </div>
39
47
  </template>
40
48
 
41
49
  <script>
42
50
  import editView from './edit.vue';
51
+
43
52
  export default {
44
- name: 'form_type:list',
45
- components: { editView },
46
- data() {
47
- return {
48
- activeName: 'second',
49
- dataId: 0,
50
- showEdit: false,
51
- vxeOption: {},
52
- formData: {}
53
- };
54
- },
55
- mounted() {
56
- this.initTableList();
57
- },
58
- methods: {
59
- searchEvent() {
60
- this.$refs['table-m1'].commitProxy('reload');
61
- },
62
- resetEvent() {
63
- this.formData = {};
64
- this.$refs['table-m1'].commitProxy('reload');
65
- },
66
- openEditDialog(id) {
67
- this.dataId = !id || typeof id == 'object' ? 0 : id;
68
- this.activeName = 'first';
69
- this.$openEditView('showEdit');
70
- },
71
- initTableList() {
72
- let that = this;
73
- let tableOption = {
74
- vue: this,
75
- tableRef: 'table-m1',
76
- tableName: 'user_form_type_list-m1',
77
- path: USER_PREFIX + '/form_type/listPage',
78
- param: () => {
79
- return this.formData;
80
- },
81
- columns: [
82
- { type: 'checkbox', width: 48, resizable: false, fixed: 'left' },
53
+ name: 'form_type:list',
54
+ components: {editView},
55
+ data() {
56
+ return {
57
+ activeName: 'second',
58
+ dataId: 0,
59
+ showEdit: false,
60
+ vxeOption: {},
61
+ formData: {}
62
+ };
63
+ },
64
+ mounted() {
65
+ this.initTableList();
66
+ },
67
+ methods: {
68
+ searchEvent() {
69
+ this.$refs['table-m1'].commitProxy('reload');
70
+ },
71
+ resetEvent() {
72
+ this.formData = {};
73
+ this.$refs['table-m1'].commitProxy('reload');
74
+ },
75
+ openEditDialog(id) {
76
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
77
+ this.activeName = 'first';
78
+ this.$openEditView('showEdit');
79
+ },
80
+ initTableList() {
81
+ let that = this;
82
+ let tableOption = {
83
+ vue: this,
84
+ tableRef: 'table-m1',
85
+ tableName: 'user_form_type_list-m1',
86
+ path: USER_PREFIX + '/form_type/listPage',
87
+ param: () => {
88
+ return this.formData;
89
+ },
90
+ columns: [
91
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
83
92
  {
84
93
  field: 'formTypeCode',
85
94
  title: '表单类型编码',
86
95
  width: 150,
87
96
  fixed: 'left'
88
97
  },
89
- {
90
- title: '表单类型名称',
91
- field: 'formTypeName',
92
- width: 250
93
- },
94
- {
95
- field: 'createDate',
96
- title: '创建时间',
97
- width: 150
98
- },
99
- {
100
- width: 47,
101
- fixed: 'right',
102
- title: '',
103
- sortable: false,
104
- slots: {
105
- default: ({ row }) => {
106
- return [
107
- <div>
108
- <a
109
- href="javascript:void(0);"
110
- class="a-link"
111
- onclick={() => {
112
- this.openEditDialog(row.id);
113
- }}
114
- >
115
- <el-tooltip enterable={false} effect="dark" content="查看" placement="top" popper-class="tooltip-skin">
116
- <i class="el-icon-edit" />
117
- </el-tooltip>
118
- </a>
119
- </div>
120
- ];
121
- }
122
- }
123
- }
124
- ]
125
- };
126
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
127
- this.vxeOption = opts;
128
- });
129
- }
130
- }
98
+ {
99
+ title: '表单类型名称',
100
+ field: 'formTypeName',
101
+ width: 250
102
+ },
103
+ {
104
+ field: 'createDate',
105
+ title: '创建时间',
106
+ width: 150
107
+ },
108
+ {
109
+ width: 47,
110
+ fixed: 'right',
111
+ title: '',
112
+ sortable: false,
113
+ slots: {
114
+ default: ({row}) => {
115
+ return [
116
+ <div>
117
+ <a
118
+ href="javascript:void(0);"
119
+ class="a-link"
120
+ onclick={() => {
121
+ this.openEditDialog(row.id);
122
+ }}
123
+ >
124
+ <el-tooltip enterable={false} effect="dark" content="查看" placement="top"
125
+ popper-class="tooltip-skin">
126
+ <i class="el-icon-edit"/>
127
+ </el-tooltip>
128
+ </a>
129
+ </div>
130
+ ];
131
+ }
132
+ }
133
+ }
134
+ ]
135
+ };
136
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
137
+ this.vxeOption = opts;
138
+ });
139
+ }
140
+ }
131
141
  };
132
142
  </script>
@@ -1,103 +1,110 @@
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="accessName">
35
- <template v-slot>
36
- <el-input v-model="formData.accessName" size="small" clearable />
37
- </template>
38
- </vxe-form-item>
39
- <vxe-form-item title="请求访问编码:" field="accessCode">
40
- <template v-slot>
41
- <el-input v-model="formData.accessCode" 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.accessName }}</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="accessName">
40
+ <template v-slot>
41
+ <el-input v-model="formData.accessName" size="small" clearable/>
42
+ </template>
43
+ </vxe-form-item>
44
+ <vxe-form-item title="请求访问编码:" field="accessCode">
45
+ <template v-slot>
46
+ <el-input v-model="formData.accessCode" 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.accessName }}</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: 'areaDialog',
81
- props: ['visiable', 'multi', 'rows','param'],
82
- mixins: [selectDialogMixins],
83
- created() {
84
- this.initSetting();
85
- },
86
- mounted() {
87
- this.initTableM1();
88
- },
89
- data() {
90
- var that = this;
91
- return {
92
- showDialog: true,
93
- falseValue: false,
94
- selectMulti: true,
95
- formData: {},
96
- vxeOption: {}
97
- };
98
- },
99
- methods: {
100
- initTableM1() {
87
+ name: 'areaDialog',
88
+ props: ['visiable', 'multi', 'rows', 'param'],
89
+ mixins: [selectDialogMixins],
90
+ created() {
91
+ this.initSetting();
92
+ },
93
+ mounted() {
94
+ this.initTableM1();
95
+ },
96
+ data() {
97
+ var that = this;
98
+ return {
99
+ showDialog: true,
100
+ falseValue: false,
101
+ selectMulti: true,
102
+ formData: {},
103
+ vxeOption: {}
104
+ };
105
+ },
106
+ methods: {
107
+ initTableM1() {
101
108
  let that = this;
102
109
  let returnTypeMap = {
103
110
  0: '集合List',
@@ -111,20 +118,20 @@ export default {
111
118
  path: SUPPORT_PREFIX + '/report_requestaccess/listPage',
112
119
  param: () => {
113
120
  return {
114
- enabled:true,
115
- reportCode:this.param.reportCode,
121
+ enabled: true,
122
+ reportCode: this.param.reportCode,
116
123
  ...this.formData
117
124
  };
118
125
  },
119
126
  config: {
120
- checkboxConfig: {
121
- checkStrictly: true,
122
- showHeader: this.selectMulti,
123
- trigger: 'row'
124
- }
127
+ checkboxConfig: {
128
+ checkStrictly: true,
129
+ showHeader: this.selectMulti,
130
+ trigger: 'row'
131
+ }
125
132
  },
126
133
  columns: [
127
- { type: 'checkbox', width: 48, resizable: false, fixed: 'left' },
134
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
128
135
  {
129
136
  title: '请求访问名称',
130
137
  field: 'accessName',
@@ -147,7 +154,7 @@ export default {
147
154
  field: 'returnType',
148
155
  width: 150,
149
156
  slots: {
150
- default: ({ row }) => {
157
+ default: ({row}) => {
151
158
  return returnTypeMap[row.returnType] || '';
152
159
  }
153
160
  }
@@ -157,7 +164,7 @@ export default {
157
164
  title: '是否启用',
158
165
  width: 150,
159
166
  slots: {
160
- default: ({ row }) => {
167
+ default: ({row}) => {
161
168
  if (row.enabled) {
162
169
  return [
163
170
  <div class="txt-status">
@@ -191,6 +198,6 @@ export default {
191
198
  this.vxeOption = opts;
192
199
  });
193
200
  }
194
- }
201
+ }
195
202
  };
196
203
  </script>