cloud-web-corejs 1.0.54-dev.375 → 1.0.54-dev.377
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/baseAttachment/mixins.js +1 -270
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1598 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +35 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +10 -10
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +9 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +44 -78
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +2 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -2
- package/src/components/xform/lang/zh-CN.js +2 -2
- package/src/layout/components/Sidebar/default.vue +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span>
|
|
3
|
-
<el-tooltip :content="
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<el-tooltip :content="content" placement="top">
|
|
4
|
+
<a @click="showDialog=true" class="tips-icon"><i class="el-icon-view el-icon-question"></i></a>
|
|
5
|
+
</el-tooltip>
|
|
6
6
|
<scriptDescriptionDialog :path="path" v-if="showDialog"
|
|
7
7
|
:visiable.sync="showDialog"></scriptDescriptionDialog>
|
|
8
8
|
</span>
|
|
@@ -12,7 +12,15 @@
|
|
|
12
12
|
export default {
|
|
13
13
|
name: "scriptDescriptionButton",
|
|
14
14
|
components: {scriptDescriptionDialog:() => import('../../components/scriptDescription/dialog')},
|
|
15
|
-
props:
|
|
15
|
+
props: {
|
|
16
|
+
path: String,
|
|
17
|
+
title: String
|
|
18
|
+
},
|
|
19
|
+
computed: {
|
|
20
|
+
content() {
|
|
21
|
+
return this.title || this.$t2('脚本说明', 'components.scriptDescription.title');
|
|
22
|
+
},
|
|
23
|
+
},
|
|
16
24
|
data() {
|
|
17
25
|
return {
|
|
18
26
|
showDialog: false
|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
119
119
|
methods: {
|
|
120
120
|
reload(e,option){
|
|
121
121
|
let updateParam = option?.updateParam || {};
|
|
122
|
-
Object.assign(this.formConfig,updateParam)
|
|
122
|
+
if(this.formConfig)Object.assign(this.formConfig,updateParam)
|
|
123
123
|
this.showRender = false;
|
|
124
124
|
this.getReportTemplate();
|
|
125
125
|
},
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
|
|
5
|
-
<el-cascader ref="fieldEditor" :options="field.options.optionItems"
|
|
5
|
+
<el-cascader ref="fieldEditor" :options="field.options.optionItems"
|
|
6
|
+
v-model="fieldModel" class="full-width-input"
|
|
7
|
+
v-show="!isReadMode"
|
|
6
8
|
:disabled="field.options.disabled"
|
|
7
9
|
:size="field.options.size"
|
|
8
10
|
:clearable="field.options.clearable"
|
|
@@ -13,6 +15,9 @@
|
|
|
13
15
|
@focus="handleFocusCustomEvent" @blur="handleBlurCustomEvent"
|
|
14
16
|
@change="handleChangeEvent">
|
|
15
17
|
</el-cascader>
|
|
18
|
+
<template v-if="isReadMode">
|
|
19
|
+
<span class="readonly-mode-field">{{contentForReadMode}}</span>
|
|
20
|
+
</template>
|
|
16
21
|
</form-item-wrapper>
|
|
17
22
|
</template>
|
|
18
23
|
|
|
@@ -101,6 +106,19 @@
|
|
|
101
106
|
})
|
|
102
107
|
}, 100)
|
|
103
108
|
},
|
|
109
|
+
contentForReadMode() {
|
|
110
|
+
if (!!this.field.options.multiple) {
|
|
111
|
+
//console.log('test======', this.$refs.fieldEditor.presentTags)
|
|
112
|
+
const curTags = this.$refs.fieldEditor.presentTags
|
|
113
|
+
if (!curTags || (curTags.length <= 0)) {
|
|
114
|
+
return '--'
|
|
115
|
+
} else {
|
|
116
|
+
return curTags.map(tagItem => tagItem.text).join(', ')
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
return this.$refs.fieldEditor.presentText || '--'
|
|
120
|
+
}
|
|
121
|
+
},
|
|
104
122
|
|
|
105
123
|
}
|
|
106
124
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
|
|
5
|
-
<el-checkbox-group ref="fieldEditor" v-model="fieldModel"
|
|
5
|
+
<el-checkbox-group ref="fieldEditor" v-model="fieldModel" v-show="!isReadMode"
|
|
6
6
|
:disabled="field.options.disabled" :size="field.options.size"
|
|
7
7
|
@change="handleChangeEvent">
|
|
8
8
|
<template v-if="!!field.options.buttonStyle">
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
:style="{display: field.options.displayStyle}">{{ getI18nLabel(item[labelField]) }}</el-checkbox>
|
|
17
17
|
</template>
|
|
18
18
|
</el-checkbox-group>
|
|
19
|
+
<template v-if="isReadMode">
|
|
20
|
+
<span class="readonly-mode-field">{{optionLabel}}</span>
|
|
21
|
+
</template>
|
|
19
22
|
</form-item-wrapper>
|
|
20
23
|
</template>
|
|
21
24
|
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
|
|
5
|
-
<el-color-picker ref="fieldEditor" v-model="fieldModel"
|
|
5
|
+
<el-color-picker ref="fieldEditor" v-model="fieldModel" v-show="!isReadMode"
|
|
6
6
|
:size="field.options.size"
|
|
7
7
|
:disabled="field.options.disabled"
|
|
8
8
|
@change="handleChangeEvent">
|
|
9
9
|
</el-color-picker>
|
|
10
|
+
<template v-if="isReadMode">
|
|
11
|
+
<span class="readonly-mode-field">{{fieldModel}}</span>
|
|
12
|
+
</template>
|
|
10
13
|
</form-item-wrapper>
|
|
11
14
|
</template>
|
|
12
15
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
|
|
5
5
|
:sub-form-row-id="subFormRowId">
|
|
6
|
-
<el-date-picker ref="fieldEditor" :type="field.options.type" v-model="fieldModel" class="full-width-input"
|
|
6
|
+
<el-date-picker ref="fieldEditor" :type="field.options.type" v-model="fieldModel" v-show="!isReadMode" class="full-width-input"
|
|
7
7
|
:disabled="field.options.disabled" :readonly="field.options.readonly"
|
|
8
8
|
:size="field.options.size"
|
|
9
9
|
:clearable="field.options.clearable" :editable="field.options.editable"
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
@focus="handleFocusCustomEvent" @blur="handleBlurCustomEvent"
|
|
15
15
|
@change="handleChangeEvent">
|
|
16
16
|
</el-date-picker>
|
|
17
|
+
<template v-if="isReadMode">
|
|
18
|
+
<span class="readonly-mode-field">{{contentForReadMode}}</span>
|
|
19
|
+
</template>
|
|
17
20
|
</form-item-wrapper>
|
|
18
21
|
</template>
|
|
19
22
|
|
|
@@ -64,7 +67,15 @@ export default {
|
|
|
64
67
|
rules: [],
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
|
-
computed: {
|
|
70
|
+
computed: {
|
|
71
|
+
contentForReadMode() {
|
|
72
|
+
if (!this.fieldModel) {
|
|
73
|
+
return ''
|
|
74
|
+
} else {
|
|
75
|
+
return this.fieldModel[0] + ' - ' + this.fieldModel[1]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
},
|
|
68
79
|
beforeCreate() {
|
|
69
80
|
/* 这里不能访问方法和属性!! */
|
|
70
81
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
|
|
5
5
|
:sub-form-row-id="subFormRowId">
|
|
6
|
-
<el-date-picker ref="fieldEditor" :type="field.options.type" v-model="fieldModel" class="full-width-input"
|
|
6
|
+
<el-date-picker ref="fieldEditor" :type="field.options.type" v-model="fieldModel" v-show="!isReadMode" class="full-width-input"
|
|
7
7
|
:readonly="field.options.readonly" :disabled="field.options.disabled"
|
|
8
8
|
:size="field.options.size"
|
|
9
9
|
:clearable="field.options.clearable" :editable="field.options.editable"
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
:picker-options="pickerOptions"
|
|
15
15
|
>
|
|
16
16
|
</el-date-picker>
|
|
17
|
+
<template v-if="isReadMode">
|
|
18
|
+
<span class="readonly-mode-field">{{contentForReadMode}}</span>
|
|
19
|
+
</template>
|
|
17
20
|
</form-item-wrapper>
|
|
18
21
|
</template>
|
|
19
22
|
|
|
@@ -65,7 +68,11 @@ export default {
|
|
|
65
68
|
pickerOptions: {}
|
|
66
69
|
}
|
|
67
70
|
},
|
|
68
|
-
computed: {
|
|
71
|
+
computed: {
|
|
72
|
+
contentForReadMode() {
|
|
73
|
+
return this.fieldModel ? this.fieldModel : ''
|
|
74
|
+
},
|
|
75
|
+
},
|
|
69
76
|
beforeCreate() {
|
|
70
77
|
/* 这里不能访问方法和属性!! */
|
|
71
78
|
},
|