| 1 |
- var I=Object.defineProperty;var b=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var h=(a,e,t)=>e in a?I(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,S=(a,e)=>{for(var t in e||(e={}))J.call(e,t)&&h(a,t,e[t]);if(b)for(var t of b(e))F.call(e,t)&&h(a,t,e[t]);return a};var d=(a,e,t)=>new Promise((i,r)=>{var u=o=>{try{n(t.next(o))}catch(l){r(l)}},f=o=>{try{n(t.throw(o))}catch(l){r(l)}},n=o=>o.done?i(o.value):Promise.resolve(o.value).then(u,f);n((t=t.apply(a,e)).next())});import{u as A,_ as R}from"./useForm-bf5d38b3.js";import"./FormItem.vue_vue_type_script_lang-47ec905a.js";import{at as V,_ as E}from"./index.js";import{f as M}from"./data-e7d17e40.js";import{m as N,f as P}from"./jointApi-325e1207.js";import{B as g}from"./antd-ae1b6d7a.js";import{d as G,f as v,o as T,x as $,Y as L,Z as W,_ as y,l as m,u as c,a7 as w,E as x}from"./vue-8fccce23.js";import"./index-7aaf3861.js";import"./useWindowSizeFn-e2b93e2a.js";import"./useFormItem-d8e2777d.js";import"./uuid-31b8b5a4.js";import"./useSortable-7338e303.js";import"./download-fac9a150.js";import"./index-527f5ed9.js";import"./copyTextToClipboard-bcb97301.js";import"./index-7353ad02.js";import"./index-e2fcc68e.js";import"./TextEditor-06494ff7.js";import"./onMountedOrActivated-cb072c10.js";const Y={class:"steps-inner"},Z={class:"steps-action"},j=G({__name:"dataJobSetting",props:{dataId:{type:String}},emits:["success","close","previousStep"],setup(a,{emit:e}){const t=a,i=v(!1),r=v({}),u=v(),{createMessage:f}=V(),[n,{setFieldsValue:o,resetFields:l,validate:C}]=A({labelWidth:100,schemas:M,showActionButtonGroup:!1,baseColProps:{span:13},rowProps:{gutter:200}});T(()=>d(this,null,function*(){t.dataId&&(yield k(t.dataId))}));function D(){e("previousStep",t.dataId)}function k(p){return d(this,null,function*(){yield $(),yield l();const s=yield N(p);r.value=s,u.value=s.id;const _={name:s.name};s.properties&&s.properties.cron&&(_.cron=s.properties.cron),yield o(S({},_))})}function B(){return d(this,null,function*(){try{const p=yield C();i.value=!0,r.value.properties={cron:p.cron,dirtyAllowRate:p.dirtyAllowRate},yield P(r.value),f.success("系统对接任务配置成功!"),e("close")}finally{i.value=!1}})}return(p,s)=>(L(),W("div",Y,[y("div",null,[m(c(R),{onRegister:c(n)},null,8,["onRegister"])]),y("div",null,[y("div",Z,[m(c(g),{loading:i.value,type:"primary",onClick:D},{default:w(()=>[x("上一步")]),_:1},8,["loading"]),m(c(g),{loading:i.value,type:"primary",style:{"margin-left":"8px"},onClick:B},{default:w(()=>[x("保存")]),_:1},8,["loading"]),m(c(g),{loading:i.value,danger:"",style:{"margin-left":"8px"},onClick:s[0]||(s[0]=_=>e("close"))},{default:w(()=>[x("关闭")]),_:1},8,["loading"])])])]))}});const mt=E(j,[["__scopeId","data-v-e448e47a"]]);export{mt as default};
|