Files
aiot-platform-ui/apps/web-antd/dist/js/data-DnYPfZO2.js

2 lines
11 KiB
JavaScript
Raw Normal View History

var A=Object.defineProperty,S=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var N=(n,t,e)=>t in n?A(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,p=(n,t)=>{for(var e in t||(t={}))V.call(t,e)&&N(n,e,t[e]);if(y)for(var e of y(t))F.call(t,e)&&N(n,e,t[e]);return n},a=(n,t)=>S(n,_(t));import{d8 as w,bD as k,bS as R,at as f,as as I}from"./bootstrap-Bjx___ge.js";import{m as U,ce as E,aa as s,ad as x,b2 as m,ab as D,bJ as B,j as u,aQ as d,u as C,ae as K,L as i}from"../jse/index-index-BrHAu2CG.js";import{g as G}from"./rangePickerProps-BzvG95Kb.js";import{D as g}from"./dict-enum-CaHgMaDZ.js";import{C as c}from"./biz-system-enum-BAorzMA8.js";const O={class:"w-full"},W={key:1,class:"relative w-full"},M={class:"absolute bottom-2 right-2"},r=U({__name:"input-upload",props:{defaultValue:{},fileUploadProps:{},inputProps:{},inputType:{},modelValue:{},textareaProps:{}},emits:["change","update:value","update:modelValue"],setup(n,{emit:t}){const e=n,o=t,l=E(e,"modelValue",o,{defaultValue:e.defaultValue,passive:!0});function h(P){l.value=P,o("change",l.value),o("update:value",l.value),o("update:modelValue",l.value)}const T=s(()=>a(p({},e.inputProps),{value:l.value})),q=s(()=>a(p({},e.textareaProps),{value:l.value})),b=s(()=>p({},e.fileUploadProps));return(P,L)=>(m(),x("div",O,[n.inputType==="input"?(m(),D(C(k),d({key:0,readonly:""},T.value),{suffix:B(()=>[u(w,d(b.value,{onReturnText:h}),null,16)]),_:1},16)):(m(),x("div",W,[u(C(R),d({readonly:"",rows:4},q.value),null,16),K("div",M,[u(w,d(b.value,{onReturnText:h}),null,16)])]))]))}});function X(){return[{fieldName:"name",label:"应用名",component:"Input",componentProps:{placeholder:"请输入应用名",allowClear:!0}},{fieldName:"status",label:"开启状态",component:"Select",componentProps:{placeholder:"请选择开启状态",options:f(g.COMMON_STATUS,"number"),allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:a(p({},G()),{clearable:!0})}]}function Z(n){return[{field:"appKey",title:"应用标识",minWidth:40},{field:"name",title:"应用名",minWidth:40},{field:"status",title:"状态",align:"center",minWidth:40,cellRender:{attrs:{beforeChange:n},name:"CellSwitch",props:{checkedValue:c.ENABLE,unCheckedValue:c.DISABLE}}},{title:"支付宝配置",children:[{title:"APP",slots:{default:"alipayAppConfig"}},{title:"PC 网站",slots:{default:"alipayPCConfig"}},{title:"WAP 网站",slots:{default:"alipayWAPConfig"},minWidth:10},{title:"扫码",slots:{default:"alipayQrConfig"}},{title:"条码",slots:{default:"alipayBarConfig"}}]},{title:"微信配置",children:[{title:"小程序",slots:{default:"wxLiteConfig"}},{title:"JSAPI",slots:{default:"wxPubConfig"}},{title:"APP",slots:{default:"wxAppConfig"}},{title:"Native",slots:{default:"wxNativeConfig"}},{title:"WAP 网站",slots:{default:"wxWapConfig"},minWidth:10},{title:"条码",slots:{default:"wxBarConfig"}}]},{title:"钱包支付配置",field:"walletConfig",slots:{default:"walletConfig"}},{title:"模拟支付配置",field:"mockConfig",slots:{default:"mockConfig"}},{title:"操作",width:140,fixed:"right",slots:{default:"actions"}}]}function $(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"应用名",component:"Input",rules:"required",componentProps:{placeholder:"请输入应用名"}},{fieldName:"appKey",label:"应用标识",component:"Input",rules:"required",componentProps:{placeholder:"请输入应用标识"}},{fieldName:"status",label:"开启状态",component:"RadioGroup",rules:I().default(c.ENABLE),componentProps:{options:f(g.COMMON_STATUS,"number"),buttonStyle:"solid",optionType:"button"}},{fieldName:"orderNotifyUrl",label:"支付结果的回调地址",component:"Input",rules:"required",componentProps:{placeholder:"请输入支付结果的回调地址"}},{fieldName:"refundNotifyUrl",label:"退款结果的回调地址",component:"Input",rules:"required",componentProps:{placeholder:"请输