cloud-web-corejs 1.0.54-dev.510 → 1.0.54-dev.511
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/image-viewer.vue +2 -2
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +6 -1
- package/src/components/xform/form-designer/designer.js +1 -1655
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1751
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1626
- package/src/components/xform/form-render/indexMixin.js +1 -3444
- package/src/components/xform/mixins/defaultHandle.js +1 -334
- package/src/components/xform/mixins/scriptHttp.js +1 -172
- package/src/components/xform/utils/util.js +1 -1464
- package/src/utils/index.js +1 -6
- package/src/utils/vab.js +1 -1
- package/src/views/user/position/edit.vue +83 -116
- package/src/views/user/position/list.vue +84 -116
- package/src/views/user/system_notice/edit.vue +186 -232
|
@@ -1,232 +1,186 @@
|
|
|
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(
|
|
8
|
-
</div>
|
|
9
|
-
<div class="fr">
|
|
10
|
-
<el-button
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
method: `post`,
|
|
188
|
-
data: formData,
|
|
189
|
-
isLoading: true,
|
|
190
|
-
success: (res) => {
|
|
191
|
-
this.$message({
|
|
192
|
-
message: res.content,
|
|
193
|
-
type: "success",
|
|
194
|
-
duration: 500,
|
|
195
|
-
onClose: (t) => {
|
|
196
|
-
if (this.isEdit) {
|
|
197
|
-
this.$baseReload();
|
|
198
|
-
} else {
|
|
199
|
-
this.$baseReload({
|
|
200
|
-
updateParam: {
|
|
201
|
-
_dataId: res.objx,
|
|
202
|
-
},
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
});
|
|
207
|
-
},
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
},
|
|
213
|
-
initAttachfo() {
|
|
214
|
-
//初始化附件信息
|
|
215
|
-
if (this.dataId) {
|
|
216
|
-
this.$http({
|
|
217
|
-
url: USER_PREFIX + "/system_notice/getAttachments",
|
|
218
|
-
method: `post`,
|
|
219
|
-
data: { id: this.dataId },
|
|
220
|
-
isLoading: true,
|
|
221
|
-
modalStrictly: true,
|
|
222
|
-
success: (res) => {
|
|
223
|
-
this.sysNoticeAttachmentDTOs = res.objx || [];
|
|
224
|
-
},
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
};
|
|
230
|
-
</script>
|
|
231
|
-
|
|
232
|
-
<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">
|
|
11
|
+
{{ $t1('重置') }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<baseTabs>
|
|
18
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
19
|
+
<template #default>
|
|
20
|
+
<table class="table-detail">
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<th>
|
|
24
|
+
<em class="f-red">*</em>
|
|
25
|
+
{{ $t1('标题') }}
|
|
26
|
+
</th>
|
|
27
|
+
<td>
|
|
28
|
+
<el-form-item prop="title" :rules="[{ required: true, trigger: 'blur' }]">
|
|
29
|
+
<el-input type="text" autocomplete="off" v-model="system_notice.title" clearable/>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
</td>
|
|
32
|
+
<th>{{ $t1('副标题') }}</th>
|
|
33
|
+
<td>
|
|
34
|
+
<el-form-item prop="secondTitle" :rules="[{ required: false, trigger: 'blur' }]">
|
|
35
|
+
<el-input type="text" autocomplete="off" v-model="system_notice.secondTitle" clearable/>
|
|
36
|
+
</el-form-item>
|
|
37
|
+
</td>
|
|
38
|
+
<th>{{ $t1('设置') }}</th>
|
|
39
|
+
<td colspan="3">
|
|
40
|
+
<el-checkbox :label="$t1('是否发布')" v-model="system_notice.publish"></el-checkbox>
|
|
41
|
+
<el-checkbox :label="$t1('是否置顶')" v-model="system_notice.top"></el-checkbox>
|
|
42
|
+
<el-checkbox :label="$t1('重要')" v-model="system_notice.important"></el-checkbox>
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<th>{{ $t1('附件') }}</th>
|
|
47
|
+
<td colspan="7">
|
|
48
|
+
<baseUpload accept="file" multi="true" :file.sync="sysNoticeAttachmentDTOs"></baseUpload>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<th>{{ $t1('创建人') }}</th>
|
|
53
|
+
<td>{{ system_notice.createBy }}</td>
|
|
54
|
+
<th>{{ $t1('创建时间') }}</th>
|
|
55
|
+
<td>{{ system_notice.createDate }}</td>
|
|
56
|
+
<th>{{ $t1('更新人') }}</th>
|
|
57
|
+
<td>{{ system_notice.modifyBy }}</td>
|
|
58
|
+
<th>{{ $t1('更新时间') }}</th>
|
|
59
|
+
<td>{{ system_notice.modifyDate }}</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</tbody>
|
|
62
|
+
</table>
|
|
63
|
+
</template>
|
|
64
|
+
</baseTabPane>
|
|
65
|
+
<baseTabPane :label="$t1('内容')">
|
|
66
|
+
<template #default>
|
|
67
|
+
<table class="table-detail" style="width: 100%;">
|
|
68
|
+
<tbody>
|
|
69
|
+
<tr>
|
|
70
|
+
<td colspan="=6">
|
|
71
|
+
<tinymce v-model="system_notice.content" :language="lan" :height="300"/>
|
|
72
|
+
</td>
|
|
73
|
+
</tr>
|
|
74
|
+
</tbody>
|
|
75
|
+
</table>
|
|
76
|
+
</template>
|
|
77
|
+
</baseTabPane>
|
|
78
|
+
</baseTabs>
|
|
79
|
+
</el-form>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script>
|
|
84
|
+
import Tinymce from '@base/components/Tinymce';
|
|
85
|
+
|
|
86
|
+
export default {
|
|
87
|
+
name: 'system_noticeEdit',
|
|
88
|
+
props: ['_dataId'],
|
|
89
|
+
components: {
|
|
90
|
+
Tinymce
|
|
91
|
+
},
|
|
92
|
+
data() {
|
|
93
|
+
return {
|
|
94
|
+
lan: 'zh_CN',
|
|
95
|
+
tabIndex: 0,
|
|
96
|
+
isEdit: false,
|
|
97
|
+
dataId: '',
|
|
98
|
+
system_notice: {
|
|
99
|
+
publish: false,
|
|
100
|
+
top: false,
|
|
101
|
+
important: false
|
|
102
|
+
},
|
|
103
|
+
sysNoticeAttachmentDTOs: []
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
created() {
|
|
107
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
108
|
+
},
|
|
109
|
+
mounted() {
|
|
110
|
+
this.initAttachfo();
|
|
111
|
+
this.getData();
|
|
112
|
+
},
|
|
113
|
+
methods: {
|
|
114
|
+
getData() {
|
|
115
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
116
|
+
this.isEdit = true;
|
|
117
|
+
this.$commonHttp({
|
|
118
|
+
url: USER_PREFIX + `/system_notice/get`,
|
|
119
|
+
method: `post`,
|
|
120
|
+
data: {
|
|
121
|
+
id: this.dataId
|
|
122
|
+
},
|
|
123
|
+
isLoading: true,
|
|
124
|
+
modalStrictly: true,
|
|
125
|
+
success: res => {
|
|
126
|
+
this.system_notice = res.objx || {};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
saveData() {
|
|
132
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
133
|
+
if (valid) {
|
|
134
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
135
|
+
var url = USER_PREFIX + (this.isEdit ? `/system_notice/update` : `/system_notice/save`);
|
|
136
|
+
let formData = this.system_notice;
|
|
137
|
+
formData.sysNoticeAttachmentDTOs = this.sysNoticeAttachmentDTOs || [];
|
|
138
|
+
|
|
139
|
+
this.$http({
|
|
140
|
+
url: url,
|
|
141
|
+
method: `post`,
|
|
142
|
+
data: formData,
|
|
143
|
+
isLoading: true,
|
|
144
|
+
success: res => {
|
|
145
|
+
this.$message({
|
|
146
|
+
message: res.content,
|
|
147
|
+
type: 'success',
|
|
148
|
+
duration: 500,
|
|
149
|
+
onClose: t => {
|
|
150
|
+
if (this.isEdit) {
|
|
151
|
+
this.$baseReload();
|
|
152
|
+
} else {
|
|
153
|
+
this.$baseReload({
|
|
154
|
+
updateParam: {
|
|
155
|
+
_dataId: res.objx
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
initAttachfo() {
|
|
168
|
+
//初始化附件信息
|
|
169
|
+
if (this.dataId) {
|
|
170
|
+
this.$http({
|
|
171
|
+
url: USER_PREFIX + '/system_notice/getAttachments',
|
|
172
|
+
method: `post`,
|
|
173
|
+
data: {id: this.dataId},
|
|
174
|
+
isLoading: true,
|
|
175
|
+
modalStrictly: true,
|
|
176
|
+
success: res => {
|
|
177
|
+
this.sysNoticeAttachmentDTOs = res.objx || [];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
</script>
|
|
185
|
+
|
|
186
|
+
<style></style>
|