2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{l as q,k as G,w as K,O as Q,P as z,I as H,B as J,C as W,M as X,N as Y,$ as Z,D as h,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{r as c,a as ue,u as oe,d as ae}from"./index.b57b84f0.js";import{G as ne}from"./@element-plus.37f92579.js";import{d as se,C as re,$ as k,r as b,o as D,c as ie,U as e,L as o,R as _,u as g,a as me,k as pe,K as de,Q as _e,T as fe,ai as ce}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.5512e984.js";import"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.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.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";function ve(s){return c.get({url:"/systems.system/lists",params:s})}function x(s){return c.get({url:"/systems.system/detail",params:s})}function Ee(s){return c.post({url:"/systems.system/add",params:s})}function Ve(s){return c.post({url:"/systems.system/edit",params:s})}function ye(s){return c.post({url:"/systems.system/delete",params:s})}const be={class:"flex mt-4 justify-end"},Fe=se({__name:"list",setup(s){ue();const U=oe();re("base_url");const v=()=>{U.refreshView()},A=k({nick_name:"",phone:"",status:"",address:""}),F=b(!1),{pager:E,getLists:V,resetParams:ge,resetPage:Ce}=te({fetchFun:ve,params:A}),l=k({id:null,name:null,app_id:null,app_key:null,status:null,create_time:null,url:null,register_status:null,icon:null,down_url:null,sort:null,app_version:null}),d=b(!1),y=b(""),m=b(""),P=()=>{m.value="c",y.value="\u6DFB\u52A0\u5B50\u7CFB\u7EDF",d.value=!0},S=r=>{console.log(r.id),x({id:r.id}).then(t=>{for(var a in l)l[a]=t[a];m.value="r",y.value="\u5B50\u7CFB\u7EDF\u8BE6\u60C5",d.value=!0,F.value=!0})},T=r=>{x({id:r.id}).then(t=>{console.log(t);for(var a in l)l[a]=t[a]}),m.value="u",y.value="\u5B50\u7CFB\u7EDF\u7F16\u8F91",d.value=!0},$=r=>{m.value="d",q.confirm("\u786E\u8BA4\u5220\u9664\u8BE5\u7CFB\u7EDF\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",type:"warning",icon:ce(ne)}).then(()=>{ye({id:r.id}),v()}).catch(()=>{G({type:"info",message:"\u53D6\u6D88\u5220\u9664"})}),v()},I=()=>{m.value=="c"?(Ee({...l}),v(),V()):m.value=="r"||m.value=="u"&&Ve({...l}),d.value=!1,v(),V()},C=()=>{d.value=!1,F.value=!1,console.log("\u5173\u95ED");for(var r in l)l.hasOwnProperty(r)&&(l[r]=null)};return V(),(r,t)=>{const a=K,p=Q,N=z,L=le,R=H,i=J,n=W,f=X,B=Y,M=Z,O=h,j=ee;return D(),ie(fe,null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(a,{type:"primary",onClick:P},{default:o(()=>[_(" \u65B0\u589E ")]),_:1}),e(N,{data:g(E).lists},{default:o(()=>[e(p,{label:"\u5E94\u7528id",prop:"id",align:"center"}),e(p,{label:"\u5E94\u7528\u540D\u79F0",prop:"name",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u5E94\u7528appid",prop:"app_id",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u5E94\u7528appkey",prop:"app_key",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u5E94\u7528\u6392\u5E8F",prop:"sort",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u5E94\u7528\u72B6\u6001",prop:"status_text",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",align:"center","show-overflow-tooltip":""}),e(p,{label:"\u64CD\u4F5C","show-overflow-tooltip":"",align:"center"},{default:o(({row:u})=>[e(a,{type:"primary",onClick:w=>S(u),link:""},{default:o(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),e(a,{type:"primary",onClick:w=>$(u),link:""},{default:o(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"]),e(a,{type:"primary",onClick:w=>T(u),link:""},{default:o(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),me("div",be,[e(L,{modelValue:g(E),"onUpdate:modelValue":t[0]||(t[0]=u=>pe(E)?E.value=u:null),onChange:g(V)},null,8,["modelValue","onChange"])])]),_:1}),e(j,{modelValue:d.value,"onUpdate:modelValue":t[13]||(t[13]=u=>d.value=u),width:"30%","align-center":"",title:y.value,onClose:C},{default:o(()=>[e(O,{"label-width":"100px",model:l,disabled:F.value,style:{"max-width":"460px"}},{default:o(()=>[e(n,{label:"\u5E94\u7528ID"},{default:o(()=>[e(i,{disabled:!0,modelValue:l.id,"onUpdate:modelValue":t[1]||(t[1]=u=>l.id=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E94\u7528\u540D\u79F0"},{default:o(()=>[e(i,{modelValue:l.name,"onUpdate:modelValue":t[2]||(t[2]=u=>l.name=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E94\u7528appid"},{default:o(()=>[e(i,{modelValue:l.app_id,"onUpdate:modelValue":t[3]||(t[3]=u=>l.app_id=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E94\u7528appkey"},{default:o(()=>[e(i,{modelValue:l.app_key,"onUpdate:modelValue":t[4]||(t[4]=u=>l.app_key=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E94\u7528\u57DF\u540D"},{default:o(()=>[e(i,{modelValue:l.url,"onUpdate:modelValue":t[5]||(t[5]=u=>l.url=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E94\u7528\u72B6\u6001"},{default:o(()=>[e(B,{modelValue:l.status,"onUpdate:modelValue":t[6]||(t[6]=u=>l.status=u),clearable:"",class:"w-[400px]"},{default:o(()=>[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}),e(n,{label:"\u6CE8\u518C\u72B6\u6001"},{default:o(()=>[e(B,{modelValue:l.register_status,"onUpdate:modelValue":t[7]||(t[7]=u=>l.register_status=u),clearable:"",class:"w-[400px]"},{default:o(()=>[e(f,{label:"\u672A\u5F00\u542F\u6CE8\u518C",value:0}),e(f,{label:"\u5F00\u542F\u6CE8\u518C",value:1})]),_:1},8,["modelValue"])]),_:1}),m.value=="r"?(D(),de(n,{key:0,label:"\u521B\u5EFA\u65F6\u95F4"},{default:o(()=>[e(i,{modelValue:l.create_time,"onUpdate:modelValue":t[8]||(t[8]=u=>l.create_time=u)},null,8,["modelValue"])]),_:1})):_e("",!0),e(n,{label:"icon\u56FE\u6807"},{default:o(()=>[e(i,{modelValue:l.icon,"onUpdate:modelValue":t[9]||(t[9]=u=>l.icon=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4E0B\u8F7D\u5730\u5740"},{default:o(()=>[e(i,{modelValue:l.down_url,"onUpdate:modelValue":t[10]||(t[10]=u=>l.down_url=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u7248\u672C\u53F7"},{default:o(()=>[e(i,{modelValue:l.app_version,"onUpdate:modelValue":t[11]||(t[11]=u=>l.app_version=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6392\u5E8F"},{default:o(()=>[e(i,{modelValue:l.sort,"onUpdate:modelValue":t[12]||(t[12]=u=>l.sort=u)},null,8,["modelValue"])]),_:1}),e(M,{style:{float:"right"}},{default:o(()=>[e(a,{type:"primary",onClick:I},{default:o(()=>[_("\u786E\u5B9A")]),_:1}),e(a,{onClick:C},{default:o(()=>[_("\u53D6\u6D88")]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title"])],64)}}});const sl=ae(Fe,[["__scopeId","data-v-062547a3"]]);export{sl as default};
|