Files
aiot-platform-ui/apps/web-antd/dist/js/index-nrFmoZ3R.js
lzh 19d36d1ffb
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-09 13:05:46 +08:00

2 lines
3.6 KiB
JavaScript

var D=Object.defineProperty,A=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var _=(i,t,e)=>t in i?D(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,u=(i,t)=>{for(var e in t||(t={}))P.call(t,e)&&_(i,e,t[e]);if(C)for(var e of C(t))S.call(t,e)&&_(i,e,t[e]);return i},k=(i,t)=>A(i,N(t));var p=(i,t,e)=>new Promise((c,s)=>{var m=a=>{try{o(e.next(a))}catch(r){s(r)}},d=a=>{try{o(e.throw(a))}catch(r){s(r)}},o=a=>a.done?c(a.value):Promise.resolve(a.value).then(m,d);o((e=e.apply(i,t)).next())});import"./vxe-table-uq8U2E1u.js";import{a as W,d as O}from"./index-T2fKX6E-.js";import{at as x,$ as l,c4 as b,a9 as w}from"./bootstrap-CRjSNGHY.js";import{g as I}from"./rangePickerProps-BPpM6dzr.js";import{D as T}from"./dict-enum-CaHgMaDZ.js";import{_ as y}from"./table-action.vue_vue_type_script_setup_true_lang-BdzHKWY1.js";import{_ as M}from"./page.vue_vue_type_script_setup_true_lang-3ywDTU7g.js";import{m as E,ab as G,b2 as R,bJ as f,j as h,u as n}from"../jse/index-index-CMeVxoEG.js";import{u as $}from"./use-vxe-grid-BMVG5Iiw.js";import{A as g}from"./icons-CieLeI1V.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-BB6x-AyV.js";import"./index-BNS265yo.js";function V(){return[{fieldName:"code",label:"流程标识",component:"Input",componentProps:{placeholder:"请输入流程标识",allowClear:!0}},{fieldName:"name",label:"流程名称",component:"Input",componentProps:{placeholder:"请输入流程名称",allowClear:!0}},{fieldName:"status",label:"状态",component:"Select",componentProps:{options:x(T.COMMON_STATUS,"number"),placeholder:"请选择状态",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:k(u({},I()),{allowClear:!0})}]}function j(){return[{field:"id",title:"编号",minWidth:100},{field:"code",title:"流程标识",minWidth:150},{field:"name",title:"流程名称",minWidth:200},{field:"createTime",title:"创建时间",minWidth:180,formatter:"formatDateTime"},{field:"remark",title:"备注",minWidth:200},{field:"status",title:"状态",minWidth:100,cellRender:{name:"CellDict",props:{type:T.COMMON_STATUS}}},{title:"操作",width:130,fixed:"right",slots:{default:"actions"}}]}const Z=E({__name:"index",setup(i){function t(){d.query()}function e(){b.push({name:"AiWorkflowCreate"})}function c(o){b.push({name:"AiWorkflowCreate",params:{id:o.id,type:"update"}})}function s(o){return p(this,null,function*(){const a=w.loading({content:l("ui.actionMessage.deleting",[o.name]),duration:0});try{yield O(o.id),w.success(l("ui.actionMessage.deleteSuccess",[o.name])),t()}finally{a()}})}const[m,d]=$({formOptions:{schema:V()},gridOptions:{columns:j(),height:"auto",keepSource:!0,proxyConfig:{ajax:{query:(r,oe)=>p(null,[r,oe],function*({page:o},a){return yield W(u({pageNo:o.currentPage,pageSize:o.pageSize},a))})}},rowConfig:{keyField:"id",isHover:!0},toolbarConfig:{refresh:!0,search:!0}}});return(o,a)=>(R(),G(n(M),{"auto-content-height":""},{default:f(()=>[h(n(m),{"table-title":"AI 工作流列表"},{"toolbar-tools":f(()=>[h(n(y),{actions:[{label:n(l)("ui.actionTitle.create",["AI 工作流"]),type:"primary",icon:n(g).ADD,auth:["ai:workflow:create"],onClick:e}]},null,8,["actions"])]),actions:f(({row:r})=>[h(n(y),{actions:[{label:n(l)("common.edit"),type:"link",icon:n(g).EDIT,auth:["ai:workflow:update"],onClick:c.bind(null,r)},{label:n(l)("common.delete"),type:"link",danger:!0,icon:n(g).DELETE,auth:["ai:workflow:delete"],popConfirm:{title:n(l)("ui.actionMessage.deleteConfirm",[r.id]),confirm:s.bind(null,r)}}]},null,8,["actions"])]),_:1})]),_:1}))}});export{Z as default};