cloud-web-corejs 1.0.54-dev.190 → 1.0.54-dev.192
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/xform/form-designer/designer.js +1528 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +3 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +16 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +16 -0
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +12 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +203 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +6 -0
- package/src/components/xform/lang/zh-CN.js +8 -1
- package/src/components/xform/mixins/scriptHttp.js +162 -1
- package/src/mixins/tableTree/index.js +1 -192
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -197
@@ -766,7 +766,8 @@ export const defaultSearchDialogConfig = {
|
|
766
766
|
tableUniqueKey: null,
|
767
767
|
tableData: [],
|
768
768
|
multipleChoices: true,
|
769
|
-
confirmCallback: null
|
769
|
+
confirmCallback: null,
|
770
|
+
dialogQueryParam: null
|
770
771
|
}
|
771
772
|
|
772
773
|
export const defaultWfConfig = {
|
@@ -3111,6 +3112,207 @@ export const advancedFields = [
|
|
3111
3112
|
showRules: []
|
3112
3113
|
}
|
3113
3114
|
},
|
3115
|
+
{
|
3116
|
+
type: "dropdown-menu",
|
3117
|
+
icon: "tab",
|
3118
|
+
// commonFlag: !0,
|
3119
|
+
// columnFlag: true,
|
3120
|
+
widgetList: [],
|
3121
|
+
options: {
|
3122
|
+
name: "",
|
3123
|
+
label: "",
|
3124
|
+
hidden: !1,
|
3125
|
+
disabled: !1,
|
3126
|
+
height: '',
|
3127
|
+
// isFullscreen: false,
|
3128
|
+
tabClass: 'tab-boxCard tabCard-sty1',
|
3129
|
+
customClass: "",
|
3130
|
+
dropdownMenuFlag: 1,
|
3131
|
+
...defaultWfConfig,
|
3132
|
+
onCreated: "",
|
3133
|
+
onMounted: "",
|
3134
|
+
}
|
3135
|
+
},
|
3136
|
+
{
|
3137
|
+
type: "dropdown-item",
|
3138
|
+
icon: "tab-pane",
|
3139
|
+
internal: !0,
|
3140
|
+
options: {
|
3141
|
+
name: "",
|
3142
|
+
label: "",
|
3143
|
+
hidden: !1,
|
3144
|
+
active: !1,
|
3145
|
+
disabled: !1,
|
3146
|
+
customClass: "",
|
3147
|
+
dropdownItemFlag: 1,
|
3148
|
+
|
3149
|
+
onClick: "",
|
3150
|
+
clickBindEvent: null,
|
3151
|
+
searchDialogConfig: {
|
3152
|
+
...defaultSearchDialogConfig
|
3153
|
+
},
|
3154
|
+
addTableDataConfig: {
|
3155
|
+
tableRef: null,
|
3156
|
+
tableData: {}
|
3157
|
+
},
|
3158
|
+
}
|
3159
|
+
},
|
3160
|
+
]
|
3161
|
+
|
3162
|
+
|
3163
|
+
export const businessFields = [
|
3164
|
+
{
|
3165
|
+
type: "create_by-text",
|
3166
|
+
targetType: "text",
|
3167
|
+
icon: "text",
|
3168
|
+
commonFlag: !0,
|
3169
|
+
formItemFlag: !0,
|
3170
|
+
columnFlag: true,
|
3171
|
+
tableField: null,
|
3172
|
+
options: {
|
3173
|
+
name: "",
|
3174
|
+
keyNameEnabled: !0,
|
3175
|
+
keyName: "_createBy",
|
3176
|
+
label: "创建人",
|
3177
|
+
submitFlag: true,
|
3178
|
+
formField: "",
|
3179
|
+
hidden: !1,
|
3180
|
+
required: !1,
|
3181
|
+
customClass: "",
|
3182
|
+
defaultValue: "",
|
3183
|
+
labelAlign: "",
|
3184
|
+
labelWidth: null,
|
3185
|
+
labelHidden: !1,
|
3186
|
+
onCreated: "",
|
3187
|
+
onMounted: "",
|
3188
|
+
accessType: "1",
|
3189
|
+
labelColor: '#555555',
|
3190
|
+
...defaultWfConfig,
|
3191
|
+
|
3192
|
+
autoValueEnabled: false,
|
3193
|
+
autoValueHanlde: null,
|
3194
|
+
|
3195
|
+
showRuleFlag: 1,
|
3196
|
+
showRuleEnabled: 1,
|
3197
|
+
showRules: [],
|
3198
|
+
|
3199
|
+
...defaultTextFlagConfig
|
3200
|
+
}
|
3201
|
+
},
|
3202
|
+
{
|
3203
|
+
type: "modify_by-text",
|
3204
|
+
targetType: "text",
|
3205
|
+
icon: "text",
|
3206
|
+
commonFlag: !0,
|
3207
|
+
formItemFlag: !0,
|
3208
|
+
columnFlag: true,
|
3209
|
+
tableField: null,
|
3210
|
+
options: {
|
3211
|
+
name: "",
|
3212
|
+
keyNameEnabled: !0,
|
3213
|
+
keyName: "_modifyBy",
|
3214
|
+
label: "更新人",
|
3215
|
+
submitFlag: true,
|
3216
|
+
formField: "",
|
3217
|
+
hidden: !1,
|
3218
|
+
required: !1,
|
3219
|
+
customClass: "",
|
3220
|
+
defaultValue: "",
|
3221
|
+
labelAlign: "",
|
3222
|
+
labelWidth: null,
|
3223
|
+
labelHidden: !1,
|
3224
|
+
onCreated: "",
|
3225
|
+
onMounted: "",
|
3226
|
+
accessType: "1",
|
3227
|
+
labelColor: '#555555',
|
3228
|
+
...defaultWfConfig,
|
3229
|
+
|
3230
|
+
autoValueEnabled: false,
|
3231
|
+
autoValueHanlde: null,
|
3232
|
+
|
3233
|
+
showRuleFlag: 1,
|
3234
|
+
showRuleEnabled: 1,
|
3235
|
+
showRules: [],
|
3236
|
+
|
3237
|
+
...defaultTextFlagConfig
|
3238
|
+
}
|
3239
|
+
},
|
3240
|
+
{
|
3241
|
+
type: "create_date-text",
|
3242
|
+
targetType: "text",
|
3243
|
+
icon: "text",
|
3244
|
+
commonFlag: !0,
|
3245
|
+
formItemFlag: !0,
|
3246
|
+
columnFlag: true,
|
3247
|
+
tableField: null,
|
3248
|
+
options: {
|
3249
|
+
name: "",
|
3250
|
+
keyNameEnabled: !0,
|
3251
|
+
keyName: "create_date",
|
3252
|
+
label: "创建时间",
|
3253
|
+
submitFlag: true,
|
3254
|
+
formField: "",
|
3255
|
+
hidden: !1,
|
3256
|
+
required: !1,
|
3257
|
+
customClass: "",
|
3258
|
+
defaultValue: "",
|
3259
|
+
labelAlign: "",
|
3260
|
+
labelWidth: null,
|
3261
|
+
labelHidden: !1,
|
3262
|
+
onCreated: "",
|
3263
|
+
onMounted: "",
|
3264
|
+
accessType: "1",
|
3265
|
+
labelColor: '#555555',
|
3266
|
+
...defaultWfConfig,
|
3267
|
+
|
3268
|
+
autoValueEnabled: false,
|
3269
|
+
autoValueHanlde: null,
|
3270
|
+
|
3271
|
+
showRuleFlag: 1,
|
3272
|
+
showRuleEnabled: 1,
|
3273
|
+
showRules: [],
|
3274
|
+
|
3275
|
+
...defaultTextFlagConfig
|
3276
|
+
}
|
3277
|
+
},
|
3278
|
+
{
|
3279
|
+
type: "modfiy_date-text",
|
3280
|
+
targetType: "text",
|
3281
|
+
icon: "text",
|
3282
|
+
commonFlag: !0,
|
3283
|
+
formItemFlag: !0,
|
3284
|
+
columnFlag: true,
|
3285
|
+
tableField: null,
|
3286
|
+
options: {
|
3287
|
+
name: "",
|
3288
|
+
keyNameEnabled: !0,
|
3289
|
+
keyName: "modfiy_date",
|
3290
|
+
label: "更新时间",
|
3291
|
+
submitFlag: true,
|
3292
|
+
formField: "",
|
3293
|
+
hidden: !1,
|
3294
|
+
required: !1,
|
3295
|
+
customClass: "",
|
3296
|
+
defaultValue: "",
|
3297
|
+
labelAlign: "",
|
3298
|
+
labelWidth: null,
|
3299
|
+
labelHidden: !1,
|
3300
|
+
onCreated: "",
|
3301
|
+
onMounted: "",
|
3302
|
+
accessType: "1",
|
3303
|
+
labelColor: '#555555',
|
3304
|
+
...defaultWfConfig,
|
3305
|
+
|
3306
|
+
autoValueEnabled: false,
|
3307
|
+
autoValueHanlde: null,
|
3308
|
+
|
3309
|
+
showRuleFlag: 1,
|
3310
|
+
showRuleEnabled: 1,
|
3311
|
+
showRules: [],
|
3312
|
+
|
3313
|
+
...defaultTextFlagConfig
|
3314
|
+
}
|
3315
|
+
},
|
3114
3316
|
]
|
3115
3317
|
|
3116
3318
|
export const keyNamePrefixMap = {
|
@@ -879,6 +879,12 @@ modules = {
|
|
879
879
|
}
|
880
880
|
Object.assign(queryParams, param);
|
881
881
|
|
882
|
+
// let formRef = that.getFormRef();
|
883
|
+
// let dataTableConfig = formRef.$attrs.dataTableOption || {};
|
884
|
+
if(that.dataTableConfig.queryParam){
|
885
|
+
Object.assign(queryParams, that.dataTableConfig.queryParam);
|
886
|
+
}
|
887
|
+
|
882
888
|
var reqPath = typeof path == "function" ? path() : path;
|
883
889
|
let accessReturnType = this.widget.options.accessReturnType || 2;
|
884
890
|
let scriptCode = this.getScriptCode();
|
@@ -97,7 +97,14 @@ export default {
|
|
97
97
|
status: "状态",
|
98
98
|
"a-link": "超链接按钮",
|
99
99
|
"a-text": "超链接文本",
|
100
|
-
'project-tag': '标签'
|
100
|
+
'project-tag': '标签',
|
101
|
+
'dropdown-menu': '下拉菜单',
|
102
|
+
|
103
|
+
|
104
|
+
"create_by-text": "创建人",
|
105
|
+
"modify_by-text": "更新人",
|
106
|
+
"create_date-text": "创建时间",
|
107
|
+
"modfiy_date-text": "更新时间",
|
101
108
|
},
|
102
109
|
hint: {
|
103
110
|
formulaSetting: "公式设置",
|