選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
2.7KB

  1. var R=Object.defineProperty,F=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var w=(e,a,t)=>a in e?R(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,g=(e,a)=>{for(var t in a||(a={}))q.call(a,t)&&w(e,t,a[t]);if(k)for(var t of k(a))N.call(a,t)&&w(e,t,a[t]);return e},x=(e,a)=>F(e,S(a));var f=(e,a,t)=>new Promise((p,i)=>{var n=l=>{try{m(t.next(l))}catch(s){i(s)}},_=l=>{try{m(t.throw(l))}catch(s){i(s)}},m=l=>l.done?p(l.value):Promise.resolve(l.value).then(n,_);m((t=t.apply(e,a)).next())});import{n as O,d as T,r as h,A,f as d,g as D,p as I,w as r,e as c,c as L,s as M,h as v,t as P,F as U,i as E}from"./index.551f5afa.js";const Y=e=>O.get("/api/v1/loginDeviceChangeRecord/page",{params:e}),G=e=>O.put("/api/v1/loginDeviceChangeRecord/process",e),H=v(" \u63D0\u4EA4 "),J=v(" \u5173\u95ED "),K=T({name:"changeDialog"}),Q=Object.assign(K,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(e,{emit:a}){const t=e,{proxy:p}=E(),i=h(),n=h({}),_={status:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u72B6\u6001",trigger:"change"}]},m={2:"\u62D2\u7EDD",3:"\u5141\u8BB8"},l=s=>f(this,null,function*(){!s||(yield s.validate(o=>f(this,null,function*(){o&&(yield G(x(g({},n.value),{username:void 0})),p.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),a("close",!0))})))});return A(()=>t.visible,s=>f(this,null,function*(){var o;s?(o=t.data)!=null&&o.id&&(n.value=g({},t.data)):(n.value={},i.value.resetFields())})),(s,o)=>{var y;const V=d("el-radio"),$=d("el-radio-group"),j=d("el-form-item"),z=d("el-form"),b=d("el-button"),B=d("el-dialog");return D(),I(B,{"model-value":e.visible,title:`\u5904\u7406-${(y=e.data)==null?void 0:y.username}`,width:"560px","destroy-on-close":"",onClose:o[3]||(o[3]=u=>a("close"))},{footer:r(()=>[c(b,{type:"primary",size:"small",onClick:o[1]||(o[1]=u=>l(i.value))},{default:r(()=>[H]),_:1}),c(b,{type:"info",size:"small",onClick:o[2]||(o[2]=u=>a("close"))},{default:r(()=>[J]),_:1})]),default:r(()=>[c(z,{ref_key:"formRef",ref:i,model:n.value,rules:_,"label-width":"90px","label-suffix":":",size:"small"},{default:r(()=>[c(j,{label:"\u5904\u7406",prop:"status"},{default:r(()=>[c($,{modelValue:n.value.status,"onUpdate:modelValue":o[0]||(o[0]=u=>n.value.status=u)},{default:r(()=>[(D(),L(U,null,M(m,(u,C)=>c(V,{key:C,label:C},{default:r(()=>[v(P(u),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])}}}),Z=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));export{Q as _,Z as c,Y as l};