cloud-web-corejs 1.0.54-dev.257 → 1.0.54-dev.259
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/excelExport/button.vue +1 -1
- package/src/components/excelExport/index.vue +22 -0
- package/src/components/excelExport/mixins.js +43 -3
- 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 +49 -36
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- 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/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +31 -9
- package/src/components/xform/form-render/container-item/data-table-mixin.js +6 -0
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/components/xform/utils/util.js +1445 -1
- package/src/layout/components/TagsView/index.vue +14 -3
- package/src/views/bd/setting/request_async_setting/edit.vue +167 -155
- package/src/views/bd/setting/request_async_setting/list.vue +6 -6
- package/src/views/user/position/edit.vue +55 -54
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<el-dropdown trigger="hover">
|
2
|
+
<el-dropdown trigger="hover" :disabled="showIndexViewDialog">
|
3
3
|
<el-button type="primary" class="button-sty" size="mini">
|
4
4
|
<span>{{ $t2('列表导出', 'components.excelExport.listExport') }}</span><span class="line"></span> <i
|
5
5
|
class="el-icon-arrow-down el-icon--right"></i>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="inner-dialog">
|
3
|
+
<!-- <span v-if="isMinimize"><a href="javascript:void(0)" @click="handleMinimize">导出进度:{{percentageNum+"%"}}</a></span>-->
|
3
4
|
<exportFieldDialog :visiable.sync="showExportFieldDialog" v-if="showExportFieldDialog" :param="param" @close="closeExportFieldDialog"
|
4
5
|
@confirm="confirmExportFieldDialog"></exportFieldDialog>
|
5
6
|
<el-dialog
|
@@ -14,6 +15,11 @@
|
|
14
15
|
:modal-append-to-body="false"
|
15
16
|
@close="dialogClose2"
|
16
17
|
>
|
18
|
+
<!-- <el-button class="isFullIcon" @click="handleMinimize">
|
19
|
+
<el-tooltip effect="dark" content="缩小" placement="top">
|
20
|
+
<i class="el-icon-minus"></i>
|
21
|
+
</el-tooltip>
|
22
|
+
</el-button>-->
|
17
23
|
<div class="export-box">
|
18
24
|
<div class="tips">{{ $t2('导出中,请勿关闭当前窗口', 'components.excelExport.tip') }}</div>
|
19
25
|
<el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
|
@@ -59,4 +65,20 @@ export default {
|
|
59
65
|
::v-deep .el-dialog__wrapper {
|
60
66
|
top: 20px !important;
|
61
67
|
}
|
68
|
+
::v-deep .el-dialog__body {
|
69
|
+
padding: 0;
|
70
|
+
|
71
|
+
.isFullIcon {
|
72
|
+
position: absolute;
|
73
|
+
top: 0;
|
74
|
+
right: 69px;
|
75
|
+
border: none !important;
|
76
|
+
background: none !important;
|
77
|
+
box-shadow: none !important;
|
78
|
+
color: #464646d6;
|
79
|
+
height: 42px;
|
80
|
+
line-height: 42px;
|
81
|
+
padding: 0;
|
82
|
+
}
|
83
|
+
}
|
62
84
|
</style>
|
@@ -89,7 +89,9 @@ function getGrid(that, tableRef) {
|
|
89
89
|
excTime: 0,
|
90
90
|
showExportFieldDialog: false,
|
91
91
|
leafColumns: [],
|
92
|
-
columns: []
|
92
|
+
columns: [],
|
93
|
+
queryParam:{},
|
94
|
+
isMinimize:false
|
93
95
|
}
|
94
96
|
},
|
95
97
|
created() {
|
@@ -100,6 +102,7 @@ function getGrid(that, tableRef) {
|
|
100
102
|
},
|
101
103
|
beforeDestroy() {
|
102
104
|
this.clearExportTimer()
|
105
|
+
this.unlockMenu();
|
103
106
|
},
|
104
107
|
methods: {
|
105
108
|
exc() {
|
@@ -121,10 +124,19 @@ function getGrid(that, tableRef) {
|
|
121
124
|
return;
|
122
125
|
}
|
123
126
|
}
|
127
|
+
this.lockMenu()
|
128
|
+
|
129
|
+
this.isMinimize = false;
|
124
130
|
this.showExportFieldDialog = true;
|
125
131
|
|
126
132
|
},
|
133
|
+
handleMinimize(){
|
134
|
+
let result = !this.showImportDialog2;
|
135
|
+
this.isMinimize = !result;
|
136
|
+
this.showImportDialog2 = result
|
137
|
+
},
|
127
138
|
dialogClose2() {
|
139
|
+
if(this.isMinimize)return;
|
128
140
|
let loadingObj = window.$vueRoot.$baseLoading({
|
129
141
|
target: document.body,
|
130
142
|
background: 'unset'
|
@@ -149,6 +161,10 @@ function getGrid(that, tableRef) {
|
|
149
161
|
this.createCountTimer();
|
150
162
|
this.tableTarget = getGrid(this.option.vue, this.option.targetRef);
|
151
163
|
|
164
|
+
//获取查询条件
|
165
|
+
let originOption = this.tableTarget.originOption;
|
166
|
+
this.queryParam = this.$baseLodash.cloneDeep(originOption.param() || {});
|
167
|
+
|
152
168
|
let that = this;
|
153
169
|
let options = this.option;
|
154
170
|
let title = options.title || this.$t2('导出', 'components.excelExport.title');
|
@@ -451,7 +467,8 @@ function getGrid(that, tableRef) {
|
|
451
467
|
let originOption = target.originOption;
|
452
468
|
let url = originOption.exportPath || originOption.path;
|
453
469
|
|
454
|
-
let params = originOption.param() || {};
|
470
|
+
// let params = originOption.param() || {};
|
471
|
+
let params = that.queryParam;
|
455
472
|
let aParam = {
|
456
473
|
current: pageNumber,
|
457
474
|
size: pPageSize,
|
@@ -901,7 +918,30 @@ function getGrid(that, tableRef) {
|
|
901
918
|
this.startProcess();
|
902
919
|
}
|
903
920
|
});
|
904
|
-
}
|
921
|
+
},
|
922
|
+
lockMenu(){
|
923
|
+
let path = this.$route.path;
|
924
|
+
let visitedViews = this.$store.state.tagsView.visitedViews
|
925
|
+
if(visitedViews){
|
926
|
+
let currentItem = visitedViews.find(item=>item.path == path)
|
927
|
+
if(currentItem && !currentItem.meta.affix){
|
928
|
+
this.$set(currentItem.meta, "affix",true)
|
929
|
+
this.$set(currentItem.meta, "user_affix",true)
|
930
|
+
}
|
931
|
+
}
|
932
|
+
|
933
|
+
},
|
934
|
+
unlockMenu(){
|
935
|
+
let path = this.$route.path;
|
936
|
+
let visitedViews = this.$store.state.tagsView.visitedViews
|
937
|
+
if(visitedViews){
|
938
|
+
let currentItem = visitedViews.find(item=>item.path == path)
|
939
|
+
if(currentItem && currentItem.meta.user_affix){
|
940
|
+
currentItem.meta.affix = false
|
941
|
+
currentItem.meta.user_affix = false
|
942
|
+
}
|
943
|
+
}
|
944
|
+
},
|
905
945
|
}
|
906
946
|
};
|
907
947
|
})();
|
@@ -70,7 +70,7 @@ export default {
|
|
70
70
|
widgetClass() {
|
71
71
|
let list = [];
|
72
72
|
let optionModel = this.field.options
|
73
|
-
if (optionModel.
|
73
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
74
74
|
if (optionModel.underline) list.push('underLine');
|
75
75
|
if (optionModel.disabled) list.push('is-disabled');
|
76
76
|
return list
|
@@ -66,7 +66,7 @@ export default {
|
|
66
66
|
widgetClass() {
|
67
67
|
let list = [];
|
68
68
|
let optionModel = this.field.options
|
69
|
-
if (optionModel.
|
69
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
70
70
|
if (optionModel.underline) list.push('underLine');
|
71
71
|
if (optionModel.disabled) list.push('is-disabled');
|
72
72
|
return list
|
@@ -10,7 +10,9 @@
|
|
10
10
|
:format="field.options.format" :value-format="field.options.valueFormat"
|
11
11
|
:placeholder="getI18nLabel(field.options.placeholder || '选择日期')"
|
12
12
|
@focus="handleFocusCustomEvent" @blur="handleBlurCustomEvent"
|
13
|
-
@change="handleChangeEvent"
|
13
|
+
@change="handleChangeEvent"
|
14
|
+
:picker-options="pickerOptions"
|
15
|
+
>
|
14
16
|
</el-date-picker>
|
15
17
|
</form-item-wrapper>
|
16
18
|
</template>
|
@@ -60,6 +62,7 @@ export default {
|
|
60
62
|
oldFieldValue: null, //field组件change之前的值
|
61
63
|
fieldModel: null,
|
62
64
|
rules: [],
|
65
|
+
pickerOptions: {}
|
63
66
|
}
|
64
67
|
},
|
65
68
|
computed: {},
|
@@ -76,6 +79,15 @@ export default {
|
|
76
79
|
this.buildFieldRules()
|
77
80
|
|
78
81
|
this.handleOnCreated()
|
82
|
+
|
83
|
+
if(['year','month','date'].includes(this.field.options.type)){
|
84
|
+
this.pickerOptions.shortcuts = [{
|
85
|
+
text: this.$t1('此刻'),
|
86
|
+
onClick(picker) {
|
87
|
+
picker.$emit('pick', new Date());
|
88
|
+
}
|
89
|
+
}]
|
90
|
+
}
|
79
91
|
},
|
80
92
|
|
81
93
|
mounted() {
|
@@ -86,7 +98,14 @@ export default {
|
|
86
98
|
this.unregisterFromRefList()
|
87
99
|
},
|
88
100
|
|
89
|
-
methods: {
|
101
|
+
methods: {
|
102
|
+
setNow() {
|
103
|
+
this.$refs.fieldEditor.panel.changeToNow()
|
104
|
+
/*this.selectedDate = new Date();
|
105
|
+
// 可选:点击后自动关闭弹窗
|
106
|
+
this.$refs.datePicker.pickerVisible = false;*/
|
107
|
+
}
|
108
|
+
}
|
90
109
|
}
|
91
110
|
</script>
|
92
111
|
|
@@ -6,7 +6,8 @@ import {
|
|
6
6
|
runDataSourceRequest,
|
7
7
|
getReportGlobalMap,
|
8
8
|
getAccessUrl,
|
9
|
-
generateId
|
9
|
+
generateId,
|
10
|
+
trim
|
10
11
|
} from "../../../../../components/xform/utils/util";
|
11
12
|
import FormValidators, {getRegExp} from "../../../../../components/xform/utils/validators";
|
12
13
|
import scriptHttpMixin from "../../../../../components/xform/mixins/scriptHttp";
|
@@ -1005,13 +1006,15 @@ modules = {
|
|
1005
1006
|
if (this.hasVabsearchFlag()) {
|
1006
1007
|
if (this.field.options.multipleChoices) {
|
1007
1008
|
let fieldKeyName = this.fieldKeyName;
|
1008
|
-
let valueField = this.field.options.valueField || fieldKeyName;
|
1009
|
-
let vabSearchName = this.field.options.vabSearchName || fieldKeyName;
|
1009
|
+
let valueField = trim(this.field.options.valueField || fieldKeyName);
|
1010
|
+
let vabSearchName = trim(this.field.options.vabSearchName || fieldKeyName);
|
1011
|
+
let valueSourceField = trim(searchDialogConfig.valueSourceField)
|
1012
|
+
let labelSourceField = trim(searchDialogConfig.labelSourceField)
|
1010
1013
|
|
1011
1014
|
rows = (this.fieldModel || []).map((row) => {
|
1012
1015
|
return {
|
1013
|
-
[
|
1014
|
-
[
|
1016
|
+
[valueSourceField]: row[valueField],
|
1017
|
+
[labelSourceField]: row[vabSearchName],
|
1015
1018
|
};
|
1016
1019
|
});
|
1017
1020
|
}
|
@@ -1057,11 +1060,13 @@ modules = {
|
|
1057
1060
|
let row = rows && rows.length ? rows[0] : null;
|
1058
1061
|
let multipleChoices =
|
1059
1062
|
optionModel.searchDialogConfig.multipleChoices || false;
|
1063
|
+
|
1064
|
+
let valueSourceField = trim(searchDialogConfig.valueSourceField)
|
1065
|
+
let labelSourceField = trim(searchDialogConfig.labelSourceField)
|
1060
1066
|
if (this.hasVabsearchFlag()) {
|
1061
1067
|
let fieldKeyName = this.fieldKeyName;
|
1062
|
-
let valueField = this.field.options.valueField || fieldKeyName;
|
1063
|
-
let vabSearchName = this.field.options.vabSearchName || fieldKeyName;
|
1064
|
-
|
1068
|
+
let valueField = trim(this.field.options.valueField || fieldKeyName);
|
1069
|
+
let vabSearchName = trim(this.field.options.vabSearchName || fieldKeyName);
|
1065
1070
|
if (tableParam) {
|
1066
1071
|
let rowData = tableParam.row;
|
1067
1072
|
if (this.getMultipleChoices()) {
|
@@ -1071,28 +1076,30 @@ modules = {
|
|
1071
1076
|
rowData[fieldKeyName] = rows.map((item) => {
|
1072
1077
|
let newData = {};
|
1073
1078
|
newData[valueField] =
|
1074
|
-
item[
|
1079
|
+
item[valueSourceField] ?? null;
|
1075
1080
|
newData[vabSearchName] =
|
1076
|
-
item[
|
1081
|
+
item[labelSourceField] ?? null;
|
1077
1082
|
tableData.forEach((item1) => {
|
1078
|
-
let targetFormField = item1.targetFormField || item1.targetField
|
1079
|
-
|
1083
|
+
let targetFormField = trim(item1.targetFormField || item1.targetField)
|
1084
|
+
let sourceField = trim(item1.sourceField)
|
1085
|
+
newData[targetFormField] = item[sourceField];
|
1080
1086
|
});
|
1081
1087
|
return newData;
|
1082
1088
|
});
|
1083
1089
|
}
|
1084
1090
|
} else {
|
1085
1091
|
rowData[fieldKeyName] = !isClear
|
1086
|
-
? row[
|
1092
|
+
? row[valueSourceField]
|
1087
1093
|
: null;
|
1088
|
-
if (
|
1094
|
+
if (labelSourceField)
|
1089
1095
|
rowData[vabSearchName] = !isClear
|
1090
|
-
? row[
|
1096
|
+
? row[labelSourceField]
|
1091
1097
|
: null;
|
1092
1098
|
tableData.forEach((item) => {
|
1093
|
-
let targetFormField = item.targetFormField || item.targetField;
|
1099
|
+
let targetFormField = trim(item.targetFormField || item.targetField);
|
1100
|
+
let sourceField = trim(item.sourceField)
|
1094
1101
|
if (!isClear) {
|
1095
|
-
rowData[targetFormField] = row[
|
1102
|
+
rowData[targetFormField] = row[sourceField];
|
1096
1103
|
} else {
|
1097
1104
|
rowData[targetFormField] = null;
|
1098
1105
|
}
|
@@ -1107,12 +1114,13 @@ modules = {
|
|
1107
1114
|
rowData = rows.map((item) => {
|
1108
1115
|
let newData = {};
|
1109
1116
|
newData[valueField] =
|
1110
|
-
item[
|
1117
|
+
item[valueSourceField] ?? null;
|
1111
1118
|
newData[vabSearchName] =
|
1112
|
-
item[
|
1119
|
+
item[labelSourceField] ?? null;
|
1113
1120
|
tableData.forEach((item1) => {
|
1114
|
-
let targetFormField = item1.targetFormField || item1.targetField
|
1115
|
-
|
1121
|
+
let targetFormField = trim(item1.targetFormField || item1.targetField)
|
1122
|
+
let sourceField = trim(item1.sourceField)
|
1123
|
+
newData[targetFormField] = item[sourceField];
|
1116
1124
|
});
|
1117
1125
|
return newData;
|
1118
1126
|
});
|
@@ -1120,20 +1128,22 @@ modules = {
|
|
1120
1128
|
this.setValue(rowData);
|
1121
1129
|
} else {
|
1122
1130
|
this.fieldModel = !isClear
|
1123
|
-
? row[
|
1131
|
+
? row[valueSourceField]
|
1124
1132
|
: null;
|
1125
|
-
if (
|
1133
|
+
if (labelSourceField) {
|
1126
1134
|
this.setShowValue(
|
1127
|
-
!isClear ? row[
|
1135
|
+
!isClear ? row[labelSourceField] : null
|
1128
1136
|
);
|
1129
1137
|
}
|
1130
1138
|
tableData.forEach((item) => {
|
1131
1139
|
// formModel[item.targetField] = row[item.sourceField]
|
1132
1140
|
let value = !isClear ? row[item.sourceField] ?? null : null;
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1141
|
+
let targetField = trim(item.targetField)
|
1142
|
+
let targetFormField = trim(item.targetFormField)
|
1143
|
+
if (targetField) {
|
1144
|
+
this.getWidgetRef(targetField).setValue(value);
|
1145
|
+
} else if (targetFormField) {
|
1146
|
+
formModel[targetFormField] = value;
|
1137
1147
|
}
|
1138
1148
|
});
|
1139
1149
|
}
|
@@ -1144,25 +1154,28 @@ modules = {
|
|
1144
1154
|
let addRows = rows.map((rowData) => {
|
1145
1155
|
let itemData = {};
|
1146
1156
|
tableData.forEach((item) => {
|
1147
|
-
let targetFormField = item.targetFormField || item.targetField;
|
1148
|
-
|
1157
|
+
let targetFormField = trim(item.targetFormField || item.targetField);
|
1158
|
+
let sourceField = trim(item.sourceField)
|
1159
|
+
itemData[targetFormField] = rowData[sourceField];
|
1149
1160
|
});
|
1150
1161
|
return itemData;
|
1151
1162
|
});
|
1163
|
+
let tableUniqueKey = trim(searchDialogConfig.tableUniqueKey);
|
1152
1164
|
this.getWidgetRef(searchDialogConfig.tableRef).addTableData(
|
1153
1165
|
addRows,
|
1154
|
-
|
1166
|
+
tableUniqueKey
|
1155
1167
|
);
|
1156
1168
|
} else if (!multipleChoices) {
|
1157
1169
|
tableData.forEach((item) => {
|
1158
1170
|
let value = row[item.sourceField] ?? null;
|
1159
1171
|
// formModel[item.targetField] = value
|
1160
1172
|
// this.getWidgetRef(item.targetField).setValue(value);
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1173
|
+
let targetField = trim(item.targetField)
|
1174
|
+
let targetFormField = trim(item.targetFormField)
|
1175
|
+
if (targetField) {
|
1176
|
+
this.getWidgetRef(targetField).setValue(value);
|
1177
|
+
} else if (targetFormField) {
|
1178
|
+
formModel[targetFormField] = value;
|
1166
1179
|
}
|
1167
1180
|
|
1168
1181
|
|
@@ -487,7 +487,7 @@ export default {
|
|
487
487
|
getWidgetClass() {
|
488
488
|
let list = [];
|
489
489
|
let optionModel = this.field.options.widgetTextLinkConfig?.options || {};
|
490
|
-
if (optionModel.
|
490
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
491
491
|
if (optionModel.underline) list.push('underLine');
|
492
492
|
if (this.field.options.disabled) list.push('is-disabled');
|
493
493
|
return list
|
@@ -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>
|
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>
|
@@ -29,7 +29,7 @@ const COMMON_PROPERTIES = {
|
|
29
29
|
'labelHidden': 'labelHidden-editor',
|
30
30
|
'rows': 'rows-editor',
|
31
31
|
'required': 'required-editor',
|
32
|
-
'requiredHint': 'requiredHint-editor',
|
32
|
+
// 'requiredHint': 'requiredHint-editor',
|
33
33
|
'validation': 'validation-editor',
|
34
34
|
'validationHint': 'validationHint-editor',
|
35
35
|
'readonly': 'readonly-editor',
|
@@ -157,6 +157,7 @@ const COMMON_PROPERTIES = {
|
|
157
157
|
"tagFormCode": "project-tag-editor",
|
158
158
|
"autoValueEnabled": "autoValueEnabled-editor",
|
159
159
|
// "commonAttributeEnabled": "commonAttributeEnabled-editor"
|
160
|
+
"colorClass": "colorClass-editor",
|
160
161
|
}
|
161
162
|
|
162
163
|
const ADVANCED_PROPERTIES = {
|
@@ -168,7 +169,7 @@ const ADVANCED_PROPERTIES = {
|
|
168
169
|
'controlsPosition': 'controlsPosition-editor',
|
169
170
|
'minLength': 'minLength-editor',
|
170
171
|
'maxLength': 'maxLength-editor',
|
171
|
-
'showWordLimit': 'showWordLimit-editor',
|
172
|
+
// 'showWordLimit': 'showWordLimit-editor',
|
172
173
|
'prefixIcon': 'prefixIcon-editor',
|
173
174
|
'suffixIcon': 'suffixIcon-editor',
|
174
175
|
'switchWidth': 'switchWidth-editor',
|