cloud-web-corejs 1.0.109 → 1.0.110
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/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +2 -2
- package/src/components/baseAttachment/index.vue +49 -49
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +5 -3
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +104 -45
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +32 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +161 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +236 -92
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +74 -31
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -9
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +52 -17
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/store/config/index.js +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/user/wf/wf_manage/list.vue +29 -0
@@ -9,12 +9,22 @@
|
|
9
9
|
</el-form-item>
|
10
10
|
|
11
11
|
<el-form-item label="默认值">
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
<template v-if="selectedWidget.type === 'checkbox' || (selectedWidget.type === 'select' && selectedWidget.options.multiple)">
|
13
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
14
|
+
@click="openTableDataEdit()">
|
15
|
+
<span>{{ getDefaultValue() }}</span>
|
16
|
+
<i class="el-icon-edit"></i>
|
17
|
+
</a>
|
18
|
+
</template>
|
19
|
+
<template v-else>
|
20
|
+
<el-input v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
|
21
|
+
<base-input-number v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType==1" />
|
22
|
+
<el-select v-model="optionModel.defaultValue" style="width: 100px" v-if="optionModel.optionItemValueType===2" clearable @clear="optionModel.defaultValue=null">
|
23
|
+
<el-option :value="true" label="true"></el-option>
|
24
|
+
<el-option :value="false" label="false"></el-option>
|
25
|
+
</el-select>
|
26
|
+
</template>
|
27
|
+
|
18
28
|
</el-form-item>
|
19
29
|
<el-radio-group
|
20
30
|
v-if="selectedWidget.type === 'radio' || (selectedWidget.type === 'select' && !selectedWidget.options.multiple)"
|
@@ -112,6 +122,31 @@
|
|
112
122
|
<el-button size="large" type="" @click="showImportCascaderDialogFlag = false">{{ i18nt('designer.hint.cancel') }}</el-button>
|
113
123
|
</div>
|
114
124
|
</el-dialog>
|
125
|
+
<el-dialog
|
126
|
+
v-if="dataDialogVisible"
|
127
|
+
custom-class="dialog-style list-dialog"
|
128
|
+
:title="i18nt('默认值编辑')"
|
129
|
+
:visible.sync="dataDialogVisible"
|
130
|
+
:show-close="!0"
|
131
|
+
append-to-body=""
|
132
|
+
:close-on-click-modal="!1"
|
133
|
+
:close-on-press-escape="!1"
|
134
|
+
:destroy-on-close="!0"
|
135
|
+
width="75%"
|
136
|
+
v-dialog-drag
|
137
|
+
>
|
138
|
+
<template slot="footer">
|
139
|
+
<div class="dialog-footer">
|
140
|
+
<el-button type="" @click="dataDialogVisible = !1" class="button-sty" icon="el-icon-close">
|
141
|
+
{{ i18nt('designer.hint.cancel') }}
|
142
|
+
</el-button>
|
143
|
+
<el-button type="primary" @click="saveTableData" class="button-sty" icon="el-icon-check">
|
144
|
+
{{ i18nt('designer.hint.confirm') }}
|
145
|
+
</el-button>
|
146
|
+
</div>
|
147
|
+
</template>
|
148
|
+
<code-editor mode="json" :readonly="!1" v-model="tableDataOptions"></code-editor>
|
149
|
+
</el-dialog>
|
115
150
|
</div>
|
116
151
|
</template>
|
117
152
|
|
@@ -138,7 +173,9 @@ export default {
|
|
138
173
|
showImportCascaderDialogFlag: false,
|
139
174
|
|
140
175
|
//separator: '||',
|
141
|
-
separator: ','
|
176
|
+
separator: ',',
|
177
|
+
dataDialogVisible:false,
|
178
|
+
tableDataOptions:[],
|
142
179
|
};
|
143
180
|
},
|
144
181
|
computed: {
|
@@ -237,7 +274,7 @@ export default {
|
|
237
274
|
if (this.selectedWidget.type === 'checkbox' || (this.selectedWidget.type === 'select' && this.selectedWidget.options.multiple)) {
|
238
275
|
this.optionModel.defaultValue = [];
|
239
276
|
} else {
|
240
|
-
this.optionModel.defaultValue =
|
277
|
+
this.optionModel.defaultValue = undefined;
|
241
278
|
}
|
242
279
|
|
243
280
|
this.emitDefaultValueChange();
|
@@ -261,7 +298,8 @@ export default {
|
|
261
298
|
},
|
262
299
|
changeValueType(val){
|
263
300
|
let optionItems = this.optionModel.optionItems;
|
264
|
-
this.optionModel.defaultValue =
|
301
|
+
// this.optionModel.defaultValue = undefined;
|
302
|
+
this.resetDefault();
|
265
303
|
this.optionModel.optionItems.length = 0;
|
266
304
|
if(val==2){
|
267
305
|
optionItems.push({
|
@@ -277,7 +315,28 @@ export default {
|
|
277
315
|
}
|
278
316
|
this.$forceUpdate()
|
279
317
|
this.emitDefaultValueChange();
|
280
|
-
}
|
318
|
+
},
|
319
|
+
|
320
|
+
|
321
|
+
openTableDataEdit: function () {
|
322
|
+
(this.dataDialogVisible = !0), (this.tableDataOptions = JSON.stringify(this.optionModel.defaultValue, null, ' '));
|
323
|
+
},
|
324
|
+
saveTableData: function () {
|
325
|
+
try {
|
326
|
+
(this.optionModel.defaultValue = JSON.parse(this.tableDataOptions)), (this.dataDialogVisible = !1);
|
327
|
+
} catch (e) {
|
328
|
+
this.$message.error(this.i18nt('designer.hint.invalidOptionsData') + e.message);
|
329
|
+
}
|
330
|
+
},
|
331
|
+
getDefaultValue(){
|
332
|
+
let result = this.optionModel.defaultValue;
|
333
|
+
if(result){
|
334
|
+
if(Array.isArray(result)){
|
335
|
+
result = result.join(",");
|
336
|
+
}
|
337
|
+
}
|
338
|
+
return result;
|
339
|
+
},
|
281
340
|
}
|
282
341
|
};
|
283
342
|
</script>
|
@@ -6,14 +6,14 @@
|
|
6
6
|
<el-form-item :label="i18nt('表单值显示')" v-if="selectedWidget.type!=='a-link2'">
|
7
7
|
<el-switch v-model="optionModel.isFormLabel"></el-switch>
|
8
8
|
</el-form-item>
|
9
|
-
<el-form-item :label="i18nt('颜色')">
|
10
|
-
<el-select v-model="optionModel.
|
9
|
+
<!-- <el-form-item :label="i18nt('颜色')">
|
10
|
+
<el-select v-model="optionModel.colorClass" clearable>
|
11
11
|
<el-option value="f-red" label="橙"></el-option>
|
12
12
|
<el-option value="f-dred" label="红"></el-option>
|
13
13
|
<el-option value="f-green" label="绿"></el-option>
|
14
14
|
<el-option value="f-blue" label="蓝"></el-option>
|
15
15
|
</el-select>
|
16
|
-
</el-form-item
|
16
|
+
</el-form-item>-->
|
17
17
|
<el-form-item :label="i18nt('超链接')">
|
18
18
|
<el-input type="text" v-model="optionModel.href"></el-input>
|
19
19
|
</el-form-item>
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<el-form-item :label="i18nt('显示下划线')">
|
4
4
|
<el-switch v-model="optionModel.underline"></el-switch>
|
5
5
|
</el-form-item>
|
6
|
-
<el-form-item :label="i18nt('颜色')">
|
7
|
-
<el-select v-model="optionModel.
|
6
|
+
<!-- <el-form-item :label="i18nt('颜色')">
|
7
|
+
<el-select v-model="optionModel.colorClass" clearable>
|
8
8
|
<el-option value="f-red" label="橙"></el-option>
|
9
9
|
<el-option value="f-dred" label="红"></el-option>
|
10
10
|
<el-option value="f-green" label="绿"></el-option>
|
11
11
|
<el-option value="f-blue" label="蓝"></el-option>
|
12
12
|
</el-select>
|
13
|
-
</el-form-item
|
13
|
+
</el-form-item>-->
|
14
14
|
<el-form-item :label="i18nt('超链接')">
|
15
15
|
<el-input type="text" v-model="optionModel.href"></el-input>
|
16
16
|
</el-form-item>
|
package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form-item :label="i18nt('颜色')">
|
3
|
+
<el-select v-model="optionModel.colorClass" clearable>
|
4
|
+
<el-option value="f-red" label="橙"></el-option>
|
5
|
+
<el-option value="f-dred" label="红"></el-option>
|
6
|
+
<el-option value="f-green" label="绿"></el-option>
|
7
|
+
<el-option value="f-blue" label="蓝"></el-option>
|
8
|
+
</el-select>
|
9
|
+
</el-form-item>
|
10
|
+
</template>
|
11
|
+
|
12
|
+
<script>
|
13
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
14
|
+
|
15
|
+
export default {
|
16
|
+
name: "colorClass-editor",
|
17
|
+
mixins: [i18n],
|
18
|
+
props: {
|
19
|
+
designer: Object,
|
20
|
+
selectedWidget: Object,
|
21
|
+
optionModel: Object,
|
22
|
+
},
|
23
|
+
}
|
24
|
+
</script>
|
25
|
+
|
26
|
+
<style scoped>
|
27
|
+
|
28
|
+
</style>
|
@@ -31,6 +31,30 @@
|
|
31
31
|
<el-form-item :label="i18nt('是否隐藏复选框')">
|
32
32
|
<el-switch v-model="optionModel.hideGridCheckBox"></el-switch>
|
33
33
|
</el-form-item>
|
34
|
+
|
35
|
+
<el-form-item label="默认每页查询数">
|
36
|
+
<base-input-number v-model="optionModel.gridPageSize" size="mini" :min="1" :max="10000"/>
|
37
|
+
</el-form-item>
|
38
|
+
<el-form-item :label="i18nt('可选择每页查询数')"></el-form-item>
|
39
|
+
<el-form-item label-width="0">
|
40
|
+
<template v-if="optionModel.gridPageSizeList">
|
41
|
+
<draggable tag="ul" class="draggable-box" :list="optionModel.gridPageSizeList"
|
42
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
|
43
|
+
<li v-for="(item, index) in optionModel.gridPageSizeList" :key="index" class="col-item">
|
44
|
+
<i class="el-icon-s-operation drag-option"></i>
|
45
|
+
<base-input-number v-model="item.value" :min="1" :max="10000" style="width: 200px;"></base-input-number>
|
46
|
+
<el-button circle plain size="mini" type="danger" @click="optionModel.gridPageSizeList.splice(index,1)"
|
47
|
+
icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
|
48
|
+
</li>
|
49
|
+
</draggable>
|
50
|
+
</template>
|
51
|
+
<div>
|
52
|
+
<el-button type="text" @click="addGridPageSizeList" icon="el-icon-circle-plus-outline" class="add-option">
|
53
|
+
{{ i18nt('新增分页数') }}
|
54
|
+
</el-button>
|
55
|
+
</div>
|
56
|
+
</el-form-item>
|
57
|
+
|
34
58
|
<!-- <el-form-item :label="i18nt('显示导出')">
|
35
59
|
<el-switch v-model="optionModel.showExportBtn"></el-switch>
|
36
60
|
</el-form-item>-->
|
@@ -484,7 +508,7 @@
|
|
484
508
|
|
485
509
|
<script>
|
486
510
|
import i18n from '../../../../../../components/xform/utils/i18n';
|
487
|
-
|
511
|
+
import Draggable from 'vuedraggable';
|
488
512
|
import {deepClone, generateId} from '../../../../../../components/xform/utils/util';
|
489
513
|
import Sortable from 'sortablejs';
|
490
514
|
import requestaccessDialog from '../../../../../../views/user/form/report_requestaccess/dialog.vue'
|
@@ -499,6 +523,7 @@ export default {
|
|
499
523
|
componentName: 'PropertyEditor',
|
500
524
|
mixins: [i18n, eventMixin],
|
501
525
|
components: {
|
526
|
+
Draggable,
|
502
527
|
requestaccessDialog,
|
503
528
|
conditionEditor,
|
504
529
|
tableColumnDialog
|
@@ -1034,6 +1059,12 @@ export default {
|
|
1034
1059
|
let xformImportTemplateFile = setttingConfig.xformImportTemplateFile || defaultUrl;
|
1035
1060
|
if (!xformImportTemplateFile) return;
|
1036
1061
|
this.$commonFileUtil.downloadFile(xformImportTemplateFile, "通用导入模板.xlsx");
|
1062
|
+
},
|
1063
|
+
addGridPageSizeList() {
|
1064
|
+
if (this.optionModel.gridPageSizeList === undefined) {
|
1065
|
+
this.$set(this.optionModel, "gridPageSizeList", [])
|
1066
|
+
}
|
1067
|
+
this.optionModel.gridPageSizeList.push({value: 50})
|
1037
1068
|
}
|
1038
1069
|
}
|
1039
1070
|
};
|
@@ -272,7 +272,21 @@
|
|
272
272
|
></el-button>
|
273
273
|
</template>
|
274
274
|
</el-table-column>
|
275
|
-
|
275
|
+
<el-table-column
|
276
|
+
:label="i18nt('显示名称颜色')"
|
277
|
+
width="100"
|
278
|
+
prop="fixed"
|
279
|
+
>
|
280
|
+
<template #default="scope">
|
281
|
+
<el-select v-model="scope.row.labelColor" clearable>
|
282
|
+
<el-option value="#e6a23c" label="橙"></el-option>
|
283
|
+
<el-option value="#2a6494" label="蓝"></el-option>
|
284
|
+
<el-option value="#30b08f" label="绿"></el-option>
|
285
|
+
<el-option value="#909399" label="灰"></el-option>
|
286
|
+
<el-option value="#ea5353" label="红"></el-option>
|
287
|
+
</el-select>
|
288
|
+
</template>
|
289
|
+
</el-table-column>
|
276
290
|
|
277
291
|
<el-table-column label="操作" width="150" fixed="right">
|
278
292
|
<template slot="header">
|
@@ -967,7 +981,8 @@ export default {
|
|
967
981
|
exportType: null,
|
968
982
|
footerDataType: null,
|
969
983
|
footerMethodConfg: null,
|
970
|
-
widgetList: []
|
984
|
+
widgetList: [],
|
985
|
+
labelColor:null
|
971
986
|
// treeNode: false,
|
972
987
|
};
|
973
988
|
return row;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
<el-
|
5
|
-
</el-form-item
|
3
|
+
<el-form-item :label="i18nt('内容默认收起')">
|
4
|
+
<el-switch v-model="optionModel.defaultCollapse"></el-switch>
|
5
|
+
</el-form-item>
|
6
6
|
</div>
|
7
7
|
</template>
|
8
8
|
|
@@ -6,8 +6,17 @@
|
|
6
6
|
<el-option value="2" label="列表添加数据"></el-option>
|
7
7
|
</el-select>
|
8
8
|
</el-form-item>
|
9
|
-
<
|
10
|
-
|
9
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
10
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
11
|
+
@click="editEventHandler('onBeforeClickButton', evnentParams)">
|
12
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
13
|
+
<i class="el-icon-edit"></i>
|
14
|
+
</a>
|
15
|
+
</el-form-item>
|
16
|
+
<searchDialogEventEditor :designer="designer" :selectedWidget="selectedWidget" :optionModel.sync="optionModel"
|
17
|
+
v-if="optionModel.clickBindEvent=='1'"></searchDialogEventEditor>
|
18
|
+
<addTableDataEventEditor :designer="designer" :selectedWidget="selectedWidget" :optionModel.sync="optionModel"
|
19
|
+
v-if="optionModel.clickBindEvent=='2'"></addTableDataEventEditor>
|
11
20
|
</div>
|
12
21
|
</template>
|
13
22
|
<script>
|
@@ -15,53 +24,59 @@ import searchDialogEventEditor from "./search-dialog-event-editor.vue";
|
|
15
24
|
import addTableDataEventEditor from "./addTableData-event-editor.vue";
|
16
25
|
import {defaultSearchDialogConfig} from "../../../../../../components/xform/form-designer/widget-panel/widgetsConfig";
|
17
26
|
|
18
|
-
|
19
27
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
28
|
+
import eventMixin
|
29
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
20
30
|
|
21
31
|
let clickBindEventConfig = {
|
22
|
-
searchDialogConfig:{
|
32
|
+
searchDialogConfig: {
|
23
33
|
...defaultSearchDialogConfig
|
24
34
|
},
|
25
|
-
addTableDataConfig:{
|
26
|
-
tableRef:null,
|
27
|
-
tableData:{}
|
35
|
+
addTableDataConfig: {
|
36
|
+
tableRef: null,
|
37
|
+
tableData: {}
|
28
38
|
}
|
29
39
|
}
|
30
40
|
|
31
41
|
export default {
|
32
42
|
name: "clickBindEvent-editor",
|
33
|
-
mixins: [i18n],
|
43
|
+
mixins: [i18n, eventMixin],
|
34
44
|
props: {
|
35
45
|
designer: Object,
|
36
46
|
selectedWidget: Object,
|
37
47
|
optionModel: Object,
|
38
48
|
},
|
39
|
-
components:{
|
49
|
+
components: {
|
40
50
|
searchDialogEventEditor,
|
41
51
|
addTableDataEventEditor
|
42
52
|
},
|
43
|
-
provide(){
|
53
|
+
provide() {
|
54
|
+
return {
|
55
|
+
defaultClickBindEventConfig: clickBindEventConfig
|
56
|
+
}
|
57
|
+
},
|
58
|
+
data() {
|
44
59
|
return {
|
45
|
-
|
60
|
+
evnentParams: ["dataId", "formCode", "done"]
|
46
61
|
}
|
47
62
|
},
|
48
63
|
created() {
|
49
|
-
if(!this.optionModel.addTableDataConfig){
|
64
|
+
if (!this.optionModel.addTableDataConfig) {
|
50
65
|
this.$set(this.optionModel, 'addTableDataConfig', this.$baseLodash.cloneDeep(clickBindEventConfig.addTableDataConfig));
|
51
66
|
}
|
52
|
-
if(!this.optionModel.searchDialogConfig){
|
67
|
+
if (!this.optionModel.searchDialogConfig) {
|
53
68
|
this.$set(this.optionModel, 'searchDialogConfig', this.$baseLodash.cloneDeep(clickBindEventConfig.searchDialogConfig));
|
54
69
|
}
|
55
|
-
if(this.optionModel.searchDialogConfig.multipleChoices === void 0){
|
56
|
-
if(this.selectedWidget.type=='vabsearch'){
|
57
|
-
this.$set(this.optionModel.searchDialogConfig,'multipleChoices',false);
|
58
|
-
}else{
|
59
|
-
this.$set(this.optionModel.searchDialogConfig,'multipleChoices',true);
|
70
|
+
if (this.optionModel.searchDialogConfig.multipleChoices === void 0) {
|
71
|
+
if (this.selectedWidget.type == 'vabsearch') {
|
72
|
+
this.$set(this.optionModel.searchDialogConfig, 'multipleChoices', false);
|
73
|
+
} else {
|
74
|
+
this.$set(this.optionModel.searchDialogConfig, 'multipleChoices', true);
|
60
75
|
}
|
61
76
|
}
|
62
77
|
},
|
63
|
-
methods:{
|
64
|
-
changeEventType(val){
|
78
|
+
methods: {
|
79
|
+
changeEventType(val) {
|
65
80
|
// this.optionModel.clickBindEventConfig = clickBindEventConfig;
|
66
81
|
// this.$set(this.optionModel, "clickBindEventConfig", clickBindEventConfig);
|
67
82
|
}
|
@@ -12,9 +12,9 @@
|
|
12
12
|
<el-form-item :label="i18nt('显示文件大小')">
|
13
13
|
<el-switch v-model="optionModel.showFileSize"></el-switch>
|
14
14
|
</el-form-item>
|
15
|
-
<el-form-item :label="i18nt('显示创建人')">
|
15
|
+
<!-- <el-form-item :label="i18nt('显示创建人')">
|
16
16
|
<el-switch v-model="optionModel.showFileCreateBy"></el-switch>
|
17
|
-
</el-form-item
|
17
|
+
</el-form-item>-->
|
18
18
|
<el-form-item :label="i18nt('显示创建时间')">
|
19
19
|
<el-switch v-model="optionModel.showFileCreateDate"></el-switch>
|
20
20
|
</el-form-item>
|
@@ -7,6 +7,10 @@
|
|
7
7
|
<el-switch v-model="optionModel.formScriptEnabled" @change="changeFormScriptEnabled"></el-switch>
|
8
8
|
</el-form-item>
|
9
9
|
<template>
|
10
|
+
|
11
|
+
<!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
|
12
|
+
<el-input v-model="optionModel.httpFormCode" clearable></el-input>
|
13
|
+
</el-form-item>-->
|
10
14
|
<el-form-item label="表单脚本编码" v-if="optionModel.formScriptEnabled">
|
11
15
|
<el-input v-model="optionModel.formScriptCode" clearable></el-input>
|
12
16
|
</el-form-item>
|
package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<el-form-item
|
2
|
+
<el-form-item :label="i18nt('designer.setting.formulaEnabled')">
|
3
3
|
<el-switch v-model="optionModel.formulaEnabled" @change="handleChangeEvent"></el-switch>
|
4
4
|
</el-form-item>
|
5
5
|
</template>
|
package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue
CHANGED
@@ -1,21 +1,30 @@
|
|
1
1
|
<template>
|
2
2
|
<el-form-item :label="i18nt('designer.setting.labelColor')">
|
3
|
-
<
|
3
|
+
<div>
|
4
|
+
<el-select style="width: 130px;float: left;margin-right: 5px;" v-model="optionModel.labelColor" clearable>
|
5
|
+
<el-option value="#e6a23c" label="橙"></el-option>
|
6
|
+
<el-option value="#2a6494" label="蓝"></el-option>
|
7
|
+
<el-option value="#30b08f" label="绿"></el-option>
|
8
|
+
<el-option value="#909399" label="灰"></el-option>
|
9
|
+
<el-option value="#ea5353" label="红"></el-option>
|
10
|
+
</el-select>
|
11
|
+
<el-color-picker v-model="optionModel.labelColor"></el-color-picker>
|
12
|
+
</div>
|
4
13
|
</el-form-item>
|
5
14
|
</template>
|
6
15
|
|
7
16
|
<script>
|
8
|
-
|
17
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
9
18
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
export default {
|
20
|
+
name: "labelColor-editor",
|
21
|
+
mixins: [i18n],
|
22
|
+
props: {
|
23
|
+
designer: Object,
|
24
|
+
selectedWidget: Object,
|
25
|
+
optionModel: Object,
|
26
|
+
},
|
27
|
+
}
|
19
28
|
</script>
|
20
29
|
|
21
30
|
<style scoped>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<el-form-item :label="i18nt('designer.setting.labelIconPosition')">
|
2
|
+
<el-form-item :label="i18nt('designer.setting.labelIconPosition')" v-show="false">
|
3
3
|
<el-select v-model="optionModel.labelIconPosition">
|
4
4
|
<el-option v-for="item in labelIconPosition" :key="item.value" :label="item.label"
|
5
5
|
:value="item.value">
|
package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
<template>
|
2
|
-
<el-form-item
|
3
|
-
|
4
|
-
v-show="showProperty()"
|
5
|
-
>
|
6
|
-
<el-switch v-model="optionModel.required"></el-switch>
|
2
|
+
<el-form-item :label="i18nt('designer.setting.required')">
|
3
|
+
<el-switch v-model="optionModel.required" @change="handleChangeEvent"></el-switch>
|
7
4
|
</el-form-item>
|
8
5
|
</template>
|
9
6
|
|
10
7
|
<script>
|
11
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
8
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
12
9
|
|
13
|
-
export default {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
},
|
21
|
-
methods: {
|
22
|
-
showProperty() {
|
23
|
-
let widgetRef = this.designer.vueInstance.getWidgetRef(
|
24
|
-
this.selectedWidget.options.name
|
25
|
-
);
|
26
|
-
return widgetRef?.$attrs["table-condition"] !== true;
|
10
|
+
export default {
|
11
|
+
name: "required-editor",
|
12
|
+
mixins: [i18n],
|
13
|
+
props: {
|
14
|
+
designer: Object,
|
15
|
+
selectedWidget: Object,
|
16
|
+
optionModel: Object,
|
27
17
|
},
|
28
|
-
|
29
|
-
|
18
|
+
methods: {
|
19
|
+
handleChangeEvent(val) {
|
20
|
+
const wRef = this.designer.formWidget.getSelectedWidgetRef()
|
21
|
+
if (wRef && wRef.setRequired) {
|
22
|
+
wRef.setRequired(val)
|
23
|
+
}
|
24
|
+
},
|
25
|
+
|
26
|
+
}
|
27
|
+
}
|
30
28
|
</script>
|
31
29
|
|
32
|
-
<style scoped
|
30
|
+
<style scoped>
|
31
|
+
|
32
|
+
</style>
|
package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
</template>
|
6
6
|
|
7
7
|
<script>
|
8
|
-
|
9
|
-
|
8
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
9
|
+
import propertyMixin from "../../../../../components/xform/form-designer/setting-panel/property-editor/propertyMixin"
|
10
10
|
|
11
|
-
|
11
|
+
export default {
|
12
12
|
name: "requiredHint-editor",
|
13
13
|
mixins: [i18n, propertyMixin],
|
14
14
|
props: {
|