cloud-web-corejs 1.0.42 → 1.0.44-dev.1
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/jsonImport/index.vue +1 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +146 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +277 -33
- package/src/views/bd/setting/form_script/edit1.vue +5 -1
- package/src/views/bd/setting/form_script/form_list.vue +2 -2
- package/src/views/bd/setting/form_script/list1.vue +2 -2
- package/src/views/bd/setting/form_script/mixins/dialog.js +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit1.js +2 -2
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +1 -1
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +3 -0
- package/src/views/bd/setting/form_script/preformDialog.vue +69 -0
- package/src/views/bd/setting/form_template/edit.vue +2 -0
- package/src/views/bd/setting/form_template/list.vue +2 -2
- package/src/views/bd/setting/form_template/mixins/dialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +1 -1
- package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +1 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +12 -1
- package/src/views/bd/setting/table_model/list.vue +2 -2
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1 -1
- package/src/views/bd/setting/table_model/mixins/list.js +1 -1
- package/src/views/user/access_log/edit.vue +115 -122
- package/src/views/user/access_log/list.vue +346 -346
- package/src/views/user/access_log/list2.vue +349 -0
- package/src/views/user/extend_datasource/list.vue +1 -1
- package/src/views/user/groups/edit.vue +0 -4
- package/src/views/user/groups/list.vue +0 -10
- package/src/views/user/ea/eagroup/eaobj_list.vue +0 -344
- package/src/views/user/ea/eagroup/edit.vue +0 -508
- package/src/views/user/ea/eaobj/edit.vue +0 -161
- package/src/views/user/ea/eaobj/list.vue +0 -156
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="eagroup">
|
|
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="fl tips_1" style="margin: 6px 34px">
|
|
10
|
-
<span>{{ $t1('注:新增或更新字段信息后,请务必点击') }}</span>
|
|
11
|
-
<el-button type="primary" plain class="button-sty" v-if="dataId != null" @click="createTable"
|
|
12
|
-
style="margin-left: 10px;margin-right: 10px;">
|
|
13
|
-
{{ $t1('创建/更新数据表') }}
|
|
14
|
-
</el-button>
|
|
15
|
-
<span>{{ $t1('按钮!') }}</span>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="fr">
|
|
18
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
19
|
-
{{ $t1('重置') }}
|
|
20
|
-
</el-button>
|
|
21
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
22
|
-
</el-button>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="d-cont">
|
|
26
|
-
<div class="d-item">
|
|
27
|
-
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
|
28
|
-
<table class="table-detail">
|
|
29
|
-
<tbody>
|
|
30
|
-
<tr>
|
|
31
|
-
<th>
|
|
32
|
-
<em class="f-red">*</em>
|
|
33
|
-
{{ $t1('分组描述') }}
|
|
34
|
-
</th>
|
|
35
|
-
<td>
|
|
36
|
-
<el-form-item prop="eaGroupDesc" :rules="[{ required: true, trigger: 'blur' }]">
|
|
37
|
-
<el-input autocomplete="off" v-model="eagroup.eaGroupDesc" clearable/>
|
|
38
|
-
</el-form-item>
|
|
39
|
-
</td>
|
|
40
|
-
<th>{{ $t1('设置') }}</th>
|
|
41
|
-
<td>
|
|
42
|
-
<el-checkbox :label="$t1('是否启用')" v-model="eagroup.enabled"></el-checkbox>
|
|
43
|
-
</td>
|
|
44
|
-
<th>{{ $t1('分组类型') }}</th>
|
|
45
|
-
<td colspan="3">
|
|
46
|
-
<el-radio-group v-if="!dataId" v-model="eagroup.eaGroupType" @change="changeEaGroupType">
|
|
47
|
-
<el-radio :label="1">{{ $t1('单属性') }}</el-radio>
|
|
48
|
-
<el-radio :label="2">{{ $t1('列表属性') }}</el-radio>
|
|
49
|
-
<el-radio :label="3">{{ $t1('附件') }}</el-radio>
|
|
50
|
-
</el-radio-group>
|
|
51
|
-
<template v-else>
|
|
52
|
-
<template v-if="eagroup.eaGroupType == 1">
|
|
53
|
-
{{ $t1('单属性') }}
|
|
54
|
-
</template>
|
|
55
|
-
<template v-else-if="eagroup.eaGroupType == 2">
|
|
56
|
-
{{ $t1('列表属性') }}
|
|
57
|
-
</template>
|
|
58
|
-
<template v-else-if="eagroup.eaGroupType == 3">
|
|
59
|
-
{{ $t1('附件') }}
|
|
60
|
-
</template>
|
|
61
|
-
</template>
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<th>{{ $t1('序号') }}</th>
|
|
66
|
-
<td>
|
|
67
|
-
<base-input-number v-model="eagroup.orders" :scale="0"/>
|
|
68
|
-
</td>
|
|
69
|
-
<th>{{ $t1('数据表名') }}</th>
|
|
70
|
-
<td>
|
|
71
|
-
<pre>{{ eagroup.eaTableName }}</pre>
|
|
72
|
-
</td>
|
|
73
|
-
<th>{{ $t1('附件类型') }}</th>
|
|
74
|
-
<td colspan="3">{{ eagroup.eaAttachType }}</td>
|
|
75
|
-
</tr>
|
|
76
|
-
<tr>
|
|
77
|
-
<th>{{ $t1('单据对象编码') }}</th>
|
|
78
|
-
<td>{{ eagroup.eaObjCode }}</td>
|
|
79
|
-
<th>{{ $t1('分组编码') }}</th>
|
|
80
|
-
<td colspan="3">{{ eagroup.eaGroupCode }}</td>
|
|
81
|
-
</tr>
|
|
82
|
-
<tr v-if="eagroup.eaGroupType != 3">
|
|
83
|
-
<th>{{ $t1('数据表信息') }}</th>
|
|
84
|
-
<td colspan="7">
|
|
85
|
-
<pre>{{ tableInfo }}</pre>
|
|
86
|
-
</td>
|
|
87
|
-
</tr>
|
|
88
|
-
<tr>
|
|
89
|
-
<th>{{ $t1('备注') }}</th>
|
|
90
|
-
<td colspan="5">
|
|
91
|
-
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small" v-model="eagroup.memo"
|
|
92
|
-
clearable></el-input>
|
|
93
|
-
</td>
|
|
94
|
-
</tr>
|
|
95
|
-
<tr>
|
|
96
|
-
<th>{{ $t1('创建人') }}</th>
|
|
97
|
-
<td>{{ eagroup.createBy }}</td>
|
|
98
|
-
<th>{{ $t1('创建时间') }}</th>
|
|
99
|
-
<td>{{ eagroup.createDate }}</td>
|
|
100
|
-
<th>{{ $t1('更新人') }}</th>
|
|
101
|
-
<td>{{ eagroup.modifyBy }}</td>
|
|
102
|
-
<th>{{ $t1('更新时间') }}</th>
|
|
103
|
-
<td>{{ eagroup.modifyDate }}</td>
|
|
104
|
-
</tr>
|
|
105
|
-
</tbody>
|
|
106
|
-
</table>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="d-item" v-show="eagroup.eaGroupType != 3">
|
|
109
|
-
<div class="title">
|
|
110
|
-
<b>{{ $t1('明细信息') }}</b>
|
|
111
|
-
<el-button class="button-sty" @click="addItems" icon="el-icon-search">{{ $t1('新增明细') }}</el-button>
|
|
112
|
-
<div class="tips_1 fr">
|
|
113
|
-
<span>{{ $t1('注:字段名定义必须是全部小写全字母或下划线"_",且长度是20位以内。') }}</span>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
<div>
|
|
117
|
-
<vxe-grid
|
|
118
|
-
ref="table-m1"
|
|
119
|
-
:data="eagroup.eaGroupFieldDTOs"
|
|
120
|
-
v-bind="m1Option"
|
|
121
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
122
|
-
@custom="$vxeTableUtil.customHandle"
|
|
123
|
-
></vxe-grid>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
</el-form>
|
|
128
|
-
</div>
|
|
129
|
-
</template>
|
|
130
|
-
|
|
131
|
-
<script>
|
|
132
|
-
export default {
|
|
133
|
-
name: 'eagroupEdit',
|
|
134
|
-
props: {
|
|
135
|
-
_dataId: [String, Number]
|
|
136
|
-
},
|
|
137
|
-
components: {},
|
|
138
|
-
data() {
|
|
139
|
-
return {
|
|
140
|
-
tabIndex: 0,
|
|
141
|
-
isEdit: false,
|
|
142
|
-
dataId: '',
|
|
143
|
-
formData: [],
|
|
144
|
-
eagroup: {
|
|
145
|
-
eaGroupFieldDTOs: [],
|
|
146
|
-
eaGroupType: 1,
|
|
147
|
-
enabled: true,
|
|
148
|
-
orders: 0
|
|
149
|
-
},
|
|
150
|
-
tableInfo: '',
|
|
151
|
-
m1Option: {}
|
|
152
|
-
};
|
|
153
|
-
},
|
|
154
|
-
created() {
|
|
155
|
-
if (this._dataId && !isNaN(this._dataId)) {
|
|
156
|
-
this.dataId = this._dataId;
|
|
157
|
-
} else {
|
|
158
|
-
this.eagroup.eaObjCode = this.$attrs.eaObjCode;
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
mounted() {
|
|
162
|
-
this.initM1();
|
|
163
|
-
this.getData();
|
|
164
|
-
this.getDBTableInfos();
|
|
165
|
-
},
|
|
166
|
-
methods: {
|
|
167
|
-
getData() {
|
|
168
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
169
|
-
this.isEdit = true;
|
|
170
|
-
this.$commonHttp({
|
|
171
|
-
url: USER_PREFIX + `/eagroup/get`,
|
|
172
|
-
method: `post`,
|
|
173
|
-
data: {
|
|
174
|
-
id: this.dataId
|
|
175
|
-
},
|
|
176
|
-
isLoading: true,
|
|
177
|
-
modalStrictly: true,
|
|
178
|
-
success: res => {
|
|
179
|
-
let eagroup = res.objx || {};
|
|
180
|
-
eagroup.eaGroupFieldDTOs = this.eagroup.eaGroupFieldDTOs;
|
|
181
|
-
this.eagroup = eagroup;
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
getDBTableInfos() {
|
|
187
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
188
|
-
this.isEdit = true;
|
|
189
|
-
this.$http({
|
|
190
|
-
url: USER_PREFIX + `/eagroup/getDBTableInfos`,
|
|
191
|
-
method: `post`,
|
|
192
|
-
data: {
|
|
193
|
-
id: this.dataId
|
|
194
|
-
},
|
|
195
|
-
isLoading: true,
|
|
196
|
-
modalStrictly: true,
|
|
197
|
-
success: res => {
|
|
198
|
-
this.tableInfo = res.objx;
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
saveData() {
|
|
204
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
205
|
-
if (valid) {
|
|
206
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
207
|
-
var url = USER_PREFIX + (this.isEdit ? `/eagroup/update` : `/eagroup/save`);
|
|
208
|
-
this.$http({
|
|
209
|
-
url: url,
|
|
210
|
-
method: `post`,
|
|
211
|
-
data: this.eagroup,
|
|
212
|
-
isLoading: true,
|
|
213
|
-
success: res => {
|
|
214
|
-
this.$message({
|
|
215
|
-
message: res.content,
|
|
216
|
-
type: 'success',
|
|
217
|
-
duration: 500,
|
|
218
|
-
onClose: t => {
|
|
219
|
-
if (this.isEdit) {
|
|
220
|
-
this.$baseReload();
|
|
221
|
-
} else {
|
|
222
|
-
this.$baseReload({
|
|
223
|
-
updateParam: {
|
|
224
|
-
_dataId: res.objx
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
},
|
|
236
|
-
initM1() {
|
|
237
|
-
var that = this;
|
|
238
|
-
let fieldStyleMap = {
|
|
239
|
-
1: this.$t1('文本'),
|
|
240
|
-
2: this.$t1('日期'),
|
|
241
|
-
3: this.$t1('单选'),
|
|
242
|
-
4: this.$t1('多选')
|
|
243
|
-
};
|
|
244
|
-
const tableRef = 'table-m1';
|
|
245
|
-
const tableOption = {
|
|
246
|
-
vue: this,
|
|
247
|
-
tableRef: tableRef,
|
|
248
|
-
tableName: 'basic_eagroup_edit-m1',
|
|
249
|
-
columns: [
|
|
250
|
-
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
|
251
|
-
{
|
|
252
|
-
field: 'orders',
|
|
253
|
-
title: this.$t1('序号'),
|
|
254
|
-
width: 100,
|
|
255
|
-
slots: {
|
|
256
|
-
default: ({row, rowIndex, $table}) => {
|
|
257
|
-
return [<base-input-number v-model={row.orders} scale={0}/>];
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
field: 'enabled',
|
|
263
|
-
title: this.$t1('是否启用'),
|
|
264
|
-
width: 150,
|
|
265
|
-
slots: {
|
|
266
|
-
default: ({row, rowIndex, $table}) => {
|
|
267
|
-
return [
|
|
268
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.enabled'}
|
|
269
|
-
rules={[{required: true, trigger: 'blur'}]}>
|
|
270
|
-
<el-select v-model={row.enabled}>
|
|
271
|
-
<el-option value={true} label={this.$t1('是')}/>
|
|
272
|
-
<el-option value={false} label={this.$t1('否')}/>
|
|
273
|
-
</el-select>
|
|
274
|
-
</el-form-item>
|
|
275
|
-
];
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
field: 'fieldName',
|
|
281
|
-
title: this.$t1('数据表字段名'),
|
|
282
|
-
width: 150,
|
|
283
|
-
slots: {
|
|
284
|
-
default: ({row, rowIndex, $table}) => {
|
|
285
|
-
if (!row.id) {
|
|
286
|
-
return [
|
|
287
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.fieldName'}
|
|
288
|
-
rules={[{required: true, trigger: 'blur'}]}>
|
|
289
|
-
<el-input v-model={row.fieldName} clearable/>
|
|
290
|
-
</el-form-item>
|
|
291
|
-
];
|
|
292
|
-
} else {
|
|
293
|
-
return row.fieldName;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
field: 'fieldDesc',
|
|
300
|
-
title: this.$t1('字段描述'),
|
|
301
|
-
width: 150,
|
|
302
|
-
slots: {
|
|
303
|
-
default: ({row, rowIndex, $table}) => {
|
|
304
|
-
return [
|
|
305
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.fieldDesc'}
|
|
306
|
-
rules={[{required: true, trigger: 'blur'}]}>
|
|
307
|
-
<el-input v-model={row.fieldDesc} clearable/>
|
|
308
|
-
</el-form-item>
|
|
309
|
-
];
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
field: 'fieldStyle',
|
|
315
|
-
title: this.$t1('字段样式'),
|
|
316
|
-
width: 150,
|
|
317
|
-
slots: {
|
|
318
|
-
default: ({row, rowIndex, $table}) => {
|
|
319
|
-
if (!row.id) {
|
|
320
|
-
return [
|
|
321
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.fieldStyle'}
|
|
322
|
-
rules={[{required: true, trigger: 'blur'}]}>
|
|
323
|
-
<el-select v-model={row.fieldStyle}>
|
|
324
|
-
<el-option value={1} label={this.$t1('文本')}/>
|
|
325
|
-
<el-option value={2} label={this.$t1('日期')}/>
|
|
326
|
-
<el-option value={3} label={this.$t1('单选')}/>
|
|
327
|
-
<el-option value={4} label={this.$t1('多选')}/>
|
|
328
|
-
</el-select>
|
|
329
|
-
</el-form-item>
|
|
330
|
-
];
|
|
331
|
-
} else {
|
|
332
|
-
return fieldStyleMap[row.fieldStyle] || '';
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
field: 'fieldStyleValue',
|
|
339
|
-
title: this.$t1('字段样式值(单选多选 多个值用逗号隔开)'),
|
|
340
|
-
width: 300,
|
|
341
|
-
slots: {
|
|
342
|
-
default: ({row, rowIndex, $table}) => {
|
|
343
|
-
return [
|
|
344
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.fieldStyleValue'}
|
|
345
|
-
rules={[{required: false, trigger: 'blur'}]}>
|
|
346
|
-
<el-input v-model={row.fieldStyleValue} clearable/>
|
|
347
|
-
</el-form-item>
|
|
348
|
-
];
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
field: 'fieldSize',
|
|
354
|
-
title: this.$t1('字段数据长度'),
|
|
355
|
-
width: 150
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
field: 'required',
|
|
359
|
-
title: this.$t1('是否必填项'),
|
|
360
|
-
width: 150,
|
|
361
|
-
slots: {
|
|
362
|
-
default: ({row, rowIndex, $table}) => {
|
|
363
|
-
if (true || !row.id) {
|
|
364
|
-
return [
|
|
365
|
-
<el-form-item prop={'eaGroupFieldDTOs.' + rowIndex + '.required'}
|
|
366
|
-
rules={[{required: true, trigger: 'blur'}]}>
|
|
367
|
-
<el-select v-model={row.required}>
|
|
368
|
-
<el-option value={true} label={this.$t1('是')}/>
|
|
369
|
-
<el-option value={false} label={this.$t1('否')}/>
|
|
370
|
-
</el-select>
|
|
371
|
-
</el-form-item>
|
|
372
|
-
];
|
|
373
|
-
} else {
|
|
374
|
-
return row.required ? this.$t1('是') : this.$t1('否');
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
width: 47,
|
|
381
|
-
fixed: 'right',
|
|
382
|
-
title: '',
|
|
383
|
-
sortable: false,
|
|
384
|
-
slots: {
|
|
385
|
-
default: ({row, rowIndex, $table}) => {
|
|
386
|
-
if (!row.id) {
|
|
387
|
-
return [
|
|
388
|
-
<a
|
|
389
|
-
href="javascript:void(0);"
|
|
390
|
-
class="a-link"
|
|
391
|
-
onclick={() => {
|
|
392
|
-
this.eagroup.eaGroupFieldDTOs.splice(rowIndex, 1);
|
|
393
|
-
}}
|
|
394
|
-
>
|
|
395
|
-
<el-tooltip enterable={false} effect="dark" content={this.$t1('删除')} placement="top"
|
|
396
|
-
popper-class="tooltip-skin">
|
|
397
|
-
<i class="el-icon-delete"/>
|
|
398
|
-
</el-tooltip>
|
|
399
|
-
</a>
|
|
400
|
-
];
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
]
|
|
406
|
-
};
|
|
407
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
408
|
-
this.m1Option = opts;
|
|
409
|
-
});
|
|
410
|
-
if (this.dataId) {
|
|
411
|
-
this.$http({
|
|
412
|
-
url: USER_PREFIX + '/eagroup/getEAGroupFields',
|
|
413
|
-
method: `post`,
|
|
414
|
-
data: {id: this.dataId},
|
|
415
|
-
isLoading: true,
|
|
416
|
-
modalStrictly: true,
|
|
417
|
-
success: res => {
|
|
418
|
-
this.eagroup.eaGroupFieldDTOs = res.objx || [];
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
addItems() {
|
|
424
|
-
this.eagroup.eaGroupFieldDTOs.push({
|
|
425
|
-
fieldStyle: 1,
|
|
426
|
-
fieldSize: 255,
|
|
427
|
-
required: false,
|
|
428
|
-
condition: false,
|
|
429
|
-
listView: false,
|
|
430
|
-
enabled: true,
|
|
431
|
-
orders: 0
|
|
432
|
-
});
|
|
433
|
-
},
|
|
434
|
-
clearEatable() {
|
|
435
|
-
this.eagroup.eaTableId = '';
|
|
436
|
-
this.eagroup.eaTableName = '';
|
|
437
|
-
this.eagroup.eaTableDesc = '';
|
|
438
|
-
this.eagroup.eaGroupFieldDTOs = [];
|
|
439
|
-
this.$forceUpdate();
|
|
440
|
-
},
|
|
441
|
-
confirmEatable(rows) {
|
|
442
|
-
if (rows.length > 0) {
|
|
443
|
-
let row = rows[0];
|
|
444
|
-
this.$http({
|
|
445
|
-
url: USER_PREFIX + '/eatable/getEATableFields',
|
|
446
|
-
method: `post`,
|
|
447
|
-
data: {id: row.id},
|
|
448
|
-
isLoading: true,
|
|
449
|
-
modalStrictly: true,
|
|
450
|
-
success: res => {
|
|
451
|
-
let eatableFields = res.objx || [];
|
|
452
|
-
|
|
453
|
-
this.eagroup.eaTableId = row.id;
|
|
454
|
-
this.eagroup.eaTableName = row.eaTableName;
|
|
455
|
-
this.eagroup.eaTableDesc = row.eaTableDesc;
|
|
456
|
-
this.eagroup.eaGroupFieldDTOs = eatableFields.map(function (eatableField) {
|
|
457
|
-
return {
|
|
458
|
-
eaTableId: row.id,
|
|
459
|
-
eaTableFieldId: eatableField.id,
|
|
460
|
-
eaViewFieldDesc: eatableField.fieldDesc,
|
|
461
|
-
condition: false,
|
|
462
|
-
listView: false,
|
|
463
|
-
fieldName: eatableField.fieldName,
|
|
464
|
-
fieldDesc: eatableField.fieldDesc,
|
|
465
|
-
fieldStyle: eatableField.fieldStyle,
|
|
466
|
-
fieldSize: eatableField.fieldSize,
|
|
467
|
-
required: eatableField.required,
|
|
468
|
-
defaultValue: eatableField.defaultValue
|
|
469
|
-
};
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
changeEaGroupType(val) {
|
|
476
|
-
if (val == 3) {
|
|
477
|
-
this.clearEatable();
|
|
478
|
-
} else {
|
|
479
|
-
this.eaAttachType == '';
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
createTable() {
|
|
483
|
-
if (this.dataId) {
|
|
484
|
-
this.$baseConfirm(this.$t1('您确定要创建/更新数据表吗?')).then(() => {
|
|
485
|
-
this.$http({
|
|
486
|
-
url: USER_PREFIX + `/eagroup/createModifyTable`,
|
|
487
|
-
method: `post`,
|
|
488
|
-
data: {
|
|
489
|
-
id: this.dataId
|
|
490
|
-
},
|
|
491
|
-
isLoading: true,
|
|
492
|
-
success: res => {
|
|
493
|
-
this.$message({
|
|
494
|
-
message: res.content,
|
|
495
|
-
type: 'success',
|
|
496
|
-
duration: 500,
|
|
497
|
-
onClose: t => {
|
|
498
|
-
this.$baseReload();
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
</script>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="eaobj">
|
|
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
|
-
<div class="d-cont">
|
|
18
|
-
<div class="d-item">
|
|
19
|
-
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
|
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="eaObjName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
29
|
-
<el-input autocomplete="off" v-model="eaobj.eaObjName" clearable/>
|
|
30
|
-
</el-form-item>
|
|
31
|
-
</td>
|
|
32
|
-
<th>
|
|
33
|
-
<em class="f-red">*</em>
|
|
34
|
-
{{ $t1('单据对象编码') }}
|
|
35
|
-
</th>
|
|
36
|
-
<td>
|
|
37
|
-
<el-form-item v-if="!dataId" prop="eaObjCode" :rules="[{ required: true, trigger: 'blur' }]">
|
|
38
|
-
<el-input autocomplete="off" v-model="eaobj.eaObjCode" clearable/>
|
|
39
|
-
</el-form-item>
|
|
40
|
-
<template v-if="dataId">
|
|
41
|
-
{{ eaobj.eaObjCode }}
|
|
42
|
-
</template>
|
|
43
|
-
</td>
|
|
44
|
-
<th>
|
|
45
|
-
<em class="f-red">*</em>
|
|
46
|
-
{{ $t1('所属应用服务名') }}
|
|
47
|
-
</th>
|
|
48
|
-
<td>
|
|
49
|
-
<el-form-item v-if="!dataId" prop="applicationName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
50
|
-
<el-input autocomplete="off" v-model="eaobj.applicationName" clearable/>
|
|
51
|
-
</el-form-item>
|
|
52
|
-
<template v-if="dataId">
|
|
53
|
-
{{ eaobj.applicationName }}
|
|
54
|
-
</template>
|
|
55
|
-
</td>
|
|
56
|
-
</tr>
|
|
57
|
-
<tr>
|
|
58
|
-
<th>{{ $t1('备注') }}</th>
|
|
59
|
-
<td colspan="5">
|
|
60
|
-
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small" v-model="eaobj.memo"
|
|
61
|
-
clearable></el-input>
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<th>{{ $t1('创建人') }}</th>
|
|
66
|
-
<td>{{ eaobj.createBy }}</td>
|
|
67
|
-
<th>{{ $t1('创建时间') }}</th>
|
|
68
|
-
<td>{{ eaobj.createDate }}</td>
|
|
69
|
-
<th>{{ $t1('更新人') }}</th>
|
|
70
|
-
<td>{{ eaobj.modifyBy }}</td>
|
|
71
|
-
<th>{{ $t1('更新时间') }}</th>
|
|
72
|
-
<td>{{ eaobj.modifyDate }}</td>
|
|
73
|
-
</tr>
|
|
74
|
-
</tbody>
|
|
75
|
-
</table>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</el-form>
|
|
79
|
-
</div>
|
|
80
|
-
</template>
|
|
81
|
-
|
|
82
|
-
<script>
|
|
83
|
-
export default {
|
|
84
|
-
name: 'eaobjEdit',
|
|
85
|
-
props: {
|
|
86
|
-
_dataId: [String, Number]
|
|
87
|
-
},
|
|
88
|
-
components: {},
|
|
89
|
-
data() {
|
|
90
|
-
return {
|
|
91
|
-
tabIndex: 0,
|
|
92
|
-
isEdit: false,
|
|
93
|
-
dataId: '',
|
|
94
|
-
eaobj: {},
|
|
95
|
-
m1Option: {}
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
created() {
|
|
99
|
-
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
100
|
-
},
|
|
101
|
-
mounted() {
|
|
102
|
-
this.getData();
|
|
103
|
-
},
|
|
104
|
-
methods: {
|
|
105
|
-
getData() {
|
|
106
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
107
|
-
this.isEdit = true;
|
|
108
|
-
this.$commonHttp({
|
|
109
|
-
url: USER_PREFIX + `/eaobj/get`,
|
|
110
|
-
method: `post`,
|
|
111
|
-
data: {
|
|
112
|
-
id: this.dataId
|
|
113
|
-
},
|
|
114
|
-
isLoading: true,
|
|
115
|
-
modalStrictly: true,
|
|
116
|
-
success: res => {
|
|
117
|
-
this.eaobj = res.objx || {};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
} else {
|
|
121
|
-
this.eaobj = {
|
|
122
|
-
enabled: true
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
saveData() {
|
|
127
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
128
|
-
if (valid) {
|
|
129
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
130
|
-
var url = USER_PREFIX + (this.isEdit ? `/eaobj/update` : `/eaobj/save`);
|
|
131
|
-
this.$http({
|
|
132
|
-
url: url,
|
|
133
|
-
method: `post`,
|
|
134
|
-
data: this.eaobj,
|
|
135
|
-
isLoading: true,
|
|
136
|
-
success: res => {
|
|
137
|
-
this.$message({
|
|
138
|
-
message: res.content,
|
|
139
|
-
type: 'success',
|
|
140
|
-
duration: 500,
|
|
141
|
-
onClose: t => {
|
|
142
|
-
if (this.isEdit) {
|
|
143
|
-
this.$baseReload();
|
|
144
|
-
} else {
|
|
145
|
-
this.$baseReload({
|
|
146
|
-
updateParam: {
|
|
147
|
-
_dataId: res.objx
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
</script>
|