/* empty css             *//* empty css                  *//* empty css                        *//* empty css                 *//* empty css                */import{s as a,g as e}from"./index-1d279c71.js";/* empty css                 *//* empty css                   */import{d as r,at as s,m as t,x as l,o,c as i,e as d,a as n,w as u,b as m,f as c,a5 as p,au as _,ab as g,U as v,av as x,aw as f,_ as b}from"./index-0ffeeea6.js";import"./http-ffb58baa.js";/* empty css                   */const y=a=>(x("data-v-ac07dea9"),a=a(),f(),a),h={class:"page"},j={class:"header"},V={class:"set-box"},I={class:"set-box-item"},U=y((()=>d("label",{style:{color:"red","margin-right":"10px"}},"*",-1))),k={class:"set-box-item"},w=y((()=>d("label",{style:{color:"red","margin-right":"10px"}},"*",-1))),C={class:"flex justify-end"},q=b(r({__name:"index",props:{primary:String|Number},emits:["close"],setup(r,{emit:x}){var f;const b=r;s("rolesIdentify");const y=t({}),q=()=>{var e;return y.value.charge_user_duration?y.value.no_charge_user_duration?y.value.charge_user_duration<=y.value.no_charge_user_duration?(p.error("充值用户染色时间应大于非充值用户染色时间"),!1):void a({miniprogram_id:null==(e=b.primary)?void 0:e.id,...y.value}).then((a=>{p.success(a.message),x("close")})):(p.error("请填写未充值用户染色时间"),!1):(p.error("请填写充值用户染色时间"),!1)};var H;return b.primary&&(b.primary,H={miniprogram_id:null==(f=b.primary)?void 0:f.id},e(H).then((a=>{y.value=a.data}))),l((()=>{})),(a,e)=>{const r=_,s=g,t=v;return o(),i("div",h,[d("div",j,[n(r,{class:"text-notice"},{default:u((()=>[m("注意事项")])),_:1}),n(r,{class:"text-notice"},{default:u((()=>[m("1.充值用户>=n分钟连续未登录，如果点击新连接，会归属于新链接的优化师")])),_:1}),n(r,{class:"text-notice"},{default:u((()=>[m("2.未充值用户>=n分钟连续未登录，如果点击新连接，会归属于新链接的优化师")])),_:1})]),d("div",V,[d("div",I,[n(r,{class:"lab-txt"},{default:u((()=>[U,m("非充值用户：")])),_:1}),n(s,{modelValue:c(y).no_charge_user_duration,"onUpdate:modelValue":e[0]||(e[0]=a=>c(y).no_charge_user_duration=a),min:1},null,8,["modelValue"]),n(r,{style:{"margin-left":"10px",color:"#555"}},{default:u((()=>[m("分")])),_:1})]),d("div",k,[n(r,{class:"lab-txt"},{default:u((()=>[w,m("充值用户：")])),_:1}),n(s,{modelValue:c(y).charge_user_duration,"onUpdate:modelValue":e[1]||(e[1]=a=>c(y).charge_user_duration=a),min:1},null,8,["modelValue"]),n(r,{style:{"margin-left":"10px",color:"#555"}},{default:u((()=>[m("分")])),_:1})]),d("div",C,[n(t,{style:{"margin-left":"140px","margin-top":"30px"},type:"primary",onClick:q},{default:u((()=>[m("确定")])),_:1})])])])}}}),[["__scopeId","data-v-ac07dea9"]]);export{q as default};
