2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{aO as a,d1 as u,aP as r,d as P,ae as T,aN as l,a1 as S,r as O,u as t,o as d,c as D,b as v,w as I,D as _,a6 as i}from"./index-4ec2ce15.js";import{l as m}from"./index-64867e41.js";/* empty css */import{S as g}from"./SettingItemBox-f60eaa4e.js";import{d as N}from"./chartEditStore-bfc6c223.js";import{u as h}from"./useTargetData.hook-06bbbd45.js";var q=(e=>(e[e.NULL=0]="NULL",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e))(q||{}),U=(e=>(e.FILTER="数据过滤",e.MAPPING="数据映射",e.CONTENT="数据内容",e))(U||{}),p=(e=>(e.STATIC="静态数据",e.AJAX="动态请求",e.Pond="公共接口",e))(p||{});const j=[{label:a.GET,value:a.GET,style:{color:"greenyellow",fontWeight:"bold"}},{label:a.POST,value:a.POST,style:{color:"skyblue",fontWeight:"bold"}},{label:a.PUT,value:a.PUT,style:{color:"goldenrod",fontWeight:"bold"}},{label:a.PATCH,value:a.PATCH,style:{color:"violet",fontWeight:"bold"}},{label:a.DELETE,value:a.DELETE,disabled:!0,style:{fontWeight:"bold"}}],B=[{label:u[r.SECOND],value:r.SECOND},{label:u[r.MINUTE],value:r.MINUTE},{label:u[r.HOUR],value:r.HOUR},{label:u[r.DAY],value:r.DAY}],L={key:0,class:"go-chart-configurations-data"},k=P({__name:"index",setup(e){const b=m(()=>T(()=>import("./index-b454ff8a.js"),["./index-b454ff8a.js","./index-9703cacc.js","./index-4ec2ce15.js","../css/index-9c2eb289.css","./chartEditStore-bfc6c223.js","./plugin-ae137233.js","./icon-42fa39e7.js","./useTargetData.hook-06bbbd45.js","./EditorWorker-43e8cbc4.js","./editorWorker-43a98755.js","../css/EditorWorker-eb2c5524.css","./fileTypeEnum-21359a08.js","../css/index-b75b8879.css","./index-64867e41.js","../css/index-d825de9b.css","./SettingItemBox-f60eaa4e.js","../css/SettingItemBox-462ae6ed.css","../css/index-4dd462f0.css"],import.meta.url)),A=m(()=>T(()=>import("./index-7f30d867.js"),["./index-7f30d867.js","./index-4ec2ce15.js","../css/index-9c2eb289.css","./icon-42fa39e7.js","./SettingItem-35031211.js","../css/SettingItemBox-462ae6ed.css","./SettingItemBox-f60eaa4e.js","./chartEditStore-bfc6c223.js","./plugin-ae137233.js","./useTargetData.hook-06bbbd45.js","./pondIndex.vue_vue_type_style_index_0_scoped_bc18493e_lang-51a9fc87.js","./EditorWorker-43e8cbc4.js","./editorWorker-43a98755.js","../css/EditorWorker-eb2c5524.css","../css/pondIndex-fd522318.css","./useSync.hook-dcdbd18a.js","./chartLayoutStore-810503fe.js","./index-96c3a075.js","./CollapseItem.vue_vue_type_script_setup_true_lang-77b092a0.js","./index.esm.min-2eecdcbd.js","./fileTypeEnum-21359a08.js","../css/index-51120298.css","./project.api-0931840b.js","./index-9703cacc.js","../css/index-b75b8879.css","./index-64867e41.js","../css/index-d825de9b.css","../css/index-2b79e72d.css"],import.meta.url)),y=m(()=>T(()=>import("./index-d0352fad.js"),["./index-d0352fad.js","./index-4ec2ce15.js","../css/index-9c2eb289.css","./icon-42fa39e7.js","./SettingItemBox-f60eaa4e.js","../css/SettingItemBox-462ae6ed.css","./chartEditStore-bfc6c223.js","./plugin-ae137233.js","./noData-e5cefb25.js","./useTargetData.hook-06bbbd45.js","./pondIndex.vue_vue_type_style_index_0_scoped_bc18493e_lang-51a9fc87.js","./SettingItem-35031211.js","./EditorWorker-43e8cbc4.js","./editorWorker-43a98755.js","../css/EditorWorker-eb2c5524.css","../css/pondIndex-fd522318.css","./chartLayoutStore-810503fe.js","./index-96c3a075.js","./CollapseItem.vue_vue_type_script_setup_true_lang-77b092a0.js","./index.esm.min-2eecdcbd.js","./fileTypeEnum-21359a08.js","../css/index-51120298.css","./useSync.hook-dcdbd18a.js","./project.api-0931840b.js","./index-9703cacc.js","../css/index-b75b8879.css","./index-64867e41.js","../css/index-d825de9b.css","../css/index-e14f9969.css"],import.meta.url)),{targetData:o}=h(),C=[{label:p.STATIC,value:l.STATIC},{label:p.AJAX,value:l.AJAX},{label:p.Pond,value:l.Pond}],f=S(()=>{var c,s,n;return((c=o.value.chartConfig)==null?void 0:c.chartFrame)===N.STATIC||typeof((n=(s=o.value)==null?void 0:s.option)==null?void 0:n.dataset)=="undefined"});return(c,s)=>{const n=O("n-select");return t(o)?(d(),D("div",L,[v(t(g),{name:"请求方式",alone:!0},{default:I(()=>[v(n,{value:t(o).request.requestDataType,"onUpdate:value":s[0]||(s[0]=E=>t(o).request.requestDataType=E),disabled:f.value,options:C},null,8,["value","disabled"])]),_:1}),t(o).request.requestDataType===t(l).STATIC?(d(),_(t(b),{key:0})):i("",!0),t(o).request.requestDataType===t(l).AJAX?(d(),_(t(A),{key:1})):i("",!0),t(o).request.requestDataType===t(l).Pond?(d(),_(t(y),{key:2})):i("",!0)])):i("",!0)}}}),J=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));export{q as D,U as T,j as a,J as i,B as s};
|