data_center/public/admin/assets/list.122c6b65.js

2 lines
7.0 KiB
JavaScript

import{J as O,l as $,k as V,B as j,C as q,Q as G,R as J,w as K,D as Q,I as z,L as H,M as W,a1 as X}from"./element-plus.54aed4cc.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.fccb4113.js";import{u as Z}from"./usePaging.160b82b8.js";import{a as ee}from"./system.ac67b6e3.js";import{G as le}from"./@element-plus.196c7323.js";import{d as ue,$ as g,r as b,o as B,c as ae,U as e,L as l,u as c,a as oe,k as te,K as C,R as D,V as ne,S as m,ai as se}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./lodash-es.29c53eac.js";import"./dayjs.f1e4cccc.js";import"./axios.d363e68d.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"./index.17a19250.js";import"./lodash.c4b79a6f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3c571821.js";import"./color.0ff1625c.js";import"./clone.78cb864b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a0babc59.js";import"./ms.a9ae1d6d.js";import"./nprogress.046b2704.js";import"./vue-clipboard3.8c1c7368.js";import"./clipboard.5f2f245e.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const pe=m("\u67E5\u8BE2"),re=m("\u91CD\u7F6E"),me=m(" \u65B0\u589E "),de=m(" \u8BE6\u60C5 "),ie=m(" \u5220\u9664 "),_e=m(" \u7F16\u8F91 "),ce={class:"flex mt-4 justify-end"},fe=m("\u786E\u5B9A"),Ee=m("\u53D6\u6D88"),ll=ue({__name:"list",setup(Ve){const n=g({nick_name:"",phone:"",status:"",address:""}),{pager:f,getLists:v,resetParams:x,resetPage:U}=Z({fetchFun:ee,params:n}),o=g({id:null,name:null,app_id:null,app_key:null,status:null,create_time:null,url:null}),d=b(!1),E=b(""),s=b(""),A=()=>{s.value="c",E.value="\u6DFB\u52A0\u5B50\u7CFB\u7EDF",d.value=!0},h=()=>{s.value="r",E.value="\u5B50\u7CFB\u7EDF\u8BE6\u60C5",d.value=!0},P=()=>{s.value="u",E.value="\u5B50\u7CFB\u7EDF\u7F16\u8F91",d.value=!0},T=()=>{s.value="d",$.confirm("\u786E\u8BA4\u5220\u9664\u8BE5\u7CFB\u7EDF\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",type:"warning",icon:se(le)}).then(()=>{V({type:"success",message:"\u5220\u9664\u6210\u529F!"})}).catch(()=>{V({type:"info",message:"\u53D6\u6D88\u5220\u9664"})})},R=()=>{s.value=="c"?V({type:"success",message:"\u6DFB\u52A0\u6210\u529F!"}):s.value=="r"||s.value=="u"&&V({type:"success",message:"\u4FEE\u6539\u6210\u529F!"}),d.value=!1},S=()=>{d.value=!1;for(var F in o)o.hasOwnProperty(F)&&(o[F]=null)};return v(),(F,u)=>{const p=j,t=q,_=G,y=J,r=K,k=Q,w=z,i=H,I=W,L=Y,N=X,M=O;return B(),ae(ne,null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(k,{class:"mb-[-16px]",model:n,inline:""},{default:l(()=>[e(t,{label:"\u59D3\u540D",prop:"nick_name"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:n.nick_name,"onUpdate:modelValue":u[0]||(u[0]=a=>n.nick_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(t,{label:"\u624B\u673A\u53F7",prop:"phone"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:n.phone,"onUpdate:modelValue":u[1]||(u[1]=a=>n.phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1}),e(t,{label:"\u6240\u5C5E\u7247\u533A",prop:"address"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:n.address,"onUpdate:modelValue":u[2]||(u[2]=a=>n.address=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1}),e(t,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(y,{modelValue:n.status,"onUpdate:modelValue":u[3]||(u[3]=a=>n.status=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:l(()=>[e(_,{label:"\u6B63\u5E38",value:0}),e(_,{label:"\u7981\u7528",value:1})]),_:1},8,["modelValue"])]),_:1}),e(t,null,{default:l(()=>[e(r,{type:"primary",onClick:c(U)},{default:l(()=>[pe]),_:1},8,["onClick"]),e(r,{onClick:c(x)},{default:l(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(r,{type:"primary",onClick:A},{default:l(()=>[me]),_:1}),e(I,{data:c(f).lists},{default:l(()=>[e(i,{label:" \u5E94\u7528id",prop:"id",align:"center"}),e(i,{label:"\u5E94\u7528\u540D\u79F0",prop:"name",align:"center","show-overflow-tooltip":""}),e(i,{label:"\u5E94\u7528appid",prop:"app_id",align:"center","show-overflow-tooltip":""}),e(i,{label:"\u5E94\u7528appkey",prop:"app_key",align:"center","show-overflow-tooltip":""}),e(i,{label:"\u5E94\u7528\u72B6\u6001",prop:"status_text",align:"center","show-overflow-tooltip":""}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",align:"center","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C","show-overflow-tooltip":"",align:"center"},{default:l(({row:a})=>[e(r,{type:"primary",onClick:h,link:""},{default:l(()=>[de]),_:1}),e(r,{type:"primary",onClick:T,link:""},{default:l(()=>[ie]),_:1}),e(r,{type:"primary",onClick:P,link:""},{default:l(()=>[_e]),_:1})]),_:1})]),_:1},8,["data"]),oe("div",ce,[e(L,{modelValue:c(f),"onUpdate:modelValue":u[4]||(u[4]=a=>te(f)?f.value=a:null),onChange:c(v)},null,8,["modelValue","onChange"])])]),_:1}),e(M,{modelValue:d.value,"onUpdate:modelValue":u[12]||(u[12]=a=>d.value=a),width:"30%","align-center":"",title:E.value},{default:l(()=>[e(k,{"label-width":"100px",model:o,style:{"max-width":"460px"}},{default:l(()=>[s.value=="r"?(B(),C(t,{key:0,label:"\u5E94\u7528ID"},{default:l(()=>[e(p,{modelValue:o.id,"onUpdate:modelValue":u[5]||(u[5]=a=>o.id=a)},null,8,["modelValue"])]),_:1})):D("",!0),e(t,{label:"\u5E94\u7528\u540D\u79F0"},{default:l(()=>[e(p,{modelValue:o.name,"onUpdate:modelValue":u[6]||(u[6]=a=>o.name=a)},null,8,["modelValue"])]),_:1}),s.value=="c"?(B(),C(t,{key:1,label:"\u5E94\u7528url"},{default:l(()=>[e(p,{modelValue:o.url,"onUpdate:modelValue":u[7]||(u[7]=a=>o.url=a)},null,8,["modelValue"])]),_:1})):D("",!0),e(t,{label:"\u5E94\u7528appid"},{default:l(()=>[e(p,{modelValue:o.app_id,"onUpdate:modelValue":u[8]||(u[8]=a=>o.app_id=a)},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5E94\u7528appkey"},{default:l(()=>[e(p,{modelValue:o.app_key,"onUpdate:modelValue":u[9]||(u[9]=a=>o.app_key=a)},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5E94\u7528\u72B6\u6001"},{default:l(()=>[e(y,{modelValue:o.status,"onUpdate:modelValue":u[10]||(u[10]=a=>o.status=a),clearable:"",class:"w-[400px]"},{default:l(()=>[e(_,{label:"\u6B63\u5E38",value:0}),e(_,{label:"\u5F02\u5E38",value:1}),e(_,{label:"\u5220\u9664",value:2})]),_:1},8,["modelValue"])]),_:1}),e(t,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[e(p,{modelValue:o.create_time,"onUpdate:modelValue":u[11]||(u[11]=a=>o.create_time=a)},null,8,["modelValue"])]),_:1}),e(N,{style:{float:"right"}},{default:l(()=>[e(r,{type:"primary",onClick:R},{default:l(()=>[fe]),_:1}),e(r,{onClick:S},{default:l(()=>[Ee]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}});export{ll as default};