"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[4369],{15264:function(e,s,t){t.r(s),t.d(s,{default:function(){return x}});var i=t(66252),l=t(3577);const a=e=>((0,i.dD)("data-v-13142ef4"),e=e(),(0,i.Cn)(),e),c={class:"card-header-box"},n=a((()=>(0,i._)("div",{class:"card-header"},[(0,i._)("span",null,"事务待办通知设置")],-1))),u={class:"card-btn"},o=(0,i.Uk)("保存"),d={class:"pushSetting","element-loading-text":"努力加载中..."},r={class:"headerNav"},m=a((()=>(0,i._)("div",{class:"item"},"通知事项",-1))),p=a((()=>(0,i._)("div",null,"一、第一步账户安全里绑定微信号",-1))),_=a((()=>(0,i._)("div",null,"二、第二步勾选想要接收的通知",-1))),h={class:"sc-icon"},g=a((()=>(0,i._)("div",null,"一、账号信息里绑定手机号",-1))),v=a((()=>(0,i._)("div",null,"二、第二步勾选想要接收的通知",-1))),b={class:"sc-icon"},w={class:"middleView"},k={class:"item"};function f(e,s,t,a,f,y){const D=(0,i.up)("el-button"),V=(0,i.up)("el-icon-QuestionFilled"),x=(0,i.up)("el-tooltip"),C=(0,i.up)("el-checkbox"),L=(0,i.up)("el-scrollbar"),S=(0,i.up)("el-card"),U=(0,i.Q2)("loading");return(0,i.wg)(),(0,i.j4)(S,{shadow:"never",header:""},{header:(0,i.w5)((()=>[(0,i._)("div",c,[n,(0,i._)("div",u,[(0,i.Wm)(D,{size:"small",type:"primary",onClick:y.save},{default:(0,i.w5)((()=>[o])),_:1},8,["onClick"])])])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",d,[(0,i._)("div",r,[m,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.subscription_items,((e,s)=>((0,i.wg)(),(0,i.iD)("div",{class:"item center",key:s},[(0,i.Uk)((0,l.toDisplayString)(e.label)+" ",1),1==e.value?((0,i.wg)(),(0,i.j4)(x,{key:0,class:"box-item",effect:"dark",content:"",placement:"top-start"},{content:(0,i.w5)((()=>[p,_])),default:(0,i.w5)((()=>[(0,i._)("span",null,[(0,i._)("i",h,[(0,i.Wm)(V)])])])),_:1})):3==e.value?((0,i.wg)(),(0,i.j4)(x,{key:1,class:"box-item",effect:"dark",content:"",placement:"top-start"},{content:(0,i.w5)((()=>[g,v])),default:(0,i.w5)((()=>[(0,i._)("span",null,[(0,i._)("i",b,[(0,i.Wm)(V)])])])),_:1})):(0,i.kq)("",!0)])))),128))]),(0,i._)("div",w,[(0,i.Wm)(L,{height:"100%"},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.check_msg_temp,((e,s)=>((0,i.wg)(),(0,i.iD)("div",{class:"listView",key:s},[(0,i._)("div",k,(0,l.toDisplayString)(e.value),1),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.subscription_items,((e,s)=>((0,i.wg)(),(0,i.iD)("div",{class:"item center",key:s},[(0,i.Wm)(C,{value:e.value,modelValue:e.subscribed,"onUpdate:modelValue":s=>e.subscribed=s},null,8,["value","modelValue","onUpdate:modelValue"])])))),128))])))),128))])),_:1})])])),[[U,f.loading]])])),_:1})}t(57658);var y={data(){return{subscription_items:[],check_msg_temp:[],loading:!1}},mounted(){this.getList(!0)},beforeUnmount(){},methods:{async getList(e){e&&(this.loading=!0);const s=await this.$API.user.subscribe.list.post();200==s.code&&(this.subscription_items=s.data.subscription_items,this.check_msg_temp=s.data.check_msg_temp,this.loading=!1)},async save(){let e={temps:this.setList()};const s=await this.$API.user.subscribe.set.post(e);200==s.code&&(this.$message.success("保存成功"),await this.getList())},setList(){let e=JSON.parse(JSON.stringify(this.check_msg_temp)),s=[];return e.length>0&&e.forEach((e=>{let t={notice_item:e.notice_item,value:e.value,subscription_items:[]};e.subscription_items.length>0&&e.subscription_items.forEach((e=>{e.subscribed&&t.subscription_items.push(e.value)})),t.subscription_items.length>0&&s.push(t)})),s}}},D=t(83744);const V=(0,D.Z)(y,[["render",f],["__scopeId","data-v-13142ef4"]]);var x=V}}]);