cloud-web-corejs 1.0.54-dev.327 → 1.0.54-dev.329
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/errorMsg/mixins.js +88 -1
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +20 -5
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +24 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
- package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +102 -35
@@ -17,8 +17,10 @@ import {
|
|
17
17
|
fieldIsUsedInFormula, calculateFormula, recalculateFormulaOnSubFormRowDelete,
|
18
18
|
} from '@base/components/xform/utils/formula-util'
|
19
19
|
import * as formulajs from '@formulajs/formulajs'
|
20
|
+
import settingConfig from "@/settings.js";
|
20
21
|
|
21
22
|
let modules = {};
|
23
|
+
const isDev = process.env.NODE_ENV === "development";
|
22
24
|
const baseRefUtil = {
|
23
25
|
deepClone,
|
24
26
|
translateOptionItems,
|
@@ -463,11 +465,24 @@ modules = {
|
|
463
465
|
...eventParamNames,
|
464
466
|
funtionStr
|
465
467
|
);
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
468
|
+
let that = this;
|
469
|
+
try{
|
470
|
+
return e.call(
|
471
|
+
this,
|
472
|
+
...eventParam.eventParamValues,
|
473
|
+
...eventParamValues
|
474
|
+
);
|
475
|
+
}catch(error){
|
476
|
+
if(settingConfig.fontErrorTipEnabled){
|
477
|
+
that.$errorMsg({
|
478
|
+
rmid: that.$t1("前端脚本异常"),
|
479
|
+
content: error.message,
|
480
|
+
type: 'error',
|
481
|
+
_errorMsg: error.stack
|
482
|
+
})
|
483
|
+
}
|
484
|
+
throw error;
|
485
|
+
}
|
471
486
|
}
|
472
487
|
},
|
473
488
|
handleOnCreated: function () {
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<div class="field-wrapper" :class="{'design-time-bottom-margin': !!this.designer}"
|
13
13
|
v-show="!field.options.hidden || (designState === true)">
|
14
14
|
<div>
|
15
|
-
<template v-if="formItemProp
|
15
|
+
<template v-if="formItemProp==='false'">
|
16
16
|
<template v-if="!field.options.hidden">
|
17
17
|
<template v-if="isShowWidget()">
|
18
18
|
<slot></slot>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<el-form-item v-if="!!field.formItemFlag && (!field.options.hidden || (designState === true))"
|
40
40
|
:label="label" :label-width="labelWidth"
|
41
41
|
:title="field.options.labelTooltip"
|
42
|
-
:rules="
|
42
|
+
:rules="getRules()" :prop="getPropName()"
|
43
43
|
:class="[selected ? 'selected' : '', labelAlign, customClass, field.options.required ? 'required' : '']"
|
44
44
|
@click.native.stop="selectField(field)">
|
45
45
|
|
@@ -211,6 +211,10 @@ export default {
|
|
211
211
|
created() {
|
212
212
|
//
|
213
213
|
this.initShowType();
|
214
|
+
/* let propName = this.formItemProp;
|
215
|
+
if(propName){
|
216
|
+
debugger
|
217
|
+
} */
|
214
218
|
},
|
215
219
|
methods: {
|
216
220
|
isSubFormItem() {
|
@@ -277,13 +281,24 @@ export default {
|
|
277
281
|
})
|
278
282
|
}
|
279
283
|
},
|
280
|
-
|
284
|
+
getIsFormItemUnabled(){
|
285
|
+
return this.field.type == "vabUpload" || this.field.type == "baseAttachment"
|
286
|
+
},
|
287
|
+
getRules(){
|
288
|
+
if(this.getIsFormItemUnabled()){
|
289
|
+
return null
|
290
|
+
}
|
291
|
+
return this.rules;
|
292
|
+
},
|
281
293
|
getPropName() {
|
294
|
+
if(this.getIsFormItemUnabled()){
|
295
|
+
return null
|
296
|
+
}
|
282
297
|
if (this.formItemProp) {
|
283
298
|
return this.formItemProp;
|
284
299
|
}
|
285
300
|
let o = this.field.options.name;
|
286
|
-
|
301
|
+
let propName = (
|
287
302
|
(o
|
288
303
|
= (this.field.options.keyNameEnabled
|
289
304
|
&& this.field.options.keyName)
|
@@ -298,6 +313,11 @@ export default {
|
|
298
313
|
? this.getObjectName() + "." + o
|
299
314
|
: o
|
300
315
|
);
|
316
|
+
/* if(this.$parent.tableParam){
|
317
|
+
debugger
|
318
|
+
} */
|
319
|
+
|
320
|
+
return propName
|
301
321
|
},
|
302
322
|
getI18nLabel(label, path, param) {
|
303
323
|
return !this.designState && label ? this.$t2(label, path, param) : label;
|
@@ -13,7 +13,7 @@
|
|
13
13
|
name="1"
|
14
14
|
:title="i18nt('designer.setting.basicSetting')"
|
15
15
|
>
|
16
|
-
<el-form-item :label="i18nt('
|
16
|
+
<el-form-item :label="i18nt('数据库表')">
|
17
17
|
<el-input type="text" v-model="formConfig.entity"></el-input>
|
18
18
|
</el-form-item>
|
19
19
|
<el-form-item :label="i18nt('数据保存脚本编码')">
|