engineering/public/admin/assets/dialog_index.644ea19d.js
2024-03-04 15:04:21 +08:00

2 lines
4.3 KiB
JavaScript

import{I as k,y as x,w as A,D as L,C as I,L as P,o as N,M as T,N as U}from"./element-plus.258bf9e7.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{u as q}from"./usePaging.f6660143.js";import"./index.ec401e3b.js";import{a as M}from"./admin.d095da9c.js";import{d as h,a0 as j,o as r,c as p,V as e,M as t,O,u as i,L as R,a as y,T as u,U as S,k as $}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const G=u("\u67E5\u8BE2"),H=u("\u91CD\u7F6E"),J={class:"mt-4"},K=u("> "),Q={key:0,style:{color:"#67c23a"}},W={key:1,style:{color:"#fe0000"}},X={class:"flex justify-end mt-4"},Y=h({name:"companyLists"}),Ue=h({...Y,emits:["customEvent"],setup(Z,{emit:C}){const n=j({level_two:"",level_one:"",company_name:"",organization_code:"",city:"",area:"",street:"",company_type:"",master_name:"",master_position:"",master_phone:"",master_email:"",other_contacts:"",area_manager:"",is_contract:"",account:"",password:"",deposit:"",deposit_time:"",qualification:"",status:""}),E=_=>{C("customEvent",_)},{pager:m,getLists:c,resetParams:b,resetPage:B}=q({fetchFun:M,params:n});return c(),(_,l)=>{const d=k,s=x,f=A,g=L,F=I,o=P,w=N,v=T,D=z,V=U;return r(),p("div",null,[e(F,{class:"!border-none",shadow:"never"},{default:t(()=>[e(g,{class:"mb-[-16px]",model:n,inline:""},{default:t(()=>[e(s,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:t(()=>[e(d,{class:"w-[280px]",modelValue:n.company_name,"onUpdate:modelValue":l[0]||(l[0]=a=>n.company_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type"},{default:t(()=>[e(d,{class:"w-[280px]",modelValue:n.company_type,"onUpdate:modelValue":l[1]||(l[1]=a=>n.company_type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(f,{type:"primary",onClick:i(B)},{default:t(()=>[G]),_:1},8,["onClick"]),e(f,{onClick:i(b)},{default:t(()=>[H]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),O((r(),R(F,{class:"!border-none",shadow:"never"},{default:t(()=>[y("div",J,[e(v,{data:i(m).lists,size:"large",onCellClick:E},{default:t(()=>[e(o,{label:"ID",prop:"id","min-width":"60"}),K,e(o,{label:"\u5934\u50CF","min-width":"100"},{default:t(({row:a})=>[e(w,{size:50,src:a.avatar},null,8,["src"])]),_:1}),e(o,{label:"\u59D3\u540D",prop:"name","min-width":"100"}),e(o,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"account","min-width":"130"}),e(o,{label:"\u96B6\u5C5E\u516C\u53F8",prop:"company.company_name","min-width":"120",align:"center"},{default:t(({row:a})=>[u(S(a.company.company_name||"/"),1)]),_:1}),e(o,{label:"\u6240\u5728\u4E61\u9547",prop:"street_name","min-width":"120"}),e(o,{label:"\u6388\u6743\u8EAB\u4EFD",prop:"role_name","min-width":"120"}),e(o,{label:"\u662F\u5426\u7B7E\u7EA6",prop:"is_contract",align:"center","min-width":"120"},{default:t(({row:a})=>[a.is_contract==1?(r(),p("span",Q,"\u5DF2\u7B7E\u7EA6")):(r(),p("span",W,"\u672A\u7B7E\u7EA6"))]),_:1}),e(o,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4",prop:"login_time","min-width":"180"}),e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180",align:"center"}),e(o,{label:"\u6700\u8FD1\u767B\u5F55IP",prop:"login_ip","min-width":"120"})]),_:1},8,["data"])]),y("div",X,[e(D,{modelValue:i(m),"onUpdate:modelValue":l[2]||(l[2]=a=>$(m)?m.value=a:null),onChange:i(c)},null,8,["modelValue","onChange"])])]),_:1})),[[V,i(m).loading]])])}}});export{Ue as default};