mirror of
https://github.com/FloatTech/zbpdata.git
synced 2025-04-21 11:53:12 +09:00
357 lines
9.9 KiB
JSON
357 lines
9.9 KiB
JSON
{
|
|
"widgetList": [
|
|
{
|
|
"key": 50019,
|
|
"type": "input",
|
|
"alias": "",
|
|
"icon": "text-field",
|
|
"formItemFlag": true,
|
|
"options": {
|
|
"name": "key",
|
|
"label": "名称",
|
|
"labelAlign": "label-right-align",
|
|
"type": "text",
|
|
"defaultValue": "",
|
|
"placeholder": "",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"labelWidth": "120",
|
|
"labelHidden": false,
|
|
"labelWrap": false,
|
|
"readonly": false,
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"clearable": true,
|
|
"showPassword": false,
|
|
"required": false,
|
|
"requiredHint": "",
|
|
"validation": "",
|
|
"validationHint": "",
|
|
"customClass": [],
|
|
"labelIconClass": null,
|
|
"labelIconPosition": "rear",
|
|
"labelTooltip": null,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"showWordLimit": false,
|
|
"prefixIcon": "",
|
|
"suffixIcon": "",
|
|
"appendButton": false,
|
|
"appendButtonDisabled": false,
|
|
"buttonIcon": "custom-search",
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onInput": "",
|
|
"onChange": "",
|
|
"onFocus": "",
|
|
"onBlur": "",
|
|
"onValidate": "",
|
|
"onAppendButtonClick": ""
|
|
},
|
|
"id": "input20562"
|
|
},
|
|
{
|
|
"key": 67108,
|
|
"type": "select",
|
|
"icon": "select-field",
|
|
"formItemFlag": true,
|
|
"options": {
|
|
"name": "type",
|
|
"label": "AI类型",
|
|
"labelAlign": "label-right-align",
|
|
"defaultValue": "openai-api",
|
|
"placeholder": "",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"labelWidth": "120",
|
|
"labelHidden": false,
|
|
"labelWrap": false,
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"clearable": true,
|
|
"filterable": false,
|
|
"allowCreate": false,
|
|
"remote": false,
|
|
"automaticDropdown": false,
|
|
"multiple": false,
|
|
"multipleLimit": 0,
|
|
"dsEnabled": false,
|
|
"dsName": "",
|
|
"dataSetName": "",
|
|
"labelKey": "label",
|
|
"valueKey": "value",
|
|
"optionItems": [
|
|
{
|
|
"label": "openai-api",
|
|
"value": "openai-api"
|
|
},
|
|
{
|
|
"label": "openai-web",
|
|
"value": "openai-web"
|
|
},
|
|
{
|
|
"label": "claude",
|
|
"value": "claude"
|
|
},
|
|
{
|
|
"value": "bing",
|
|
"label": "bing"
|
|
}
|
|
],
|
|
"required": false,
|
|
"requiredHint": "",
|
|
"validation": "",
|
|
"validationHint": "",
|
|
"customClass": "",
|
|
"labelIconClass": null,
|
|
"labelIconPosition": "rear",
|
|
"labelTooltip": null,
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onRemoteQuery": "",
|
|
"onChange": "",
|
|
"onFocus": "",
|
|
"onBlur": "",
|
|
"onValidate": ""
|
|
},
|
|
"id": "select43939"
|
|
},
|
|
{
|
|
"key": 27613,
|
|
"type": "input",
|
|
"alias": "",
|
|
"icon": "text-field",
|
|
"formItemFlag": true,
|
|
"options": {
|
|
"name": "chain",
|
|
"label": "处理器",
|
|
"labelAlign": "label-right-align",
|
|
"type": "text",
|
|
"defaultValue": "",
|
|
"placeholder": "",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"labelWidth": "120",
|
|
"labelHidden": false,
|
|
"labelWrap": false,
|
|
"readonly": false,
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"clearable": true,
|
|
"showPassword": false,
|
|
"required": false,
|
|
"requiredHint": "",
|
|
"validation": "",
|
|
"validationHint": "",
|
|
"customClass": "",
|
|
"labelIconClass": null,
|
|
"labelIconPosition": "rear",
|
|
"labelTooltip": null,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"showWordLimit": false,
|
|
"prefixIcon": "",
|
|
"suffixIcon": "",
|
|
"appendButton": false,
|
|
"appendButtonDisabled": false,
|
|
"buttonIcon": "custom-search",
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onInput": "",
|
|
"onChange": "",
|
|
"onFocus": "",
|
|
"onBlur": "",
|
|
"onValidate": "",
|
|
"onAppendButtonClick": ""
|
|
},
|
|
"id": "input106467"
|
|
},
|
|
{
|
|
"key": 34031,
|
|
"type": "textarea",
|
|
"icon": "textarea-field",
|
|
"formItemFlag": true,
|
|
"options": {
|
|
"name": "message",
|
|
"label": "消息模版",
|
|
"labelAlign": "label-right-align",
|
|
"rows": 3,
|
|
"defaultValue": "",
|
|
"placeholder": "",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"labelWidth": "120",
|
|
"labelHidden": false,
|
|
"labelWrap": false,
|
|
"readonly": false,
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"required": false,
|
|
"requiredHint": "",
|
|
"validation": "",
|
|
"validationHint": "",
|
|
"customClass": [],
|
|
"labelIconClass": null,
|
|
"labelIconPosition": "rear",
|
|
"labelTooltip": null,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"showWordLimit": false,
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onInput": "",
|
|
"onChange": "",
|
|
"onFocus": "",
|
|
"onBlur": "",
|
|
"onValidate": ""
|
|
},
|
|
"id": "textarea46335"
|
|
},
|
|
{
|
|
"key": 42800,
|
|
"type": "textarea",
|
|
"icon": "textarea-field",
|
|
"formItemFlag": true,
|
|
"options": {
|
|
"name": "content",
|
|
"label": "预设模版",
|
|
"labelAlign": "label-right-align",
|
|
"rows": 10,
|
|
"defaultValue": "",
|
|
"placeholder": "",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"labelWidth": "120",
|
|
"labelHidden": false,
|
|
"labelWrap": false,
|
|
"readonly": false,
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"required": false,
|
|
"requiredHint": "",
|
|
"validation": "",
|
|
"validationHint": "",
|
|
"customClass": "",
|
|
"labelIconClass": null,
|
|
"labelIconPosition": "rear",
|
|
"labelTooltip": null,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"showWordLimit": false,
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onInput": "",
|
|
"onChange": "",
|
|
"onFocus": "",
|
|
"onBlur": "",
|
|
"onValidate": ""
|
|
},
|
|
"id": "textarea84327"
|
|
},
|
|
{
|
|
"key": 43823,
|
|
"type": "table",
|
|
"category": "container",
|
|
"icon": "table",
|
|
"rows": [
|
|
{
|
|
"cols": [
|
|
{
|
|
"type": "table-cell",
|
|
"category": "container",
|
|
"icon": "table-cell",
|
|
"internal": true,
|
|
"widgetList": [],
|
|
"merged": false,
|
|
"options": {
|
|
"name": "table-cell-89146",
|
|
"cellWidth": "",
|
|
"cellHeight": "",
|
|
"colspan": 1,
|
|
"rowspan": 1,
|
|
"wordBreak": false,
|
|
"customClass": []
|
|
},
|
|
"id": "table-cell-89146"
|
|
},
|
|
{
|
|
"type": "table-cell",
|
|
"category": "container",
|
|
"icon": "table-cell",
|
|
"internal": true,
|
|
"widgetList": [
|
|
{
|
|
"key": 107567,
|
|
"type": "button",
|
|
"icon": "button",
|
|
"formItemFlag": false,
|
|
"options": {
|
|
"name": "button17495",
|
|
"label": "保存",
|
|
"columnWidth": "200px",
|
|
"size": "",
|
|
"displayStyle": "inline",
|
|
"disabled": false,
|
|
"hidden": false,
|
|
"type": "primary",
|
|
"plain": false,
|
|
"round": true,
|
|
"circle": false,
|
|
"icon": null,
|
|
"customClass": [
|
|
"width120"
|
|
],
|
|
"onCreated": "",
|
|
"onMounted": "",
|
|
"onClick": "const formRef = this.getFormRef()\nconst button = this.getWidgetRef('button17495')\nconst DSV = this.getGlobalDsv()\ndebugger\nformRef.getFormData().then(formData => {\n button.setDisabled(true)\n DSV['HTTP'].post(DSV['API_SERV'] + '/api/preset/edit', formData, {\n 'content-type': 'application/json'\n })\n .then(({data: response}) => {\n button.setDisabled(false)\n if (response.code != 200) {\n this.$message.error(response.msg)\n } else {\n \n this.$message.info('执行成功')\n formRef.$emit('replies', 'close')\n }\n })\n})"
|
|
},
|
|
"id": "button17495"
|
|
}
|
|
],
|
|
"merged": false,
|
|
"options": {
|
|
"name": "table-cell-33314",
|
|
"cellWidth": "120px",
|
|
"cellHeight": "",
|
|
"colspan": 1,
|
|
"rowspan": 1,
|
|
"wordBreak": false,
|
|
"customClass": []
|
|
},
|
|
"id": "table-cell-33314"
|
|
}
|
|
],
|
|
"id": "table-row-104341",
|
|
"merged": false
|
|
}
|
|
],
|
|
"options": {
|
|
"name": "table29839",
|
|
"hidden": false,
|
|
"customClass": [
|
|
"table-cell-94600"
|
|
]
|
|
},
|
|
"id": "table29839"
|
|
}
|
|
],
|
|
"formConfig": {
|
|
"modelName": "formData",
|
|
"refName": "vForm",
|
|
"rulesName": "rules",
|
|
"labelWidth": 80,
|
|
"labelPosition": "left",
|
|
"size": "",
|
|
"labelAlign": "label-left-align",
|
|
"cssCode": "td.table-cell {\n border: none !important;\n}\n\n.table-cell-94600 {\n text-align: right;\n}\n\n.width120 > button {\n width: 120px;\n}",
|
|
"customClass": [],
|
|
"functions": "",
|
|
"layoutType": "PC",
|
|
"jsonVersion": 3,
|
|
"dataSources": [],
|
|
"onFormCreated": "",
|
|
"onFormMounted": "",
|
|
"onFormDataChange": "",
|
|
"onFormValidate": ""
|
|
}
|
|
} |