cloud-web-corejs 1.0.54-dev.396 → 1.0.54-dev.398

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.
@@ -95,6 +95,23 @@
95
95
  </el-radio-group>
96
96
  </el-form-item>
97
97
  </td>
98
+ <th>
99
+ <em class="f-red">*</em>
100
+ {{ $t1("组织编码") }}
101
+ </th>
102
+ <td colspan="5">
103
+ <el-form-item
104
+ prop="paramCompanyCode"
105
+ :rules="[{ required: true, trigger: 'blur' }]"
106
+ >
107
+ <el-input
108
+ type="text"
109
+ autocomplete="off"
110
+ v-model="logicParam.paramCompanyCode"
111
+ clearable
112
+ />
113
+ </el-form-item>
114
+ </td>
98
115
  </tr>
99
116
  <tr>
100
117
  <th>{{ $t1("创建人") }}</th>
@@ -34,7 +34,7 @@ modules = {
34
34
  initEditViewName(){
35
35
  let paramTypeStr = this.paramType ? this.paramType : "";
36
36
  this.editViewName = `editView${paramTypeStr}`;
37
-
37
+
38
38
  },
39
39
  searchEvent() {
40
40
  this.$refs["table-m1"].commitProxy("reload");
@@ -226,6 +226,11 @@ modules = {
226
226
  },
227
227
  },
228
228
  },
229
+ {
230
+ title: this.$t1("组织编码"),
231
+ field: "paramCompanyCode",
232
+ width: 150
233
+ },
229
234
  ];
230
235
 
231
236
  let searchColumns = [
@@ -263,6 +268,12 @@ modules = {
263
268
  ],
264
269
  common: true,
265
270
  },
271
+ {
272
+ title: this.$t1("组织编码"),
273
+ field: "paramCompanyCode",
274
+ type: "input",
275
+ common: true,
276
+ },
266
277
  ];
267
278
 
268
279
  return { columns, searchColumns };
@@ -1,186 +1,232 @@
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>
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
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ @click="$baseReload()"
15
+ icon="el-icon-refresh-right"
16
+ >
17
+ {{ $t1("重置") }}
18
+ </el-button>
19
+ <el-button
20
+ type="primary"
21
+ class="button-sty"
22
+ icon="el-icon-check"
23
+ @click="saveData"
24
+ >{{ $t1("保存") }}
25
+ </el-button>
26
+ </div>
27
+ </div>
28
+ <baseTabs>
29
+ <baseTabPane :label="$t1('基本信息')">
30
+ <template #default>
31
+ <table class="table-detail">
32
+ <tbody>
33
+ <tr>
34
+ <th>
35
+ <em class="f-red">*</em>
36
+ {{ $t1("标题") }}
37
+ </th>
38
+ <td>
39
+ <el-form-item
40
+ prop="title"
41
+ :rules="[{ required: true, trigger: 'blur' }]"
42
+ >
43
+ <el-input
44
+ type="text"
45
+ autocomplete="off"
46
+ v-model="system_notice.title"
47
+ clearable
48
+ />
49
+ </el-form-item>
50
+ </td>
51
+ <th>{{ $t1("副标题") }}</th>
52
+ <td>
53
+ <el-form-item
54
+ prop="secondTitle"
55
+ :rules="[{ required: false, trigger: 'blur' }]"
56
+ >
57
+ <el-input
58
+ type="text"
59
+ autocomplete="off"
60
+ v-model="system_notice.secondTitle"
61
+ clearable
62
+ />
63
+ </el-form-item>
64
+ </td>
65
+ <th>{{ $t1("设置") }}</th>
66
+ <td colspan="3">
67
+ <el-checkbox
68
+ :label="$t1('是否发布')"
69
+ v-model="system_notice.publish"
70
+ ></el-checkbox>
71
+ <el-checkbox
72
+ :label="$t1('是否置顶')"
73
+ v-model="system_notice.top"
74
+ ></el-checkbox>
75
+ <el-checkbox
76
+ :label="$t1('重要')"
77
+ v-model="system_notice.important"
78
+ ></el-checkbox>
79
+ </td>
80
+ </tr>
81
+ <tr>
82
+ <th>{{ $t1("附件") }}</th>
83
+ <td colspan="7">
84
+ <baseUpload
85
+ accept="file"
86
+ multi="true"
87
+ :file.sync="sysNoticeAttachmentDTOs"
88
+ ></baseUpload>
89
+ </td>
90
+ </tr>
91
+ <tr>
92
+ <th>{{ $t1("创建人") }}</th>
93
+ <td>{{ system_notice.createBy }}</td>
94
+ <th>{{ $t1("创建时间") }}</th>
95
+ <td>{{ system_notice.createDate }}</td>
96
+ <th>{{ $t1("更新人") }}</th>
97
+ <td>{{ system_notice.modifyBy }}</td>
98
+ <th>{{ $t1("更新时间") }}</th>
99
+ <td>{{ system_notice.modifyDate }}</td>
100
+ </tr>
101
+ </tbody>
102
+ </table>
103
+ </template>
104
+ </baseTabPane>
105
+ <baseTabPane :label="$t1('内容')">
106
+ <template #default>
107
+ <table class="table-detail" style="width: 100%">
108
+ <tbody>
109
+ <tr>
110
+ <td colspan="=6">
111
+ <tinymce
112
+ v-model="system_notice.content"
113
+ :language="lan"
114
+ :height="300"
115
+ />
116
+ </td>
117
+ </tr>
118
+ </tbody>
119
+ </table>
120
+ </template>
121
+ </baseTabPane>
122
+ </baseTabs>
123
+ </el-form>
124
+ </div>
125
+ </template>
126
+
127
+ <script>
128
+ import Tinymce from "@base/components/Tinymce";
129
+
130
+ export default {
131
+ name: "system_noticeEdit",
132
+ props: ["_dataId"],
133
+ components: {
134
+ Tinymce,
135
+ },
136
+ data() {
137
+ return {
138
+ lan: "zh_CN",
139
+ tabIndex: 0,
140
+ isEdit: false,
141
+ dataId: "",
142
+ system_notice: {
143
+ publish: false,
144
+ top: false,
145
+ important: false,
146
+ },
147
+ sysNoticeAttachmentDTOs: [],
148
+ };
149
+ },
150
+ created() {
151
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
152
+ },
153
+ mounted() {
154
+ this.initAttachfo();
155
+ this.getData();
156
+ },
157
+ methods: {
158
+ getData() {
159
+ if (this.dataId && !isNaN(this.dataId)) {
160
+ this.isEdit = true;
161
+ this.$commonHttp({
162
+ url: USER_PREFIX + `/system_notice/get`,
163
+ method: `post`,
164
+ data: {
165
+ id: this.dataId,
166
+ },
167
+ isLoading: true,
168
+ modalStrictly: true,
169
+ success: (res) => {
170
+ this.system_notice = res.objx || {};
171
+ },
172
+ });
173
+ }
174
+ },
175
+ saveData() {
176
+ this.$refs.editForm.$baseValidate((valid) => {
177
+ if (valid) {
178
+ this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
179
+ var url =
180
+ USER_PREFIX +
181
+ (this.isEdit ? `/system_notice/update` : `/system_notice/save`);
182
+ let formData = this.system_notice;
183
+ formData.sysNoticeAttachmentDTOs = this.sysNoticeAttachmentDTOs || [];
184
+
185
+ this.$http({
186
+ url: url,
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>