cloud-web-corejs-haier 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.
- package/package.json +1 -1
- package/src/components/VabUpload/index.js +48 -1
- package/src/components/VabUpload/mixins.js +1821 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1063 -1
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/index.vue +53 -53
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +309 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +51 -136
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +44 -1
- package/src/components/errorMsg/index.vue +3 -3
- package/src/components/errorMsg/mixins.js +96 -1
- package/src/components/excelExport/button.vue +1 -1
- package/src/components/excelExport/index.js +43 -1
- package/src/components/excelExport/mixins.js +964 -1
- package/src/components/excelImport/index.js +74 -13
- package/src/components/excelImport/mixins.js +774 -1
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +202 -350
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +26 -33
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +106 -250
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +4 -64
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +4 -3
- package/src/components/formOplog/mixins.js +77 -1
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +332 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +484 -1
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/obsUpload/index.js +34 -1
- package/src/components/obsUpload/mixins.js +1469 -1
- package/src/components/onlineTalk/index.vue +5 -327
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/oplogTable/mixins.js +83 -4
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +2 -29
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +2 -2
- package/src/components/table/vxeFilter/index.js +153 -1
- package/src/components/table/vxeFilter/mixin.js +1 -4
- package/src/components/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +92 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +71 -0
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
- package/src/components/xform/form-render/indexMixin.js +2 -3501
- package/src/components/xform/form-render/refMixin.js +3 -3
- package/src/components/xform/mixins/defaultHandle.js +340 -2
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/format.js +12 -6
- package/src/components/xform/utils/util.js +1464 -1
- package/src/components/xform/utils/validators.js +134 -1
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/index.js +2 -2
- package/src/router/modules/customer.js +3 -3
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +40 -41
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +11 -1
- package/src/store/modules/user.js +23 -1
- package/src/utils/aes.js +1 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/global.js +362 -1
- package/src/utils/index.js +579 -1
- package/src/utils/keepAlive.js +181 -1
- package/src/utils/pddLog.js +17 -28
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/utils/validate.js +106 -1
- package/src/utils/wf.js +749 -4
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +84 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +113 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/form_script/mixins/form_list.js +283 -1
- package/src/views/bd/setting/form_script/mixins/list2.js +10 -1
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +34 -1
- package/src/views/bd/setting/form_template/mixins/dialog.js +103 -1
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +92 -1
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +91 -1
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +104 -1
- package/src/views/bd/setting/form_template/mixins/itemList.js +234 -1
- package/src/views/bd/setting/form_template/mixins/list2.js +411 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +423 -1
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/logic_param/mixins/edit.js +91 -1
- package/src/views/bd/setting/logic_param/mixins/list.js +368 -1
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +139 -1
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/table_model/mixins/dialog.js +71 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +108 -1
- package/src/views/bd/setting/utils/index.js +60 -1
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/list.vue +224 -224
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/form_template/itemList.vue +221 -221
- package/src/views/user/form/form_template/list.vue +512 -512
- package/src/views/user/form/form_type/list.vue +142 -142
- package/src/views/user/form/report_requestaccess/list.vue +198 -198
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/wf_obj_config/list.vue +753 -753
- package/src/views/user/wf/wf_obj_config/list_form.vue +373 -373
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +0 -11028
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +0 -200
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +0 -1639
- package/src/components/xform/form-render/indexMixin copy.js +0 -3462
|
@@ -1,192 +1,192 @@
|
|
|
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
|
-
</div>
|
|
21
|
-
<div class="fr">
|
|
22
|
-
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
23
|
-
plain>{{ $t1('重置') }}
|
|
24
|
-
</vxe-button>
|
|
25
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
26
|
-
{{ $t1('搜索') }}
|
|
27
|
-
</vxe-button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
31
|
-
@submit="searchEvent" @reset="searchEvent">
|
|
32
|
-
<vxe-form-item :title="$t1('通知模板编码')+':'" field="ntCode">
|
|
33
|
-
<template v-slot>
|
|
34
|
-
<el-input v-model="formData.notifyType" size="small" clearable/>
|
|
35
|
-
</template>
|
|
36
|
-
</vxe-form-item>
|
|
37
|
-
<vxe-form-item :title="$t1('通知模板名称')+':'" field="ntName">
|
|
38
|
-
<template v-slot>
|
|
39
|
-
<el-input v-model="formData.ntName" size="small" clearable/>
|
|
40
|
-
</template>
|
|
41
|
-
</vxe-form-item>
|
|
42
|
-
<vxe-form-item :title="$t1('是否启用')+':'">
|
|
43
|
-
<template v-slot>
|
|
44
|
-
<el-select v-model="formData.enabled" clearable>
|
|
45
|
-
<el-option :value="true" :label="$t1('启用')"></el-option>
|
|
46
|
-
<el-option :value="false" :label="$t1('禁用')"></el-option>
|
|
47
|
-
</el-select>
|
|
48
|
-
</template>
|
|
49
|
-
</vxe-form-item>
|
|
50
|
-
</vxe-form>
|
|
51
|
-
</template>
|
|
52
|
-
</vxe-grid>
|
|
53
|
-
</div>
|
|
54
|
-
</el-tab-pane>
|
|
55
|
-
</el-tabs>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script>
|
|
60
|
-
import editView from './edit.vue';
|
|
61
|
-
|
|
62
|
-
export default {
|
|
63
|
-
name: 'notify_template:list',
|
|
64
|
-
components: {editView},
|
|
65
|
-
data() {
|
|
66
|
-
return {
|
|
67
|
-
activeName: 'second',
|
|
68
|
-
dataId: 0,
|
|
69
|
-
showEdit: false,
|
|
70
|
-
vxeOption: {},
|
|
71
|
-
formData: {}
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
mounted() {
|
|
75
|
-
this.initTableList();
|
|
76
|
-
},
|
|
77
|
-
methods: {
|
|
78
|
-
searchEvent() {
|
|
79
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
80
|
-
},
|
|
81
|
-
resetEvent() {
|
|
82
|
-
this.formData = {};
|
|
83
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
84
|
-
},
|
|
85
|
-
openEditDialog(id) {
|
|
86
|
-
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
87
|
-
this.activeName = 'first';
|
|
88
|
-
this.$openEditView('showEdit');
|
|
89
|
-
},
|
|
90
|
-
initTableList() {
|
|
91
|
-
let that = this;
|
|
92
|
-
let tableOption = {
|
|
93
|
-
vue: this,
|
|
94
|
-
tableRef: 'table-m1',
|
|
95
|
-
tableName: 'basic_notifyTemplate_list-m1',
|
|
96
|
-
path: USER_PREFIX + '/notify_template/listPage',
|
|
97
|
-
param: () => {
|
|
98
|
-
return {
|
|
99
|
-
...this.formData,
|
|
100
|
-
ntType: 0
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
columns: [
|
|
104
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
105
|
-
{
|
|
106
|
-
title: this.$t1('通知模板编码'),
|
|
107
|
-
field: 'notifyType',
|
|
108
|
-
width: 250,
|
|
109
|
-
fixed: 'left'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: this.$t1('通知模板名称'),
|
|
113
|
-
field: 'ntName',
|
|
114
|
-
width: 150
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
title: this.$t1('是否启用'),
|
|
118
|
-
field: 'enabled',
|
|
119
|
-
width: 150,
|
|
120
|
-
slots: {
|
|
121
|
-
default: ({row}) => {
|
|
122
|
-
if (row.enabled) {
|
|
123
|
-
return [
|
|
124
|
-
<div class="txt-status">
|
|
125
|
-
<span>{this.$t1('启用')}</span>
|
|
126
|
-
</div>
|
|
127
|
-
];
|
|
128
|
-
} else {
|
|
129
|
-
return [
|
|
130
|
-
<div class="txt-status disable">
|
|
131
|
-
<span>{this.$t1('禁用')}</span>
|
|
132
|
-
</div>
|
|
133
|
-
];
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{title: this.$t1('通知内容'), field: 'content', width: 150},
|
|
139
|
-
{title: this.$t1('跳转内容'), field: 'jumpContent', width: 150},
|
|
140
|
-
{title: this.$t1('备注'), field: 'remark', width: 150},
|
|
141
|
-
{
|
|
142
|
-
title: this.$t1('创建时间'),
|
|
143
|
-
field: 'createDate',
|
|
144
|
-
width: 150
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
width: 47,
|
|
148
|
-
fixed: 'right',
|
|
149
|
-
title: '',
|
|
150
|
-
sortable: false,
|
|
151
|
-
slots: {
|
|
152
|
-
default: ({row}) => {
|
|
153
|
-
return [
|
|
154
|
-
<div>
|
|
155
|
-
<a
|
|
156
|
-
href="javascript:void(0);"
|
|
157
|
-
class="a-link"
|
|
158
|
-
onclick={() => {
|
|
159
|
-
this.openEditDialog(row.id);
|
|
160
|
-
}}
|
|
161
|
-
>
|
|
162
|
-
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
163
|
-
popper-class="tooltip-skin">
|
|
164
|
-
<i class="el-icon-edit"/>
|
|
165
|
-
</el-tooltip>
|
|
166
|
-
</a>
|
|
167
|
-
</div>
|
|
168
|
-
];
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
};
|
|
174
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
175
|
-
this.vxeOption = opts;
|
|
176
|
-
});
|
|
177
|
-
},
|
|
178
|
-
importExcel() {
|
|
179
|
-
let that = this;
|
|
180
|
-
that.$excelImport({
|
|
181
|
-
prefix: USER_PREFIX,
|
|
182
|
-
excel: USER_PREFIX + '/excelTemplate/notify_template/notifyTemplate.xlsx',
|
|
183
|
-
multi: false,
|
|
184
|
-
saveUrl: USER_PREFIX + '/notify_template/save',
|
|
185
|
-
callback: () => {
|
|
186
|
-
that.searchEvent();
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
</script>
|
|
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
|
+
</div>
|
|
21
|
+
<div class="fr">
|
|
22
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
23
|
+
plain>{{ $t1('重置') }}
|
|
24
|
+
</vxe-button>
|
|
25
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
26
|
+
{{ $t1('搜索') }}
|
|
27
|
+
</vxe-button>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
31
|
+
@submit="searchEvent" @reset="searchEvent">
|
|
32
|
+
<vxe-form-item :title="$t1('通知模板编码')+':'" field="ntCode">
|
|
33
|
+
<template v-slot>
|
|
34
|
+
<el-input v-model="formData.notifyType" size="small" clearable/>
|
|
35
|
+
</template>
|
|
36
|
+
</vxe-form-item>
|
|
37
|
+
<vxe-form-item :title="$t1('通知模板名称')+':'" field="ntName">
|
|
38
|
+
<template v-slot>
|
|
39
|
+
<el-input v-model="formData.ntName" size="small" clearable/>
|
|
40
|
+
</template>
|
|
41
|
+
</vxe-form-item>
|
|
42
|
+
<vxe-form-item :title="$t1('是否启用')+':'">
|
|
43
|
+
<template v-slot>
|
|
44
|
+
<el-select v-model="formData.enabled" clearable>
|
|
45
|
+
<el-option :value="true" :label="$t1('启用')"></el-option>
|
|
46
|
+
<el-option :value="false" :label="$t1('禁用')"></el-option>
|
|
47
|
+
</el-select>
|
|
48
|
+
</template>
|
|
49
|
+
</vxe-form-item>
|
|
50
|
+
</vxe-form>
|
|
51
|
+
</template>
|
|
52
|
+
</vxe-grid>
|
|
53
|
+
</div>
|
|
54
|
+
</el-tab-pane>
|
|
55
|
+
</el-tabs>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
import editView from './edit.vue';
|
|
61
|
+
|
|
62
|
+
export default {
|
|
63
|
+
name: 'notify_template:list',
|
|
64
|
+
components: {editView},
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
activeName: 'second',
|
|
68
|
+
dataId: 0,
|
|
69
|
+
showEdit: false,
|
|
70
|
+
vxeOption: {},
|
|
71
|
+
formData: {}
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
mounted() {
|
|
75
|
+
this.initTableList();
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
searchEvent() {
|
|
79
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
80
|
+
},
|
|
81
|
+
resetEvent() {
|
|
82
|
+
this.formData = {};
|
|
83
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
84
|
+
},
|
|
85
|
+
openEditDialog(id) {
|
|
86
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
87
|
+
this.activeName = 'first';
|
|
88
|
+
this.$openEditView('showEdit');
|
|
89
|
+
},
|
|
90
|
+
initTableList() {
|
|
91
|
+
let that = this;
|
|
92
|
+
let tableOption = {
|
|
93
|
+
vue: this,
|
|
94
|
+
tableRef: 'table-m1',
|
|
95
|
+
tableName: 'basic_notifyTemplate_list-m1',
|
|
96
|
+
path: USER_PREFIX + '/notify_template/listPage',
|
|
97
|
+
param: () => {
|
|
98
|
+
return {
|
|
99
|
+
...this.formData,
|
|
100
|
+
ntType: 0
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
columns: [
|
|
104
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
105
|
+
{
|
|
106
|
+
title: this.$t1('通知模板编码'),
|
|
107
|
+
field: 'notifyType',
|
|
108
|
+
width: 250,
|
|
109
|
+
fixed: 'left'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: this.$t1('通知模板名称'),
|
|
113
|
+
field: 'ntName',
|
|
114
|
+
width: 150
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: this.$t1('是否启用'),
|
|
118
|
+
field: 'enabled',
|
|
119
|
+
width: 150,
|
|
120
|
+
slots: {
|
|
121
|
+
default: ({row}) => {
|
|
122
|
+
if (row.enabled) {
|
|
123
|
+
return [
|
|
124
|
+
<div class="txt-status">
|
|
125
|
+
<span>{this.$t1('启用')}</span>
|
|
126
|
+
</div>
|
|
127
|
+
];
|
|
128
|
+
} else {
|
|
129
|
+
return [
|
|
130
|
+
<div class="txt-status disable">
|
|
131
|
+
<span>{this.$t1('禁用')}</span>
|
|
132
|
+
</div>
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{title: this.$t1('通知内容'), field: 'content', width: 150},
|
|
139
|
+
{title: this.$t1('跳转内容'), field: 'jumpContent', width: 150},
|
|
140
|
+
{title: this.$t1('备注'), field: 'remark', width: 150},
|
|
141
|
+
{
|
|
142
|
+
title: this.$t1('创建时间'),
|
|
143
|
+
field: 'createDate',
|
|
144
|
+
width: 150
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
width: 47,
|
|
148
|
+
fixed: 'right',
|
|
149
|
+
title: '',
|
|
150
|
+
sortable: false,
|
|
151
|
+
slots: {
|
|
152
|
+
default: ({row}) => {
|
|
153
|
+
return [
|
|
154
|
+
<div>
|
|
155
|
+
<a
|
|
156
|
+
href="javascript:void(0);"
|
|
157
|
+
class="a-link"
|
|
158
|
+
onclick={() => {
|
|
159
|
+
this.openEditDialog(row.id);
|
|
160
|
+
}}
|
|
161
|
+
>
|
|
162
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
163
|
+
popper-class="tooltip-skin">
|
|
164
|
+
<i class="el-icon-edit"/>
|
|
165
|
+
</el-tooltip>
|
|
166
|
+
</a>
|
|
167
|
+
</div>
|
|
168
|
+
];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
};
|
|
174
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
175
|
+
this.vxeOption = opts;
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
importExcel() {
|
|
179
|
+
let that = this;
|
|
180
|
+
that.$excelImport({
|
|
181
|
+
prefix: USER_PREFIX,
|
|
182
|
+
excel: USER_PREFIX + '/excelTemplate/notify_template/notifyTemplate.xlsx',
|
|
183
|
+
multi: false,
|
|
184
|
+
saveUrl: USER_PREFIX + '/notify_template/save',
|
|
185
|
+
callback: () => {
|
|
186
|
+
that.searchEvent();
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
</script>
|