text: webpackJsonp([10],{cxYs:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l("u/PM"),r={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}]},[l("full-calendar",{ref:"calendar",attrs:{events:e.fcEvents,config:e.config},on:{"event-selected":e.eventClick,"day-click":e.dayClick,"event-created":e.eventCreated}}),e._v(" "),l("el-dialog",{staticStyle:{padding:"0 142px","box-sizing":"border-box"},attrs:{title:e.lan.CALENDAR_PAGE_CAL_NEW_EVENT,visible:e.newEventDialog,"modal-append-to-body":!1,width:"100%",top:"45px"},on:{"update:visible":function(t){e.newEventDialog=t}}},[l("el-form",{ref:"newForm",staticClass:"demo-ruleForm",attrs:{model:e.newForm,rules:e.rules,"label-width":"180px",size:"small"}},[l("el-form-item",{attrs:{label:e.lan.COMMON_SUBJECT,prop:"title"}},[l("el-row",[l("el-col",{attrs:{span:20}},[l("el-input",{model:{value:e.newForm.title,callback:function(t){e.$set(e.newForm,"title","string"==typeof t?t.trim():t)},expression:"newForm.title"}})],1),e._v(" "),l("el-col",{attrs:{span:4}},[l("el-dropdown",{staticStyle:{"margin-left":"10px"},attrs:{trigger:"click"},on:{command:e.changeNewColor}},[l("span",{staticClass:"el-dropdown-link"},[l("span",{staticStyle:{display:"inline-block",width:"15px",height:"15px"},style:{background:e.newForm.color}}),l("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{attrs:{command:"#D50000",title:e.lan.CALENDAR_PAGE_CAL_TOMATO_RED}},[l("span",{staticStyle:{background:"#D50000",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#E67C73",title:e.lan.CALENDAR_PAGE_CAL_RED_CRANE_COLOR}},[l("span",{staticStyle:{background:"#E67C73",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#F4511E",title:e.lan.CALENDAR_PAGE_CAL_TANGERINE}},[l("span",{staticStyle:{background:"#F4511E",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#F6BF26",title:e.lan.CALENDAR_PAGE_CAL_BANANA_YELLOW}},[l("span",{staticStyle:{background:"#F6BF26",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#33B679",title:e.lan.CALENDAR_PAGE_CAL_SALVIA_GREEN}},[l("span",{staticStyle:{background:"#33B679",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#0B8043",title:e.lan.CALENDAR_PAGE_CAL_BASIL_GREEN}},[l("span",{staticStyle:{background:"#0B8043",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#039BE5",title:e.lan.CALENDAR_PAGE_CAL_PEACOCK_BLUE}},[l("span",{staticStyle:{background:"#039BE5",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#3F51B5",title:e.lan.CALENDAR_PAGE_CAL_BLUEBERRY_COLOR}},[l("span",{staticStyle:{background:"#3F51B5",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#7986CB",title:e.lan.CALENDAR_PAGE_CAL_LAVENDER}},[l("span",{staticStyle:{background:"#7986CB",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#8E24AA",title:e.lan.CALENDAR_PAGE_CAL_GRAPE_PURPLE}},[l("span",{staticStyle:{background:"#8E24AA",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#616161",title:e.lan.CALENDAR_PAGE_CAL_GRAPHITE_BLACK}},[l("span",{staticStyle:{background:"#616161",display:"inline-block",width:"15px",height:"15px"}})])],1)],1)],1)],1)],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_TIME}},[l("el-date-picker",{staticStyle:{width:"180px"},attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateBefore,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_INPUT_START_TIME},on:{change:e.pickBeginDate},model:{value:e.newForm.start_day,callback:function(t){e.$set(e.newForm,"start_day",t)},expression:"newForm.start_day"}}),e._v(" "),!e.newForm.is_allday||e.newForm.is_cycle?l("el-time-picker",{staticStyle:{width:"100px"},attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:e.lan.CALENDAR_PAGE_CAL_CHOOSE_TIME},model:{value:e.newForm.start_time,callback:function(t){e.$set(e.newForm,"start_time",t)},expression:"newForm.start_time"}}):e._e(),e._v("\n        ——\n        "),l("el-date-picker",{staticStyle:{width:"180px"},attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateAfter,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_INPUT_END_TIME},model:{value:e.newForm.end_day,callback:function(t){e.$set(e.newForm,"end_day",t)},expression:"newForm.end_day"}}),e._v(" "),!e.newForm.is_allday||e.newForm.is_cycle?l("el-time-picker",{staticStyle:{width:"100px"},attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:e.lan.CALENDAR_PAGE_CAL_CHOOSE_TIME},model:{value:e.newForm.end_time,callback:function(t){e.$set(e.newForm,"end_time",t)},expression:"newForm.end_time"}}):e._e(),e._v(" "),l("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.newForm.is_cycle,expression:"!newForm.is_cycle"}],staticStyle:{"margin-left":"20px"},model:{value:e.newForm.is_allday,callback:function(t){e.$set(e.newForm,"is_allday",t)},expression:"newForm.is_allday"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_DAY_EVENT))])],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REPEAT_EVENT}},[l("el-checkbox",{model:{value:e.newForm.is_cycle,callback:function(t){e.$set(e.newForm,"is_cycle",t)},expression:"newForm.is_cycle"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_IS_REPEAT))]),e._v(" "),l("br"),e._v(" "),e.newForm.is_cycle?l("el-form",{attrs:{size:"small"}},[l("el-form-item",{staticClass:"no_padding_left tips_item",attrs:{label:e.lan.CALENDAR_FIXED_MODE}},[l("br"),e._v(" "),l("el-radio-group",{staticStyle:{"margin-bottom":"20px"},model:{value:e.newForm.rrule.FREQ,callback:function(t){e.$set(e.newForm.rrule,"FREQ",t)},expression:"newForm.rrule.FREQ"}},[l("el-radio",{attrs:{label:"DAILY"}},[e._v(e._s(e.lan.CALENDAR_MODE_DAILY))]),e._v(" "),l("el-radio",{attrs:{label:"WEEKLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_WEEKLY))]),e._v(" "),l("el-radio",{attrs:{label:"MONTHLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_MONTHLY))]),e._v(" "),l("el-radio",{attrs:{label:"YEARLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_YEARLY))])],1),e._v(" "),"DAILY"==e.newForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.INTERVAL,callback:function(t){e.$set(e.newForm.rrule,"INTERVAL",e._n(t))},expression:"newForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_DAY)+"\n              ")],1):e._e(),e._v(" "),"WEEKLY"==e.newForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_REPEAT)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.INTERVAL,callback:function(t){e.$set(e.newForm.rrule,"INTERVAL",e._n(t))},expression:"newForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_AFTER_WEEK)+"：\n                "),l("el-checkbox-group",{model:{value:e.newForm.rrule.BYDAY,callback:function(t){e.$set(e.newForm.rrule,"BYDAY",t)},expression:"newForm.rrule.BYDAY"}},[l("el-checkbox",{attrs:{label:"MO"}},[e._v(e._s(e.lan.MONDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"TU"}},[e._v(e._s(e.lan.TUESDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"WE"}},[e._v(e._s(e.lan.WEDNESDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"TH"}},[e._v(e._s(e.lan.THURSDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"FR"}},[e._v(e._s(e.lan.FRIDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"SA"}},[e._v(e._s(e.lan.SATURDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"SU"}},[e._v(e._s(e.lan.SUNDAY))])],1)],1):e._e(),e._v(" "),"MONTHLY"==e.newForm.rrule.FREQ?l("div",[l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"0"},model:{value:e.newForm.MONTHLY_TYPE,callback:function(t){e.$set(e.newForm,"MONTHLY_TYPE",t)},expression:"newForm.MONTHLY_TYPE"}}),e._v("\n                  "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.INTERVAL,callback:function(t){e.$set(e.newForm.rrule,"INTERVAL",e._n(t))},expression:"newForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+" "+e._s(e.lan.CALENDAR_MONTH_TH)+"\n                      "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1",max:"31"},model:{value:e.newForm.rrule.BYMONTHDAY,callback:function(t){e.$set(e.newForm.rrule,"BYMONTHDAY",e._n(t))},expression:"newForm.rrule.BYMONTHDAY"}}),e._v(" "+e._s(e.lan.CALENDAR_DAY)+"\n                ")],1),e._v(" "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"1"},model:{value:e.newForm.MONTHLY_TYPE,callback:function(t){e.$set(e.newForm,"MONTHLY_TYPE",t)},expression:"newForm.MONTHLY_TYPE"}}),e._v("\n                  "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.INTERVAL,callback:function(t){e.$set(e.newForm.rrule,"INTERVAL",e._n(t))},expression:"newForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+"\n                  "),l("el-select",{staticStyle:{width:"100px"},model:{value:e.newForm.rrule.BYSETPOS,callback:function(t){e.$set(e.newForm.rrule,"BYSETPOS",t)},expression:"newForm.rrule.BYSETPOS"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_FIRST,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SECOND,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_THIRD,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FOURTH,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_LAST,value:-1}})],1),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.newForm.rrule.BYDAY_MONTH,callback:function(t){e.$set(e.newForm.rrule,"BYDAY_MONTH",t)},expression:"newForm.rrule.BYDAY_MONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_DAYS,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WORKDAYS,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WEEKENDS,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.MONDAY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.TUESDAY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.WEDNESDAY,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.THURSDAY,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FRIDAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SATURDAY,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SUNDAY,value:7}})],1)],1)]):e._e(),e._v(" "),"YEARLY"==e.newForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_REPEAT)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.INTERVAL,callback:function(t){e.$set(e.newForm.rrule,"INTERVAL",e._n(t))},expression:"newForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_AFTER_YEAR)+"：\n                "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"0"},model:{value:e.newForm.YEARLY_TYPE,callback:function(t){e.$set(e.newForm,"YEARLY_TYPE",t)},expression:"newForm.YEARLY_TYPE"}}),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.newForm.rrule.BYMONTH,callback:function(t){e.$set(e.newForm.rrule,"BYMONTH",t)},expression:"newForm.rrule.BYMONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_JANUARY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FEBRUARY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MARCH,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_APRIL,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JUNE,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JULY,value:7}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_AUGUST,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SEPTEMBER,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_OCTOBER,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_NOVEMBER,value:11}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_DECEMBER,value:12}})],1),e._v(" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1",max:"31"},model:{value:e.newForm.rrule.BYMONTHDAY,callback:function(t){e.$set(e.newForm.rrule,"BYMONTHDAY",e._n(t))},expression:"newForm.rrule.BYMONTHDAY"}}),e._v(" "+e._s(e.lan.CALENDAR_DAYTH)+"\n                ")],1),e._v(" "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"1"},model:{value:e.newForm.YEARLY_TYPE,callback:function(t){e.$set(e.newForm,"YEARLY_TYPE",t)},expression:"newForm.YEARLY_TYPE"}}),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.newForm.rrule.BYMONTH,callback:function(t){e.$set(e.newForm.rrule,"BYMONTH",t)},expression:"newForm.rrule.BYMONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_JANUARY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FEBRUARY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MARCH,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_APRIL,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JUNE,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JULY,value:7}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_AUGUST,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SEPTEMBER,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_OCTOBER,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_NOVEMBER,value:11}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_DECEMBER,value:12}})],1),e._v(" "+e._s(e.lan.CALENDAR_DE)+"\n                  "),l("el-select",{staticStyle:{width:"100px"},model:{value:e.newForm.rrule.BYSETPOS,callback:function(t){e.$set(e.newForm.rrule,"BYSETPOS",t)},expression:"newForm.rrule.BYSETPOS"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_FIRST,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SECOND,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_THIRD,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FOURTH,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_LAST,value:-1}})],1),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.newForm.rrule.BYDAY_MONTH,callback:function(t){e.$set(e.newForm.rrule,"BYDAY_MONTH",t)},expression:"newForm.rrule.BYDAY_MONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_DAYS,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WORKDAYS,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WEEKENDS,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.MONDAY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.TUESDAY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.WEDNESDAY,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.THURSDAY,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FRIDAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SATURDAY,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SUNDAY,value:7}})],1)],1)],1):e._e()],1),e._v(" "),l("el-form-item",{staticClass:"no_padding_left tips_item",attrs:{label:e.lan.CALENDAR_REPEAT_RANGE}},[l("br"),e._v(" "),l("div",[l("el-radio",{attrs:{label:"1"},model:{value:e.newForm.cycle_type,callback:function(t){e.$set(e.newForm,"cycle_type",t)},expression:"newForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_NO_END))])],1),e._v(" "),l("div",[l("el-radio",{attrs:{label:"2"},model:{value:e.newForm.cycle_type,callback:function(t){e.$set(e.newForm,"cycle_type",t)},expression:"newForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT))]),e._v(" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.rrule.COUNT,callback:function(t){e.$set(e.newForm.rrule,"COUNT",e._n(t))},expression:"newForm.rrule.COUNT"}}),e._v(" "+e._s(e.lan.CALENDAR_END_TIMES)+"\n              ")],1),e._v(" "),l("div",[l("el-radio",{attrs:{label:"3"},model:{value:e.newForm.cycle_type,callback:function(t){e.$set(e.newForm,"cycle_type",t)},expression:"newForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_END_DAY)+"：")]),e._v(" "),l("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateEnd,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_CHOOSE_REPEAT_ENDTIME},model:{value:e.newForm.rrule.UNTIL,callback:function(t){e.$set(e.newForm.rrule,"UNTIL",t)},expression:"newForm.rrule.UNTIL"}})],1)])],1):e._e()],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_PLACE,prop:"location"}},[l("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.newForm.location,callback:function(t){e.$set(e.newForm,"location","string"==typeof t?t.trim():t)},expression:"newForm.location"}})],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMARK,prop:"description"}},[l("el-input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:6}},model:{value:e.newForm.description,callback:function(t){e.$set(e.newForm,"description","string"==typeof t?t.trim():t)},expression:"newForm.description"}})],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMIND,prop:"remind"}},[l("el-checkbox",{model:{value:e.newForm.is_remind,callback:function(t){e.$set(e.newForm,"is_remind",t)},expression:"newForm.is_remind"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_IS_REMIND))]),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.newForm.is_remind,expression:"newForm.is_remind"}]},[e._v("\n          "+e._s(e.lan.CALENDAR_PAGE_CAL_REMIND_BEFORE)+"\n          "),l("el-input",{staticStyle:{width:"80px"},attrs:{type:"number",min:"1"},model:{value:e.newForm.remind_before,callback:function(t){e.$set(e.newForm,"remind_before",t)},expression:"newForm.remind_before"}}),l("el-select",{attrs:{placeholder:e.lan.SETTING_RE_ADD_PLACEHODER},model:{value:e.newForm.remind_unit,callback:function(t){e.$set(e.newForm,"remind_unit",t)},expression:"newForm.remind_unit"}},[l("el-option",{attrs:{label:e.lan.FILE_P_MIN,value:"60"}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FILE_P_HOUR,value:"3600"}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FILE_P_DAY,value:"86400"}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_WEEK,value:"604800"}})],1),e._v("\n          "+e._s(e.lan.CALENDAR_PAGE_CAL_REMIND)+"\n        ")],1)],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_VISIT,prop:"invitors"}},[l("div",{staticStyle:{"min-height":"80px",border:"1px solid #dcdfe6","max-width":"400px",padding:"4px 10px","max-height":"400px",overflow:"auto"}},e._l(e.newForm.invitors,function(t,a){return l("el-row",{key:a},[l("el-col",{attrs:{span:18}},[l("div",[e._v(e._s(t))])]),e._v(" "),l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[l("el-button",{attrs:{icon:"el-icon-delete",size:"mini",title:e.lan.CALENDAR_PAGE_CAL_CANCEL_VISIT},on:{click:function(t){return e.delete_invitors(a)}}})],1)],1)}),1),e._v(" "),l("el-input",{staticStyle:{width:"auto"},attrs:{placeholder:e.lan.CALENDAR_PAGE_SET_INPUT_VISIT},model:{value:e.addemail,callback:function(t){e.addemail="string"==typeof t?t.trim():t},expression:"addemail"}}),e._v(" "),l("el-button",{on:{click:e.addEmail}},[e._v(e._s(e.lan.COMMON_BUTTON_ADD))]),e._v(" "),l("el-button",{on:{click:function(t){e.showChoice=!e.showChoice}}},[e._v(e._s(e.showChoice?e.lan.ADDRBOOK_HIDE:e.lan.ADDRBOOK_SHOW))])],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showChoice,expression:"showChoice"}],attrs:{label:e.lan.CALENDAR_PAGE_SET_CHOOSE_MAILBOX}},[l("el-row",{staticStyle:{"margin-bottom":"6px"}},[l("el-col",{attrs:{span:16}},[l("el-cascader",{staticStyle:{width:"100%"},attrs:{"change-on-select":"",options:e.deptOptions,placeholder:e.lan.SETTING_RE_ADD_SELECTDPT_PLACE},on:{change:e.menu_change}})],1),e._v(" "),l("el-col",{attrs:{span:5,offset:1}},[l("el-input",{attrs:{size:"small",placeholder:e.lan.SETTING_RE_ADD_CONTENT_RULE},model:{value:e.searchMailbox,callback:function(t){e.searchMailbox=t},expression:"searchMailbox"}})],1),e._v(" "),l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},[l("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.searchOabMembers(1)}}},[e._v(e._s(e.lan.COMMON_SEARCH2))])],1)],1),e._v(" "),l("el-table",{ref:"contactTable",staticStyle:{width:"100%"},attrs:{data:e.contactData,"tooltip-effect":"dark",border:"","header-cell-style":{background:"#f0f1f3"}},on:{"selection-change":e.handleSelectionChange,"row-click":e.rowClick}},[l("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),l("el-table-column",{attrs:{prop:"name",label:e.lan.SETTING_REFERE_EMAIL_NAME},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.name+"<"+t.row.username+">"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:e.lan.COMMON_DEPARTMENT},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.department))])]}}])})],1),e._v(" "),e.totalCount>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{small:"","current-page":e.currentPage,"page-sizes":[5,10,20,50,100,200,300,400],"page-size":e.pageSize,layout:"   prev",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),e.totalCount>0?l("span",[e._v(e._s(e.currentPage+" / "+Math.ceil(e.totalCount/e.pageSize)))]):e._e(),e._v(" "),e.totalCount>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{small:"","current-page":e.currentPage,"page-sizes":[5,10,20,50,100,200,300,400],"page-size":e.pageSize,layout:"next,sizes,jumper",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{size:"small"},on:{click:function(t){e.newEventDialog=!1}}},[e._v(e._s(e.lan.COMMON_BUTTON_CANCELL))]),e._v(" "),l("el-button",{attrs:{type:"primary",size:"small",loading:e.creat_loading},on:{click:function(t){return e.submitForm("newForm")}}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_CREATE))])],1)],1),e._v(" "),l("el-dialog",{staticStyle:{padding:"0 142px","box-sizing":"border-box"},attrs:{title:e.viewForm.title,visible:e.viewEventDialog,"close-on-click-modal":!1,"append-to-body":!0,width:"100%",top:"45px"},on:{"update:visible":function(t){e.viewEventDialog=t}}},[l("el-form",{ref:"viewForm",attrs:{model:e.viewForm,rules:e.view_rules,"label-width":"180px",size:"small"}},[e.permisson.invite&&e.viewForm.is_invited?l("el-card",{staticClass:"box-card",staticStyle:{background:"#FFFFE1","margin-bottom":"16px"}},[l("h3",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_IS_PASS))]),e._v(" "),l("el-radio-group",{staticStyle:{padding:"16px 0"},model:{value:e.invitor_status,callback:function(t){e.invitor_status=t},expression:"invitor_status"}},[l("el-radio",{attrs:{label:"pass"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_PASS))]),e._v(" "),l("el-radio",{attrs:{label:"reject"}},[e._v(e._s(e.lan.MAILBOX_COM_REVIEW_REJECT_ACTION))]),e._v(" "),l("el-radio",{attrs:{label:"wait"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_WAIT))])],1),e._v(" "),l("div",[l("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.saveStatus}},[e._v(e._s(e.lan.COMMON_BUTTON_SAVE))])],1)],1):e._e(),e._v(" "),e.permisson.edit?e._e():l("div",[l("el-form-item",{attrs:{label:e.lan.MAILBOX_COM_REVIEW_DATE+"："}},[l("span",[e._v(e._s(e.viewForm.start_day+" "+e.viewForm.start_time+" —— "+e.viewForm.end_day+" "+e.viewForm.end_time))])]),e._v(" "),e.viewForm.location?l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_PLACE+"："}},[l("span",[e._v(e._s(e.viewForm.location))])]):e._e(),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMARK+"："}},[l("span",[e._v(e._s(e.viewForm.description))])]),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMIND+"："}},[l("span",[e._v(e._s(e.viewForm.is_remind?e.lan.CALENDAR_PAGE_CAL_REMIND_BEFORE+" "+e.viewForm.remind_before+" "+(60==e.viewForm.remind_unit?e.lan.FILE_P_MIN:3600==e.viewForm.remind_unit?e.lan.FILE_P_HOUR:86400==e.viewForm.remind_unit?e.lan.FILE_P_DAY:e.lan.CALENDAR_PAGE_CAL_WEEK):e.lan.CALENDAR_PAGE_CAL_NONE))])]),e._v(" "),l("el-form-item",{attrs:{label:e.lan.COMMON_STATUS+"："}},[e.viewForm.is_cycle?e._e():l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_NO_REPEAT))]),e._v(" "),e.viewForm.is_cycle&&e.viewForm.rrule&&"DAILY"==e.viewForm.rrule.FREQ?l("span",[l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>1?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(e._s(e.lan.CALENDAR_DAY)+" "+e._s(e.lan.CALENDAR_HAPPEN))])]):e._e(),e._v(" "),e.viewForm.is_cycle&&e.viewForm.rrule&&"WEEKLY"==e.viewForm.rrule.FREQ?l("span",[l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>1?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(e._s(e.lan.CALENDAR_WEEK)+"\n              "),e.viewForm.rrule.BYDAY?l("span",{staticStyle:{color:"green"}},[e.contains(e.viewForm.rrule.BYDAY,"MO")?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"TU")?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"WE")?l("span",[e._v("【"+e._s(e.lan.WEDNESDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"TH")?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"SA")?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】")]):e._e(),e._v(" "),e.contains(e.viewForm.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】")]):e._e()]):e._e(),e._v("\n              "+e._s(e.lan.CALENDAR_HAPPEN))])]):e._e(),e._v(" "),e.viewForm.is_cycle&&e.viewForm.rrule&&"MONTHLY"==e.viewForm.rrule.FREQ?l("span",["0"==e.viewForm.MONTHLY_TYPE?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>1?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+" "+e._s(e.lan.CALENDAR_MONTH_TH)+" "),e.viewForm.rrule.BYMONTHDAY?l("span",[e._v(e._s(e.viewForm.rrule.BYMONTHDAY))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_DAY)+" "+e._s(e.lan.CALENDAR_HAPPEN))]):e._e(),e._v(" "),"1"==e.viewForm.MONTHLY_TYPE?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>1?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+"\n              "),"1"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_FIRST))]):e._e(),e._v(" "),"2"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_SECOND))]):e._e(),e._v(" "),"3"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_THIRD))]):e._e(),e._v(" "),"4"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_FOURTH))]):e._e(),e._v(" "),"-1"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_LAST))]):e._e(),e._v(" "),1==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】")]):e._e(),e._v(" "),2==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】")]):e._e(),e._v(" "),3==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【lan.WEDNESDAY】")]):e._e(),e._v(" "),4==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】")]):e._e(),e._v(" "),5==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】")]):e._e(),e._v(" "),6==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】")]):e._e(),e._v(" "),7==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】")]):e._e(),e._v(" "),8==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WEEKENDS)+"】")]):e._e(),e._v(" "),9==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WORKDAYS)+"】")]):e._e(),e._v(" "),10==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_DAYS)+"】")]):e._e(),e._v("\n              "+e._s(e.lan.CALENDAR_HAPPEN)+"\n            ")]):e._e()]):e._e(),e._v(" "),e.viewForm.is_cycle&&e.viewForm.rrule&&"YEARLY"==e.viewForm.rrule.FREQ?l("span",["0"==e.viewForm.YEARLY_TYPE?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>0?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_AFTER_YEAR)+"\n              "),e.viewForm.rrule.BYMONTH?l("span",[e._v(e._s(e.viewForm.rrule.BYMONTH))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_MONTHTH)+"\n              "),e.viewForm.rrule.BYMONTHDAY?l("span",[e._v(e._s(e.viewForm.rrule.BYMONTHDAY))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_DAYTH)+" "+e._s(e.lan.CALENDAR_HAPPEN)+"\n            ")]):e._e(),e._v(" "),"1"==e.viewForm.YEARLY_TYPE?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),e.viewForm.rrule.INTERVAL>1?l("span",[e._v(e._s(e.viewForm.rrule.INTERVAL))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_AFTER_YEAR)+"\n              "),e.viewForm.rrule.BYMONTH?l("span",[e._v(e._s(e.viewForm.rrule.BYMONTH))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_MONTHTH)+" "+e._s(e.lan.CALENDAR_DE)+"\n              "),"1"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_FIRST))]):e._e(),e._v(" "),"2"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_SECOND))]):e._e(),e._v(" "),"3"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_THIRD))]):e._e(),e._v(" "),"4"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_FOURTH))]):e._e(),e._v(" "),"-1"==e.viewForm.rrule.BYSETPOS?l("span",[e._v(e._s(e.lan.CALENDAR_LAST))]):e._e(),e._v(" "),1==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】")]):e._e(),e._v(" "),2==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】")]):e._e(),e._v(" "),3==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.WEDNESDAY)+"】")]):e._e(),e._v(" "),4==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】")]):e._e(),e._v(" "),5==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】")]):e._e(),e._v(" "),6==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】")]):e._e(),e._v(" "),7==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】")]):e._e(),e._v(" "),8==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WEEKENDS)+"】")]):e._e(),e._v(" "),9==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WORKDAYS)+"】")]):e._e(),e._v(" "),10==e.viewForm.rrule.BYDAY_MONTH?l("span",[e._v("【"+e._s(e.lan.CALENDAR_DAYS)+"】")]):e._e(),e._v("\n              "+e._s(e.lan.CALENDAR_HAPPEN)+"\n            ")]):e._e()]):e._e(),e._v(" "),e.viewForm.is_cycle?l("span",[e._v("，"+e._s(e.lan.CALENDAR_START_DAY)+"："+e._s(e.viewForm.start_day+" "+e.viewForm.start_time))]):e._e(),e._v(" "),e.viewForm.is_cycle&&e.viewForm.rrule?l("span",["2"==e.viewForm.cycle_type&&e.viewForm.rrule.COUNT?l("span",[e._v("，"+e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT)+" "+e._s(e.viewForm.rrule.COUNT)+" "+e._s(e.lan.CALENDAR_END_TIMES))]):e._e(),e._v(" "),"3"==e.viewForm.cycle_type&&e.viewForm.rrule.UNTIL?l("span",[e._v("，"+e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT_TO)+" "+e._s(e.viewForm.rrule.UNTIL)+" "+e._s(e.lan.CALENDAR_END))]):e._e()]):e._e()]),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_USER+"："}},[l("span",[e._v(e._s(e.viewForm.name+"<"+e.viewForm.email+">")+"; ")])]),e._v(" "),e.viewForm.invitors.length>0?l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_VISITER+"："}},e._l(e.viewForm.invitors,function(t){return l("span",[e._v(e._s(t.name+"<"+t.email+">")+"; ")])}),0):e._e()],1),e._v(" "),e.permisson.edit?l("div",[l("el-form-item",{attrs:{label:e.lan.COMMON_SUBJECT,prop:"title"}},[l("el-row",[l("el-col",{attrs:{span:20}},[l("el-input",{model:{value:e.viewForm.title,callback:function(t){e.$set(e.viewForm,"title","string"==typeof t?t.trim():t)},expression:"viewForm.title"}})],1),e._v(" "),l("el-col",{attrs:{span:4}},[l("el-dropdown",{staticStyle:{"margin-left":"10px"},attrs:{trigger:"click"},on:{command:e.changeViewColor}},[l("span",{staticClass:"el-dropdown-link"},[l("span",{staticStyle:{display:"inline-block",width:"15px",height:"15px"},style:{background:e.viewForm.color}}),l("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{attrs:{command:"#D50000",title:e.lan.CALENDAR_PAGE_CAL_TOMATO_RED}},[l("span",{staticStyle:{background:"#D50000",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#E67C73",title:e.lan.CALENDAR_PAGE_CAL_RED_CRANE_COLOR}},[l("span",{staticStyle:{background:"#E67C73",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#F4511E",title:e.lan.CALENDAR_PAGE_CAL_TANGERINE}},[l("span",{staticStyle:{background:"#F4511E",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#F6BF26",title:e.lan.CALENDAR_PAGE_CAL_BANANA_YELLOW}},[l("span",{staticStyle:{background:"#F6BF26",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#33B679",title:e.lan.CALENDAR_PAGE_CAL_SALVIA_GREEN}},[l("span",{staticStyle:{background:"#33B679",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#0B8043",title:e.lan.CALENDAR_PAGE_CAL_BASIL_GREEN}},[l("span",{staticStyle:{background:"#0B8043",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#039BE5",title:e.lan.CALENDAR_PAGE_CAL_PEACOCK_BLUE}},[l("span",{staticStyle:{background:"#039BE5",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#3F51B5",title:e.lan.CALENDAR_PAGE_CAL_BLUEBERRY_COLOR}},[l("span",{staticStyle:{background:"#3F51B5",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#7986CB",title:e.lan.CALENDAR_PAGE_CAL_LAVENDER}},[l("span",{staticStyle:{background:"#7986CB",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#8E24AA",title:e.lan.CALENDAR_PAGE_CAL_GRAPE_PURPLE}},[l("span",{staticStyle:{background:"#8E24AA",display:"inline-block",width:"15px",height:"15px"}})]),e._v(" "),l("el-dropdown-item",{attrs:{command:"#616161",title:e.lan.CALENDAR_PAGE_CAL_GRAPHITE_BLACK}},[l("span",{staticStyle:{background:"#616161",display:"inline-block",width:"15px",height:"15px"}})])],1)],1)],1)],1)],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_TIME}},[l("el-date-picker",{staticStyle:{width:"180px"},attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateBefore,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_INPUT_START_TIME},on:{change:e.pickBeginDate_view},model:{value:e.viewForm.start_day,callback:function(t){e.$set(e.viewForm,"start_day",t)},expression:"viewForm.start_day"}}),e._v(" "),!e.viewForm.is_allday||e.viewForm.is_cycle?l("el-time-picker",{staticStyle:{width:"100px"},attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:"lan.CALENDAR_PAGE_CAL_CHOOSE_TIME"},model:{value:e.viewForm.start_time,callback:function(t){e.$set(e.viewForm,"start_time",t)},expression:"viewForm.start_time"}}):e._e(),e._v("\n          ——\n          "),l("el-date-picker",{staticStyle:{width:"180px"},attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateAfter_edit,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_INPUT_END_TIME},model:{value:e.viewForm.end_day,callback:function(t){e.$set(e.viewForm,"end_day",t)},expression:"viewForm.end_day"}}),e._v(" "),!e.viewForm.is_allday||e.viewForm.is_cycle?l("el-time-picker",{staticStyle:{width:"100px"},attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:e.lan.CALENDAR_PAGE_CAL_CHOOSE_TIME},model:{value:e.viewForm.end_time,callback:function(t){e.$set(e.viewForm,"end_time",t)},expression:"viewForm.end_time"}}):e._e(),e._v(" "),l("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.viewForm.is_cycle,expression:"!viewForm.is_cycle"}],model:{value:e.viewForm.is_allday,callback:function(t){e.$set(e.viewForm,"is_allday",t)},expression:"viewForm.is_allday"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_DAY_EVENT))]),e._v(" "),(e.viewForm.process,e._e())],1),e._v(" "),e.viewForm.is_cancycle?l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REPEAT_EVENT}},[l("el-checkbox",{model:{value:e.viewForm.is_cycle,callback:function(t){e.$set(e.viewForm,"is_cycle",t)},expression:"viewForm.is_cycle"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_IS_REPEAT))]),e._v(" "),l("br"),e._v(" "),e.viewForm.is_cycle?l("el-form",{attrs:{size:"small"}},[l("el-form-item",{staticClass:"no_padding_left tips_item",attrs:{label:e.lan.CALENDAR_FIXED_MODE}},[l("br"),e._v(" "),l("el-radio-group",{staticStyle:{"margin-bottom":"20px"},model:{value:e.viewForm.rrule.FREQ,callback:function(t){e.$set(e.viewForm.rrule,"FREQ",t)},expression:"viewForm.rrule.FREQ"}},[l("el-radio",{attrs:{label:"DAILY"}},[e._v(e._s(e.lan.CALENDAR_MODE_DAILY))]),e._v(" "),l("el-radio",{attrs:{label:"WEEKLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_WEEKLY))]),e._v(" "),l("el-radio",{attrs:{label:"MONTHLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_MONTHLY))]),e._v(" "),l("el-radio",{attrs:{label:"YEARLY"}},[e._v(e._s(e.lan.CALENDAR_MODE_YEARLY))])],1),e._v(" "),"DAILY"==e.viewForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.INTERVAL,callback:function(t){e.$set(e.viewForm.rrule,"INTERVAL",e._n(t))},expression:"viewForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_DAY)+"\n              ")],1):e._e(),e._v(" "),"WEEKLY"==e.viewForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_REPEAT)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.INTERVAL,callback:function(t){e.$set(e.viewForm.rrule,"INTERVAL",e._n(t))},expression:"viewForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_AFTER_WEEK)+"：\n                "),l("el-checkbox-group",{model:{value:e.viewForm.rrule.BYDAY,callback:function(t){e.$set(e.viewForm.rrule,"BYDAY",t)},expression:"viewForm.rrule.BYDAY"}},[l("el-checkbox",{attrs:{label:"MO"}},[e._v(e._s(e.lan.MONDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"TU"}},[e._v(e._s(e.lan.TUESDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"WE"}},[e._v(e._s(e.lan.WEDNESDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"TH"}},[e._v(e._s(e.lan.THURSDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"FR"}},[e._v(e._s(e.lan.FRIDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"SA"}},[e._v(e._s(e.lan.SATURDAY))]),e._v(" "),l("el-checkbox",{attrs:{label:"SU"}},[e._v(e._s(e.lan.SUNDAY))])],1)],1):e._e(),e._v(" "),"MONTHLY"==e.viewForm.rrule.FREQ?l("div",[l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"0"},model:{value:e.viewForm.MONTHLY_TYPE,callback:function(t){e.$set(e.viewForm,"MONTHLY_TYPE",t)},expression:"viewForm.MONTHLY_TYPE"}}),e._v("\n                  "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.INTERVAL,callback:function(t){e.$set(e.viewForm.rrule,"INTERVAL",e._n(t))},expression:"viewForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+" "+e._s(e.lan.CALENDAR_MONTH_TH)+"\n                      "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1",max:"31"},model:{value:e.viewForm.rrule.BYMONTHDAY,callback:function(t){e.$set(e.viewForm.rrule,"BYMONTHDAY",e._n(t))},expression:"viewForm.rrule.BYMONTHDAY"}}),e._v(" "+e._s(e.lan.CALENDAR_DAY)+"\n                ")],1),e._v(" "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"1"},model:{value:e.viewForm.MONTHLY_TYPE,callback:function(t){e.$set(e.viewForm,"MONTHLY_TYPE",t)},expression:"viewForm.MONTHLY_TYPE"}}),e._v("\n                  "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.INTERVAL,callback:function(t){e.$set(e.viewForm.rrule,"INTERVAL",e._n(t))},expression:"viewForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_MONTH)+"\n                  "),l("el-select",{staticStyle:{width:"100px"},model:{value:e.viewForm.rrule.BYSETPOS,callback:function(t){e.$set(e.viewForm.rrule,"BYSETPOS",t)},expression:"viewForm.rrule.BYSETPOS"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_FIRST,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SECOND,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_THIRD,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FOURTH,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_LAST,value:-1}})],1),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.viewForm.rrule.BYDAY_MONTH,callback:function(t){e.$set(e.viewForm.rrule,"BYDAY_MONTH",t)},expression:"viewForm.rrule.BYDAY_MONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_DAYS,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WORKDAYS,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WEEKENDS,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.MONDAY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.TUESDAY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.WEDNESDAY,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.THURSDAY,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FRIDAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SATURDAY,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SUNDAY,value:7}})],1)],1)]):e._e(),e._v(" "),"YEARLY"==e.viewForm.rrule.FREQ?l("div",[e._v("\n                "+e._s(e.lan.CALENDAR_REPEAT)+" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.INTERVAL,callback:function(t){e.$set(e.viewForm.rrule,"INTERVAL",e._n(t))},expression:"viewForm.rrule.INTERVAL"}}),e._v(" "+e._s(e.lan.CALENDAR_AFTER_YEAR)+"：\n                "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"0"},model:{value:e.viewForm.YEARLY_TYPE,callback:function(t){e.$set(e.viewForm,"YEARLY_TYPE",t)},expression:"viewForm.YEARLY_TYPE"}}),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.viewForm.rrule.BYMONTH,callback:function(t){e.$set(e.viewForm.rrule,"BYMONTH",t)},expression:"viewForm.rrule.BYMONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_JANUARY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FEBRUARY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MARCH,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_APRIL,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JUNE,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JULY,value:7}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_AUGUST,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SEPTEMBER,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_OCTOBER,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_NOVEMBER,value:11}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_DECEMBER,value:12}})],1),e._v(" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number",min:"1",max:"31"},model:{value:e.viewForm.rrule.BYMONTHDAY,callback:function(t){e.$set(e.viewForm.rrule,"BYMONTHDAY",e._n(t))},expression:"viewForm.rrule.BYMONTHDAY"}}),e._v(" "+e._s(e.lan.CALENDAR_DAYTH)+"\n                ")],1),e._v(" "),l("div",[l("el-radio",{staticClass:"no_label",attrs:{label:"1"},model:{value:e.viewForm.YEARLY_TYPE,callback:function(t){e.$set(e.viewForm,"YEARLY_TYPE",t)},expression:"viewForm.YEARLY_TYPE"}}),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.viewForm.rrule.BYMONTH,callback:function(t){e.$set(e.viewForm.rrule,"BYMONTH",t)},expression:"viewForm.rrule.BYMONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_JANUARY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FEBRUARY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MARCH,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_APRIL,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_MAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JUNE,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_JULY,value:7}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_AUGUST,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SEPTEMBER,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_OCTOBER,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_NOVEMBER,value:11}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_DECEMBER,value:12}})],1),e._v(" 的\n                  "),l("el-select",{staticStyle:{width:"100px"},model:{value:e.viewForm.rrule.BYSETPOS,callback:function(t){e.$set(e.viewForm.rrule,"BYSETPOS",t)},expression:"viewForm.rrule.BYSETPOS"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_FIRST,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_SECOND,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_THIRD,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_FOURTH,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_LAST,value:-1}})],1),e._v(" "),l("el-select",{staticStyle:{width:"90px"},model:{value:e.viewForm.rrule.BYDAY_MONTH,callback:function(t){e.$set(e.viewForm.rrule,"BYDAY_MONTH",t)},expression:"viewForm.rrule.BYDAY_MONTH"}},[l("el-option",{attrs:{label:e.lan.CALENDAR_DAYS,value:10}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WORKDAYS,value:9}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_WEEKENDS,value:8}}),e._v(" "),l("el-option",{attrs:{label:e.lan.MONDAY,value:1}}),e._v(" "),l("el-option",{attrs:{label:e.lan.TUESDAY,value:2}}),e._v(" "),l("el-option",{attrs:{label:e.lan.WEDNESDAY,value:3}}),e._v(" "),l("el-option",{attrs:{label:e.lan.THURSDAY,value:4}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FRIDAY,value:5}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SATURDAY,value:6}}),e._v(" "),l("el-option",{attrs:{label:e.lan.SUNDAY,value:7}})],1)],1)],1):e._e()],1),e._v(" "),l("el-form-item",{staticClass:"no_padding_left tips_item",attrs:{label:e.lan.CALENDAR_REPEAT_RANGE}},[l("br"),e._v(" "),l("div",[l("el-radio",{attrs:{label:"1"},model:{value:e.viewForm.cycle_type,callback:function(t){e.$set(e.viewForm,"cycle_type",t)},expression:"viewForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_NO_END))])],1),e._v(" "),l("div",[l("el-radio",{attrs:{label:"2"},model:{value:e.viewForm.cycle_type,callback:function(t){e.$set(e.viewForm,"cycle_type",t)},expression:"viewForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT))]),e._v(" "),l("el-input",{staticClass:"no_padding_input",staticStyle:{width:"60px"},attrs:{type:"number"},model:{value:e.viewForm.rrule.COUNT,callback:function(t){e.$set(e.viewForm.rrule,"COUNT",e._n(t))},expression:"viewForm.rrule.COUNT"}}),e._v(" "+e._s(e.lan.CALENDAR_END_TIMES)+"\n              ")],1),e._v(" "),l("div",[l("el-radio",{attrs:{label:"3"},model:{value:e.viewForm.cycle_type,callback:function(t){e.$set(e.viewForm,"cycle_type",t)},expression:"viewForm.cycle_type"}},[e._v(e._s(e.lan.CALENDAR_END_DAY)+"：")]),e._v(" "),l("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerBeginDateEnd,type:"date",placeholder:e.lan.CALENDAR_PAGE_CAL_CHOOSE_REPEAT_ENDTIME},model:{value:e.viewForm.rrule.UNTIL,callback:function(t){e.$set(e.viewForm.rrule,"UNTIL",t)},expression:"viewForm.rrule.UNTIL"}})],1)])],1):e._e()],1):e._e(),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_PLACE,prop:"location"}},[l("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.viewForm.location,callback:function(t){e.$set(e.viewForm,"location","string"==typeof t?t.trim():t)},expression:"viewForm.location"}})],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMARK,prop:"description"}},[l("el-input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:6}},model:{value:e.viewForm.description,callback:function(t){e.$set(e.viewForm,"description","string"==typeof t?t.trim():t)},expression:"viewForm.description"}})],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_REMIND,prop:"remind"}},[l("el-checkbox",{model:{value:e.viewForm.is_remind,callback:function(t){e.$set(e.viewForm,"is_remind",t)},expression:"viewForm.is_remind"}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_IS_REMIND))]),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.viewForm.is_remind,expression:"viewForm.is_remind"}]},[e._v("\n            "+e._s(e.lan.CALENDAR_PAGE_CAL_REMIND_BEFORE)+"\n            "),l("el-input",{staticStyle:{width:"80px"},attrs:{type:"number",min:"1"},model:{value:e.viewForm.remind_before,callback:function(t){e.$set(e.viewForm,"remind_before",t)},expression:"viewForm.remind_before"}}),l("el-select",{attrs:{placeholder:e.lan.SETTING_RE_ADD_PLACEHODER},model:{value:e.viewForm.remind_unit,callback:function(t){e.$set(e.viewForm,"remind_unit",t)},expression:"viewForm.remind_unit"}},[l("el-option",{attrs:{label:e.lan.FILE_P_MIN,value:60}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FILE_P_HOUR,value:3600}}),e._v(" "),l("el-option",{attrs:{label:e.lan.FILE_P_DAY,value:86400}}),e._v(" "),l("el-option",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_WEEK,value:604800}})],1),e._v("\n            "+e._s(e.lan.CALENDAR_PAGE_CAL_REMIND)+"\n          ")],1)],1),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_USER}},[l("span",[e._v(e._s(e.viewForm.name+"<"+e.viewForm.email+">")+"; ")])]),e._v(" "),l("el-form-item",{attrs:{label:e.lan.CALENDAR_PAGE_CAL_VISIT,prop:"invitors"}},[l("div",{staticStyle:{"min-height":"80px",border:"1px solid #dcdfe6","max-width":"400px",padding:"4px 10px","max-height":"400px",overflow:"auto"}},e._l(e.viewForm.invitors,function(t,a){return l("el-row",{key:a},[l("el-col",{attrs:{span:15}},[t.email?l("div",[e._v(e._s(t.name+"<"+t.email+">"))]):e._e(),e._v(" "),t.email?e._e():l("div",[e._v(e._s(t))])]),e._v(" "),t.email?l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t.status?l("el-button",{attrs:{type:"wait"==t.status?"warning":"pass"==t.status?"success":"reject"==t.status?"danger":"info",plain:"",size:"mini"}},[e._v(e._s("start"==t.status?e.lan.CALENDAR_PAGE_CAL_STAY:"pass"==t.status?e.lan.CALENDAR_PAGE_CAL_ALREADY_PASS:"reject"==t.status?e.lan.CALENDAR_PAGE_CAL_ALREADY_REJECT:e.lan.CALENDAR_PAGE_CAL_WAIT))]):e._e()],1):e._e(),e._v(" "),l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[l("el-button",{attrs:{icon:"el-icon-delete",size:"mini",title:e.lan.CALENDAR_PAGE_CAL_CANCEL_VISIT},on:{click:function(l){return e.delete_invitors_view(a,t.id)}}})],1)],1)}),1),e._v(" "),l("el-input",{staticStyle:{width:"auto"},attrs:{placeholder:e.lan.CALENDAR_PAGE_SET_INPUT_VISIT},model:{value:e.addemail_view,callback:function(t){e.addemail_view="string"==typeof t?t.trim():t},expression:"addemail_view"}}),e._v(" "),l("el-button",{on:{click:e.addEmail_view}},[e._v(e._s(e.lan.COMMON_BUTTON_ADD))]),e._v(" "),l("el-button",{on:{click:function(t){e.showChoice=!e.showChoice}}},[e._v(e._s(e.showChoice?e.lan.ADDRBOOK_HIDE:e.lan.ADDRBOOK_SHOW))])],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showChoice,expression:"showChoice"}],attrs:{label:e.lan.CALENDAR_PAGE_SET_CHOOSE_MAILBOX}},[l("el-row",{staticStyle:{"margin-bottom":"6px"}},[l("el-col",{attrs:{span:16}},[l("el-cascader",{staticStyle:{width:"100%"},attrs:{"change-on-select":"",options:e.deptOptions,placeholder:e.lan.SETTING_RE_ADD_SELECTDPT_PLACE},on:{change:e.menu_change}})],1),e._v(" "),l("el-col",{attrs:{span:5,offset:1}},[l("el-input",{attrs:{size:"small",placeholder:e.lan.SETTING_RE_ADD_CONTENT_RULE},model:{value:e.searchMailbox,callback:function(t){e.searchMailbox=t},expression:"searchMailbox"}})],1),e._v(" "),l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},[l("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.searchOabMembers(1)}}},[e._v(e._s(e.lan.COMMON_SEARCH2))])],1)],1),e._v(" "),l("el-table",{ref:"contactTable_view",staticStyle:{width:"100%"},attrs:{data:e.contactData,"tooltip-effect":"dark",border:"","header-cell-style":{background:"#f0f1f3"}},on:{"selection-change":e.handleSelectionChange_view,"row-click":e.rowClick_view}},[l("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),l("el-table-column",{attrs:{prop:"name",label:e.lan.SETTING_REFERE_EMAIL_NAME},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.name+"<"+t.row.username+">"))])]}}],null,!1,1859473662)}),e._v(" "),l("el-table-column",{attrs:{label:e.lan.COMMON_DEPARTMENT},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.department))])]}}],null,!1,3992709250)})],1),e._v(" "),e.totalCount>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{small:"","current-page":e.currentPage,"page-sizes":[5,10,20,50,100,200,300,400],"page-size":e.pageSize,layout:"   prev",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),e.totalCount>0?l("span",[e._v(e._s(e.currentPage+" / "+Math.ceil(e.totalCount/e.pageSize)))]):e._e(),e._v(" "),e.totalCount>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{small:"","current-page":e.currentPage,"page-sizes":[5,10,20,50,100,200,300,400],"page-size":e.pageSize,layout:"next,sizes,jumper",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1):e._e()],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{size:"small"},on:{click:function(t){e.viewEventDialog=!1}}},[e._v(e._s(e.lan.COMMON_CLOSE))]),e._v(" "),e.permisson.edit?l("el-button",{attrs:{type:"primary",size:"small",loading:e.edit_loading},on:{click:e.updateEventSubmit}},[e._v(e._s(e.lan.CALENDAR_PAGE_SET_SURE_EDIT))]):e._e(),e._v(" "),e.viewForm.del_single||!e.permisson.edit&&!e.permisson.invite?e._e():l("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.fwics(e.viewForm.id)}}},[e._v(e._s(e.lan.SETTING_FILTER_ACTION5))]),e._v(" "),e.viewForm.del_single&&(e.permisson.edit||e.permisson.invite)?l("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.fwics(e.viewForm.event_id)}}},[e._v(e._s(e.lan.SETTING_FILTER_ACTION5))]):e._e(),e._v(" "),e.permisson.edit?l("el-button",{attrs:{type:"danger",size:"small",loading:e.del_loading},on:{click:function(t){return e.deleteEventSubmit(e.viewForm.id,e.viewForm.del_single)}}},[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_DELETE_EVENT))]):e._e()],1)],1),e._v(" "),l("el-popover",{ref:"popoverfile",attrs:{offset:150,placement:"top",id:"dd"}},[l("div",{staticStyle:{"text-align":"right",margin:"0"}},[l("el-button",{attrs:{size:"mini",type:"primary"}},[e._v(e._s(e.lan.COMMON_BUTTON_ALTER))]),e._v(" "),l("el-button",{attrs:{type:"warning",size:"mini"}},[e._v(e._s(e.lan.COMMON_BUTTON_DELETE))])],1)]),e._v(" "),e.show_calendar?e._e():l("div",{attrs:{id:"ces"}},[l("el-row",{staticStyle:{padding:"6px 0"}},[l("el-col",{attrs:{span:6}},[l("el-input",{staticStyle:{width:"auto"},attrs:{placeholder:e.lan.CALENDAR_PAGE_CAL_INPUT_EVENT_NAME,"prefix-icon":"el-icon-search",size:"small"},model:{value:e.event_search,callback:function(t){e.event_search=t},expression:"event_search"}}),e._v(" "),l("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:e.event_search_fn}},[e._v(e._s(e.lan.COMMON_SEARCH))])],1),e._v(" "),l("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18}},[e.totalCount_list>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{background:"","current-page":e.currentPage_list,"page-sizes":[10,20,50,100],"page-size":e.pageSize_list,layout:"total, prev",total:e.totalCount_list},on:{"size-change":e.handleSizeChange_list,"current-change":e.handleCurrentChange_list}}):e._e(),e._v(" "),e.totalCount_list>0?l("span",[e._v(e._s(this.currentPage_list+" / "+Math.ceil(this.totalCount_list/this.pageSize_list)))]):e._e(),e._v(" "),e.totalCount_list>0?l("el-pagination",{staticStyle:{display:"inline-block"},attrs:{background:"","current-page":e.currentPage_list,"page-sizes":[10,20,50,100],"page-size":e.pageSize_list,layout:"next, sizes,jumper",total:e.totalCount_list},on:{"size-change":e.handleSizeChange_list,"current-change":e.handleCurrentChange_list}}):e._e()],1)],1),e._v(" "),l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#f0f1f3"},data:e.event_list,stripe:""}},[l("el-table-column",{attrs:{prop:"title",label:e.lan.COMMON_SUBJECT}}),e._v(" "),l("el-table-column",{attrs:{prop:"status",label:e.lan.COMMON_STATUS,width:"320"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.is_cycle?e._e():l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_NO_REPEAT))]),e._v(" "),t.row.is_cycle&&t.row.rrule?l("div",["DAILY"==t.row.rrule.FREQ[0]?l("span",[l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),t.row.rrule.INTERVAL&&t.row.rrule.INTERVAL[0]>1?l("span",[e._v(e._s(t.row.rrule.INTERVAL[0]))]):e._e(),e._v(e._s(e.lan.CALENDAR_DAY)+" "+e._s(e.lan.CALENDAR_HAPPEN))])]):e._e(),e._v(" "),"WEEKLY"==t.row.rrule.FREQ[0]?l("span",[l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+" "),t.row.rrule.INTERVAL&&t.row.rrule.INTERVAL[0]>1?l("span",[e._v(e._s(t.row.rrule.INTERVAL[0]))]):e._e(),e._v(e._s(e.lan.CALENDAR_WEEK))]),e._v(" "),t.row.rrule.BYDAY?l("span",{staticStyle:{color:"green"}},[e.contains(t.row.rrule.BYDAY,"MO")?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"TU")?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"WE")?l("span",[e._v("【"+e._s(e.lan.WEDNESDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"TH")?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"SA")?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】")]):e._e(),e._v(" "),e.contains(t.row.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】")]):e._e()]):e._e(),e._v("\n              "+e._s(e.lan.CALENDAR_HAPPEN)+"\n            ")]):e._e(),e._v(" "),"MONTHLY"==t.row.rrule.FREQ[0]?l("span",[t.row.rrule.BYMONTHDAY&&t.row.rrule.BYMONTHDAY[0]>0?l("span",[e._v("\n                "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+"\n                "),t.row.rrule.INTERVAL&&t.row.rrule.INTERVAL[0]>1?l("span",[e._v(e._s(t.row.rrule.INTERVAL[0]))]):e._e(),e._v(e._s(e.lan.CALENDAR_MONTH)+" "+e._s(e.lan.CALENDAR_MONTH_TH)+"\n                "),t.row.rrule.BYMONTHDAY?l("span",[e._v(e._s(t.row.rrule.BYMONTHDAY[0]))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_DAY)+" "+e._s(e.lan.CALENDAR_HAPPEN)+"\n              ")]):e._e(),e._v(" "),t.row.rrule.BYDAY?l("span",[e._v("\n                "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+"\n                "),t.row.rrule.INTERVAL?l("span",[e._v(e._s(t.row.rrule.INTERVAL[0]))]):e._e(),e._v(e._s(e.lan.CALENDAR_MONTH)+"\n                "),"1"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_FIRST))]):e._e(),e._v(" "),"2"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_SECOND))]):e._e(),e._v(" "),"3"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_THIRD))]):e._e(),e._v(" "),"4"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_FOURTH))]):e._e(),e._v(" "),"-1"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_LAST))]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"MO")?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"TU")?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"WE")?l("span",[e._v("【"+e._s(e.lan.WEDNESDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"TH")?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SA")?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】\n                ")]):e._e(),e._v(" "),2==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SA")&&e.contains(t.row.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WEEKENDS)+"】\n                ")]):e._e(),e._v(" "),5==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"MO")&&e.contains(t.row.rrule.BYDAY,"TU")&&e.contains(t.row.rrule.BYDAY,"WE")&&e.contains(t.row.rrule.BYDAY,"TH")&&e.contains(t.row.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WORKDAYS)+"】\n                ")]):e._e(),e._v(" "),7==t.row.rrule.BYDAY.length?l("span",[e._v("【"+e._s(e.lan.CALENDAR_DAYS)+"】\n                ")]):e._e(),e._v("\n                "+e._s(e.lan.CALENDAR_HAPPEN)+"\n              ")]):e._e()]):e._e(),e._v(" "),"YEARLY"==t.row.rrule.FREQ[0]?l("span",[e._v("\n              "+e._s(e.lan.CALENDAR_PAGE_CAL_EVERY)+"\n                "),t.row.rrule.INTERVAL&&t.row.rrule.INTERVAL[0]>1?l("span",[e._v(e._s(t.row.rrule.INTERVAL[0]))]):e._e(),e._v(e._s(e.lan.CALENDAR_AFTER_YEAR)+"\n                "),t.row.rrule.BYMONTH?l("span",[e._v(e._s(t.row.rrule.BYMONTH[0]))]):e._e(),e._v(" "+e._s(e.lan.CALENDAR_MONTHTH)+"\n\n              "),t.row.rrule.BYMONTHDAY?l("span",[l("span",[e._v(e._s(t.row.rrule.BYMONTHDAY[0]))]),e._v(" "+e._s(e.lan.CALENDAR_DAYTH)+" "+e._s(e.lan.CALENDAR_HAPPEN)+"\n              ")]):e._e(),e._v(" "),t.row.rrule.BYDAY?l("span",[e._v(" "+e._s(e.lan.CALENDAR_DE)+"\n                "),"1"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_FIRST))]):e._e(),e._v(" "),"2"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_SECOND))]):e._e(),e._v(" "),"3"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_THIRD))]):e._e(),e._v(" "),"4"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_FOURTH))]):e._e(),e._v(" "),"-1"==t.row.rrule.BYSETPOS[0]?l("span",[e._v(e._s(e.lan.CALENDAR_LAST))]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"MO")?l("span",[e._v("【"+e._s(e.lan.MONDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"TU")?l("span",[e._v("【"+e._s(e.lan.TUESDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"WE")?l("span",[e._v("【"+e._s(e.lan.WEDNESDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"TH")?l("span",[e._v("【"+e._s(e.lan.THURSDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.FRIDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SA")?l("span",[e._v("【"+e._s(e.lan.SATURDAY)+"】\n                ")]):e._e(),e._v(" "),1==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.SUNDAY)+"】\n                ")]):e._e(),e._v(" "),2==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"SA")&&e.contains(t.row.rrule.BYDAY,"SU")?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WEEKENDS)+"】\n                ")]):e._e(),e._v(" "),5==t.row.rrule.BYDAY.length&&e.contains(t.row.rrule.BYDAY,"MO")&&e.contains(t.row.rrule.BYDAY,"TU")&&e.contains(t.row.rrule.BYDAY,"WE")&&e.contains(t.row.rrule.BYDAY,"TH")&&e.contains(t.row.rrule.BYDAY,"FR")?l("span",[e._v("【"+e._s(e.lan.CALENDAR_WORKDAYS)+"】\n                ")]):e._e(),e._v(" "),7==t.row.rrule.BYDAY.length?l("span",[e._v("【"+e._s(e.lan.CALENDAR_DAYS)+"】\n                ")]):e._e(),e._v("\n                "+e._s(e.lan.CALENDAR_HAPPEN)+"\n              ")]):e._e()]):e._e(),e._v(" "),l("div",[e._v(e._s(e.lan.CALENDAR_START_DAY)+"："+e._s(t.row.dtstart.replace("T"," ")))]),e._v(" "),l("span",[t.row.rrule.COUNT?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT)+" "+e._s(t.row.rrule.COUNT[0])+" "+e._s(e.lan.CALENDAR_END_TIMES))]):e._e(),e._v(" "),t.row.rrule.UNTIL?l("span",[e._v(e._s(e.lan.CALENDAR_PAGE_CAL_REPEAT_TO)+" "+e._s(t.row.rrule.UNTIL[0])+" "+e._s(e.lan.CALENDAR_END))]):e._e()])]):e._e()]}}],null,!1,489690645)}),e._v(" "),l("el-table-column",{attrs:{label:e.lan.COMMON_OPRATE,width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{type:"text",size:"small"},on:{click:function(l){return e.editEvent(t.row)}}},[e._v(e._s(t.row.permisson.edit?e.lan.COMMON_BUTTON_ALTER:e.lan.MAILBOX_COM_INNERBOX_SEE))]),e._v(" "),t.row.permisson.edit?l("el-button",{staticStyle:{color:"red"},attrs:{size:"mini",type:"text"},on:{click:function(l){return e.deleteEventSubmit(t.row.id)}}},[e._v(e._s(e.lan.COMMON_BUTTON_DELETE))]):e._e()]}}],null,!1,2085782287)})],1)],1),e._v(" "),l("el-dialog",{attrs:{title:e.lan.CALENDAR_OPEN_EVENT,visible:e.openCycleEventDialog,"close-on-click-modal":!1,"append-to-body":!0,width:"400px"},on:{"update:visible":function(t){e.openCycleEventDialog=t}}},[l("div",[l("div",[l("el-radio",{attrs:{label:"1",disabled:!e.show_calendar},model:{value:e.openType,callback:function(t){e.openType=t},expression:"openType"}},[e._v(e._s(e.lan.CALENDAR_SINGLE))])],1),e._v(" "),l("div",{staticStyle:{"padding-top":"10px"}},[l("el-radio",{attrs:{label:"2"},model:{value:e.openType,callback:function(t){e.openType=t},expression:"openType"}},[e._v(e._s(e.lan.CALENDAR_ALL_EVENT))])],1)]),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{size:"small"},on:{click:function(t){e.openCycleEventDialog=!1}}},[e._v(e._s(e.lan.COMMON_CLOSE))]),e._v(" "),l("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.openCycleEventFn}},[e._v(e._s(e.lan.COMMON_BUTTON_CONFIRM))])],1)])],1)},staticRenderFns:[]};var n=function(e){l("pyFS")},i=l("C7Lr")(a.a,r,!1,n,null,null);t.default=i.exports},pyFS:function(e,t){},"u/PM":function(e,t,l){"use strict";(function(e){var a=l("0tg7"),r=l("P9l9"),n=/^(\w|[-+=.])+@\w+([-.]\w+)*\.(\w+)$/;t.a={name:"Calendar",props:{calendar_id:""},data:function(){var t=this,l=this,a="zh-cn";return a="en"==this.$store.getters.getLanguage?"en":"zh-cn",{creat_loading:!1,del_loading:!1,edit_loading:!1,param_id:"",param_process_id:"",openCycleEventDialog:!1,openType:"1",listLoading:!1,currentPage_list:1,pageSize_list:10,totalCount_list:200,event_search:"",event_list:[],show_calendar:!0,permisson:{edit:!0,invite:!0},invitor_status:"",event_id:"",visible2:!1,eventStart:"",eventEnd:"",eventMode:"",newEvent:!1,showChoice:!1,deptOptions:[],searchMailbox:"",newEventDialog:!1,contactData:[],currentPage:1,pageSize:10,totalCount:0,oab_cid:0,hashMailbox:[],addemail:"",newForm:{MONTHLY_TYPE:"0",YEARLY_TYPE:"0",rrule:{FREQ:"DAILY",INTERVAL:1,BYDAY:[],BYMONTHDAY:1,BYSETPOS:1,BYDAY_MONTH:1,BYMONTH:1,COUNT:1,UNTIL:""},between:"30 分钟",is_cycle:!1,color:"#039BE5",calender_id:5,title:"",cycle_type:"1",remind_before:10,remind_unit:"60",is_allday:!1,is_remind:!1,delivery:!1,start_day:"",start_time:"08:00",end_day:"",end_time:"18:00",description:"",location:"",invitors:[]},rules:{title:[{required:!0,message:"",trigger:"blur"}],cycle_mode:[{required:!0,message:"",trigger:"change"}],start_day:[{required:!0,message:"",trigger:"blur"}],end_day:[{required:!0,message:"",trigger:"blur"}]},viewEventDialog:!1,viewForm:{process:{start:"",end:"",id:""},is_cycle:!1,color:"#039BE5",cycle_frequency:1,id:"",title:"",cycle_mode:"",cycle_week:[],cycle_type:!0,cycle_day:"",remind_before:10,remind_unit:"60",is_allday:!1,is_remind:!1,delivery:!1,start_day:"",start_time:"08:00",end_day:"",end_time:"18:00",description:"",location:"",invitors:[]},view_rules:{title:[{required:!0,message:"",trigger:"blur"}]},hashMailbox_view:[],addemail_view:"",config:{height:window.innerHeight-120,eventColor:"transparent",locale:a,defaultView:"month",editable:!0,droppable:!0,selectable:!0,diableResizing:!0,titleFormat:"YYYY-MM",buttonText:{today:l.$parent.lan.MAILBOX_COM_INNERBOX_TODAY,month:l.$parent.lan.CALENDAR_PAGE_CAL_MONTH,agendaWeek:l.$parent.lan.CALENDAR_PAGE_CAL_WEEK,agendaDay:l.$parent.lan.SETTING_RE_ADD_DAY,listMonth:l.$parent.lan.CALENDAR_PAGE_CAL_EVENT},header:{center:"prev title next",left:"today",right:"month,agendaWeek,agendaDay,listMonth,timelineDay"},firstDay:1,views:{agendaWeek:{titleFormat:"YYYY-MM-D"},agendaDay:{titleFormat:"YYYY-MM-D"}},eventMouseover:function(e,t,l){},eventMouseout:function(e,t,l){},windowResize:function(t){e("#calendar").fullCalendar("option","height",window.innerHeight-120)},eventRender:function(t,l){if(t.title){this.listLoading=!0,e(l).attr("title",t.title);var a='<span class="fc_time"></span>';if(t.id>0){var r=t.permisson;r.invite&&r.edit?a+='<i class="el-icon-edit" style="color:#409EFF"></i>':r.edit&&!r.invite?a+='<i class="el-icon-edit" style="color:red"></i>':!r.edit&&r.invite?a+='<i class="el-icon-star-on" style="color:#409EFF"></i>':r.edit||r.invite||(a+='<i class="el-icon-star-on" style="color:red"></i>'),a+='<span class="fc-title" style="padding:4px 0;">'+t.title+"</span>",e(l).find(".fc-content").html(a)}else a+='<i class="el-icon-info" style="color:#409EFF"></i>',a+='<span class="fc-title" style="padding:4px 0;">'+t.title+"</span>",e(l).find(".fc-content").html(a);this.listLoading=!1}},eventAfterAllRender:function(e){},viewRender:function(t,a){if("listMonth"==t.name)l.eventMode="event",l.show_calendar=!1,e(".fc-view-container").hide(),l.calendar_id&&l.getEventList();else{l.show_calendar=!0,e(".fc-view-container").show(),"agendaWeek"==t.name?l.eventMode="week":"month"==t.name?l.eventMode="month":"agendaDay"==t.name&&(l.eventMode="day"),l.eventStart=new Date(t.intervalStart).Format("yyyy-MM-dd");var r=new Date(t.intervalEnd);r.setDate(r.getDate()-1),l.eventEnd=new Date(r).Format("yyyy-MM-dd"),l.calendar_id&&l.getEventList()}}},fcEvents:[],pickerBeginDateBefore:{disabledDate:function(e){var t=new Date;if(t.setDate(t.getDate()-1),t)return e.getTime()<t}},pickerBeginDateAfter:{disabledDate:function(e){var l=t.getDate(t.newForm.start_day);if(l)return e.getTime()<l}},pickerBeginDateEnd:{disabledDate:function(e){var l=t.getDate(t.newForm.end_day);if(l)return e.getTime()<l}},pickerBeginDateAfter_edit:{disabledDate:function(e){var l=t.getDate(t.viewForm.start_day);if(l)return e.getTime()<l}},pickerBeginDateEnd_edit:{disabledDate:function(e){var l=t.getDate(t.viewForm.end_day);if(l)return e.getTime()<l}}}},components:{},created:function(){this.titleFormat="YYYY"+this.lan.FILE_P_YEAR+"MM"+this.lan.CALENDAR_PAGE_CAL_MONTH;var e=this.$store.getters.getMailEvent;if(e.event_jump){this.getDeptOptions(),this.searchOabMembers(1),this.newForm.title=e.title,this.newForm.invitors=e.invitors,this.newEventDialog=!0;this.$store.dispatch("setMailE",{event_jump:!1,title:"",invitors:[]})}},mounted:function(){},methods:{contains:function(e,t){for(var l=0;l<e.length;l++)if(e[l]==t)return!0;return!1},betweenList:function(e,t){t([{value:"5 分钟"},{value:"10 分钟"},{value:"15 分钟"},{value:"30 分钟"},{value:"1 小时"},{value:"2 小时"},{value:"3 小时"},{value:"4 小时"},{value:"5 小时"},{value:"6 小时"},{value:"7 小时"},{value:"8 小时"},{value:"9 小时"},{value:"10 小时"},{value:"11 小时"},{value:"0.5 天"},{value:"18 小时"},{value:"1 天"},{value:"2 天"},{value:"3 天"},{value:"4 天"},{value:"1 周"},{value:"2 周"}])},exportIcsFn:function(e){var t=this;Object(r._22)(e).then(function(e){var l=new Blob([e.data],{type:e.headers["content-type"]}),a=URL.createObjectURL(l),r=e.headers["content-disposition"],n=r.slice(r.indexOf("=")+2,r.length-1);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(l,n);else{var i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",n),document.body.appendChild(i),i.click()}t.$message({message:t.lan.COMMON_EXPORT_SUCCESS,type:"success"})}).catch(function(e){})},fwics:function(e){var t=this;Object(r._21)(e).then(function(e){var l={};l.id=e.data.attach.id,l.filename=e.data.attach.filename,l.size=e.data.attach.size,l.subject=e.data.subject;var a=[];a.push(l),t.$store.dispatch("setPfileNetEvent",a),t.$store.dispatch("setFileJEvent",!0),t.$router.push("/mailbox/innerbox/INBOX")}).catch(function(e){})},changeNewColor:function(e){this.newForm.color=e},changeViewColor:function(e){this.viewForm.color=e},event_search_fn:function(){this.currentPage_list=1,this.getEventList()},handleSizeChange_list:function(e){this.pageSize_list=e,this.getEventList()},handleCurrentChange_list:function(e){this.currentPage_list=e,this.getEventList()},editEvent:function(e){this.eventClick(e)},pickBeginDate:function(e){new Date(this.getDate(e)).getTime()>new Date(this.getDate(this.newForm.end_day)).getTime()&&(this.newForm.end_day=this.newForm.start_day)},pickBeginDate_view:function(e){new Date(this.getDate(e)).getTime()>new Date(this.getDate(this.viewForm.end_day)).getTime()&&(this.viewForm.end_day=this.viewForm.start_day)},getEventList:function(){var e=this,t={calender_id:this.calendar_id,mode:this.eventMode,start:this.eventStart,end:this.eventEnd};this.show_calendar||(t.page=this.currentPage_list,t.page_size=this.pageSize_list,this.event_search&&(t.search=this.event_search)),this.listLoading=!0,Object(r._41)(t).then(function(t){if(e.listLoading=!1,e.newEvent=!1,e.totalCount_list=t.data.count,e.event_list=t.data.results,e.show_calendar){e.fcEvents=[];for(var l=0;l<t.data.results.length;l++){var a=t.data.results[l],r={};if(r.start=a.dtstart,r.end=a.dtend,a.is_single?(r.backgroundColor=a.color||"#039BE5",r.title=a.title,r.allDay=a.is_allday):(r.backgroundColor=a.event.color||"#039BE5",r.title=a.event.title,r.allDay=a.event.is_allday),r.is_cycle=a.event.is_cycle,r.id=a.event.id,r.process_id=a.id,a.event.is_allday){var n=new Date(r.end);n.setDate(n.getDate()+1),r.end=n}r.permisson=a.permisson,r.event=a.event,r.color="#fff",e.fcEvents.push(r)}e.fcEvents.push({title:e.lan.CALENDAR_PAGE_CAL_NEW_EVENT+"...",start:"",textColor:"#aaa"})}}).catch(function(){e.listLoading=!1})},getDate:function(e){var t=e.split("-");return"01"===t[1]?(t[0]=parseInt(t[0],10)-1,t[1]="12"):t[1]=parseInt(t[1],10)-1,new Date(t[0],t[1],t[2])},getDiffDate:function(e,t){for(var l=this.getDate(e),a=this.getDate(t),r=[];a.getTime()-l.getTime()>0;){var n=l.getFullYear(),i=1===l.getMonth().toString().length?"0"+(parseInt(l.getMonth().toString(),10)+1):l.getMonth()+1,s=1===l.getDate().toString().length?"0"+l.getDate():l.getDate();(i=parseInt(i))<10&&(i="0"+i),r.push(n+"-"+i+"-"+s),l.setDate(l.getDate()+1)}return r.push(t),r},getDeptOptions:function(){var e=this;Object(r.F)().then(function(t){e.deptOptions=t.data.results,e.deptOptions=function e(t){for(var l=0;l<t.length;l++)t[l].value=t[l].id,t[l].children&&0==t[l].children.length&&(t[l].children=null),t[l].children&&t[l].children.length>0&&e(t[l].children);return t}(e.deptOptions)},function(e){})},searchOabMembers:function(e){var t=this;this.currentPage=e;var l={page:this.currentPage,page_size:this.pageSize,search:this.searchMailbox,dept_id:this.oab_cid};Object(r.I)(l).then(function(e){t.totalCount=e.data.count,t.contactData=e.data.results}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.searchOabMembers(1)},handleCurrentChange:function(e){this.currentPage=e,this.searchOabMembers(e)},menu_change:function(e){var t=e[e.length-1];this.oab_cid=t,this.searchOabMembers(1)},rowClick:function(e,t,l){this.$refs.contactTable.toggleRowSelection(e)},handleSelectionChange:function(e){for(var t=0;t<e.length;t++)this.hashMailbox[e[t].username]||(this.newForm.invitors.push(e[t].username),this.hashMailbox[e[t].username]=!0)},addEmail:function(){this.addemail&&(n.test(this.addemail)?this.hashMailbox[this.addemail]||(this.newForm.invitors.push(this.addemail),this.hashMailbox[this.addemail]=!0,this.addemail=""):this.$message({message:this.lan.CALENDAR_PAGE_SET_MAIL_TYPE,type:"error"}))},delete_invitors:function(e){this.hashMailbox[this.newForm.invitors[e]]=!1,this.newForm.invitors.splice(e,1)},rowClick_view:function(e,t,l){this.$refs.contactTable_view.toggleRowSelection(e)},handleSelectionChange_view:function(e){for(var t=0;t<e.length;t++)this.hashMailbox_view[e[t].username]||(this.viewForm.invitors.push(e[t].username),this.hashMailbox_view[e[t].username]=!0)},addEmail_view:function(){this.addemail_view&&(n.test(this.addemail_view)?this.hashMailbox_view[this.addemail_view]||(this.viewForm.invitors.push(this.addemail_view),this.hashMailbox_view[this.addemail_view]=!0,this.addemail_view=""):this.$message({message:this.lan.CALENDAR_PAGE_SET_MAIL_TYPE,type:"error"}))},delete_invitors_view:function(e,t){var l=this;t?"1"==this.viewForm.del_single?(this.hashMailbox_view[this.viewForm.invitors[e]]=!1,this.viewForm.invitors.splice(e,1)):Object(r.k)(t).then(function(t){l.$message({message:l.lan.COMMON_OPRATE_SUCCESS,type:"success"}),l.hashMailbox_view[l.viewForm.invitors[e]]=!1,l.viewForm.invitors.splice(e,1)},function(e){}):(this.hashMailbox_view[this.viewForm.invitors[e]]=!1,this.viewForm.invitors.splice(e,1))},saveStatus:function(){var e=this;"1"==this.viewForm.del_single&&this.viewForm.process_is_single?Object(r._135)(this.event_id,this.invitor_status).then(function(t){e.$message({message:e.lan.COMMON_OPRATE_SUCCESS,type:"success"})}).catch(function(e){}):Object(r._139)(this.event_id,this.invitor_status).then(function(t){e.$message({message:e.lan.COMMON_OPRATE_SUCCESS,type:"success"})}).catch(function(e){})},submitForm:function(e){var t=this,l=this;this.$refs[e].validate(function(e){if(!e)return!1;if(t.newForm.start_day)if(t.newForm.end_day)if(!t.newForm.is_cycle||3!=t.newForm.cycle_type||t.newForm.rrule.UNTIL){t.newForm.remind_before||(t.newForm.remind_before=0);var a={};for(var n in t.newForm)("cycle_day"!=n||t.newForm[n])&&(a[n]=t.newForm[n],a.calender_id=t.calendar_id);if(t.newForm.is_allday&&!t.newForm.is_cycle&&(t.newForm.start_time="00:00:00",t.newForm.end_time="23:59:59"),t.newForm.is_cycle&&"DAILY"==t.newForm.rrule.FREQ?a.rrule={FREQ:["DAILY"],INTERVAL:[t.newForm.rrule.INTERVAL]}:t.newForm.is_cycle&&"WEEKLY"==t.newForm.rrule.FREQ?a.rrule={FREQ:["WEEKLY"],INTERVAL:[t.newForm.rrule.INTERVAL],BYDAY:t.newForm.rrule.BYDAY}:t.newForm.is_cycle&&"MONTHLY"==t.newForm.rrule.FREQ?(a.rrule={FREQ:["MONTHLY"],INTERVAL:[t.newForm.rrule.INTERVAL]},"0"==t.newForm.MONTHLY_TYPE?a.rrule.BYMONTHDAY=[t.newForm.rrule.BYMONTHDAY]:"1"==t.newForm.MONTHLY_TYPE&&(a.rrule.BYSETPOS=[t.newForm.rrule.BYSETPOS],1==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO"]:2==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TU"]:3==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["WE"]:4==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TH"]:5==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["FR"]:6==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA"]:7==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SU"]:8==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA","SU"]:9==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO","TU","WE","TH","FR"]:10==t.newForm.rrule.BYDAY_MONTH&&(a.rrule.BYDAY=["MO","TU","WE","TH","FR","SA","SU"]))):t.newForm.is_cycle&&"YEARLY"==t.newForm.rrule.FREQ&&(a.rrule={FREQ:["YEARLY"],INTERVAL:[t.newForm.rrule.INTERVAL],BYMONTH:[t.newForm.rrule.BYMONTH]},"0"==t.newForm.YEARLY_TYPE?a.rrule.BYMONTHDAY=[t.newForm.rrule.BYMONTHDAY]:"1"==t.newForm.YEARLY_TYPE&&(a.rrule.BYSETPOS=[t.newForm.rrule.BYSETPOS],1==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO"]:2==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TU"]:3==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["WE"]:4==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TH"]:5==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["FR"]:6==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA"]:7==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SU"]:8==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA","SU"]:9==t.newForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO","TU","WE","TH","FR"]:10==t.newForm.rrule.BYDAY_MONTH&&(a.rrule.BYDAY=["MO","TU","WE","TH","FR","SA","SU"]))),t.newForm.is_cycle)if("2"==t.newForm.cycle_type){if(!t.newForm.rrule.COUNT)return void t.$message({message:t.lan.CALENDAR_TIPS,type:"error"});a.rrule.COUNT=[t.newForm.rrule.COUNT]}else"3"==t.newForm.cycle_type&&(a.rrule.UNTIL=[t.newForm.rrule.UNTIL]);else a.rrule={};a.start=t.newForm.start_day+" "+t.newForm.start_time,a.end=t.newForm.end_day+" "+t.newForm.end_time,a.dtstart=a.start,a.dtend=a.end,t.creat_loading=!0,Object(r._6)(a).then(function(e){t.newEventDialog=!1,t.$message({message:t.lan.COMMON_OPRATE_SUCCESS,type:"success"}),t.getEventList(),t.newForm={MONTHLY_TYPE:"0",YEARLY_TYPE:"0",rrule:{FREQ:"DAILY",INTERVAL:1,BYDAY:[],BYMONTHDAY:1,BYSETPOS:1,BYDAY_MONTH:1,BYMONTH:1,COUNT:1,UNTIL:""},between:"30 分钟",is_cycle:!1,color:"#039BE5",calender_id:5,title:"",cycle_type:"1",remind_before:10,remind_unit:"60",is_allday:!1,is_remind:!1,delivery:!1,start_day:"",start_time:"08:00",end_day:"",end_time:"18:00",description:"",location:"",invitors:[]},t.$refs.contactTable.clearSelection(),t.showChoice=!1,t.creat_loading=!1}).catch(function(e){t.creat_loading=!1})}else l.$message({message:t.lan.CALENDAR_PAGE_CAL_CHOOSE_REPEAT_ENDTIME,type:"error"});else l.$message({message:t.lan.CALENDAR_PAGE_CAL_INPUT_END_TIME,type:"error"});else l.$message({message:t.lan.CALENDAR_PAGE_CAL_INPUT_START_TIME,type:"error"})})},updateEventSubmit:function(){var e=this,t=this;this.$refs.viewForm.validate(function(l){if(!l)return!1;if(e.viewForm.start_day)if(e.viewForm.end_day)if(!e.viewForm.is_cycle||"3"!=e.viewForm.cycle_type||e.viewForm.rrule.UNTIL){e.viewForm.remind_before||(e.viewForm.remind_before=0);var a={};for(var n in e.viewForm)("cycle_day"!=n||e.viewForm[n])&&(a[n]=e.viewForm[n]);if(e.viewForm.is_allday&&!e.viewForm.is_cycle&&(e.viewForm.start_time="00:00:00",e.viewForm.end_time="23:59:59"),"1"==e.viewForm.del_single)a.is_cycle=!0,a.rrule={};else if(e.viewForm.is_cycle&&"DAILY"==e.viewForm.rrule.FREQ?a.rrule={FREQ:["DAILY"],INTERVAL:[e.viewForm.rrule.INTERVAL]}:e.viewForm.is_cycle&&"WEEKLY"==e.viewForm.rrule.FREQ?a.rrule={FREQ:["WEEKLY"],INTERVAL:[e.viewForm.rrule.INTERVAL],BYDAY:e.viewForm.rrule.BYDAY}:e.viewForm.is_cycle&&"MONTHLY"==e.viewForm.rrule.FREQ?(a.rrule={FREQ:["MONTHLY"],INTERVAL:[e.viewForm.rrule.INTERVAL]},"0"==e.viewForm.MONTHLY_TYPE?a.rrule.BYMONTHDAY=[e.viewForm.rrule.BYMONTHDAY]:"1"==e.viewForm.MONTHLY_TYPE&&(a.rrule.BYSETPOS=[e.viewForm.rrule.BYSETPOS],1==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO"]:2==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TU"]:3==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["WE"]:4==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TH"]:5==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["FR"]:6==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA"]:7==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SU"]:8==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA","SU"]:9==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO","TU","WE","TH","FR"]:10==e.viewForm.rrule.BYDAY_MONTH&&(a.rrule.BYDAY=["MO","TU","WE","TH","FR","SA","SU"]))):e.viewForm.is_cycle&&"YEARLY"==e.viewForm.rrule.FREQ&&(a.rrule={FREQ:["YEARLY"],INTERVAL:[e.viewForm.rrule.INTERVAL],BYMONTH:[e.viewForm.rrule.BYMONTH]},"0"==e.viewForm.YEARLY_TYPE?a.rrule.BYMONTHDAY=[e.viewForm.rrule.BYMONTHDAY]:"1"==e.viewForm.YEARLY_TYPE&&(a.rrule.BYSETPOS=[e.viewForm.rrule.BYSETPOS],1==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO"]:2==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TU"]:3==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["WE"]:4==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["TH"]:5==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["FR"]:6==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA"]:7==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SU"]:8==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["SA","SU"]:9==e.viewForm.rrule.BYDAY_MONTH?a.rrule.BYDAY=["MO","TU","WE","TH","FR"]:10==e.viewForm.rrule.BYDAY_MONTH&&(a.rrule.BYDAY=["MO","TU","WE","TH","FR","SA","SU"]))),e.viewForm.is_cycle)if("2"==e.viewForm.cycle_type){if(!e.viewForm.rrule.COUNT)return void e.$message({message:e.lan.CALENDAR_TIPS,type:"error"});a.rrule.COUNT=[e.viewForm.rrule.COUNT]}else"3"==e.viewForm.cycle_type&&(a.rrule.UNTIL=[e.viewForm.rrule.UNTIL]);else a.rrule={};a.start=e.viewForm.start_day+" "+e.viewForm.start_time,a.end=e.viewForm.end_day+" "+e.viewForm.end_time,a.dtstart=a.start,a.dtend=a.end;for(var i=[],s=0;s<e.viewForm.invitors.length;s++){var _=e.viewForm.invitors[s];_.email?i.push(_.email):i.push(_)}a.invitors=i,e.edit_loading=!0,"1"==e.viewForm.del_single?Object(r._215)(e.viewForm.id,a).then(function(t){e.edit_loading=!1,e.viewEventDialog=!1,e.$message({message:e.lan.COMMON_ALTER_SUCCESS,type:"success"}),e.getEventList()}).catch(function(t){e.edit_loading=!1}):Object(r._225)(e.viewForm.id,a).then(function(t){e.edit_loading=!1,e.viewEventDialog=!1,e.$message({message:e.lan.COMMON_ALTER_SUCCESS,type:"success"}),e.getEventList()}).catch(function(t){e.edit_loading=!1})}else t.$message({message:e.lan.CALENDAR_PAGE_CAL_CHOOSE_REPEAT_ENDTIME,type:"error"});else t.$message({message:e.lan.CALENDAR_PAGE_CAL_INPUT_END_TIME,type:"error"});else t.$message({message:e.lan.CALENDAR_PAGE_CAL_INPUT_START_TIME,type:"error"})})},deleteEventSubmit:function(e,t){var l=this;this.$confirm(this.lan.CALENDAR_PAGE_CAL_DELETE_EVENT_DESC,this.lan.COMMON_BUTTON_CONFIRM_NOTICE,{confirmButtonText:this.lan.COMMON_BUTTON_CONFIRM,cancelButtonText:this.lan.COMMON_BUTTON_CANCELL,type:"warning"}).then(function(){l.del_loading=!0,1==t?Object(r._134)(e).then(function(e){l.del_loading=!1,l.$message({message:l.lan.COMMON_DELETE_SUCCESS,type:"success"}),l.viewEventDialog=!1,l.getEventList()},function(e){l.del_loading=!1}):Object(r._9)(e).then(function(e){l.del_loading=!1,l.$message({message:l.lan.COMMON_DELETE_SUCCESS,type:"success"}),l.viewEventDialog=!1,l.getEventList()},function(e){l.del_loading=!1})}).catch(function(){})},dayClick:function(e,t,l){"month"==l.name&&this.fcEvents.length>0&&(this.fcEvents[this.fcEvents.length-1].start=e,this.newEvent||(this.newEvent=!0))},eventClick:function(e){if(this.deptOptions.length<=0&&(this.getDeptOptions(),this.searchOabMembers(1)),e.id){if(this.permisson=e.permisson,e.is_cycle)return this.openCycleEventDialog=!0,this.param_id=e.id,void(this.param_process_id=e.process_id);this.getEvent(e.id,e.process_id)}else{if(this.newEventDialog=!0,!this.newForm.start_time){var t=new Date;this.newForm.start_time=t.Format("hh:mm")}if(!this.newForm.end_time){var l=new Date;l.setMinutes(l.getMinutes()+30),this.newForm.end_time=l.Format("hh:mm")}new Date(e.start).getTime()<=(new Date).getTime()?this.newForm.start_day=(new Date).Format("yyyy-MM-dd"):this.newForm.start_day=new Date(e.start).Format("yyyy-MM-dd"),this.listLoading=!1,this.newForm.end_day=this.newForm.start_day}},getEvent:function(e,t){var l=this;this.listLoading=!0,Object(r._40)(e,t).then(function(e){if(e.data.results.start=e.data.results.dtstart,e.data.results.end=e.data.results.dtend,e.data.results.MONTHLY_TYPE="0",e.data.results.YEARLY_TYPE="0",e.data.results.cycle_type="1",e.data.process&&(e.data.results.process_is_single=e.data.process.is_single),e.data.results.is_cycle&&"2"==l.openType){e.data.results.invitors=e.data.results.eventInvitor,"1"==l.openType&&(e.data.results.is_cancycle=!1,e.data.results.is_cycle=!1);var t=e.data.results.rrule;t.INTERVAL||(t.INTERVAL=[],t.INTERVAL[0]=1);var a={FREQ:"DAILY",INTERVAL:1,BYDAY:[],BYMONTHDAY:1,BYSETPOS:1,BYDAY_MONTH:1,BYMONTH:1,COUNT:1,UNTIL:""};e.data.results.is_cycle&&"DAILY"==t.FREQ[0]?(a.FREQ="DAILY",a.INTERVAL=t.INTERVAL[0]):e.data.results.is_cycle&&"WEEKLY"==t.FREQ[0]?(a.FREQ="WEEKLY",a.INTERVAL=t.INTERVAL[0],a.BYDAY=t.BYDAY):e.data.results.is_cycle&&"MONTHLY"==t.FREQ[0]?(a.FREQ="MONTHLY",a.INTERVAL=t.INTERVAL[0],t.BYMONTHDAY?(a.BYMONTHDAY=t.BYMONTHDAY[0],e.data.results.MONTHLY_TYPE="0"):t.BYSETPOS&&(e.data.results.MONTHLY_TYPE="1",a.BYSETPOS=t.BYSETPOS[0],t.BYDAY&&(1==t.BYDAY.length&&"MO"==t.BYDAY[0]?a.BYDAY_MONTH=1:1==t.BYDAY.length&&"TU"==t.BYDAY[0]?a.BYDAY_MONTH=2:1==t.BYDAY.length&&"WE"==t.BYDAY[0]?a.BYDAY_MONTH=3:1==t.BYDAY.length&&"TH"==t.BYDAY[0]?a.BYDAY_MONTH=4:1==t.BYDAY.length&&"FR"==t.BYDAY[0]?a.BYDAY_MONTH=5:1==t.BYDAY.length&&"SA"==t.BYDAY[0]?a.BYDAY_MONTH=6:1==t.BYDAY.length&&"SU"==t.BYDAY[0]?a.BYDAY_MONTH=7:2==t.BYDAY.length&&l.contains(t.BYDAY,"SA")&&l.contains(t.BYDAY,"SU")?a.BYDAY_MONTH=8:5==t.BYDAY.length&&l.contains(t.BYDAY,"MO")&&l.contains(t.BYDAY,"TU")&&l.contains(t.BYDAY,"WE")&&l.contains(t.BYDAY,"TH")&&l.contains(t.BYDAY,"FR")?a.BYDAY_MONTH=9:7==t.BYDAY.length&&(a.BYDAY_MONTH=10)))):e.data.results.is_cycle&&"YEARLY"==t.FREQ[0]&&(a.FREQ="YEARLY",a.INTERVAL=t.INTERVAL[0],a.BYMONTH=t.BYMONTH[0],t.BYMONTHDAY?(a.BYMONTHDAY=t.BYMONTHDAY[0],e.data.results.YEARLY_TYPE="0"):t.BYSETPOS&&(e.data.results.YEARLY_TYPE="1",a.BYSETPOS=t.BYSETPOS[0],t.BYDAY&&(1==t.BYDAY.length&&"MO"==t.BYDAY[0]?a.BYDAY_MONTH=1:1==t.BYDAY.length&&"TU"==t.BYDAY[0]?a.BYDAY_MONTH=2:1==t.BYDAY.length&&"WE"==t.BYDAY[0]?a.BYDAY_MONTH=3:1==t.BYDAY.length&&"TH"==t.BYDAY[0]?a.BYDAY_MONTH=4:1==t.BYDAY.length&&"FR"==t.BYDAY[0]?a.BYDAY_MONTH=5:1==t.BYDAY.length&&"SA"==t.BYDAY[0]?a.BYDAY_MONTH=6:1==t.BYDAY.length&&"SU"==t.BYDAY[0]?a.BYDAY_MONTH=7:2==t.BYDAY.length&&"SA"==t.BYDAY[0]?a.BYDAY_MONTH=8:5==t.BYDAY.length&&"MO"==t.BYDAY[0]?a.BYDAY_MONTH=9:7==t.BYDAY.length&&"MO"==t.BYDAY[0]&&(a.BYDAY_MONTH=10)))),t.COUNT&&t.COUNT>0?(e.data.results.cycle_type="2",a.COUNT=t.COUNT[0]):t.UNTIL?(e.data.results.cycle_type="3",a.UNTIL=t.UNTIL[0]):e.data.results.cycle_type="1",e.data.results.rrule=a,e.data.results.is_cancycle=!0}else e.data.results.is_cycle&&"1"==l.openType?(e.data.results.is_cancycle=!1,e.data.results.is_cycle=!1,e.data.results.del_single=1,e.data.results.start=e.data.process.dtstart,e.data.results.end=e.data.process.dtend,e.data.results.id=e.data.process.id,e.data.results.event_id=e.data.process.event_id,e.data.results.invitors=e.data.results.eventInvitor,e.data.process.is_single&&(e.data.results.color=e.data.process.color||e.data.results.color,e.data.results.invitors=e.data.process.sequenceInvitor,e.data.results.is_allday=e.data.process.is_allday,e.data.results.location=e.data.process.location||e.data.results.location,e.data.results.is_remind=e.data.process.is_remind,e.data.results.remind_before=e.data.process.remind_before,e.data.results.remind_unit=e.data.process.remind_unit,e.data.results.title=e.data.process.title||e.data.results.title)):(e.data.results.invitors=e.data.results.eventInvitor,e.data.results.is_cancycle=!0,e.data.results.rrule={FREQ:"DAILY",INTERVAL:1,BYDAY:[],BYMONTHDAY:1,BYSETPOS:1,BYDAY_MONTH:1,BYMONTH:1,COUNT:1,UNTIL:""});var r=e.data.results.start.indexOf("T");e.data.results.start_day=e.data.results.start.slice(0,r),e.data.results.start_time=e.data.results.start.slice(r+1);var n=e.data.results.end.indexOf("T");if(e.data.results.end_day=e.data.results.end.slice(0,n),e.data.results.end_time=e.data.results.end.slice(n+1),l.viewForm=e.data.results,e.data.results.is_cycle&&(l.viewForm.process=e.data.process),l.permisson=e.data.permisson,1==l.permisson.invite){l.viewForm.is_invited=!1;for(var i=0;i<l.viewForm.invitors.length;i++){var s=l.viewForm.invitors[i];s.email==l.$store.state.userInfo.name&&(l.viewForm.is_invited=!0,l.invitor_status=s.status,l.event_id=s.event_id||s.sequence_id)}}l.listLoading=!1,l.viewEventDialog=!0}).catch(function(e){l.listLoading=!1})},openCycleEventFn:function(){this.show_calendar||"1"!=this.openType?(this.openCycleEventDialog=!1,this.getEvent(this.param_id,this.param_process_id)):this.$message({type:"error",message:this.lan.CALENDAR_EVENT_EDIT_PLAIN})},eventCreated:function(){}},watch:{calendar_id:function(e,t){this.getEventList()},show_calendar:function(e){e||(this.openType="2")}},computed:{lan:function(){var e=a.a.zh;return e="zh-hans"==this.$store.getters.getLanguage?a.a.zh:"zh-tw"==this.$store.getters.getLanguage?a.a.zh_tw:"en"==this.$store.getters.getLanguage?a.a.en:(this.$store.getters.getLanguage,a.a.zh),this.rules={title:[{required:!0,message:e.CALENDAR_PAGE_CAL_INPUT_EVENT_NAME,trigger:"blur"}],cycle_mode:[{required:!0,message:e.CALENDAR_PAGE_CAL_CHOOSE_REPEAT_EVENT,trigger:"change"}],start_day:[{required:!0,message:e.CALENDAR_PAGE_CAL_INPUT_START_TIME,trigger:"blur"}],end_day:[{required:!0,message:e.CALENDAR_PAGE_CAL_INPUT_END_TIME,trigger:"blur"}]},this.view_rules={title:[{required:!0,message:e.CALENDAR_PAGE_CAL_INPUT_EVENT_NAME,trigger:"blur"}]},this.titleFormat="YYYY"+e.FILE_P_YEAR+"MM"+e.CALENDAR_PAGE_CAL_MONTH,e}}}}).call(t,l("qqHy"))}});