数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
18 KiB

import{d as Fe,v as Ee,r as ce,h as je,I as M,e as de,o as Ne,B as P,a as i,c as g,z as Q,b as c,l as o,w as n,x as d,F as C,f as R,t as x,g as f,u as K,U as ze,j as L,a4 as W,ab as Ae,Q as Me,a3 as Pe,A as ue,R as Qe,ac as Ke,W as pe,X as be,D as q,V as fe,S as O,ad as We,q as S,m as b,E as He,C as Je,Y as Xe,Z as Ye}from"./index-ea7eee8a.js";import{_ as Ze,a as Ge}from"./vueFile.vue_vue_type_script_setup_true_lang-db7b0571.js";import{_ as et}from"./aceDrawer.vue_vue_type_script_setup_true_lang-74ddf302.js";const tt={class:"main-body"},at={class:"header"},lt={class:"field"},ot={class:"table-field-list"},nt={class:"list"},st={class:"main-form main-table"},rt={key:1,class:"tip"},it={class:"control-btn"},ct={key:0,class:"tip"},dt={class:"control-other"},ut={key:0,class:"tip"},pt=["onClick"],bt=["innerHTML"],ft=c("i",{class:"icon-help"},null,-1),mt=["onClick"],gt=c("div",{class:"table-tip"},[d(" 操作提示:"),c("br"),d(" *从数据列表配置中选择 所属表单"),c("br"),d(" *从左上角 添加表格字段 选择预设字段"),c("br"),d(" *可拖动表头字段移动调整表头字段排列顺序"),c("br"),d(" *可通过顶部工具栏 生成脚本预览 查看或编辑添加自定义字段 ")],-1),_t={class:"sidebar-tools"},ht={class:"h3"},vt=["onClick"],yt=c("div",{class:"h3"},[c("h3",null,"接口数据事件")],-1),Rt=Fe({__name:"index",setup(kt){Ee().changeBreadcrumb([{label:"设计管理"},{label:"列表页设计"}]);const H=ce(),J=ce(),h=je().query,X=Je(),e=M({tableData:{columns:[],config:{}},searchData:{},loading:!1,attrObj:{},config:{},tagList:{},formId:h.form||"",formList:[],name:"",treeData:{},previewVisible:!1,tabsName:"second",formFieldList:[],dict:{},refreshTable:!0}),m=M({visible:!1,title:"",direction:"",content:"",codeType:""}),I=M({dict:'数据字典,用于匹配多选组、下拉选择等,提供动态获取Options接口字典数据,一般不设置,从接口dict获取。格式JSON:"sex":{"0":"男","1":"女"}',afterResponse:'提示:获取列表初始数据后事件,可对请求返回数据进行处理,也可为字符串,如opt="formatTest"',beforeRequest:"提示:获取列表初始数据前事件,可修改请求参数",beforeDelete:"提示:可对删除前提交参数处理"}),Y=()=>{m.visible=!1,m.content="",m.codeType="",m.title=""},me=de(()=>{var a,t,l,u,D,B,w,U;return[{label:"所属表单",placeholder:"请选择所属表单",value:parseInt(e.formId)||"",key:"formId",type:"select",options:e.formList,clearable:!0},{label:"数据列表名称",placeholder:"保存的数据列表名称",value:e.name,key:"name"},{label:"数据添加编辑打开方式",placeholder:"默认新页面打开",value:(a=e.tableData.config)==null?void 0:a.openType,type:"select",options:[{label:"弹窗",value:"dialog"},{label:"新页面",value:"page"}],key:"openType",path:"config",clearable:!0},{label:"窗口宽度",placeholder:"弹窗宽度",value:(t=e.tableData.config)==null?void 0:t.dialogWidth,type:"input",key:"dialogWidth",path:"config",hide:((l=e.tableData.config)==null?void 0:l.openType)!=="dialog"},{label:"横向滚动固定在底部",value:(u=e.tableData.config)==null?void 0:u.fixedBottomScroll,key:"fixedBottomScroll",type:"select",placeholder:"默认开启",path:"config",options:[{label:"启用",value:!0},{label:"禁用",value:!1}],clearable:!0},{label:"列显示隐藏设置",value:(D=e.tableData.config)==null?void 0:D.columnsSetting,key:"columnsSetting",type:"select",placeholder:"默认开启",path:"config",options:[{label:"启用",value:!0},{label:"禁用",value:!1}],clearable:!0},{label:"可折叠查询表单",value:(B=e.tableData.config)==null?void 0:B.expand,key:"expand",type:"switch",path:"config"},{label:"操作列按钮下拉",value:(w=e.tableData.config)==null?void 0:w.operateDropdown,key:"operateDropdown",type:"switch",path:"config"},{label:"开启侧栏树",value:(U=e.tableData.treeData)==null?void 0:U.show,key:"tree",type:"switch"}]}),ge=de(()=>{var l;const a={label:"表单字段",options:e.formFieldList},t=[{label:"其他字段",options:[{label:"多选",type:"selection"},{label:"