2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
import{J as j,l as q,k as G,w as J,L as K,M as Q,I as z,B as H,C as W,Q as X,R as Y,a1 as Z,D as ee}from"./element-plus.bb5d129a.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.cb18df50.js";import{u as te}from"./usePaging.160b82b8.js";import{a as oe,s as w,b as ae,c as ue,d as ne}from"./system.2ea9660e.js";import{G as se}from"./@element-plus.196c7323.js";import{u as ie}from"./index.69ffdd93.js";import{d as re,$ as D,r as y,o as m,c as pe,U as e,L as a,u as k,a as me,k as de,K as _,R as c,V as _e,S as f,ai as ce}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./lodash-es.29c53eac.js";import"./dayjs.c5177e7a.js";import"./axios.ba5f746b.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.5226da61.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.cc41886d.js";import"./vue-clipboard3.7988db4f.js";import"./clipboard.cb7a871d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const fe=f(" \u65B0\u589E "),ve=f(" \u8BE6\u60C5 "),Ee=f(" \u5220\u9664 "),ye=f(" \u7F16\u8F91 "),Ve={class:"flex mt-4 justify-end"},be=f("\u786E\u5B9A"),Fe=f("\u53D6\u6D88"),il=re({__name:"list",setup(ke){const h=ie(),V=()=>{h.refreshView()},A=D({nick_name:"",phone:"",status:"",address:""}),b=y(!1),{pager:v,getLists:g,resetParams:ge,resetPage:Be}=te({fetchFun:oe,params:A}),l=D({id:null,name:null,app_id:null,app_key:null,status:null,create_time:null,url:null}),r=y(!1),E=y(""),u=y(""),x=()=>{u.value="c",E.value="\u6DFB\u52A0\u5B50\u7CFB\u7EDF",r.value=!0},U=s=>{console.log(s.id),w({id:s.id}).then(t=>{for(var n in l)l[n]=t[n];u.value="r",E.value="\u5B50\u7CFB\u7EDF\u8BE6\u60C5",r.value=!0,b.value=!0})},S=s=>{w({id:s.id}).then(t=>{console.log(t);for(var n in l)l[n]=t[n]}),u.value="u",E.value="\u5B50\u7CFB\u7EDF\u7F16\u8F91",r.value=!0},P=s=>{u.value="d",q.confirm("\u786E\u8BA4\u5220\u9664\u8BE5\u7CFB\u7EDF\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",type:"warning",icon:ce(se)}).then(()=>{ae({id:s.id}),V()}).catch(()=>{G({type:"info",message:"\u53D6\u6D88\u5220\u9664"})})},T=()=>{u.value=="c"?(ue({...l}),V()):u.value=="r"||u.value=="u"&&ne({...l}),r.value=!1,V()},B=()=>{r.value=!1,b.value=!1,console.log("\u5173\u95ED");for(var s in l)l.hasOwnProperty(s)&&(l[s]=null)};return g(),(s,t)=>{const n=J,i=K,R=Q,$=le,I=z,d=H,p=W,F=X,L=Y,N=Z,M=ee,O=j;return m(),pe(_e,null,[e(I,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(n,{type:"primary",onClick:x},{default:a(()=>[fe]),_:1}),e(R,{data:k(v).lists},{default:a(()=>[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:"\u662F\u5426\u5F00\u542F\u6CE8\u518C",prop:"register_status",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:a(({row:o})=>[e(n,{type:"primary",onClick:C=>U(o),link:""},{default:a(()=>[ve]),_:2},1032,["onClick"]),e(n,{type:"primary",onClick:C=>P(o),link:""},{default:a(()=>[Ee]),_:2},1032,["onClick"]),e(n,{type:"primary",onClick:C=>S(o),link:""},{default:a(()=>[ye]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),me("div",Ve,[e($,{modelValue:k(v),"onUpdate:modelValue":t[0]||(t[0]=o=>de(v)?v.value=o:null),onChange:k(g)},null,8,["modelValue","onChange"])])]),_:1}),e(O,{modelValue:r.value,"onUpdate:modelValue":t[8]||(t[8]=o=>r.value=o),width:"30%","align-center":"",title:E.value,onClose:B},{default:a(()=>[e(M,{"label-width":"100px",model:l,disabled:b.value,style:{"max-width":"460px"}},{default:a(()=>[u.value=="r"||u.value=="u"?(m(),_(p,{key:0,label:"\u5E94\u7528ID"},{default:a(()=>[e(d,{disabled:!0,modelValue:l.id,"onUpdate:modelValue":t[1]||(t[1]=o=>l.id=o)},null,8,["modelValue"])]),_:1})):c("",!0),e(p,{label:"\u5E94\u7528\u540D\u79F0"},{default:a(()=>[e(d,{modelValue:l.name,"onUpdate:modelValue":t[2]||(t[2]=o=>l.name=o)},null,8,["modelValue"])]),_:1}),u.value=="r"||u.value=="c"||u.value=="u"?(m(),_(p,{key:1,label:"\u5E94\u7528url"},{default:a(()=>[e(d,{modelValue:l.url,"onUpdate:modelValue":t[3]||(t[3]=o=>l.url=o)},null,8,["modelValue"])]),_:1})):c("",!0),u.value=="r"?(m(),_(p,{key:2,label:"\u5E94\u7528appid"},{default:a(()=>[e(d,{modelValue:l.app_id,"onUpdate:modelValue":t[4]||(t[4]=o=>l.app_id=o)},null,8,["modelValue"])]),_:1})):c("",!0),u.value=="r"?(m(),_(p,{key:3,label:"\u5E94\u7528appkey"},{default:a(()=>[e(d,{modelValue:l.app_key,"onUpdate:modelValue":t[5]||(t[5]=o=>l.app_key=o)},null,8,["modelValue"])]),_:1})):c("",!0),u.value=="r"||u.value=="u"?(m(),_(p,{key:4,label:"\u5E94\u7528\u72B6\u6001"},{default:a(()=>[e(L,{modelValue:l.status,"onUpdate:modelValue":t[6]||(t[6]=o=>l.status=o),clearable:"",class:"w-[400px]"},{default:a(()=>[e(F,{label:"\u6B63\u5E38",value:0}),e(F,{label:"\u5F02\u5E38",value:1}),e(F,{label:"\u5220\u9664",value:2})]),_:1},8,["modelValue"])]),_:1})):c("",!0),u.value=="r"?(m(),_(p,{key:5,label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(d,{modelValue:l.create_time,"onUpdate:modelValue":t[7]||(t[7]=o=>l.create_time=o)},null,8,["modelValue"])]),_:1})):c("",!0),e(N,{style:{float:"right"}},{default:a(()=>[e(n,{type:"primary",onClick:T},{default:a(()=>[be]),_:1}),e(n,{onClick:B},{default:a(()=>[Fe]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title"])],64)}}});export{il as default};
|