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.
- package/package.json +2 -1
- package/src/components/jsonImport/index.js +3 -1
- package/src/components/jsonImport/mixins.js +16 -16
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/layout/components/Sidebar/default.vue +10 -4
- package/src/router/modules/customer.js +8 -8
- package/src/utils/aes.js +1 -0
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -4
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -3
- package/src/views/bd/setting/bd_attach_setting/list.vue +3 -3
- package/src/views/bd/setting/form_script/dialog.vue +14 -12
- package/src/views/bd/setting/form_script/edit.vue +5 -4
- package/src/views/bd/setting/form_script/edit1.vue +3 -3
- package/src/views/bd/setting/form_script/form_list.vue +3 -3
- package/src/views/bd/setting/form_script/list.vue +4 -4
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/list2.vue +1 -1
- package/src/views/bd/setting/form_template/dialog.vue +24 -17
- package/src/views/bd/setting/form_template/edit.vue +3 -3
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -5
- package/src/views/bd/setting/form_template/itemEdit.vue +3 -3
- package/src/views/bd/setting/form_template/itemList.vue +3 -3
- package/src/views/bd/setting/form_template/list.vue +4 -4
- package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/authDialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/dialog.vue +23 -16
- package/src/views/bd/setting/menu_kind/list.vue +3 -3
- package/src/views/bd/setting/table_model/dialog.vue +4 -4
- package/src/views/bd/setting/table_model/edit.vue +1123 -1123
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/zdDialog.vue +4 -4
- package/src/views/mobile/user/area/dialog.vue +3 -2
- package/src/views/mobile/user/user/dialog.vue +3 -2
- package/src/views/support/export_template/edit.vue +4 -4
- package/src/views/support/export_template/list.vue +12 -12
- package/src/views/user/access_log/edit.vue +2 -2
- package/src/views/user/access_log/list.vue +8 -8
- package/src/views/user/access_log/statistics_list.vue +16 -11
- package/src/views/user/api_request/edit.vue +7 -4
- package/src/views/user/api_request/list.vue +7 -5
- package/src/views/user/area/dialog.vue +4 -4
- package/src/views/user/area_attribute/configDialog.vue +319 -319
- package/src/views/user/area_attribute/edit.vue +2 -2
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +11 -11
- package/src/views/user/bill_setting/edit.vue +6 -5
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +5 -3
- package/src/views/user/bill_setting/h5_view.vue +4 -4
- package/src/views/user/bill_setting/itemViewDialog.vue +1 -1
- package/src/views/user/bill_setting/list.vue +5 -4
- package/src/views/user/bill_setting/queryDialog.vue +3 -3
- package/src/views/user/bill_setting/render.vue +6 -6
- package/src/views/user/bill_setting/template2.json +44 -11
- package/src/views/user/bill_setting/userDialog.vue +4 -4
- package/src/views/user/code_rules/edit.vue +3 -3
- package/src/views/user/code_rules/list.vue +3 -3
- package/src/views/user/commMenu/index.vue +2 -2
- package/src/views/user/common_attribute/edit.vue +3 -3
- package/src/views/user/common_attribute/itemEdit.vue +3 -3
- package/src/views/user/common_attribute/list.vue +3 -3
- package/src/views/user/common_script/edit.vue +5 -4
- package/src/views/user/common_script/list.vue +14 -13
- package/src/views/user/company_info/dialog.vue +138 -131
- package/src/views/user/company_info/edit.vue +2 -2
- package/src/views/user/company_info/view.vue +1 -1
- package/src/views/user/country/dialog.vue +6 -6
- package/src/views/user/country/edit.vue +8 -7
- package/src/views/user/country/list.vue +170 -160
- package/src/views/user/data_type_setting/dialog.vue +10 -7
- package/src/views/user/data_type_setting/editDialog.vue +12 -11
- package/src/views/user/ea/eagroup/eaobj_list.vue +331 -310
- package/src/views/user/ea/eagroup/edit.vue +492 -475
- package/src/views/user/ea/eaobj/edit.vue +153 -148
- package/src/views/user/ea/eaobj/list.vue +147 -135
- package/src/views/user/error-page/401.vue +42 -34
- package/src/views/user/error-page/404.vue +19 -3
- package/src/views/user/extend_datasource/dialog.vue +124 -116
- package/src/views/user/extend_datasource/edit.vue +5 -4
- package/src/views/user/extend_datasource/list.vue +3 -3
- package/src/views/user/fieldTranslation/editDialog.vue +2 -2
- package/src/views/user/fieldTranslation/list.vue +4 -3
- package/src/views/user/field_values_invisible/edit.vue +85 -83
- package/src/views/user/field_values_invisible/list.vue +32 -21
- package/src/views/user/file_type/edit.vue +3 -3
- package/src/views/user/file_type/list.vue +7 -4
- package/src/views/user/file_type/userEdit.vue +188 -188
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +168 -165
- package/src/views/user/file_view_area/list.vue +3 -3
- package/src/views/user/file_view_ins/list.vue +55 -36
- package/src/views/user/file_view_ins/propertiesDialog.vue +218 -218
- package/src/views/user/form/form_ins_list/edit.vue +421 -421
- package/src/views/user/form/form_template/dialog.vue +24 -17
- package/src/views/user/form/form_template/edit.vue +7 -4
- package/src/views/user/form/form_template/itemEdit.vue +3 -3
- package/src/views/user/form/form_template/itemList.vue +3 -3
- package/src/views/user/form/form_template/list.vue +5 -4
- package/src/views/user/form/form_template_field/dialog.vue +11 -8
- package/src/views/user/form/form_type/dialog.vue +134 -127
- package/src/views/user/form/form_type/edit.vue +4 -4
- package/src/views/user/form/form_type/editDialog.vue +10 -9
- package/src/views/user/form/form_type/list.vue +128 -118
- package/src/views/user/form/report_requestaccess/dialog.vue +106 -99
- package/src/views/user/form/report_requestaccess/edit.vue +272 -234
- package/src/views/user/form/report_requestaccess/list.vue +29 -18
- package/src/views/user/form/vform/designer.vue +164 -164
- package/src/views/user/form/vform/formFieldMapping.js +151 -169
- package/src/views/user/form/vform/out_render.vue +3 -2
- package/src/views/user/form/vform/render.vue +2 -2
- package/src/views/user/form/view/edit.vue +7 -7
- package/src/views/user/form/view/list.vue +2 -2
- package/src/views/user/home/distributor.vue +374 -118
- package/src/views/user/home/index.vue +1 -1
- package/src/views/user/language_setting/edit.vue +167 -166
- package/src/views/user/language_setting/list.vue +3 -3
- package/src/views/user/ledger_library/list.vue +2 -2
- package/src/views/user/ledger_library/private_list.vue +3 -3
- package/src/views/user/login/auth-redirect.vue +1 -1
- package/src/views/user/login/index.vue +1 -1
- package/src/views/user/login/indexMixin.js +4 -1
- package/src/views/user/menu/list.vue +3 -3
- package/src/views/user/mobile_menu/list.vue +2 -2
- package/src/views/user/notify_message/dialog.vue +8 -6
- package/src/views/user/notify_message/list.vue +4 -3
- package/src/views/user/notify_template/edit.vue +185 -185
- package/src/views/user/notify_template/list.vue +4 -4
- package/src/views/user/oplog/edit.vue +108 -103
- package/src/views/user/oplog/list.vue +3 -3
- package/src/views/user/outLink/form_view.vue +144 -143
- package/src/views/user/outLink/index.vue +7 -5
- package/src/views/user/outLink/view.vue +119 -117
- package/src/views/user/position/dialog.vue +145 -138
- package/src/views/user/position/edit.vue +4 -4
- package/src/views/user/position/list.vue +170 -160
- package/src/views/user/project_tag/dialog.vue +5 -5
- package/src/views/user/project_tag/edit.vue +3 -3
- package/src/views/user/project_tag/list.vue +3 -3
- package/src/views/user/push_setting/edit.vue +7 -4
- package/src/views/user/push_setting/list.vue +44 -34
- package/src/views/user/redirect/index.vue +4 -4
- package/src/views/user/role/dialog.vue +10 -7
- package/src/views/user/role/edit.vue +427 -427
- package/src/views/user/role/list.vue +125 -114
- package/src/views/user/sale_org/dialog.vue +3 -3
- package/src/views/user/sale_org/list.vue +11 -11
- package/src/views/user/sale_org/moveDialog.vue +2 -2
- package/src/views/user/sale_org_net/list.vue +9 -9
- package/src/views/user/system_notice/edit.vue +184 -184
- package/src/views/user/system_notice/list.vue +156 -145
- package/src/views/user/system_parameter/edit.vue +140 -137
- package/src/views/user/system_parameter/list.vue +131 -120
- package/src/views/user/user/dialog.vue +31 -24
- package/src/views/user/user/edit.vue +1021 -1019
- package/src/views/user/user/form_edit.vue +481 -483
- package/src/views/user/user/form_list.vue +5 -5
- package/src/views/user/user/info.vue +271 -256
- package/src/views/user/user/infoContent.vue +12 -11
- package/src/views/user/user/infoEdit.vue +111 -92
- package/src/views/user/user/inner_list.vue +1 -1
- package/src/views/user/user/list.vue +55 -50
- package/src/views/user/user/list2.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +3 -3
- package/src/views/user/user/out_list.vue +1 -1
- package/src/views/user/wf/formCustDialog/list.vue +13 -15
- package/src/views/user/wf/iframe/index.vue +12 -12
- package/src/views/user/wf/iframe/index2.vue +2 -2
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +8 -6
- package/src/views/user/wf/wf_diy_attribute/edit.vue +5 -5
- package/src/views/user/wf/wf_manage/list.vue +5 -4
- package/src/views/user/wf/wf_obj_config/activiti_wf.vue +11 -10
- package/src/views/user/wf/wf_obj_config/dialog.vue +10 -7
- package/src/views/user/wf/wf_obj_config/edit.vue +7 -4
- package/src/views/user/wf/wf_obj_config/edit_form.vue +70 -63
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +3 -3
- package/src/views/user/wf/wf_obj_config/list.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list_form.vue +22 -22
- package/src/views/user/wf/wf_param/edit.vue +4 -4
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +27 -13
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +25 -10
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +8 -5
- package/src/views/user/wf/wf_work_calendar/date.js +10 -10
- package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
|
@@ -1,125 +1,134 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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"
|
|
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"
|
|
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"
|
|
11
|
-
|
|
12
|
-
<el-button type="primary" class="button-sty" icon="el-icon-
|
|
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"
|
|
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"
|
|
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"
|
|
14
|
-
|
|
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"
|
|
19
|
-
|
|
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"
|
|
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: {
|
|
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 = {
|
|
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
|
-
{
|
|
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: ({
|
|
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: ({
|
|
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
|
-
{
|
|
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: ({
|
|
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"
|
|
211
|
-
|
|
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 {
|
|
5
|
-
const {
|
|
6
|
-
this.$router.replace({
|
|
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
|
}
|