Index-legacy-8a429b23.js 11 KB

1
  1. System.register(["./index-legacy-db54d967.js","./index-legacy-f44ab23b.js","./CusNavigation.vue_vue_type_style_index_0_scoped_5e63f475_lang-legacy-aeac0d75.js","./CusNavigation-legacy-868eec01.js","./ReloadOutlined-legacy-dace4f0f.js"],(function(e,t){"use strict";var n,l,a,o,r,i,u,c,d,s,f,v,p,g,b,m,h,y,x,w,k,_,T,C,z,F,O,S;return{setters:[function(e){n=e.p,l=e.a},function(e){a=e.d,o=e.i,r=e.y,i=e.l,u=e.q,c=e.r,d=e.o,s=e.b,f=e.w,v=e.C,p=e.c,g=e.B,b=e.L,m=e.e,h=e.s,y=e.f,x=e.F,w=e.D,k=e.S,_=e.t,T=e.H,C=e.p,z=e.j,F=e._},null,function(e){O=e.C},function(e){S=e.R}],execute:function(){var t=document.createElement("style");t.textContent="[data-v-46b60fa6] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-46b60fa6] .ant-spin-nested-loading{height:100%}[data-v-46b60fa6] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-46b60fa6] .ant-table{flex-grow:1;height:0px}[data-v-46b60fa6] .ant-table-container{height:100%;display:flex;flex-direction:column}[data-v-46b60fa6] .ant-table-body{overflow-y:auto!important;flex-grow:1;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-46b60fa6] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-46b60fa6] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-46b60fa6] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-46b60fa6] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-46b60fa6] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-46b60fa6]:hover{cursor:not-allowed}\n",document.head.appendChild(t);var U,j,L={exports:{}},q=L.exports={};function E(){throw new Error("setTimeout has not been defined")}function R(){throw new Error("clearTimeout has not been defined")}function D(e){if(U===setTimeout)return setTimeout(e,0);if((U===E||!U)&&setTimeout)return U=setTimeout,setTimeout(e,0);try{return U(e,0)}catch(t){try{return U.call(null,e,0)}catch(t){return U.call(this,e,0)}}}!function(){try{U="function"==typeof setTimeout?setTimeout:E}catch(e){U=E}try{j="function"==typeof clearTimeout?clearTimeout:R}catch(e){j=R}}();var W,A=[],H=!1,I=-1;function N(){H&&W&&(H=!1,W.length?A=W.concat(A):I=-1,A.length&&V())}function V(){if(!H){var e=D(N);H=!0;for(var t=A.length;t;){for(W=A,A=[];++I<t;)W&&W[I].run();I=-1,t=A.length}W=null,H=!1,function(e){if(j===clearTimeout)return clearTimeout(e);if((j===R||!j)&&clearTimeout)return j=clearTimeout,clearTimeout(e);try{return j(e)}catch(t){try{return j.call(null,e)}catch(t){return j.call(this,e)}}}(e)}}function B(e,t){this.fun=e,this.array=t}function J(){}q.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];A.push(new B(e,t)),1!==A.length||H||D(V)},B.prototype.run=function(){this.fun.apply(null,this.array)},q.title="browser",q.browser=!0,q.env={},q.argv=[],q.version="",q.versions={},q.on=J,q.addListener=J,q.once=J,q.off=J,q.removeListener=J,q.removeAllListeners=J,q.emit=J,q.prependListener=J,q.prependOnceListener=J,q.listeners=function(e){return[]},q.binding=function(e){throw new Error("process.binding is not supported")},q.cwd=function(){return"/"},q.chdir=function(e){throw new Error("process.chdir is not supported")},q.umask=function(){return 0};var K=L.exports,M=a({__name:"Add",emits:["onSuccess"],setup:function(e,t){var l=t.expose,a=t.emit,m=o(null),h=o(!1),y=o(!0),x=o([{value:"123",label:"网络泵"},{value:"456",label:"化疗泵"},{value:"789",label:"其他"}]),w=r({id:void 0,username:"",password:"",mobile:"",email:"",code:""}),k=function(e){var t;console.log("handleOK",e),null===(t=m.value)||void 0===t||t.validate().then((function(){var e;console.log("11"),e="",e=y.value?"/user/add":"/user/edit",n({url:e,data:w},(function(e){console.log(e),g.info(e.msg),T(),a("onSuccess",e)}))}),(function(){console.log("22")}))},_=function(){h.value=!0,K.nextTick((function(){b("addUser")}))},T=function(){h.value=!1};return i((function(){console.log("onMounted")})),u((function(){console.log("onUnmounted")})),l({add:function(){var e;y.value=!0,v(w),null===(e=m.value)||void 0===e||e.clearValidate(),_()},update:function(e){var t;y.value=!1,Object.assign(w,e),null===(t=m.value)||void 0===t||t.clearValidate(),_()},updateOptions:function(e){x.value=e}}),function(e,t){var n=c("a-input"),l=c("a-form-item"),a=c("a-form"),o=c("a-modal");return d(),s(o,{class:"addUser",title:"添加用户",visible:h.value,"onUpdate:visible":t[3]||(t[3]=function(e){return h.value=e}),maskClosable:!1,width:480,cancelText:"取消",okText:"确定",onOk:k},{default:f((function(){return[p(a,{ref_key:"formRef",ref:m,model:w,name:"basic","label-align":"left","label-col":{span:4},"wrapper-col":{span:20},autocomplete:"off",layout:"vertical"},{default:f((function(){return[p(l,{"wrapper-col":{offset:0,span:24},label:"用户名",name:"username",rules:[{required:!0,message:"请输入用户名!"}]},{default:f((function(){return[p(n,{size:"large",value:w.username,"onUpdate:value":t[0]||(t[0]=function(e){return w.username=e})},null,8,["value"])]})),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"用户编号",name:"code",rules:[{required:!0,message:"请输入用户编号!"}]},{default:f((function(){return[p(n,{size:"large",value:w.code,"onUpdate:value":t[1]||(t[1]=function(e){return w.code=e})},null,8,["value"])]})),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"手机号",name:"mobile",rules:[{required:!0,message:"请输入手机号!"}]},{default:f((function(){return[p(n,{size:"large",value:w.mobile,"onUpdate:value":t[2]||(t[2]=function(e){return w.mobile=e})},null,8,["value"])]})),_:1})]})),_:1},8,["model"])]})),_:1},8,["visible"])}}}),Q=m("div",null," 详情 ",-1),G=a({__name:"Detail",setup:function(e,t){var n=t.expose,l=o(!1),a=function(e){console.log(e),l.value=!1};return i((function(){})),n({show:function(){l.value=!0,K.nextTick((function(){b("userDetail")}))},hidden:function(){l.value=!1}}),function(e,t){var n=c("a-modal");return d(),s(n,{class:"userDetail",title:"产品功能",visible:l.value,"onUpdate:visible":t[0]||(t[0]=function(e){return l.value=e}),maskClosable:!1,width:480,cancelText:"取消",okText:"确定",onOk:a},{default:f((function(){return[Q]})),_:1},8,["visible"])}}}),P={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},X={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},Y={style:{display:"flex"}},Z=function(e){return C("data-v-46b60fa6"),e=e(),z(),e}((function(){return m("span",null,"添加",-1)})),$={style:{"font-weight":"bold"}},ee={key:0},te={key:1,style:{color:"red"}},ne={style:{"font-weight":"bold"}},le={key:0,style:{color:"green"}},ae={key:1,style:{color:"red"}},oe=["onClick"],re=["onClick"],ie={key:0,style:{"margin-left":"26px"}};e("default",F(a({__name:"Index",setup:function(e){var t=o(null),a=r({x:1600}),u=r({pageSize:20,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,C()}}),s=o([]),v=o(!1),b=r({size:20,page:1,sort:"createtime",order:"desc",keyWord:""}),C=function(){v.value=!0,b.size=u.pageSize,b.page=u.current,l({url:"/user/search",data:b}).then((function(e){console.log(e),u.total=e.total,s.value=e.data,v.value=!1}))},z=function(){u.current=1,C()},F=o(null),U=function(e){var t;console.log(e),null===(t=F.value)||void 0===t||t.add()},j=o(null),L=o(),q=function(e){console.log(e),C()};return i((function(){var e;a.y=(null===(e=t.value)||void 0===e?void 0:e.clientHeight)-113,C(),n({url:"/role/search",data:{size:100,page:1,sort:"createtime",order:"desc",keyWord:""}},(function(e){var t;console.log(e),L.value=e.data,null===(t=F.value)||void 0===t||t.updateOptions(L.value)}))})),function(e,l){var o=c("a-button"),r=c("a-tooltip"),i=c("a-input"),L=c("a-form-item"),E=c("a-form"),R=c("a-table-column"),D=c("a-popconfirm"),W=c("a-table");return d(),h(x,null,[m("div",P,[p(y(O),{title:"用户管理"}),m("div",X,[m("div",Y,[p(o,{type:"primary",style:{"margin-right":"10px",background:"#0058FF"},onClick:U},{icon:f((function(){return[p(y(w))]})),default:f((function(){return[Z]})),_:1}),p(E,{layout:"inline",model:b},{default:f((function(){return[p(L,null,{default:f((function(){return[p(i,{allowClear:"",value:b.keyWord,"onUpdate:value":l[0]||(l[0]=function(e){return b.keyWord=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:f((function(){return[p(r,{title:"点击搜索",onClick:z},{default:f((function(){return[p(y(k),{style:{color:"rgba(0, 0, 0, 0.45)"}})]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1},8,["model"])]),m("div",null,[p(r,{onClick:C},{default:f((function(){return[p(y(S),{style:{"font-size":"16px"},spin:v.value},null,8,["spin"])]})),_:1})])]),m("div",{ref_key:"table_container",ref:t,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[p(W,{"data-source":s.value,pagination:u,scroll:a,bordered:!0,loading:v.value,size:"middle"},{default:f((function(){return[p(R,{title:"序号",width:60,fixed:"left",align:"center"},{default:f((function(e){var t=e.index;return[m("div",null,_(t+1),1)]})),_:1}),p(R,{title:"用户名","data-index":"username",width:200,fixed:"left",align:"center"}),p(R,{title:"用户编号",width:180,fixed:"left",align:"left"},{default:f((function(e){var t=e.record;return[m("div",$,[t.code?(d(),h("span",ee,_(t.code),1)):(d(),h("span",te,"未知"))])]})),_:1}),p(R,{title:"手机号","data-index":"mobile",width:200}),p(R,{title:"状态",width:150,align:"center"},{default:f((function(e){var t=e.record;return[m("div",ne,[t.enabled?(d(),h("span",le,"正常")):(d(),h("span",ae,"异常"))])]})),_:1}),p(R,{title:"上次登录时间","data-index":"lasttime",width:200}),p(R,{title:"创建时间","data-index":"createtime",width:200}),p(R,{title:"操作",width:200,fixed:"right"},{default:f((function(e){var t=e.record;return[m("div",null,[m("a",{style:{"margin-left":"0px"},onClick:function(e){return function(e){var t;console.log(e),null===(t=j.value)||void 0===t||t.show(e)}(t)}},"查看",8,oe),m("a",{style:{"margin-left":"26px"},onClick:function(e){return function(e){var t;console.log(e),null===(t=F.value)||void 0===t||t.update(e)}(t)}},"编辑",8,re),p(D,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:function(e){return function(e){console.log(e);var t={id:e.id};n({url:"/user/delete",data:t},(function(e){console.log(e),g.info(e.msg),C()}))}(t)}},{default:f((function(){return[1!=t.id?(d(),h("a",ie,"删除")):T("",!0)]})),_:2},1032,["onConfirm"])])]})),_:1})]})),_:1},8,["data-source","pagination","scroll","loading"])],512)]),p(M,{ref_key:"addRef",ref:F,onOnSuccess:q},null,512),p(G,{ref_key:"detailRef",ref:j},null,512)],64)}}}),[["__scopeId","data-v-46b60fa6"]]))}}}));