data_center/public/admin/assets/userlist.c265f113.js

2 lines
5.4 KiB
JavaScript
Raw Normal View History

2023-11-21 14:38:14 +08:00
import{o as j,O as w,w as K,P as O,L as G,I as H,Q as J}from"./element-plus.9c2fdfa8.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as X}from"./vue-router.e2f4a118.js";import{u as Y}from"./usePaging.c22e2b6f.js";import{k,f as x,d as Z}from"./index.5be037e5.js";import{c as ee,s as te}from"./consumer.8d003425.js";import{p as ue}from"./company.0e78bc1e.js";import{d as I,$ as oe,r as B,b8 as ae,a4 as se,af as ne,o,c as F,U as u,L as t,M as l,u as a,K as n,R as r,T as re,Q as _,k as q,a as D,bf as ie,be as le}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.47b8af7d.js";import"./axios.96be3cef.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const ce=f=>(ie("data-v-d35ef51e"),f=f(),le(),f),pe=ce(()=>D("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),me={key:0,class:"content"},de={key:1,class:"content"},_e={class:"btn_menu"},fe={class:"flex justify-end mt-4"},Ee=I({name:"consumerLists"}),ye=I({...Ee,setup(f){const g=X(),b=oe({phone:"",nickname:"",status:""});g.query.company_id&&(b.company_id=g.query.company_id);const c=B(0),i=B(!1),E=B(!1),y=()=>{i.value=!1,E.value=!1},L=()=>{console.log(c.value),ee({id:c.value}).then(()=>{x.msgSuccess("\u53D1\u9001\u6210\u529F")}),y()},z=()=>{te({id:c.value}).then(S=>{x.msgSuccess("\u53D1\u9001\u6210\u529F")}),y()},{pager:p,getLists:v,resetPage:Ce,resetParams:Fe}=Y({fetchFun:ue,params:b});return ae(()=>{v()}),v(),(S,C)=>{const N=j,m=w,h=se("router-link"),s=K,R=O,T=G,U=W,$=H,d=ne("perms"),M=J;return o(),F("div",null,[u($,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[l((o(),n(R,{size:"large",data:a(p).lists},{default:t(()=>[u(m,{label:"\u5934\u50CF","min-width":"100"},{default:t(({row:e})=>[u(N,{src:e.avatar,size:50},null,8,["src"])]),_:1}),u(m,{label:"\u8D26\u53F7",prop:"phone","min-width":"120"}),u(m,{label:"\u59D3\u540D",prop:"nickname","min-width":"100"}),u(m,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"phone","min-width":"120"}),u(m,{label:"\u64CD\u4F5C","min-width":"200",align:"center",fixed:"right"},{default:t(({row:e})=>{var A,V,P;return[l((o(),n(s,{type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("company/userdetail"),query:{id:e.id}}},{default:t(()=>[r(" \u8BE6\u60C5 ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/detail"]]]),e.is_contract==0?(o(),F(re,{key:0},[e.contract?_("",!0):l((o(),n(s,{key:0,type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("user.user/detail"),query:{id:e.id,mode:"initiate"}}},{default:t(()=>[r(" \u751F\u6210\u5408\u540C ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/launch"]]]),((A=e.contract)==null?void 0:A.check_status)==1?l((o(),n(s,{key:1,type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("user.user/detail"),query:{id:e.id,mode:"uplode",mdoeid:e.contract.id}}},{default:t(()=>[r(" \u4E0A\u4F20\u5408\u540C ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/uplode"]]]):_("",!0),((V=e.contract)==null?void 0:V.check_status)==2?l((o(),n(s,{key:2,type:"primary",link:"",onClick:Q=>{i.value=!0,E.value=!0,c.value=e.id}},{default:t(()=>[r("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[d,["user.user/launch"]]]):_("",!0),e.is_contract==0&&((P=e.contract)==null?void 0:P.check_status)==3?l((o(),n(s,{key:3,type:"pr