Files
aiot-platform-ui/apps/web-antd/dist/js/thing-model-service-BmDe6vAX.js

2 lines
1.7 KiB
JavaScript

import{m as b,w as V,ad as m,b2 as s,j as o,u as e,bJ as r,cd as _,I as n,bb as g,ab as y,ai as I,bp as P,co as S}from"../jse/index-index-CO0ZsLf2.js";import{n as d,k as p}from"./constants-B5TthjFC.js";import{_ as c}from"./thing-model-input-output-param.vue_vue_type_script_setup_true_lang-3sPKRmOL.js";import{bY as u,c2 as v,ac as U}from"./bootstrap-DsjPfOC_.js";import"./thing-model-property-sXoxwmbL.js";import"./thing-model-enum-data-specs-Bzf6q2Pb.js";import"./thing-model-number-data-specs-BnFyWKJT.js";import"./dict-enum-DRf9W45H.js";const k=b({name:"ThingModelService",__name:"thing-model-service",props:{isStructDataSpecs:{type:Boolean},modelValue:{}},emits:["update:modelValue"],setup(f,{emit:T}){const t=_(f,"modelValue",T);return V(()=>t.value.callType,i=>S(i)&&(t.value.callType=d.ASYNC.value),{immediate:!0}),(i,l)=>(s(),m(n,null,[o(e(u).Item,{rules:[{required:!0,message:"请选择调用方式",trigger:"change"}],label:"调用方式",name:"service.callType"},{default:r(()=>[o(e(v).Group,{value:e(t).callType,"onUpdate:value":l[0]||(l[0]=a=>e(t).callType=a)},{default:r(()=>[(s(!0),m(n,null,g(Object.values(e(d)),a=>(s(),y(e(v),{key:a.value,value:a.value},{default:r(()=>[I(P(a.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),o(e(u).Item,{label:"输入参数"},{default:r(()=>[o(c,{modelValue:e(t).inputParams,"onUpdate:modelValue":l[1]||(l[1]=a=>e(t).inputParams=a),direction:e(p).INPUT},null,8,["modelValue","direction"])]),_:1}),o(e(u).Item,{label:"输出参数"},{default:r(()=>[o(c,{modelValue:e(t).outputParams,"onUpdate:modelValue":l[2]||(l[2]=a=>e(t).outputParams=a),direction:e(p).OUTPUT},null,8,["modelValue","direction"])]),_:1})],64))}}),F=U(k,[["__scopeId","data-v-ef1409d7"]]);export{F as default};