Index-legacy-782e83ad.js 6.5 KB

1
  1. System.register(["./Detail.vue_vue_type_script_setup_true_lang-legacy-9e4ccf6f.js","./CusNavigation-legacy-6c20afcf.js","./index-legacy-755e9f4a.js","./index-legacy-4d01450a.js","./ReloadOutlined-legacy-525c1ef3.js"],(function(e,t){"use strict";var n,l,a,i,o,d,r,u,c,f,s,p,v,g,h,y,x,b,m,k,w,_,C,z,F;return{setters:[function(e){n=e._,l=e.a},function(e){a=e.C},function(e){i=e.p},function(e){o=e.d,d=e.v,r=e.i,u=e.n,c=e.r,f=e.o,s=e.y,p=e.e,v=e.c,g=e.f,h=e.w,y=e.F,x=e.Q,b=e.S,m=e.t,k=e.B,w=e.D,_=e.p,C=e.j,z=e._},function(e){F=e.R}],execute:function(){var t=document.createElement("style");t.textContent="[data-v-4395d15d] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-4395d15d] .ant-spin-nested-loading{height:100%}[data-v-4395d15d] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-4395d15d] .ant-table{flex-grow:1;height:0px}[data-v-4395d15d] .ant-table-container{height:100%}[data-v-4395d15d] .ant-table-body{overflow-y:auto!important;height:100%;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-4395d15d] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-4395d15d] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-4395d15d] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-4395d15d] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-4395d15d] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-4395d15d]:hover{cursor:not-allowed}\n",document.head.appendChild(t);var S=function(e){return _("data-v-4395d15d"),e=e(),C(),e},j={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},I={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},R={style:{display:"flex"}},T=S((function(){return p("span",null,"添加",-1)})),O={key:0,style:{color:"green"}},W={key:1,style:{color:"red"}},D={key:0},Q={key:0},A=[S((function(){return p("span",null,"最小值:",-1)}))],B={key:1},E=[S((function(){return p("span",null,"最大值:",-1)}))],H={key:2},J=[S((function(){return p("span",null,"最大长度:",-1)}))],N={key:3},U={key:1},q=["onClick"],G=["onClick"],K=S((function(){return p("a",{style:{"margin-left":"26px"}},"删除",-1)}));e("default",z(o({__name:"Index",setup:function(e){var t=d({pageSize:10,current:1,size:"default",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,t){console.log("111",e,t),this.current=e,this.pageSize=t,z()}}),o=r([]),_=r(!1),C=d({size:20,page:1,sort:"code",order:"asc",keyWord:"",productId:"0"}),z=function(){_.value=!0,C.size=t.pageSize,C.page=t.current,C.productId=Z.value,i({url:"/product-model/search",data:C},(function(e){console.log(e),t.total=e.total,o.value=e.data,_.value=!1}))},S=function(){t.current=1,z()},L=r(null),M=function(e){var t;console.log(e),null===(t=L.value)||void 0===t||t.add(Z.value)},P=r(null),V=function(e){console.log(e),z()},X=r(null),Y=d({x:1400}),Z=r("0");return u((function(){var e;Y.y=(null===(e=X.value)||void 0===e?void 0:e.clientHeight)-113,z()})),function(e,d){var r=c("a-button"),u=c("a-tooltip"),Z=c("a-input"),$=c("a-form-item"),ee=c("a-form"),te=c("a-table-column"),ne=c("a-popconfirm"),le=c("a-table");return f(),s(y,null,[p("div",j,[v(g(a),{gobackabled:"",title:"通用产品功能"}),p("div",I,[p("div",R,[v(r,{type:"primary",style:{"margin-right":"10px",background:"#0058FF"},onClick:M},{icon:h((function(){return[v(g(x))]})),default:h((function(){return[T]})),_:1}),v(ee,{layout:"inline",model:C},{default:h((function(){return[v($,null,{default:h((function(){return[v(Z,{allowClear:"",value:C.keyWord,"onUpdate:value":d[0]||(d[0]=function(e){return C.keyWord=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:h((function(){return[v(u,{title:"点击搜索",onClick:S},{default:h((function(){return[v(g(b),{style:{color:"rgba(0, 0, 0, 0.45)"}})]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1},8,["model"])]),p("div",null,[v(u,{onClick:z},{default:h((function(){return[v(g(F),{style:{"font-size":"16px"}})]})),_:1})])]),p("div",{ref_key:"table_container",ref:X,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[v(le,{"data-source":o.value,pagination:t,scroll:Y,bordered:!0,loading:_.value,size:"middle"},{default:h((function(){return[v(te,{title:"序号",width:60,fixed:"left",align:"center"},{default:h((function(e){var t=e.index;return[p("div",null,m(t+1),1)]})),_:1}),v(te,{title:"编号","data-index":"code",width:80,fixed:"left",align:"center"}),v(te,{title:"名称","data-index":"name",width:180,fixed:"left",align:"left"}),v(te,{title:"标识符","data-index":"tag",width:120,fixed:"left"}),v(te,{title:"数据类型","data-index":"type",width:120}),v(te,{title:"是否为数组",width:100},{default:h((function(e){var t,n=e.record;return[p("div",null,[null!==(t=n.define)&&void 0!==t&&t.isArray?(f(),s("span",O,"是")):(f(),s("span",W,"否"))])]})),_:1}),v(te,{title:"数据定义","data-index":"define",width:200},{default:h((function(e){var t,n,l=e.record;return[null!==(t=l.define)&&void 0!==t&&t.range?(f(),s("div",D,[(f(!0),s(y,null,k(null===(n=l.define)||void 0===n?void 0:n.range,(function(e,t){return f(),s("div",{key:t},["min"==t?(f(),s("span",Q,A)):"max"==t?(f(),s("span",B,E)):"len"==t?(f(),s("span",H,J)):(f(),s("span",N,[p("span",null,m(t)+":",1)])),p("span",null,m(e),1)])})),128))])):(f(),s("div",U,"未定义"))]})),_:1}),v(te,{title:"描述","data-index":"description","min-width":400}),v(te,{title:"创建时间","data-index":"createTime",width:200}),v(te,{title:"操作",width:200,fixed:"right"},{default:h((function(e){var t=e.record;return[p("div",null,[p("a",{onClick:function(e){return function(e){var t;console.log(e),null===(t=P.value)||void 0===t||t.show()}(t)}},"查看",8,q),p("a",{style:{"margin-left":"26px"},onClick:function(e){return function(e){var t;console.log(e),null===(t=L.value)||void 0===t||t.update(e)}(t)}},"编辑",8,G),v(ne,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:function(e){return function(e){console.log(e);var t={id:e.id};i({url:"/product-model/delete",data:t},(function(e){console.log(e),w.info(e.msg),z()}))}(t)}},{default:h((function(){return[K]})),_:2},1032,["onConfirm"])])]})),_:1})]})),_:1},8,["data-source","pagination","scroll","loading"])],512)]),v(n,{ref_key:"addRef",ref:L,onOnSuccess:V},null,512),v(l,{ref_key:"detailRef",ref:P,onOnSuccess:V},null,512)],64)}}}),[["__scopeId","data-v-4395d15d"]]))}}}));