1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2025-04-22 04:02:10 +09:00

添加喵小爱数据文件

This commit is contained in:
bincooo 2023-07-05 22:23:28 +08:00
parent d0342c3806
commit 99c11ff369
13 changed files with 2518 additions and 0 deletions

BIN
miaox/load.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1 @@
.layout-container[data-v-eb99ab58]{height:100%;display:flex;align-items:center}.layout-container>.el-container[data-v-eb99ab58]{box-shadow:2px 2px 5px #9ba1a4;border:1px solid grey;margin:0 auto;max-width:1200px;height:800px}.layout-container .banner[data-v-eb99ab58]{text-align:center;font-size:50px;line-height:120px;color:#409eff}.layout-scrollbar .el-scrollbar__view{width:calc(100% - 6px)}

View File

@ -0,0 +1 @@
import{u as H,r as p,c as k,a as n,o as s,b as f,d as t,w as e,e as B,f as v,F as N,g as R,h,i as S,v as V,j as A,t as C}from"./index-53a47fbc.js";const D=(l,r)=>{const a=l.__vccOpts||l;for(const[_,u]of r)a[_]=u;return a},F={class:"layout-container"},L={class:"banner"},T={__name:"Home",setup(l){const r=H(),a=[];for(let o of r.getRoutes())o.path!=="/"&&a.push({path:o.path,name:o.name});const _=p(a),u=k({get:()=>B().path=="/"}),g={date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles"};return p(Array.from({length:20}).fill(g)),(o,$)=>{const m=n("el-menu-item"),x=n("el-menu"),d=n("el-scrollbar"),y=n("el-aside"),b=n("router-view"),w=n("el-main"),i=n("el-container");return s(),f("div",F,[t(i,null,{default:e(()=>[t(y,{width:"200px"},{default:e(()=>[t(d,null,{default:e(()=>[t(x,{router:"","default-active":o.$route.name},{default:e(()=>[t(m,{route:"/",index:"home"},{default:e(()=>[v("* 主 页 *")]),_:1}),(s(!0),f(N,null,R(_.value,(c,j)=>(s(),h(m,{route:c.path,index:c.name},{default:e(()=>[v(C(c.name),1)]),_:2},1032,["route","index"]))),256))]),_:1},8,["default-active"])]),_:1})]),_:1}),t(i,null,{default:e(()=>[t(w,null,{default:e(()=>[t(d,{class:"layout-scrollbar"},{default:e(()=>[(s(),h(b,{key:o.$route.meta.model})),S(A("div",L,"Hello ZeroBot",512),[[V,u.value]])]),_:1})]),_:1})]),_:1})]),_:1})])}}},G=D(T,[["__scopeId","data-v-eb99ab58"]]);export{G as default};

View File

@ -0,0 +1 @@
import{r as _,k as v,l as i,m as R,e as b,E as V,a as t,o as d,b as D,h as j,n as y,d as m,w as k}from"./index-53a47fbc.js";const E={__name:"Render",props:{renderJson:String,formData:{type:Object,default:()=>({})}},emits:["replies"],setup(c,{emit:r}){const l=c,f=_(null),e=v({globalDsv:{API_SERV:"",HTTP:i},json:{},ready:!1,dialogVisible:!1,innerRender:"",params:{}});R(()=>{console.log("----- props -----",l);const a=b(),o=l.renderJson??"/model/"+a.meta.model+".json";i.get(o).then(n=>{console.log(n),e.json=n.data,e.ready=!0}).catch(n=>{console.log(n),V.error({offset:200,message:"获取页面渲染数据失败"})})});function s(a,o){if(console.log("---- replies ----",a,o),a=="close"){e.dialogVisible=!1,r("replies",a,o);return}e.params=o,e.innerRender=a,e.dialogVisible=!0,r("replies",a,o)}return(a,o)=>{const n=t("v-form-render"),p=t("Render",!0),u=t("el-dialog");return d(),D("div",null,[e.ready?(d(),j(n,{key:0,"form-json":e.json,"form-data":l.formData,"option-data":l.optionData,ref_key:"vFormRef",ref:f,onReplies:s,"global-dsv":e.globalDsv},null,8,["form-json","form-data","option-data","global-dsv"])):y("",!0),m(u,{modelValue:e.dialogVisible,"onUpdate:modelValue":o[0]||(o[0]=g=>e.dialogVisible=g),title:"数据窗口","destroy-on-close":"","align-center":""},{default:k(()=>[m(p,{renderJson:e.innerRender,onReplies:s,formData:e.params},null,8,["renderJson","formData"])]),_:1},8,["modelValue"])])}}};export{E as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

14
miaox/static/index.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ZeroBot</title>
<script type="module" crossorigin src="/assets/index-53a47fbc.js"></script>
<link rel="stylesheet" href="/assets/index-72e8e625.css">
</head>
<body>
<div id="app"></div>
</body>
</html>

View File

@ -0,0 +1,710 @@
{
"widgetList": [
{
"key": 50019,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "id",
"label": "ID",
"labelAlign": "",
"type": "text",
"defaultValue": "1",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"labelHidden": false,
"labelWrap": false,
"readonly": true,
"disabled": false,
"hidden": true,
"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": "input10400"
},
{
"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-67012",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-67012"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [
{
"key": 50019,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "proxy",
"label": "VPN代理",
"labelAlign": "label-right-align",
"type": "text",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": "",
"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": "input59521"
},
{
"key": 67108,
"type": "select",
"icon": "select-field",
"formItemFlag": true,
"options": {
"name": "bot",
"label": "AI类型",
"labelAlign": "label-right-align",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": "",
"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-c",
"label": "bing-c"
},
{
"value": "bing-b",
"label": "bing-b"
},
{
"value": "bing-p",
"label": "bing-p"
},
{
"value": "bing-s",
"label": "bing-s"
}
],
"required": false,
"requiredHint": "",
"validation": "",
"validationHint": "",
"customClass": [],
"labelIconClass": null,
"labelIconPosition": "rear",
"labelTooltip": null,
"onCreated": "",
"onMounted": "",
"onRemoteQuery": "",
"onChange": "",
"onFocus": "",
"onBlur": "",
"onValidate": ""
},
"id": "select86833"
},
{
"key": 91566,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "preset",
"label": "默认预设",
"labelAlign": "label-right-align",
"type": "text",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"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": "input9928"
},
{
"key": 106854,
"type": "number",
"icon": "number-field",
"formItemFlag": true,
"options": {
"name": "max_tokens",
"label": "最大Tokens",
"labelAlign": "label-right-align",
"defaultValue": 0,
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": "",
"labelHidden": false,
"labelWrap": false,
"disabled": false,
"hidden": false,
"required": false,
"requiredHint": "",
"validation": "",
"validationHint": "",
"customClass": [],
"labelIconClass": null,
"labelIconPosition": "rear",
"labelTooltip": null,
"min": -100000000000,
"max": 100000000000,
"precision": 0,
"step": 1,
"controlsPosition": "right",
"onCreated": "",
"onMounted": "",
"onChange": "",
"onFocus": "",
"onBlur": "",
"onValidate": ""
},
"id": "number41110"
},
{
"key": 49305,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "nb_serv",
"label": "NB服务器代理",
"labelAlign": "label-right-align",
"type": "text",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"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": "input30270"
},
{
"key": 38154,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "draw_serv",
"label": "AI作画服务地址",
"labelAlign": "label-right-align",
"type": "text",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"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": "input23241"
}
],
"merged": false,
"options": {
"name": "table-cell-42611",
"cellWidth": "500px",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-42611"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-65084",
"cellWidth": "120px",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-65084"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-70065",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-70065"
}
],
"id": "table-row-34454",
"merged": false
},
{
"cols": [
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-29533",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-29533"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [
{
"key": 37413,
"type": "textarea",
"icon": "textarea-field",
"formItemFlag": true,
"options": {
"name": "draw_body",
"label": "作画Body模版",
"labelAlign": "label-right-align",
"rows": 5,
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"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": "textarea96725"
}
],
"merged": false,
"options": {
"name": "table-cell-104037",
"cellWidth": "",
"cellHeight": "",
"colspan": 2,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-104037"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": true,
"options": {
"name": "table-cell-96047",
"cellWidth": "",
"cellHeight": "",
"colspan": 2,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-96047"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-62660",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-62660"
}
],
"id": "table-row-67148",
"merged": false
},
{
"cols": [
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-61611",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-61611"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [
{
"key": 107567,
"type": "button",
"icon": "button",
"formItemFlag": false,
"options": {
"name": "button7690",
"label": "保存",
"columnWidth": "200px",
"size": "",
"displayStyle": "block",
"disabled": false,
"hidden": false,
"type": "primary",
"plain": false,
"round": true,
"circle": false,
"icon": "",
"customClass": [
"button7690"
],
"onCreated": "",
"onMounted": "",
"onClick": "const DSV = this.getGlobalDsv()\nconst formRef = this.getFormRef()\nconst submit = this.getWidgetRef('button7690')\nsubmit.setDisabled(true)\nformRef.getFormData().then(formData => {\n DSV['HTTP'].post(DSV['API_SERV']+\"/api/global/edit\", formData, {\n \"content-type\": \"application/json\"\n })\n .then(({data}) => {\n console.log('---- global edit ----', data)\n submit.setDisabled(false)\n if (data.code == 200) {\n this.$message.info('执行成功')\n } else {\n this.$message.info('执行失败')\n }\n })\n .catch(err => {\n console.log(err)\n this.$message.info('执行失败')\n})\n})\n\n"
},
"id": "button7690"
}
],
"merged": false,
"options": {
"name": "table-cell-80812",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-80812"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-25435",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": ""
},
"id": "table-cell-25435"
},
{
"type": "table-cell",
"category": "container",
"icon": "table-cell",
"internal": true,
"widgetList": [],
"merged": false,
"options": {
"name": "table-cell-108905",
"cellWidth": "",
"cellHeight": "",
"colspan": 1,
"rowspan": 1,
"wordBreak": false,
"customClass": []
},
"id": "table-cell-108905"
}
],
"id": "table-row-113477",
"merged": false
}
],
"options": {
"name": "table32543",
"hidden": false,
"customClass": []
},
"id": "table32543"
}
],
"formConfig": {
"modelName": "formData",
"refName": "vForm",
"rulesName": "rules",
"labelWidth": 120,
"labelPosition": "left",
"size": "",
"labelAlign": "label-left-align",
"cssCode": "td.table-cell {\n border: none !important;\n}\n\n.button7690 {\n text-align: right;\n}\n\n.button7690 button {\n width: 120px;\n}",
"customClass": [],
"functions": "",
"layoutType": "PC",
"jsonVersion": 3,
"dataSources": [],
"onFormCreated": "const DSV = this.getGlobalDsv()\nDSV['HTTP'].get(DSV['API_SERV']+\"/api/global/get?id=1\")\n .then(({ data: response }) => {\n console.log('---- onFormMounted ----')\n console.log(response)\n this.setFormData(response.data)\n })",
"onFormMounted": "",
"onFormDataChange": "",
"onFormValidate": ""
}
}

View File

@ -0,0 +1,447 @@
{
"widgetList": [
{
"key": 26188,
"type": "grid",
"alias": "",
"category": "container",
"icon": "grid",
"cols": [
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 86075,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "key",
"label": "key",
"labelAlign": "",
"type": "text",
"defaultValue": "",
"placeholder": "请输入名称",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"labelHidden": true,
"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": "input55618"
}
],
"options": {
"name": "gridCol57976",
"hidden": false,
"span": 6,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-57976"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 85860,
"type": "select",
"icon": "select-field",
"formItemFlag": true,
"options": {
"name": "type",
"label": "select",
"labelAlign": "",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"labelHidden": true,
"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": "select11324"
}
],
"options": {
"name": "gridCol17285",
"hidden": false,
"span": 5,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-17285"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 107567,
"type": "button",
"icon": "button",
"formItemFlag": false,
"options": {
"name": "button48306",
"label": "搜索",
"columnWidth": "200px",
"size": "",
"displayStyle": "block",
"disabled": false,
"hidden": false,
"type": "",
"plain": false,
"round": false,
"circle": false,
"icon": null,
"customClass": [],
"onCreated": "",
"onMounted": "",
"onClick": "const dataTable = this.getWidgetRef('datatable97383')\ndataTable.loadDataFromDS()"
},
"id": "button48306"
}
],
"options": {
"name": "gridCol73100",
"hidden": false,
"span": 2,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-73100"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 107567,
"type": "button",
"icon": "button",
"formItemFlag": false,
"options": {
"name": "button34592",
"label": "新增",
"columnWidth": "200px",
"size": "",
"displayStyle": "block",
"disabled": false,
"hidden": false,
"type": "primary",
"plain": false,
"round": false,
"circle": false,
"icon": null,
"customClass": [],
"onCreated": "",
"onMounted": "",
"onClick": "const formRef = this.getFormRef()\nconsole.log(\"formRef\", formRef)\nformRef.$emit('replies', '/model/preset_edit.json', {})"
},
"id": "button34592"
}
],
"options": {
"name": "gridCol41672",
"hidden": false,
"span": 2,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": ""
},
"id": "grid-col-41672"
}
],
"options": {
"name": "grid53876",
"hidden": false,
"gutter": 12,
"colHeight": null,
"customClass": []
},
"id": "grid53876"
},
{
"key": 11884,
"type": "data-table",
"category": "container",
"icon": "data-table",
"widgetList": [],
"options": {
"name": "datatable97383",
"label": "data-table",
"hidden": false,
"rowSpacing": 8,
"tableHeight": "650px",
"tableWidth": "100%",
"customClass": [],
"stripe": true,
"showIndex": false,
"showCheckBox": true,
"showPagination": true,
"smallPagination": true,
"showSummary": false,
"border": true,
"tableSize": "small",
"tableColumns": [
{
"columnId": 1,
"prop": "key",
"label": "名称",
"width": "100",
"show": true,
"align": "left",
"fixed": "left",
"sortable": false
},
{
"columnId": 2,
"prop": "type",
"label": "AI类型",
"width": "120",
"show": true,
"align": "left",
"formatS": ""
},
{
"columnId": 1687247644902,
"show": true,
"prop": "chain",
"label": "处理器",
"width": "180"
},
{
"columnId": 3,
"prop": "content",
"label": "预设模版",
"width": "230",
"show": true,
"align": "left",
"formatS": ""
},
{
"columnId": 1687247586441,
"show": true,
"prop": "message",
"label": "消息模版",
"width": "230"
}
],
"showButtonsColumn": true,
"buttonsColumnFixed": "right",
"buttonsColumnTitle": "操作",
"buttonsColumnWidth": 160,
"operationButtons": [
{
"name": "edit",
"label": "编辑",
"type": "text",
"size": "small",
"round": false,
"hidden": false,
"disabled": false
},
{
"name": "delete",
"label": "删除",
"type": "text",
"size": "small",
"round": false,
"hidden": false,
"disabled": false
}
],
"pagination": {
"currentPage": 1,
"pageSizes": [
10,
15,
20,
30,
50,
100,
200
],
"pageSize": 20,
"total": 366
},
"dsEnabled": true,
"dsName": "page",
"dataSetName": "",
"treeDataEnabled": false,
"rowKey": "key",
"childrenKey": "children",
"tableData": [],
"onCreated": "",
"onMounted": "",
"onPageSizeChange": "",
"onCurrentPageChange": "",
"onSelectionChange": "",
"onHideOperationButton": "",
"onDisableOperationButton": "",
"onGetOperationButtonLabel": "",
"onOperationButtonClick": "const formRef = this.getFormRef()\nconst DSV = this.getGlobalDsv()\nconst dataTable = this.getWidgetRef('datatable97383')\n\nif (buttonName == 'edit') {\n formRef.$emit('replies', '/model/preset_edit.json', {...row})\n}\n\nif (buttonName == 'delete') {\n DSV['HTTP'].delete(DSV['API_SERV'] + '/api/preset/del?id=' + row.key)\n .then(({data: response}) => {\n if (response.code != 200) {\n this.$message.error(response.msg)\n } else {\n \n this.$message.info('执行成功')\n dataTable.loadDataFromDS()\n }\n })\n}",
"onHeaderClick": "",
"onRowClick": "",
"onRowDoubleClick": "",
"onCellClick": "",
"onCellDoubleClick": "",
"onGetRowClassName": "",
"onGetSpanMethod": ""
},
"id": "datatable97383"
}
],
"formConfig": {
"modelName": "formData",
"refName": "vForm",
"rulesName": "rules",
"labelWidth": 80,
"labelPosition": "left",
"size": "",
"labelAlign": "label-left-align",
"cssCode": "",
"customClass": [],
"functions": "function delEmptyWithObj(obj) {\n Object.keys(obj).forEach((key, idx) => {\n if (obj[key] == \"\") {\n delete obj[key]\n }\n })\n return obj\n}",
"layoutType": "PC",
"jsonVersion": 3,
"dataSources": [
{
"dataSourceId": "ds93151",
"uniqueName": "page",
"requestURL": "DSV.API_SERV + \"/api/preset/page\"",
"requestURLType": "Variable",
"requestMethod": "post",
"description": "分页查询",
"headers": [
{
"name": "content-type",
"type": "String",
"value": "application/json"
}
],
"params": [],
"data": [],
"configHandlerCode": "console.log('---- 请求配置 -----')\nconsole.log(config, isSandbox, DSV, VFR)\nconst formData = await VFR.getFormData()\nconfig.data = delEmptyWithObj(formData)\nreturn config",
"dataHandlerCode": "console.log('---- 数据处理 -----')\nconsole.log(result, isSandbox, DSV, VFR)\nconst datatable = VFR.getWidgetRef('datatable97383')\nconst { data } = result.data\ndatatable.setPagination({ total: data.total })\nreturn data.list",
"errorHandlerCode": "console.log('---- 错误处理 -----')\nconsole.log(error, isSandbox, DSV, $message, VFR)\n$message.error(error.message);",
"dataSetEnabled": false,
"dataSets": []
}
],
"onFormCreated": "",
"onFormMounted": "",
"onFormDataChange": "",
"onFormValidate": ""
}
}

View File

@ -0,0 +1,357 @@
{
"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": ""
}
}

View File

@ -0,0 +1,463 @@
{
"widgetList": [
{
"key": 26188,
"type": "grid",
"alias": "",
"category": "container",
"icon": "grid",
"cols": [
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 86075,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "key",
"label": "key",
"labelAlign": "",
"type": "text",
"defaultValue": "",
"placeholder": "请输入KEY",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"labelHidden": true,
"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": "input55618"
}
],
"options": {
"name": "gridCol57976",
"hidden": false,
"span": 6,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-57976"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 85860,
"type": "select",
"icon": "select-field",
"formItemFlag": true,
"options": {
"name": "type",
"label": "select",
"labelAlign": "",
"defaultValue": "",
"placeholder": "",
"columnWidth": "200px",
"size": "",
"labelWidth": null,
"labelHidden": true,
"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": "select11324"
}
],
"options": {
"name": "gridCol17285",
"hidden": false,
"span": 5,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-17285"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 107567,
"type": "button",
"icon": "button",
"formItemFlag": false,
"options": {
"name": "button48306",
"label": "搜索",
"columnWidth": "200px",
"size": "",
"displayStyle": "block",
"disabled": false,
"hidden": false,
"type": "",
"plain": false,
"round": false,
"circle": false,
"icon": null,
"customClass": [],
"onCreated": "",
"onMounted": "",
"onClick": "const dataTable = this.getWidgetRef('datatable97383')\ndataTable.loadDataFromDS()"
},
"id": "button48306"
}
],
"options": {
"name": "gridCol73100",
"hidden": false,
"span": 2,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": []
},
"id": "grid-col-73100"
},
{
"type": "grid-col",
"category": "container",
"icon": "grid-col",
"internal": true,
"widgetList": [
{
"key": 107567,
"type": "button",
"icon": "button",
"formItemFlag": false,
"options": {
"name": "button34592",
"label": "新增",
"columnWidth": "200px",
"size": "",
"displayStyle": "block",
"disabled": false,
"hidden": false,
"type": "primary",
"plain": false,
"round": false,
"circle": false,
"icon": null,
"customClass": [],
"onCreated": "",
"onMounted": "",
"onClick": "const formRef = this.getFormRef()\nconsole.log(\"formRef\", formRef)\nformRef.$emit('replies', '/model/token_edit.json', {})"
},
"id": "button34592"
}
],
"options": {
"name": "gridCol41672",
"hidden": false,
"span": 2,
"offset": 0,
"push": 0,
"pull": 0,
"responsive": false,
"md": 12,
"sm": 12,
"xs": 12,
"customClass": ""
},
"id": "grid-col-41672"
}
],
"options": {
"name": "grid53876",
"hidden": false,
"gutter": 12,
"colHeight": null,
"customClass": []
},
"id": "grid53876"
},
{
"key": 11884,
"type": "data-table",
"category": "container",
"icon": "data-table",
"widgetList": [],
"options": {
"name": "datatable97383",
"label": "data-table",
"hidden": false,
"rowSpacing": 8,
"tableHeight": "650px",
"tableWidth": "100%",
"customClass": [],
"stripe": true,
"showIndex": false,
"showCheckBox": true,
"showPagination": true,
"smallPagination": true,
"showSummary": false,
"border": true,
"tableSize": "small",
"tableColumns": [
{
"columnId": 1,
"prop": "key",
"label": "名称",
"width": "100",
"show": true,
"align": "left",
"fixed": "left",
"sortable": false
},
{
"columnId": 2,
"prop": "type",
"label": "AI类型",
"width": "120",
"show": true,
"align": "left",
"formatS": ""
},
{
"columnId": 3,
"prop": "email",
"label": "OPENAI邮箱",
"width": "120",
"show": true,
"align": "left",
"formatS": ""
},
{
"columnId": 4,
"prop": "passwd",
"label": "OPENAI密码",
"width": "120",
"show": true,
"align": "left",
"formatS": ""
},
{
"columnId": 1686449316027,
"show": true,
"prop": "app_id",
"label": "APPID",
"width": "120"
},
{
"columnId": 1685922559699,
"show": true,
"prop": "token",
"label": "身份凭证",
"width": "240"
},
{
"columnId": 1685922565808,
"show": true,
"prop": "expire",
"label": "过期日期",
"width": "120"
}
],
"showButtonsColumn": true,
"buttonsColumnFixed": "right",
"buttonsColumnTitle": "操作",
"buttonsColumnWidth": 125,
"operationButtons": [
{
"name": "edit",
"label": "编辑",
"type": "text",
"size": "small",
"round": false,
"hidden": false,
"disabled": false
},
{
"name": "delete",
"label": "删除",
"type": "text",
"size": "small",
"round": false,
"hidden": false,
"disabled": false
}
],
"pagination": {
"currentPage": 1,
"pageSizes": [
10,
15,
20,
30,
50,
100,
200
],
"pageSize": 20,
"total": 366
},
"dsEnabled": true,
"dsName": "page",
"dataSetName": "",
"treeDataEnabled": false,
"rowKey": "key",
"childrenKey": "children",
"tableData": [],
"onCreated": "",
"onMounted": "",
"onPageSizeChange": "",
"onCurrentPageChange": "",
"onSelectionChange": "",
"onHideOperationButton": "",
"onDisableOperationButton": "",
"onGetOperationButtonLabel": "",
"onOperationButtonClick": "const formRef = this.getFormRef()\nconst DSV = this.getGlobalDsv()\nconst dataTable = this.getWidgetRef('datatable97383')\n\nif (buttonName == 'edit') {\n formRef.$emit('replies', '/model/token_edit.json', {...row})\n}\n\nif (buttonName == 'delete') {\n DSV['HTTP'].delete(DSV['API_SERV'] + '/api/token/del?id=' + row.key)\n .then(({data: response}) => {\n if (response.code != 200) {\n this.$message.error(response.msg)\n } else {\n \n this.$message.info('执行成功')\n dataTable.loadDataFromDS()\n }\n })\n}",
"onHeaderClick": "",
"onRowClick": "",
"onRowDoubleClick": "",
"onCellClick": "",
"onCellDoubleClick": "",
"onGetRowClassName": "",
"onGetSpanMethod": ""
},
"id": "datatable97383"
}
],
"formConfig": {
"modelName": "formData",
"refName": "vForm",
"rulesName": "rules",
"labelWidth": 80,
"labelPosition": "left",
"size": "",
"labelAlign": "label-left-align",
"cssCode": "",
"customClass": [],
"functions": "function delEmptyWithObj(obj) {\n Object.keys(obj).forEach((key, idx) => {\n if (obj[key] == \"\") {\n delete obj[key]\n }\n })\n return obj\n}",
"layoutType": "PC",
"jsonVersion": 3,
"dataSources": [
{
"dataSourceId": "ds93151",
"uniqueName": "page",
"requestURL": "DSV.API_SERV + \"/api/token/page\"",
"requestURLType": "Variable",
"requestMethod": "post",
"description": "分页查询",
"headers": [
{
"name": "content-type",
"type": "String",
"value": "application/json"
}
],
"params": [],
"data": [],
"configHandlerCode": "console.log('---- 请求配置 -----')\nconsole.log(config, isSandbox, DSV, VFR)\nconst formData = await VFR.getFormData()\nconfig.data = delEmptyWithObj(formData)\nreturn config",
"dataHandlerCode": "console.log('---- 数据处理 -----')\nconsole.log(result, isSandbox, DSV, VFR)\nconst datatable = VFR.getWidgetRef('datatable97383')\nconst { data } = result.data\ndatatable.setPagination({ total: data.total })\nreturn data.list",
"errorHandlerCode": "console.log('---- 错误处理 -----')\nconsole.log(error, isSandbox, DSV, $message, VFR)\n$message.error(error.message);",
"dataSetEnabled": false,
"dataSets": []
}
],
"onFormCreated": "",
"onFormMounted": "",
"onFormDataChange": "",
"onFormValidate": ""
}
}

View File

@ -0,0 +1,416 @@
{
"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": 50019,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "email",
"label": "OPENAI邮箱",
"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": "input81967"
},
{
"key": 50019,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "passwd",
"label": "OPENAI密码",
"labelAlign": "label-right-align",
"type": "password",
"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": "input19352"
},
{
"key": 50019,
"type": "input",
"alias": "",
"icon": "text-field",
"formItemFlag": true,
"options": {
"name": "app_id",
"label": "APPID",
"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": "input101715"
},
{
"key": 42800,
"type": "textarea",
"icon": "textarea-field",
"formItemFlag": true,
"options": {
"name": "token",
"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": "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/token/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": ""
}
}

BIN
miaox/storage.db Normal file

Binary file not shown.