cloud-web-corejs 1.0.18 → 1.0.20
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/api/user.js +8 -0
- 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/components/xform/form-designer/indexMixin.js +2 -2
- package/src/layout/components/Sidebar/default.vue +15 -9
- package/src/layout/components/TagsView/index.vue +6 -6
- package/src/layout/components/notify_message/unreadDialog.vue +1 -1
- 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 +8 -8
- package/src/views/bd/setting/bd_attach_setting/edit.vue +11 -11
- package/src/views/bd/setting/bd_attach_setting/list.vue +7 -7
- package/src/views/bd/setting/form_script/dialog.vue +17 -15
- package/src/views/bd/setting/form_script/edit.vue +15 -13
- package/src/views/bd/setting/form_script/edit1.vue +12 -12
- package/src/views/bd/setting/form_script/form_list.vue +8 -8
- package/src/views/bd/setting/form_script/list.vue +9 -9
- package/src/views/bd/setting/form_script/list1.vue +9 -9
- package/src/views/bd/setting/form_script/list2.vue +1 -1
- package/src/views/bd/setting/form_template/dialog.vue +27 -20
- package/src/views/bd/setting/form_template/edit.vue +13 -13
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +8 -8
- package/src/views/bd/setting/form_template/itemEdit.vue +9 -9
- package/src/views/bd/setting/form_template/itemList.vue +8 -8
- package/src/views/bd/setting/form_template/list.vue +15 -15
- 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 +27 -27
- package/src/views/bd/setting/table_model/dialog.vue +5 -5
- package/src/views/bd/setting/table_model/edit.vue +1123 -1123
- package/src/views/bd/setting/table_model/list.vue +12 -12
- package/src/views/bd/setting/table_model/zdDialog.vue +5 -5
- package/src/views/mobile/user/area/dialog.vue +4 -3
- package/src/views/mobile/user/user/dialog.vue +4 -3
- package/src/views/support/export_template/edit.vue +12 -12
- package/src/views/support/export_template/list.vue +18 -18
- package/src/views/user/access_log/edit.vue +5 -5
- package/src/views/user/access_log/list.vue +11 -11
- package/src/views/user/access_log/statistics_list.vue +16 -11
- package/src/views/user/api_request/edit.vue +15 -12
- package/src/views/user/api_request/list.vue +12 -10
- package/src/views/user/area/dialog.vue +5 -5
- package/src/views/user/area_attribute/configDialog.vue +319 -319
- package/src/views/user/area_attribute/edit.vue +3 -3
- 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 +14 -13
- 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 +9 -8
- package/src/views/user/bill_setting/queryDialog.vue +3 -3
- package/src/views/user/bill_setting/render.vue +7 -7
- package/src/views/user/bill_setting/template2.json +44 -11
- package/src/views/user/bill_setting/userDialog.vue +5 -5
- package/src/views/user/code_rules/edit.vue +11 -11
- package/src/views/user/code_rules/list.vue +6 -6
- package/src/views/user/commMenu/index.vue +2 -2
- package/src/views/user/common_attribute/edit.vue +9 -9
- package/src/views/user/common_attribute/itemEdit.vue +11 -11
- package/src/views/user/common_attribute/list.vue +12 -12
- package/src/views/user/common_script/edit.vue +11 -10
- package/src/views/user/common_script/list.vue +17 -16
- package/src/views/user/company_info/dialog.vue +138 -131
- package/src/views/user/company_info/edit.vue +10 -10
- package/src/views/user/company_info/view.vue +1 -1
- package/src/views/user/country/dialog.vue +8 -8
- package/src/views/user/country/edit.vue +16 -15
- package/src/views/user/country/list.vue +172 -162
- package/src/views/user/data_type_setting/dialog.vue +11 -8
- package/src/views/user/data_type_setting/editDialog.vue +13 -12
- package/src/views/user/ea/eagroup/eaobj_list.vue +332 -311
- 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 +127 -119
- package/src/views/user/extend_datasource/edit.vue +13 -12
- package/src/views/user/extend_datasource/list.vue +7 -7
- package/src/views/user/fieldTranslation/editDialog.vue +6 -6
- package/src/views/user/fieldTranslation/list.vue +9 -8
- package/src/views/user/field_values_invisible/edit.vue +87 -85
- package/src/views/user/field_values_invisible/list.vue +36 -25
- package/src/views/user/file_type/edit.vue +11 -11
- package/src/views/user/file_type/list.vue +10 -7
- package/src/views/user/file_type/userEdit.vue +188 -188
- package/src/views/user/file_view_area/edit.vue +11 -11
- package/src/views/user/file_view_area/itemEdit.vue +168 -165
- package/src/views/user/file_view_area/list.vue +9 -9
- package/src/views/user/file_view_ins/list.vue +57 -38
- 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 +27 -20
- package/src/views/user/form/form_template/edit.vue +15 -12
- package/src/views/user/form/form_template/itemEdit.vue +9 -9
- package/src/views/user/form/form_template/itemList.vue +5 -5
- package/src/views/user/form/form_template/list.vue +9 -8
- 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 +10 -10
- package/src/views/user/form/form_type/editDialog.vue +11 -10
- package/src/views/user/form/form_type/list.vue +128 -118
- package/src/views/user/form/report_requestaccess/dialog.vue +108 -101
- package/src/views/user/form/report_requestaccess/edit.vue +274 -236
- package/src/views/user/form/report_requestaccess/list.vue +31 -20
- 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/default.vue +21 -21
- package/src/views/user/home/distributor.vue +375 -119
- 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 +7 -7
- 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 +19 -19
- package/src/views/user/mobile_menu/list.vue +17 -17
- package/src/views/user/notify_message/dialog.vue +8 -6
- package/src/views/user/notify_message/list.vue +5 -4
- package/src/views/user/notify_template/edit.vue +185 -185
- package/src/views/user/notify_template/list.vue +8 -8
- package/src/views/user/oplog/edit.vue +108 -103
- package/src/views/user/oplog/list.vue +8 -8
- 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 +12 -12
- package/src/views/user/position/list.vue +172 -162
- package/src/views/user/project_tag/dialog.vue +9 -9
- package/src/views/user/project_tag/edit.vue +10 -10
- package/src/views/user/project_tag/list.vue +7 -7
- package/src/views/user/push_setting/edit.vue +14 -11
- package/src/views/user/push_setting/list.vue +45 -36
- package/src/views/user/redirect/index.vue +4 -4
- package/src/views/user/role/dialog.vue +11 -8
- 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 +26 -26
- package/src/views/user/sale_org/moveDialog.vue +2 -2
- 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 +40 -47
- package/src/views/user/user/edit.vue +1021 -1019
- package/src/views/user/user/form_edit.vue +497 -483
- package/src/views/user/user/form_list.vue +16 -16
- 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 +113 -94
- 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 +6 -6
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +6 -6
- package/src/views/user/wf/wf_auto_submit_data/list.vue +10 -8
- package/src/views/user/wf/wf_diy_attribute/edit.vue +6 -6
- package/src/views/user/wf/wf_manage/list.vue +9 -8
- 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 +15 -12
- package/src/views/user/wf/wf_obj_config/edit_form.vue +72 -65
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +9 -9
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +9 -9
- package/src/views/user/wf/wf_obj_config/list.vue +12 -12
- package/src/views/user/wf/wf_obj_config/list_form.vue +24 -24
- package/src/views/user/wf/wf_param/edit.vue +5 -5
- 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 +9 -6
- package/src/views/user/wf/wf_work_calendar/date.js +10 -10
- package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
- package/src/views/user/sale_org_net/list.vue +0 -574
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="containt">
|
|
3
3
|
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
-
<el-tab-pane label="列表" name="second">
|
|
4
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
5
5
|
<div class="grid-height">
|
|
6
6
|
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
7
7
|
@custom="$vxeTableUtil.customHandle">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="fr">
|
|
15
15
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
16
|
-
plain
|
|
16
|
+
plain>{{$t1('重置')}}
|
|
17
17
|
</vxe-button>
|
|
18
18
|
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
|
|
19
19
|
</vxe-button>
|
|
@@ -63,26 +63,26 @@
|
|
|
63
63
|
<template #operate="obj">
|
|
64
64
|
<div class="cell-operate">
|
|
65
65
|
<template v-if="$refs['table-m1'].isActiveByRow(obj.row)">
|
|
66
|
-
<a @click="saveRowEvent(obj)" class="a-link"
|
|
67
|
-
<el-tooltip :enterable="false" effect="dark" content="保存" placement="top"
|
|
66
|
+
<a @click="saveRowEvent(obj)" class="a-link">
|
|
67
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('保存')" placement="top"
|
|
68
68
|
popper-class="tooltip-skin"><i class="el-icon-circle-check"></i></el-tooltip>
|
|
69
69
|
</a>
|
|
70
|
-
<a @click="cancleRowEvent(obj)" class="a-link"
|
|
71
|
-
<el-tooltip :enterable="false" effect="dark" content="取消行编辑" placement="top"
|
|
70
|
+
<a @click="cancleRowEvent(obj)" class="a-link" v-if="hasSaveRow(obj.row)">
|
|
71
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('取消行编辑')" placement="top"
|
|
72
72
|
popper-class="tooltip-skin"><i class="el-icon-circle-close"></i></el-tooltip>
|
|
73
73
|
</a>
|
|
74
|
-
<a @click="removeRowEvent(obj)" class="a-link"
|
|
75
|
-
<el-tooltip :enterable="false" effect="dark" content="删除" placement="top"
|
|
74
|
+
<a @click="removeRowEvent(obj)" class="a-link" v-if="!hasSaveRow(obj.row)">
|
|
75
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('删除')" placement="top"
|
|
76
76
|
popper-class="tooltip-skin"><i class="el-icon-delete"></i></el-tooltip>
|
|
77
77
|
</a>
|
|
78
78
|
</template>
|
|
79
79
|
<template v-else>
|
|
80
80
|
<a class="a-link" data-tit="新增" @click="addMenu(0, obj)" v-if="obj.row && obj.row.type != 2">
|
|
81
|
-
<el-tooltip :enterable="false" effect="dark" content="新增" placement="top"
|
|
81
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('新增')" placement="top"
|
|
82
82
|
popper-class="tooltip-skin"><i class="el-icon-circle-plus-outline"></i></el-tooltip>
|
|
83
83
|
</a>
|
|
84
84
|
<a @click="editRowEvent(obj)" class="a-link" data-tit="行编辑" v-if="obj.row && !obj.row.is_top">
|
|
85
|
-
<el-tooltip :enterable="false" effect="dark" content="行编辑" placement="top"
|
|
85
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('行编辑')" placement="top"
|
|
86
86
|
popper-class="tooltip-skin"><i class="el-icon-edit-outline"></i></el-tooltip>
|
|
87
87
|
</a>
|
|
88
88
|
</template>
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
field: 'enabled',
|
|
210
|
-
title: '是否启用',
|
|
210
|
+
title: this.$t1('是否启用'),
|
|
211
211
|
width: 150,
|
|
212
212
|
editRender: {
|
|
213
213
|
name: '$select',
|
|
@@ -218,11 +218,11 @@ export default {
|
|
|
218
218
|
},
|
|
219
219
|
options: [
|
|
220
220
|
{
|
|
221
|
-
label: '启用',
|
|
221
|
+
label: this.$t1('启用'),
|
|
222
222
|
value: true
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
|
-
label: '禁用',
|
|
225
|
+
label: this.$t1('禁用'),
|
|
226
226
|
value: false
|
|
227
227
|
}
|
|
228
228
|
]
|
|
@@ -230,14 +230,14 @@ export default {
|
|
|
230
230
|
slots: {
|
|
231
231
|
default: ({row}) => {
|
|
232
232
|
if (row.enabled) {
|
|
233
|
-
return [<div class="txt-status"
|
|
233
|
+
return [<div class="txt-status">{ this.$t1('启用') }</div>];
|
|
234
234
|
} else {
|
|
235
|
-
return [<div class="txt-status s-3"
|
|
235
|
+
return [<div class="txt-status s-3">{ this.$t1('禁用') }</div>];
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
|
-
{field: 'orders', title: '序号', width: 100, editRender: {name: 'input'}},
|
|
240
|
+
{field: 'orders', title: this.$t1('序号'), width: 100, editRender: {name: 'input'}},
|
|
241
241
|
/*{
|
|
242
242
|
field: 'type',
|
|
243
243
|
title: '类型',
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
width: 100,
|
|
288
288
|
editRender: {name: 'input'}
|
|
289
289
|
},*/
|
|
290
|
-
{title: '创建时间', field: 'createDate', width: 200},
|
|
290
|
+
{title: this.$t1('创建时间'), field: 'createDate', width: 200},
|
|
291
291
|
{
|
|
292
292
|
width: 100,
|
|
293
293
|
title: '',
|
|
@@ -49,24 +49,24 @@ export default {
|
|
|
49
49
|
});
|
|
50
50
|
return obj;
|
|
51
51
|
},
|
|
52
|
-
notifyMessageRead(row,callback){
|
|
52
|
+
notifyMessageRead(row, callback) {
|
|
53
53
|
if (row.readed == 0) {
|
|
54
54
|
this.$http({
|
|
55
55
|
url: USER_PREFIX + `/notify_message/read`,
|
|
56
56
|
method: `post`,
|
|
57
57
|
data: [row.id],
|
|
58
58
|
isLoading: true,
|
|
59
|
-
loadingTarget:document.body,
|
|
59
|
+
loadingTarget: document.body,
|
|
60
60
|
success: res => {
|
|
61
61
|
callback && callback();
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
}else{
|
|
64
|
+
} else {
|
|
65
65
|
callback && callback();
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
open(row,callback) {
|
|
69
|
-
this.notifyMessageRead(row,()=>{
|
|
68
|
+
open(row, callback) {
|
|
69
|
+
this.notifyMessageRead(row, () => {
|
|
70
70
|
let turl = row.jumpContent;
|
|
71
71
|
let wfUrl = turl.split("?")[0];
|
|
72
72
|
let param = this.getUrlParam(turl);
|
|
@@ -88,5 +88,7 @@ export default {
|
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
90
|
<style>
|
|
91
|
-
.designer-dialog.indexUse #containt .detail-wrap .d-cont{
|
|
91
|
+
.designer-dialog.indexUse #containt .detail-wrap .d-cont {
|
|
92
|
+
height: calc(100vh - 82px)
|
|
93
|
+
}
|
|
92
94
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="containt">
|
|
3
3
|
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
-
<el-tab-pane label="列表" name="second">
|
|
4
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
5
5
|
<div class="tree-box fl">
|
|
6
6
|
<div class="tit"><b>通知类型</b></div>
|
|
7
7
|
<el-tree
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
<template #form>
|
|
40
40
|
<div class="clearfix screen-btns">
|
|
41
41
|
<div class="fl">
|
|
42
|
-
<base-table-export :option="{ title: '消息通知导出', targetRef: 'table-m1'}"
|
|
42
|
+
<base-table-export :option="{ title: '消息通知导出', targetRef: 'table-m1'}"
|
|
43
|
+
:parent-target="_self"/>
|
|
43
44
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="multiHandleRead" type="text"
|
|
44
45
|
status="primary"
|
|
45
46
|
plain>标记已读
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
</div>
|
|
48
49
|
<div class="fr">
|
|
49
50
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
50
|
-
plain
|
|
51
|
+
plain>{{$t1('重置')}}
|
|
51
52
|
</vxe-button>
|
|
52
53
|
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
|
|
53
54
|
</vxe-button>
|
|
@@ -287,7 +288,7 @@ export default {
|
|
|
287
288
|
width: 150
|
|
288
289
|
},
|
|
289
290
|
{
|
|
290
|
-
title: '创建时间',
|
|
291
|
+
title: this.$t1('创建时间'),
|
|
291
292
|
field: 'createDate',
|
|
292
293
|
width: 150
|
|
293
294
|
},
|
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="notifyTemplate">
|
|
4
|
-
<div class="d-header clearfix">
|
|
5
|
-
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? '查看' : '新增' }}通知模板
|
|
8
|
-
</div>
|
|
9
|
-
<div class="fr">
|
|
10
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right"
|
|
11
|
-
</el-button>
|
|
12
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData"
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<baseTabs>
|
|
16
|
-
<baseTabPane label="基本信息">
|
|
17
|
-
<template #default>
|
|
18
|
-
<table class="table-detail">
|
|
19
|
-
<tbody>
|
|
20
|
-
<tr>
|
|
21
|
-
<th><em class="f-red">*</em>通知模板编码</th>
|
|
22
|
-
<td>
|
|
23
|
-
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
24
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
|
25
|
-
</el-form-item>
|
|
26
|
-
</td>
|
|
27
|
-
<th>
|
|
28
|
-
<em class="f-red">*</em>
|
|
29
|
-
通知模板名称
|
|
30
|
-
</th>
|
|
31
|
-
<td>
|
|
32
|
-
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
33
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
|
34
|
-
</el-form-item>
|
|
35
|
-
</td>
|
|
36
|
-
<th>是否启用</th>
|
|
37
|
-
<td>
|
|
38
|
-
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
39
|
-
<el-radio-group v-model="notifyTemplate.enabled">
|
|
40
|
-
<el-radio :label="true">启用</el-radio>
|
|
41
|
-
<el-radio :label="false">禁用</el-radio>
|
|
42
|
-
</el-radio-group>
|
|
43
|
-
</el-form-item>
|
|
44
|
-
</td>
|
|
45
|
-
</tr>
|
|
46
|
-
<tr>
|
|
47
|
-
<th><em class="f-red">*</em>通知内容</th>
|
|
48
|
-
<td colspan="5">
|
|
49
|
-
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
|
50
|
-
<el-input type="textarea" :rows="2" size="small"
|
|
51
|
-
v-model="notifyTemplate.content"
|
|
52
|
-
clearable></el-input>
|
|
53
|
-
</el-form-item>
|
|
54
|
-
</td>
|
|
55
|
-
</tr>
|
|
56
|
-
<tr>
|
|
57
|
-
<th>跳转内容</th>
|
|
58
|
-
<td colspan="5">
|
|
59
|
-
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
|
60
|
-
<el-input type="textarea" :rows="2" size="small"
|
|
61
|
-
v-model="notifyTemplate.jumpContent"
|
|
62
|
-
clearable></el-input>
|
|
63
|
-
</el-form-item>
|
|
64
|
-
</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<th
|
|
68
|
-
<td colspan="5">
|
|
69
|
-
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
|
70
|
-
clearable></el-input>
|
|
71
|
-
</td>
|
|
72
|
-
</tr>
|
|
73
|
-
<tr>
|
|
74
|
-
<th>
|
|
75
|
-
脚本(获取通知人)
|
|
76
|
-
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
|
77
|
-
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
|
78
|
-
</th>
|
|
79
|
-
<td colspan="7">
|
|
80
|
-
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
|
81
|
-
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
|
82
|
-
v-if="showCodeEditor"></code-editor>
|
|
83
|
-
</el-form-item>
|
|
84
|
-
</td>
|
|
85
|
-
</tr>
|
|
86
|
-
<tr>
|
|
87
|
-
<th
|
|
88
|
-
<td>{{ notifyTemplate.createBy }}</td>
|
|
89
|
-
<th
|
|
90
|
-
<td>{{ notifyTemplate.createDate }}</td>
|
|
91
|
-
<th
|
|
92
|
-
<td>{{ notifyTemplate.modifyBy }}</td>
|
|
93
|
-
<th
|
|
94
|
-
<td>{{ notifyTemplate.modifyDate }}</td>
|
|
95
|
-
</tr>
|
|
96
|
-
</tbody>
|
|
97
|
-
</table>
|
|
98
|
-
</template>
|
|
99
|
-
</baseTabPane>
|
|
100
|
-
</baseTabs>
|
|
101
|
-
</el-form>
|
|
102
|
-
</div>
|
|
103
|
-
</template>
|
|
104
|
-
|
|
105
|
-
<script>
|
|
106
|
-
export default {
|
|
107
|
-
name: 'notify_templateEdit',
|
|
108
|
-
props: {
|
|
109
|
-
_dataId: [String, Number]
|
|
110
|
-
},
|
|
111
|
-
components: {},
|
|
112
|
-
data() {
|
|
113
|
-
return {
|
|
114
|
-
isEdit: false,
|
|
115
|
-
tabIndex: 'first',
|
|
116
|
-
dataId: '',
|
|
117
|
-
notifyTemplate: {
|
|
118
|
-
enabled: true
|
|
119
|
-
},
|
|
120
|
-
showCodeEditor: false
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
created() {
|
|
124
|
-
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
125
|
-
},
|
|
126
|
-
mounted() {
|
|
127
|
-
this.getData();
|
|
128
|
-
},
|
|
129
|
-
methods: {
|
|
130
|
-
getData() {
|
|
131
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
132
|
-
this.isEdit = true;
|
|
133
|
-
this.$commonHttp({
|
|
134
|
-
url: USER_PREFIX + `/notify_template/get`,
|
|
135
|
-
method: `post`,
|
|
136
|
-
data: {
|
|
137
|
-
id: this.dataId
|
|
138
|
-
},
|
|
139
|
-
isLoading: true,
|
|
140
|
-
modalStrictly: true,
|
|
141
|
-
success: res => {
|
|
142
|
-
this.notifyTemplate = res.objx || {};
|
|
143
|
-
this.showCodeEditor = true;
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
} else {
|
|
147
|
-
this.showCodeEditor = true;
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
saveData() {
|
|
151
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
152
|
-
if (valid) {
|
|
153
|
-
this.$baseConfirm('您确定要保存吗?').then(() => {
|
|
154
|
-
var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
|
|
155
|
-
this.$http({
|
|
156
|
-
url: url,
|
|
157
|
-
method: `post`,
|
|
158
|
-
data: this.notifyTemplate,
|
|
159
|
-
isLoading: true,
|
|
160
|
-
success: res => {
|
|
161
|
-
this.$message({
|
|
162
|
-
message: res.content,
|
|
163
|
-
type: 'success',
|
|
164
|
-
duration: 500,
|
|
165
|
-
onClose: t => {
|
|
166
|
-
if (this.isEdit) {
|
|
167
|
-
this.$baseReload();
|
|
168
|
-
} else {
|
|
169
|
-
this.$baseReload({
|
|
170
|
-
updateParam: {
|
|
171
|
-
_dataId: res.objx
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="notifyTemplate">
|
|
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">{{$t1('重置')}}
|
|
11
|
+
</el-button>
|
|
12
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<baseTabs>
|
|
16
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
17
|
+
<template #default>
|
|
18
|
+
<table class="table-detail">
|
|
19
|
+
<tbody>
|
|
20
|
+
<tr>
|
|
21
|
+
<th><em class="f-red">*</em>通知模板编码</th>
|
|
22
|
+
<td>
|
|
23
|
+
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
24
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
|
25
|
+
</el-form-item>
|
|
26
|
+
</td>
|
|
27
|
+
<th>
|
|
28
|
+
<em class="f-red">*</em>
|
|
29
|
+
通知模板名称
|
|
30
|
+
</th>
|
|
31
|
+
<td>
|
|
32
|
+
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
33
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
</td>
|
|
36
|
+
<th>是否启用</th>
|
|
37
|
+
<td>
|
|
38
|
+
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
39
|
+
<el-radio-group v-model="notifyTemplate.enabled">
|
|
40
|
+
<el-radio :label="true">启用</el-radio>
|
|
41
|
+
<el-radio :label="false">禁用</el-radio>
|
|
42
|
+
</el-radio-group>
|
|
43
|
+
</el-form-item>
|
|
44
|
+
</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<th><em class="f-red">*</em>通知内容</th>
|
|
48
|
+
<td colspan="5">
|
|
49
|
+
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
|
50
|
+
<el-input type="textarea" :rows="2" size="small"
|
|
51
|
+
v-model="notifyTemplate.content"
|
|
52
|
+
clearable></el-input>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<th>跳转内容</th>
|
|
58
|
+
<td colspan="5">
|
|
59
|
+
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
|
60
|
+
<el-input type="textarea" :rows="2" size="small"
|
|
61
|
+
v-model="notifyTemplate.jumpContent"
|
|
62
|
+
clearable></el-input>
|
|
63
|
+
</el-form-item>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<th>{{ $t1('备注') }}</th>
|
|
68
|
+
<td colspan="5">
|
|
69
|
+
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
|
70
|
+
clearable></el-input>
|
|
71
|
+
</td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<th>
|
|
75
|
+
脚本(获取通知人)
|
|
76
|
+
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
|
77
|
+
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
|
78
|
+
</th>
|
|
79
|
+
<td colspan="7">
|
|
80
|
+
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
|
81
|
+
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
|
82
|
+
v-if="showCodeEditor"></code-editor>
|
|
83
|
+
</el-form-item>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr>
|
|
87
|
+
<th>{{ $t1('创建人') }}</th>
|
|
88
|
+
<td>{{ notifyTemplate.createBy }}</td>
|
|
89
|
+
<th>{{ $t1('创建时间') }}</th>
|
|
90
|
+
<td>{{ notifyTemplate.createDate }}</td>
|
|
91
|
+
<th>{{ $t1('更新人') }}</th>
|
|
92
|
+
<td>{{ notifyTemplate.modifyBy }}</td>
|
|
93
|
+
<th>{{ $t1('更新时间') }}</th>
|
|
94
|
+
<td>{{ notifyTemplate.modifyDate }}</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</tbody>
|
|
97
|
+
</table>
|
|
98
|
+
</template>
|
|
99
|
+
</baseTabPane>
|
|
100
|
+
</baseTabs>
|
|
101
|
+
</el-form>
|
|
102
|
+
</div>
|
|
103
|
+
</template>
|
|
104
|
+
|
|
105
|
+
<script>
|
|
106
|
+
export default {
|
|
107
|
+
name: 'notify_templateEdit',
|
|
108
|
+
props: {
|
|
109
|
+
_dataId: [String, Number]
|
|
110
|
+
},
|
|
111
|
+
components: {},
|
|
112
|
+
data() {
|
|
113
|
+
return {
|
|
114
|
+
isEdit: false,
|
|
115
|
+
tabIndex: 'first',
|
|
116
|
+
dataId: '',
|
|
117
|
+
notifyTemplate: {
|
|
118
|
+
enabled: true
|
|
119
|
+
},
|
|
120
|
+
showCodeEditor: false
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
created() {
|
|
124
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
125
|
+
},
|
|
126
|
+
mounted() {
|
|
127
|
+
this.getData();
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
getData() {
|
|
131
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
132
|
+
this.isEdit = true;
|
|
133
|
+
this.$commonHttp({
|
|
134
|
+
url: USER_PREFIX + `/notify_template/get`,
|
|
135
|
+
method: `post`,
|
|
136
|
+
data: {
|
|
137
|
+
id: this.dataId
|
|
138
|
+
},
|
|
139
|
+
isLoading: true,
|
|
140
|
+
modalStrictly: true,
|
|
141
|
+
success: res => {
|
|
142
|
+
this.notifyTemplate = res.objx || {};
|
|
143
|
+
this.showCodeEditor = true;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
} else {
|
|
147
|
+
this.showCodeEditor = true;
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
saveData() {
|
|
151
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
152
|
+
if (valid) {
|
|
153
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
154
|
+
var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
|
|
155
|
+
this.$http({
|
|
156
|
+
url: url,
|
|
157
|
+
method: `post`,
|
|
158
|
+
data: this.notifyTemplate,
|
|
159
|
+
isLoading: true,
|
|
160
|
+
success: res => {
|
|
161
|
+
this.$message({
|
|
162
|
+
message: res.content,
|
|
163
|
+
type: 'success',
|
|
164
|
+
duration: 500,
|
|
165
|
+
onClose: t => {
|
|
166
|
+
if (this.isEdit) {
|
|
167
|
+
this.$baseReload();
|
|
168
|
+
} else {
|
|
169
|
+
this.$baseReload({
|
|
170
|
+
updateParam: {
|
|
171
|
+
_dataId: res.objx
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
</script>
|
|
@@ -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">
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<div class="fl">
|
|
15
15
|
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">新增
|
|
16
16
|
</vxe-button>
|
|
17
|
-
<base-table-export :option="{ title: '通知模板导出', targetRef: 'table-m1'}" :parent-target="_self"
|
|
17
|
+
<base-table-export :option="{ title: '通知模板导出', targetRef: 'table-m1'}" :parent-target="_self"/>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="fr">
|
|
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>
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
width: 150
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
title: '是否启用',
|
|
111
|
+
title: this.$t1('是否启用'),
|
|
112
112
|
field: 'enabled',
|
|
113
113
|
width: 150,
|
|
114
114
|
slots: {
|
|
@@ -131,9 +131,9 @@ export default {
|
|
|
131
131
|
},
|
|
132
132
|
{title: '通知内容', field: 'content', width: 150},
|
|
133
133
|
{title: '跳转内容', field: 'jumpContent', width: 150},
|
|
134
|
-
{title: '备注', field: 'remark', width: 150},
|
|
134
|
+
{title: this.$t1('备注'), field: 'remark', width: 150},
|
|
135
135
|
{
|
|
136
|
-
title: '创建时间',
|
|
136
|
+
title: this.$t1('创建时间'),
|
|
137
137
|
field: 'createDate',
|
|
138
138
|
width: 150
|
|
139
139
|
},
|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
this.openEditDialog(row.id);
|
|
154
154
|
}}
|
|
155
155
|
>
|
|
156
|
-
<el-tooltip enterable={false} effect="dark" content=
|
|
156
|
+
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
157
157
|
popper-class="tooltip-skin">
|
|
158
158
|
<i class="el-icon-edit"/>
|
|
159
159
|
</el-tooltip>
|