data_center/public/admin/assets/list.b6d30b54.js

2 lines
6.4 KiB
JavaScript

import{l as j,k as q,w as G,O as K,P as Q,I as z,B as H,C as J,M as W,N as X,$ as Y,D as Z,L as ee}from"./element-plus.9c2fdfa8.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as te}from"./usePaging.c22e2b6f.js";import{a as ae,s as D,b as ue,c as oe,d as ne}from"./system.0bb8b220.js";import{G as se}from"./@element-plus.37f92579.js";import{u as re}from"./index.5be037e5.js";import{d as ie,$ as A,r as y,o as p,c as me,U as e,L as u,R as _,u as C,a as pe,k as de,K as f,Q as c,T as _e,ai as fe}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.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"./vue-router.e2f4a118.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={class:"flex mt-4 justify-end"},al=ie({__name:"list",setup(ve){const x=re(),V=()=>{x.refreshView()},U=A({nick_name:"",phone:"",status:"",address:""}),F=y(!1),{pager:E,getLists:g,resetParams:Ee,resetPage:be}=te({fetchFun:ae,params:U}),l=A({id:null,name:null,app_id:null,app_key:null,status:null,create_time:null,url:null,register_status:null}),i=y(!1),b=y(""),o=y(""),P=()=>{o.value="c",b.value="\u6DFB\u52A0\u5B50\u7CFB\u7EDF",i.value=!0},T=s=>{console.log(s.id),D({id:s.id}).then(t=>{for(var n in l)l[n]=t[n];o.value="r",b.value="\u5B50\u7CFB\u7EDF\u8BE6\u60C5",i.value=!0,F.value=!0})},S=s=>{D({id:s.id}).then(t=>{console.log(t);for(var n in l)l[n]=t[n]}),o.value="u",b.value="\u5B50\u7CFB\u7EDF\u7F16\u8F91",i.value=!0},$=s=>{o.value="d",j.confirm("\u786E\u8BA4\u5220\u9664\u8BE5\u7CFB\u7EDF\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",type:"warning",icon:fe(se)}).then(()=>{ue({id:s.id}),V()}).catch(()=>{q({type:"info",message:"\u53D6\u6D88\u5220\u9664"})})},h=()=>{o.value=="c"?(oe({...l}),V()):o.value=="r"||o.value=="u"&&ne({...l}),i.value=!1,V()},k=()=>{i.value=!1,F.value=!1,console.log("\u5173\u95ED");for(var s in l)l.hasOwnProperty(s)&&(l[s]=null)};return g(),(s,t)=>{const n=G,m=K,N=Q,I=le,L=z,d=H,r=J,v=W,B=X,R=Y,M=Z,O=ee;return p(),me(_e,null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(n,{type:"primary",onClick:P},{default:u(()=>[_(" \u65B0\u589E ")]),_:1}),e(N,{data:C(E).lists},{default:u(()=>[e(m,{label:" \u5E94\u7528id",prop:"id",align:"center"}),e(m,{label:"\u5E94\u7528\u540D\u79F0",prop:"name",align:"center","show-overflow-tooltip":""}),e(m,{label:"\u5E94\u7528appid",prop:"app_id",align:"center","show-overflow-tooltip":""}),e(m,{label:"\u5E94\u7528appkey",prop:"app_key",align:"center","show-overflow-tooltip":""}),e(m,{label:"\u5E94\u7528\u72B6\u6001",prop:"status_text",align:"center","show-overflow-tooltip":""}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",align:"center","show-overflow-tooltip":""}),e(m,{label:"\u64CD\u4F5C","show-overflow-tooltip":"",align:"center"},{default:u(({row:a})=>[e(n,{type:"primary",onClick:w=>T(a),link:""},{default:u(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),e(n,{type:"primary",onClick:w=>$(a),link:""},{default:u(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"]),e(n,{type:"primary",onClick:w=>S(a),link:""},{default:u(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),pe("div",ce,[e(I,{modelValue:C(E),"onUpdate:modelValue":t[0]||(t[0]=a=>de(E)?E.value=a:null),onChange:C(g)},null,8,["modelValue","onChange"])])]),_:1}),e(O,{modelValue:i.value,"onUpdate:modelValue":t[9]||(t[9]=a=>i.value=a),width:"30%","align-center":"",title:b.value,onClose:k},{default:u(()=>[e(M,{"label-width":"100px",model:l,disabled:F.value,style:{"max-width":"460px"}},{default:u(()=>[o.value=="r"||o.value=="u"?(p(),f(r,{key:0,label:"\u5E94\u7528ID"},{default:u(()=>[e(d,{disabled:!0,modelValue:l.id,"onUpdate:modelValue":t[1]||(t[1]=a=>l.id=a)},null,8,["modelValue"])]),_:1})):c("",!0),e(r,{label:"\u5E94\u7528\u540D\u79F0"},{default:u(()=>[e(d,{modelValue:l.name,"onUpdate:modelValue":t[2]||(t[2]=a=>l.name=a)},null,8,["modelValue"])]),_:1}),o.value=="r"||o.value=="c"||o.value=="u"?(p(),f(r,{key:1,label:"\u5E94\u7528url"},{default:u(()=>[e(d,{modelValue:l.url,"onUpdate:modelValue":t[3]||(t[3]=a=>l.url=a)},null,8,["modelValue"])]),_:1})):c("",!0),o.value=="r"?(p(),f(r,{key:2,label:"\u5E94\u7528appid"},{default:u(()=>[e(d,{modelValue:l.app_id,"onUpdate:modelValue":t[4]||(t[4]=a=>l.app_id=a)},null,8,["modelValue"])]),_:1})):c("",!0),o.value=="r"?(p(),f(r,{key:3,label:"\u5E94\u7528appkey"},{default:u(()=>[e(d,{modelValue:l.app_key,"onUpdate:modelValue":t[5]||(t[5]=a=>l.app_key=a)},null,8,["modelValue"])]),_:1})):c("",!0),o.value=="r"||o.value=="u"?(p(),f(r,{key:4,label:"\u5E94\u7528\u72B6\u6001"},{default:u(()=>[e(B,{modelValue:l.status,"onUpdate:modelValue":t[6]||(t[6]=a=>l.status=a),clearable:"",class:"w-[400px]"},{default:u(()=>[e(v,{label:"\u6B63\u5E38",value:0}),e(v,{label:"\u5F02\u5E38",value:1}),e(v,{label:"\u5220\u9664",value:2})]),_:1},8,["modelValue"])]),_:1})):c("",!0),e(r,{label:"\u6CE8\u518C\u72B6\u6001"},{default:u(()=>[e(B,{modelValue:l.register_status,"onUpdate:modelValue":t[7]||(t[7]=a=>l.register_status=a),clearable:"",class:"w-[400px]"},{default:u(()=>[e(v,{label:"\u672A\u5F00\u542F\u6CE8\u518C",value:0}),e(v,{label:"\u5F00\u542F\u6CE8\u518C",value:1})]),_:1},8,["modelValue"])]),_:1}),o.value=="r"?(p(),f(r,{key:5,label:"\u521B\u5EFA\u65F6\u95F4"},{default:u(()=>[e(d,{modelValue:l.create_time,"onUpdate:modelValue":t[8]||(t[8]=a=>l.create_time=a)},null,8,["modelValue"])]),_:1})):c("",!0),e(R,{style:{float:"right"}},{default:u(()=>[e(n,{type:"primary",onClick:h},{default:u(()=>[_("\u786E\u5B9A")]),_:1}),e(n,{onClick:k},{default:u(()=>[_("\u53D6\u6D88")]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title"])],64)}}});export{al as default};