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.
- 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/router/modules/system.js +1 -1
- 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 +6 -5
- package/src/views/bd/setting/form_script/edit1.vue +4 -4
- 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 +4 -4
- 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,184 +1,184 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="system_notice">
|
|
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>
|
|
22
|
-
<em class="f-red">*</em>
|
|
23
|
-
标题
|
|
24
|
-
</th>
|
|
25
|
-
<td>
|
|
26
|
-
<el-form-item prop="title" :rules="[{ required: true, trigger: 'blur' }]">
|
|
27
|
-
<el-input type="text" autocomplete="off" v-model="system_notice.title" clearable/>
|
|
28
|
-
</el-form-item>
|
|
29
|
-
</td>
|
|
30
|
-
<th>副标题</th>
|
|
31
|
-
<td>
|
|
32
|
-
<el-form-item prop="secondTitle" :rules="[{ required: false, trigger: 'blur' }]">
|
|
33
|
-
<el-input type="text" autocomplete="off" v-model="system_notice.secondTitle" clearable/>
|
|
34
|
-
</el-form-item>
|
|
35
|
-
</td>
|
|
36
|
-
<th>设置</th>
|
|
37
|
-
<td colspan="3">
|
|
38
|
-
<el-checkbox label="是否发布" v-model="system_notice.publish"></el-checkbox>
|
|
39
|
-
<el-checkbox label="是否置顶" v-model="system_notice.top"></el-checkbox>
|
|
40
|
-
<el-checkbox label="重要" v-model="system_notice.important"></el-checkbox>
|
|
41
|
-
</td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr>
|
|
44
|
-
<th>附件</th>
|
|
45
|
-
<td colspan="7">
|
|
46
|
-
<baseUpload accept="file" multi="true" :file.sync="sysNoticeAttachmentDTOs"></baseUpload>
|
|
47
|
-
</td>
|
|
48
|
-
</tr>
|
|
49
|
-
<tr>
|
|
50
|
-
<th>创建人</th>
|
|
51
|
-
<td>{{ system_notice.createBy }}</td>
|
|
52
|
-
<th>创建时间</th>
|
|
53
|
-
<td>{{ system_notice.createDate }}</td>
|
|
54
|
-
<th>更新人</th>
|
|
55
|
-
<td>{{ system_notice.modifyBy }}</td>
|
|
56
|
-
<th>更新时间</th>
|
|
57
|
-
<td>{{ system_notice.modifyDate }}</td>
|
|
58
|
-
</tr>
|
|
59
|
-
</tbody>
|
|
60
|
-
</table>
|
|
61
|
-
</template>
|
|
62
|
-
</baseTabPane>
|
|
63
|
-
<baseTabPane label="内容">
|
|
64
|
-
<template #default>
|
|
65
|
-
<table class="table-detail" style="width: 100%;">
|
|
66
|
-
<tbody>
|
|
67
|
-
<tr>
|
|
68
|
-
<td colspan="=6">
|
|
69
|
-
<tinymce v-model="system_notice.content" :language="lan" :height="300"/>
|
|
70
|
-
</td>
|
|
71
|
-
</tr>
|
|
72
|
-
</tbody>
|
|
73
|
-
</table>
|
|
74
|
-
</template>
|
|
75
|
-
</baseTabPane>
|
|
76
|
-
</baseTabs>
|
|
77
|
-
</el-form>
|
|
78
|
-
</div>
|
|
79
|
-
</template>
|
|
80
|
-
|
|
81
|
-
<script>
|
|
82
|
-
import Tinymce from '@base/components/Tinymce';
|
|
83
|
-
|
|
84
|
-
export default {
|
|
85
|
-
name: 'system_noticeEdit',
|
|
86
|
-
props: ['_dataId'],
|
|
87
|
-
components: {
|
|
88
|
-
Tinymce
|
|
89
|
-
},
|
|
90
|
-
data() {
|
|
91
|
-
return {
|
|
92
|
-
lan: 'zh_CN',
|
|
93
|
-
tabIndex: 0,
|
|
94
|
-
isEdit: false,
|
|
95
|
-
dataId: '',
|
|
96
|
-
system_notice: {
|
|
97
|
-
publish: false,
|
|
98
|
-
top: false,
|
|
99
|
-
important: false
|
|
100
|
-
},
|
|
101
|
-
sysNoticeAttachmentDTOs: []
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
created() {
|
|
105
|
-
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
106
|
-
},
|
|
107
|
-
mounted() {
|
|
108
|
-
this.initAttachfo();
|
|
109
|
-
this.getData();
|
|
110
|
-
},
|
|
111
|
-
methods: {
|
|
112
|
-
getData() {
|
|
113
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
114
|
-
this.isEdit = true;
|
|
115
|
-
this.$commonHttp({
|
|
116
|
-
url: USER_PREFIX + `/system_notice/get`,
|
|
117
|
-
method: `post`,
|
|
118
|
-
data: {
|
|
119
|
-
id: this.dataId
|
|
120
|
-
},
|
|
121
|
-
isLoading: true,
|
|
122
|
-
modalStrictly: true,
|
|
123
|
-
success: res => {
|
|
124
|
-
this.system_notice = res.objx || {};
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
saveData() {
|
|
130
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
131
|
-
if (valid) {
|
|
132
|
-
this.$baseConfirm('您确定要保存吗?').then(() => {
|
|
133
|
-
var url = USER_PREFIX + (this.isEdit ? `/system_notice/update` : `/system_notice/save`);
|
|
134
|
-
let formData = this.system_notice;
|
|
135
|
-
formData.sysNoticeAttachmentDTOs = this.sysNoticeAttachmentDTOs || [];
|
|
136
|
-
|
|
137
|
-
this.$http({
|
|
138
|
-
url: url,
|
|
139
|
-
method: `post`,
|
|
140
|
-
data: formData,
|
|
141
|
-
isLoading: true,
|
|
142
|
-
success: res => {
|
|
143
|
-
this.$message({
|
|
144
|
-
message: res.content,
|
|
145
|
-
type: 'success',
|
|
146
|
-
duration: 500,
|
|
147
|
-
onClose: t => {
|
|
148
|
-
if (this.isEdit) {
|
|
149
|
-
this.$baseReload();
|
|
150
|
-
} else {
|
|
151
|
-
this.$baseReload({
|
|
152
|
-
updateParam: {
|
|
153
|
-
_dataId: res.objx
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
initAttachfo() {
|
|
166
|
-
//初始化附件信息
|
|
167
|
-
if (this.dataId) {
|
|
168
|
-
this.$http({
|
|
169
|
-
url: USER_PREFIX + '/system_notice/getAttachments',
|
|
170
|
-
method: `post`,
|
|
171
|
-
data: {id: this.dataId},
|
|
172
|
-
isLoading: true,
|
|
173
|
-
modalStrictly: true,
|
|
174
|
-
success: res => {
|
|
175
|
-
this.sysNoticeAttachmentDTOs = res.objx || [];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
</script>
|
|
183
|
-
|
|
184
|
-
<style></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="system_notice">
|
|
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>
|
|
22
|
+
<em class="f-red">*</em>
|
|
23
|
+
标题
|
|
24
|
+
</th>
|
|
25
|
+
<td>
|
|
26
|
+
<el-form-item prop="title" :rules="[{ required: true, trigger: 'blur' }]">
|
|
27
|
+
<el-input type="text" autocomplete="off" v-model="system_notice.title" clearable/>
|
|
28
|
+
</el-form-item>
|
|
29
|
+
</td>
|
|
30
|
+
<th>副标题</th>
|
|
31
|
+
<td>
|
|
32
|
+
<el-form-item prop="secondTitle" :rules="[{ required: false, trigger: 'blur' }]">
|
|
33
|
+
<el-input type="text" autocomplete="off" v-model="system_notice.secondTitle" clearable/>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
</td>
|
|
36
|
+
<th>设置</th>
|
|
37
|
+
<td colspan="3">
|
|
38
|
+
<el-checkbox label="是否发布" v-model="system_notice.publish"></el-checkbox>
|
|
39
|
+
<el-checkbox label="是否置顶" v-model="system_notice.top"></el-checkbox>
|
|
40
|
+
<el-checkbox label="重要" v-model="system_notice.important"></el-checkbox>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>附件</th>
|
|
45
|
+
<td colspan="7">
|
|
46
|
+
<baseUpload accept="file" multi="true" :file.sync="sysNoticeAttachmentDTOs"></baseUpload>
|
|
47
|
+
</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<th>创建人</th>
|
|
51
|
+
<td>{{ system_notice.createBy }}</td>
|
|
52
|
+
<th>创建时间</th>
|
|
53
|
+
<td>{{ system_notice.createDate }}</td>
|
|
54
|
+
<th>更新人</th>
|
|
55
|
+
<td>{{ system_notice.modifyBy }}</td>
|
|
56
|
+
<th>更新时间</th>
|
|
57
|
+
<td>{{ system_notice.modifyDate }}</td>
|
|
58
|
+
</tr>
|
|
59
|
+
</tbody>
|
|
60
|
+
</table>
|
|
61
|
+
</template>
|
|
62
|
+
</baseTabPane>
|
|
63
|
+
<baseTabPane label="内容">
|
|
64
|
+
<template #default>
|
|
65
|
+
<table class="table-detail" style="width: 100%;">
|
|
66
|
+
<tbody>
|
|
67
|
+
<tr>
|
|
68
|
+
<td colspan="=6">
|
|
69
|
+
<tinymce v-model="system_notice.content" :language="lan" :height="300"/>
|
|
70
|
+
</td>
|
|
71
|
+
</tr>
|
|
72
|
+
</tbody>
|
|
73
|
+
</table>
|
|
74
|
+
</template>
|
|
75
|
+
</baseTabPane>
|
|
76
|
+
</baseTabs>
|
|
77
|
+
</el-form>
|
|
78
|
+
</div>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<script>
|
|
82
|
+
import Tinymce from '@base/components/Tinymce';
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
name: 'system_noticeEdit',
|
|
86
|
+
props: ['_dataId'],
|
|
87
|
+
components: {
|
|
88
|
+
Tinymce
|
|
89
|
+
},
|
|
90
|
+
data() {
|
|
91
|
+
return {
|
|
92
|
+
lan: 'zh_CN',
|
|
93
|
+
tabIndex: 0,
|
|
94
|
+
isEdit: false,
|
|
95
|
+
dataId: '',
|
|
96
|
+
system_notice: {
|
|
97
|
+
publish: false,
|
|
98
|
+
top: false,
|
|
99
|
+
important: false
|
|
100
|
+
},
|
|
101
|
+
sysNoticeAttachmentDTOs: []
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
created() {
|
|
105
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
106
|
+
},
|
|
107
|
+
mounted() {
|
|
108
|
+
this.initAttachfo();
|
|
109
|
+
this.getData();
|
|
110
|
+
},
|
|
111
|
+
methods: {
|
|
112
|
+
getData() {
|
|
113
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
114
|
+
this.isEdit = true;
|
|
115
|
+
this.$commonHttp({
|
|
116
|
+
url: USER_PREFIX + `/system_notice/get`,
|
|
117
|
+
method: `post`,
|
|
118
|
+
data: {
|
|
119
|
+
id: this.dataId
|
|
120
|
+
},
|
|
121
|
+
isLoading: true,
|
|
122
|
+
modalStrictly: true,
|
|
123
|
+
success: res => {
|
|
124
|
+
this.system_notice = res.objx || {};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
saveData() {
|
|
130
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
131
|
+
if (valid) {
|
|
132
|
+
this.$baseConfirm('您确定要保存吗?').then(() => {
|
|
133
|
+
var url = USER_PREFIX + (this.isEdit ? `/system_notice/update` : `/system_notice/save`);
|
|
134
|
+
let formData = this.system_notice;
|
|
135
|
+
formData.sysNoticeAttachmentDTOs = this.sysNoticeAttachmentDTOs || [];
|
|
136
|
+
|
|
137
|
+
this.$http({
|
|
138
|
+
url: url,
|
|
139
|
+
method: `post`,
|
|
140
|
+
data: formData,
|
|
141
|
+
isLoading: true,
|
|
142
|
+
success: res => {
|
|
143
|
+
this.$message({
|
|
144
|
+
message: res.content,
|
|
145
|
+
type: 'success',
|
|
146
|
+
duration: 500,
|
|
147
|
+
onClose: t => {
|
|
148
|
+
if (this.isEdit) {
|
|
149
|
+
this.$baseReload();
|
|
150
|
+
} else {
|
|
151
|
+
this.$baseReload({
|
|
152
|
+
updateParam: {
|
|
153
|
+
_dataId: res.objx
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
initAttachfo() {
|
|
166
|
+
//初始化附件信息
|
|
167
|
+
if (this.dataId) {
|
|
168
|
+
this.$http({
|
|
169
|
+
url: USER_PREFIX + '/system_notice/getAttachments',
|
|
170
|
+
method: `post`,
|
|
171
|
+
data: {id: this.dataId},
|
|
172
|
+
isLoading: true,
|
|
173
|
+
modalStrictly: true,
|
|
174
|
+
success: res => {
|
|
175
|
+
this.sysNoticeAttachmentDTOs = res.objx || [];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
</script>
|
|
183
|
+
|
|
184
|
+
<style></style>
|