← Back
Editing: scan.js
import{c as e,p as a,q as l,v as o,e as s,A as r,y as n,B as t,x as m,F as i,a_ as d,M as u,a9 as c,ai as p,aj as f,c0 as _,a7 as g}from"./base-lib.js?v=VERSION_NUMBER";import{k as b,e as V}from"./utils-lib.js?v=VERSION_NUMBER";import{u as v,i as w,o as x,s as h,e as j,r as k}from"./index306.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./useStore8.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";const y={class:"p-[2rem] leading-[4rem]"},C={class:"form-line"},U={class:"form-line"},F={class:"form-line"},I={class:"form-line top"},S=V(e({__name:"scan",setup(e,{expose:V}){const{ruleForm:S,setScanInfo:q,areaOptions:A}=v();return a(w),V({onConfirm:x}),(e,a)=>{const V=b,v=c,w=p,x=f,B=_,H=g;return l(),o("div",y,[s(H,{ref_key:"setScanInfo",ref:q,model:m(S),class:"btCustomForm p-0",rules:m(k)},{default:r((()=>[s(v,{prop:"login_error"},{default:r((()=>[n("div",C,[a[5]||(a[5]=t(" 5分钟内多次登录失败超过 ")),s(V,{width:"14rem",class:"error-w mx-[0.6rem] !w-[14rem]",type:"number",modelValue:m(S).config.login_error,"onUpdate:modelValue":a[0]||(a[0]=e=>m(S).config.login_error=e)},null,8,["modelValue"]),a[6]||(a[6]=t(" 次,触发 "))])])),_:1}),s(v,null,{default:r((()=>[n("div",U,[a[7]||(a[7]=n("span",{class:"w-[9rem]"},"登录地区不为",-1)),s(x,{class:"mx-[0.6rem] !w-[26rem]",multiple:"","collapse-tags":"",filterable:"",modelValue:m(S).config.area.country,"onUpdate:modelValue":a[1]||(a[1]=e=>m(S).config.area.country=e)},{default:r((()=>[(l(!0),o(i,null,d(m(A),(e=>(l(),u(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),a[8]||(a[8]=n("span",{class:"w-[6rem]"},",触发",-1))])])),_:1}),s(v,{prop:"se_time"},{default:r((()=>[n("div",F,[a[9]||(a[9]=n("span",{class:"!w-[9rem]"},"登录时间不为",-1)),s(B,{class:"no-icon mx-[0.6rem] !w-[12rem]","is-range":"",modelValue:m(S).config.start_time,"onUpdate:modelValue":a[2]||(a[2]=e=>m(S).config.start_time=e),"picker-options":{start:"00:00",step:"01:00",end:"23:00"},clearable:"",placeholder:"请选择开始时间",onChange:m(h)},null,8,["modelValue","onChange"]),a[10]||(a[10]=t(" - ")),s(B,{class:"no-icon mx-[0.6rem] !w-[12rem]","is-range":"",modelValue:m(S).config.end_time,"onUpdate:modelValue":a[3]||(a[3]=e=>m(S).config.end_time=e),"picker-options":{start:m(S).config.start_time,step:"01:00",end:"23:00"},clearable:"",placeholder:"请选择结束时间",onChange:m(j)},null,8,["modelValue","picker-options","onChange"]),a[11]||(a[11]=t(" ,触发 "))])])),_:1}),s(v,{prop:"upload_shell_br"},{default:r((()=>[n("div",I,[a[12]||(a[12]=t(" 上传脚本包含 ")),s(V,{class:"!inline-block mx-[0.6rem] textarea-w !w-[32rem]",type:"textarea",rows:6,modelValue:m(S).config.upload_shell_br,"onUpdate:modelValue":a[4]||(a[4]=e=>m(S).config.upload_shell_br=e),placeholder:"一行一个"},null,8,["modelValue"])])])),_:1})])),_:1},8,["model","rules"])])}}}),[["__scopeId","data-v-8d6019f5"]]);export{S as default};
Save File
Cancel