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