group-mainPage.6686df6a.js 55 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-mainPage"],{"0320":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-calendar",{scopedSlots:e._u([{key:"dateCell",fn:function(t){t.date;var a=t.data;return[n("div",{staticClass:"day-cell",on:{click:function(t){return e.chooseDay(a)}}},[n("p",[e._v(e._s(e.getDayNum(a.day)))]),new Date(a.day).getMonth()==e.searchMonth.getMonth()?n("div",e._l(e.planList[e.getDayNum(a.day)],(function(t){return n("p",{key:t.id,style:{color:e.colorSet[t.status]}},[e._v("\r\n "+e._s(t.name)+"\r\n ")])})),0):e._e()])]}}]),model:{value:e.searchMonth,callback:function(t){e.searchMonth=t},expression:"searchMonth"}}),n("el-dialog",{staticClass:"dialog-style",attrs:{title:"编辑计划",visible:e.visibleChange,width:"1000px"},on:{"update:visible":function(t){e.visibleChange=t}}},[e._l(e.dayPlan,(function(t,a){return n("div",{key:a},[n("label",[e._v("计划:")]),n("el-input",{attrs:{placeholder:"",disabled:!e.ableEdit},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"item.name"}}),e._v("\r\n  \r\n "),n("label",[e._v("内容:")]),n("el-input",{attrs:{type:"textarea",autosize:"",placeholder:"",disabled:!e.ableEdit},model:{value:t.content,callback:function(n){e.$set(t,"content",n)},expression:"item.content"}}),e._v("\r\n  \r\n "),n("label",{class:{hide:!t.id}},[e._v("状态:")]),n("el-select",{class:{hide:!t.id},attrs:{placeholder:"请选择",size:"mini",disabled:null==t.id||!e.ableEdit},model:{value:t.status,callback:function(n){e.$set(t,"status",n)},expression:"item.status"}},[n("el-option",{attrs:{label:"准备",value:0}}),n("el-option",{attrs:{label:"执行",value:1}}),n("el-option",{attrs:{label:"暂搁",value:2}}),n("el-option",{attrs:{label:"完成",value:3}}),n("el-option",{attrs:{label:"中止",value:4}})],1),e._v("\r\n  \r\n "),n("el-button",{class:{hide:!t.id},attrs:{type:"text",disabled:null==t.id},on:{click:function(n){return e.judgePlan(t)}}},[e._v("评价")]),e._v("\r\n  \r\n "),e.ableEdit?n("i",{staticClass:"el-icon-remove-outline del-bt",on:{click:function(n){e.visibleDelete=!0,e.plan=t,e.deleteIndex=a}}}):e._e()],1)})),e.ableEdit?n("i",{staticClass:"el-icon-circle-plus-outline add-bt",on:{click:function(t){return e.addDayPlan()}}}):e._e(),e.ableEdit?n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleChange=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.editTask}},[e._v("确 定")])],1):e._e()],2),n("el-dialog",{attrs:{title:e.plan.name+" 任务评价",visible:e.visibleJudge,width:"800px"},on:{"update:visible":function(t){e.visibleJudge=t}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.noEdit,expression:"noEdit"}],domProps:{innerHTML:e._s(e.plan.evaluation)}}),n("Judge",{directives:[{name:"show",rawName:"v-show",value:!e.noEdit,expression:"!noEdit"}],attrs:{planJudge:e.plan.evaluation,changeSignal:e.changeSignal},on:{setEvaluation:e.setEvaluation}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.noEdit=!1}}},[e._v("编辑")]):e._e(),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleJudge=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.editJudge}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1,e.plan={}}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.deletePlan}},[e._v("确 定")])],1)])],1)},i=[],r=(n("28a5"),n("7f7f"),n("ac6a"),n("bc3a")),l=n.n(r),s=n("4328"),o=n.n(s);function c(e){return l.a.get("/weekly/listCurrentMonth",{params:e}).then((function(e){return e.data}))}function u(e){return l()({method:"post",url:"/weekly/add",data:o.a.stringify(e)}).then((function(e){return e.data}))}function d(e){return l()({method:"post",url:"/weekly/update",data:o.a.stringify(e)}).then((function(e){return e.data}))}function p(e){return l()({method:"post",url:"/weekly/delete",data:o.a.stringify(e)}).then((function(e){return e.data}))}function f(e){return l()({method:"post",url:"/weekly/evaluate",data:o.a.stringify(e)}).then((function(e){return e.data}))}var h=n("8ed5"),v={name:"Month",components:{Judge:h["a"]},data:function(){return{colorSet:{0:"gray",1:"blue",2:"red",3:"green",4:"yellow"},searchMonth:new Date,params:{startTime:"",userId:this.$store.state.checkUser.id},visibleChange:!1,planList:{},dayPlan:[],visibleDelete:!1,plan:{},deleteIndex:"",noEdit:!1,visibleJudge:!1,changeSignal:!1}},created:function(){this.getMonthPlan()},watch:{searchMonth:function(e,t){e.getMonth()!=t.getMonth()&&(this.params.startTime=e.getTime(),this.getMonthPlan())},"$store.state.checkUser.id":function(e){this.params.userId=e,this.getMonthPlan()},visibleChange:function(e){e||this.getMonthPlan()}},computed:{ableEdit:function(){return this.$store.state.loginUser.id==this.$store.state.checkUser.id}},methods:{getMonthPlan:function(){var e=this;c(this.params).then((function(t){for(var n in e.planList={},t.data)e.$set(e.planList,n,t.data[n])}))},editTask:function(e){var t=this;this.visibleChange=!1,this.dayPlan.forEach((function(e,n){if(e.id){var a={id:e.id,name:e.name,content:e.content,status:e.status,startTime:t.searchMonth.getTime()};d(a).then((function(e){e.result||t.$message(e.message),n==t.dayPlan.length-1&&t.getMonthPlan()}))}else u(e).then((function(e){e.result||t.$message(e.message),n==t.dayPlan.length-1&&t.getMonthPlan()}))}))},chooseDay:function(e){if(new Date(e.day).getMonth()==this.searchMonth.getMonth()){this.visibleChange=!0;var t=this.getDayNum(e.day);this.dayPlan=JSON.parse(JSON.stringify(this.planList[t]))}},addDayPlan:function(){this.dayPlan.push({name:"",content:"",year:this.searchMonth.getFullYear(),userId:"",startTime:this.searchMonth.getTime()})},deletePlan:function(){var e=this;if(this.plan.id){var t={id:this.plan.id};p(t).then((function(t){t.result?e.dayPlan.splice(e.deleteIndex,1):e.$message(t.message)}))}else this.dayPlan.splice(this.deleteIndex,1);this.visibleDelete=!1,this.plan={}},getDayNum:function(e){return~~e.split("-")[2]},setEvaluation:function(e){this.plan.evaluation=e},judgePlan:function(e){this.visibleJudge=!0,this.noEdit=!0,this.plan=JSON.parse(JSON.stringify(e)),this.changeSignal=!this.changeSignal},editJudge:function(){var e=this;f({id:this.plan.id,evaluation:this.plan.evaluation}).then((function(t){e.$message(t.result?"更新成功":"更新失败"),e.visibleJudge=!1,e.visibleChange=!1,e.plan={},e.getMonthPlan()}))}}},g=v,b=(n("cc0d"),n("2877")),m=Object(b["a"])(g,a,i,!1,null,"ea31f9e0",null);t["default"]=m.exports},"0517":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"todo"},[n("ul",e._l(e.list,(function(t,a){return n("li",{key:a,style:{"border-top":0==a?"none":"solid 1px #DEE0E3"}},[n("el-card",{staticClass:"card"},[n("p",[e._v("做完XXXXXXXXXXXXX")]),n("span",[e._v("截止时间:")]),e._v("2021-10-3\r\n "),n("div",[n("el-button",{staticClass:"button",attrs:{type:"text"}},[e._v("详情")])],1)])],1)})),0)])},i=[],r=(n("d8ad"),{name:"Todo",components:{},data:function(){return{list:[{},{},{},{},{}],currentDate:new Date}},created:function(){},watch:{},methods:{}}),l=r,s=(n("fac7"),n("2877")),o=Object(s["a"])(l,a,i,!1,null,"2dc69682",null);t["default"]=o.exports},"0be1":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAwCAYAAACxKzLDAAAEWElEQVRoQ+2aS6hcRRCGv38lggRxZxDxvVDRgE9IQAOCEAmiaFCTSCKI4hM1oAvBBAQ3JqIRRUENel1oEBcqAUG8Ron4wmd8XiQgGhFRfIC6kJJ/6HM5M86c0+fMuffOYhrChZOqv+vvqq6urh6RMSJiM3AX8ArwkKQDGWpZIhHxALAOeAN4UdLuLMUKIdUBRMT5wOsluV2STHLssVDYOaTuAbaWGUiq1cthHBGD2LOSVufoVsnUGjdkYqakKpZ0wT2V4nuYCecB3lflsW3cEEn6udgHJX2VO2cv/CLie2D5CKWtkvpIRETkTlAj14cdESY5O0JnP3CtpLfr5lZEPA9cXiE4KaRs4i/AUZL+qkwUEfEbsGxCSA0eH8PM2ixpVx2pulA6IOnYAiQinN6dirsYfWdeRFwKvNAkZIfJOvzqSFnvU+BhwDF/VRdsShi3Ac+lZLQWuHKxSHXMYyy4/+3xQbRcT41lRcfKU1IdL+iCwU09VSztui7uNF35KSJu9h2uhNfYU49IurErg7rCGah6GpPaIml7V8Z0hRMRM8D6hLdNUt/9Liel+zD8qCuDOsBxXXoFcMQ4pDqwY0EhWnlqQS3qAHxKqoNFXBSIqacWZZnHmORf4BtfU9qk9DHm7VzVvZGvgW8BX1Z/zJlhUq8e7wC3SvLfxqOKlPvlXqm2ffPDgLuBcxpaNZ8IIsIHrvsWRwPHAScAPyfv2a79kj7MqSgKmeWSDjY0qE88Io4EfmiAsVbSy5aPCJdF7oWcWKH/N7Bdkhdvfozy1CeSTm9gzEjRiPgYOC0Da7ckv36YULnWy1DlC0knF4JV4Xe2pPdyEEfJRMRZwLsZGB9IOjMR2gQ8laEzKPKapAv8sS5RlKthd3PdeSr+9vQrJrdsZTWddH8FLnLntUW4Dk5/taRn6ki1WLDGKvPXnYh4ArimAYJD+4a0b+3dM4BVk0BqtaTZFl5yWK+XNBcRh6eHwRW9oyCzmdlg8RqLLpP0R0SsBN4qac+l8D5+COJeYIOk79I+LL8HzCw1qXKC2Ag8nQj4/Dk1GXxfem8uuL0KbJT00xBC/vTlUpN6XNJ1ybjyU+lg//5R4HrgpeSh30cQ8uc/q0i55tpXU1HUPa9eBpxSEZA7Jd2SDCx7yp9mJPlbb6Tmiz30TwUh/9feUaT8/rNCkom1HhFxUup3HDoCZI+kNcnIwT3lz49Jsof6Rs2b2oNLXVHMSeqVQRXZz2XQlgGPVT0SbqoKv9sl+YcbrUdEuDO1owbg3KIaj4hi7wyquLB2hvNhXkXI2+XCpU4UNv5ZSRuSt1zZuwo/pOVKrpS0bxJI2f41kvYkYquAN1uQ2iHpDutNCim/vLuH/3kidgnwJOBKIWfMZ9GC1Gc1aTcHtAuZPmKJ3E7gpgpw76F7Cy8XcvaUN5434SQME7tTkn+t1huprjsG8D8fEd5zRc9i6K28+HGIs8rFPpsmgVl62L5f0vtt7PkPgrkb+arxX4sAAAAASUVORK5CYII="},"0e8f":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n("bc3a"),i=n.n(a),r=n("4328"),l=n.n(r);function s(e){return i.a.get("/department/getTree",{params:{withUser:e}}).then((function(e){return e.data}))}function o(e){return i()({method:"post",url:"/user/updateInfo",data:l.a.stringify(e)}).then((function(e){return e.data}))}function c(e,t,n){return i()({method:"post",url:"/user/updatePassword",data:l.a.stringify({id:e,newPassword:t,oldPassword:n})}).then((function(e){return e.data}))}},"19ed":function(e,t,n){"use strict";var a=n("1e73"),i=n.n(a);i.a},"1e73":function(e,t,n){},"26f7":function(e,t,n){},"28a5":function(e,t,n){"use strict";var a=n("aae3"),i=n("cb7c"),r=n("ebd6"),l=n("0390"),s=n("9def"),o=n("5f1b"),c=n("520a"),u=n("79e5"),d=Math.min,p=[].push,f="split",h="length",v="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,u){var m;return m="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(i,e,t);var r,l,s,o=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?g:t>>>0,b=new RegExp(e.source,u+"g");while(r=c.call(b,i)){if(l=b[v],l>d&&(o.push(i.slice(d,r.index)),r[h]>1&&r.index<i[h]&&p.apply(o,r.slice(1)),s=r[0][h],d=l,o[h]>=f))break;b[v]===r.index&&b[v]++}return d===i[h]?!s&&b.test("")||o.push(""):o.push(i.slice(d)),o[h]>f?o.slice(0,f):o}:"0"[f](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i,a):m.call(String(i),n,a)},function(e,t){var a=u(m,e,this,t,m!==n);if(a.done)return a.value;var c=i(e),p=String(this),f=r(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),y=new f(b?c:"^(?:"+c.source+")",v),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===p.length)return null===o(y,p)?[p]:[];var w=0,A=0,k=[];while(A<p.length){y.lastIndex=b?A:0;var P,E=o(y,b?p:p.slice(A));if(null===E||(P=d(s(y.lastIndex+(b?0:A)),p.length))===w)A=l(p,A,h);else{if(k.push(p.slice(w,A)),k.length===C)return k;for(var D=1;D<=E.length-1;D++)if(k.push(E[D]),k.length===C)return k;A=w=P}}return k.push(p.slice(w)),k}]}))},"37bf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADuElEQVRoQ9Waa6hVRRTH/z9ETFGQCBHUCELMoCA/iB+EfNADw6AkwSCoDB+XUCRTIvBBcSEriaREpReYGIYFBUaK+k1EQcGkS0QkhH0QCkGhIlqxDmsOc889173PvdvL3hsOnJnZs2b99systWbtjbLLzJ6UtFvSvXn9GP//QtI7wPky45JuMrO3JG0p02mM7lkAnC0aKwewuPl0Uafb3L4o5O8CthaN1QIwM+90KgEAi4s63q52M2s/yDJ61BpA0mZJV4Hfh3tgdQbIdf5DkkP8KukQcCg1NgWgcwL2ABu8sqkArvtU4HqdAU5Kek/SjPjdI8mNzcyYjgeBS3UGOA482uFod0jaHnUPARfrDHAMWNYBcEbSgqgrv4TMLCev0gV8DKzuUDL5gW8AD23al5m5JZou6U/gztKbOHMuVSrfkgW0o4FwqgngK+DpNKCZTZD0V5QvAPN6AfB1l1x8lRAXgU3DzMCXwDMZwBxJA1E+CqwoDVClxkWystk+DKzKAB6T9F2UdwOv1B3gIPBcBrBG0r4obwD21B3gU+CFDKBf0mtRXg58W3eAj4CXMoDPJT0b5QeAH+oOsA9YlwH44WZ+lKcAN+oO8AHwcgaQzOs1YFqqr7Mnfh/YGL5hvKR/QulzQJqJWkejbVNpZrMl/RQAR4CVPc1ABaHENUkLgaTEsO4g8wPtM7GZPSLp++g06KxcaglVFEqcLnPGzcbqB16PJeTW6EAA9AF7x3oG/Cj4lIe/PXjiN4BtAfCmpBaMpGXAsZ4Aigatsj2bgZ2AR8GeNXGn9USMMxdIMVGtN3EO4HvorgCYCKSotDEAyQf8BszKZ7zUJq5yiRTJ6lxCZjZO0r/R7xSwpGkAnmj+OZTeD6xtGsBSSSdC6S3A200DWC/pw1DaTfHXTQP4RNLzoXQrF9QzQGSvUz5muH04APjTGtXVZRNflnR/CJ0M3BwJgKfeyxzq27Z7pBRdAJIJvQJ4dm7QVcqMlgzmSsU6RWC3ADgBeFDXO0DRoFW25wCSdkr6L+TvBfqaBvCZpF9C6c3Au00D8IP7kVB6BXC0aQCTJL0aSrey0U0DcMv3cCjdykY3DcBfs97h+wDo+vK9lBmt0soUyeqwQsl5DnnZkeTUGSBnHZTk6uaJ75P0YzRczQ7QRQ+s6nYPGdop9Uz4VmBXt8HyTw3y1zdVKzZaeSuBZE6HemKviXDBTZabrjpd/u3G48Dft5yB1GhmL0q6exQEKfgaiQgf19/E+M+Tt668p1eSNx4i83+xVItPYPSwmQAAAABJRU5ErkJggg=="},4127:function(e,t,n){"use strict";var a=n("d233"),i=n("b313"),r={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},o=function e(t,n,i,r,l,o,c,u,d,p,f,h){var v=t;if("function"===typeof c)v=c(n,v);else if(v instanceof Date)v=p(v);else if(null===v){if(r)return o&&!h?o(n,s.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||a.isBuffer(v)){if(o){var g=h?n:o(n,s.encoder);return[f(g)+"="+f(o(v,s.encoder))]}return[f(n)+"="+f(String(v))]}var b,m=[];if("undefined"===typeof v)return m;if(Array.isArray(c))b=c;else{var y=Object.keys(v);b=u?y.sort(u):y}for(var C=0;C<b.length;++C){var w=b[C];l&&null===v[w]||(m=Array.isArray(v)?m.concat(e(v[w],i(n,w),i,r,l,o,c,u,d,p,f,h)):m.concat(e(v[w],n+(d?"."+w:"["+w+"]"),i,r,l,o,c,u,d,p,f,h)))}return m};e.exports=function(e,t){var n=e,l=t?a.assign({},t):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!==typeof l.encoder)throw new TypeError("Encoder has to be a function.");var c="undefined"===typeof l.delimiter?s.delimiter:l.delimiter,u="boolean"===typeof l.strictNullHandling?l.strictNullHandling:s.strictNullHandling,d="boolean"===typeof l.skipNulls?l.skipNulls:s.skipNulls,p="boolean"===typeof l.encode?l.encode:s.encode,f="function"===typeof l.encoder?l.encoder:s.encoder,h="function"===typeof l.sort?l.sort:null,v="undefined"!==typeof l.allowDots&&l.allowDots,g="function"===typeof l.serializeDate?l.serializeDate:s.serializeDate,b="boolean"===typeof l.encodeValuesOnly?l.encodeValuesOnly:s.encodeValuesOnly;if("undefined"===typeof l.format)l.format=i["default"];else if(!Object.prototype.hasOwnProperty.call(i.formatters,l.format))throw new TypeError("Unknown format option provided.");var m,y,C=i.formatters[l.format];"function"===typeof l.filter?(y=l.filter,n=y("",n)):Array.isArray(l.filter)&&(y=l.filter,m=y);var w,A=[];if("object"!==typeof n||null===n)return"";w=l.arrayFormat in r?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var k=r[w];m||(m=Object.keys(n)),h&&m.sort(h);for(var P=0;P<m.length;++P){var E=m[P];d&&null===n[E]||(A=A.concat(o(n[E],E,k,u,d,p?f:null,y,h,v,g,C,b)))}var D=A.join(c),_=!0===l.addQueryPrefix?"?":"";return D.length>0?_+D:""}},4328:function(e,t,n){"use strict";var a=n("4127"),i=n("9e6a"),r=n("b313");e.exports={formats:r,parse:i,stringify:a}},"491e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"year"},[n("div",{staticClass:"tool-panel"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleChange=!0,e.noEdit=!1,e.plan={}}}},[e._v("新增年度计划")])],1),n("table",[e._m(0),n("tbody",e._l(e.planeList,(function(t,a){return n("tr",{key:a},[n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.year))]),n("td",[e._v(e._s(t.content))]),n("td",[n("a",{on:{click:function(n){return e.changeData(t,!0)}}},[e._v("详情")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){return e.changeData(t)}}},[e._v("修改")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){return e.judgePlan(t)}}},[e._v("评价")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){e.visibleDelete=!0,e.plan.id=t.id}}},[e._v("删除")])])])})),0)]),n("el-dialog",{staticClass:"dialog-style",attrs:{title:e.noEdit?"详情":"编辑",visible:e.visibleChange,width:"600px"},on:{"update:visible":function(t){e.visibleChange=t}}},[n("div",[n("label",[e._v("名称:")]),n("el-input",{attrs:{name:"name",placeholder:"请输入名称",required:"required",disabled:e.noEdit},model:{value:e.plan.name,callback:function(t){e.$set(e.plan,"name",t)},expression:"plan.name"}})],1),n("div",[n("label",[e._v("年份:")]),n("el-date-picker",{attrs:{type:"year",disabled:e.noEdit,placeholder:"选择年"},model:{value:e.yearData,callback:function(t){e.yearData=t},expression:"yearData"}})],1),n("div",[n("label",{staticClass:"text-label"},[e._v("内容:")]),n("el-input",{attrs:{placeholder:"请输入内容",required:"required",type:"textarea",autosize:{minRows:5},disabled:e.noEdit},model:{value:e.plan.content,callback:function(t){e.$set(e.plan,"content",t)},expression:"plan.content"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleChange=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:e.plan.name+" 任务评价",visible:e.visibleJudge,width:"800px"},on:{"update:visible":function(t){e.visibleJudge=t}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.noEdit,expression:"noEdit"}],domProps:{innerHTML:e._s(e.plan.evaluation)}}),n("Judge",{directives:[{name:"show",rawName:"v-show",value:!e.noEdit,expression:"!noEdit"}],attrs:{planJudge:e.plan.evaluation,changeSignal:e.changeSignal},on:{setEvaluation:e.setEvaluation}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.noEdit=!1}}},[e._v("编辑")]):e._e(),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleJudge=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.save(2)}}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1,e.plan={}}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.deletePlan}},[e._v("确 定")])],1)])],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("计划名")]),n("th",[e._v("年份")]),n("th",[e._v("内容")]),n("th",{staticStyle:{width:"120px","text-align":"center"}},[e._v("操作")])])])}],r=n("5740"),l=n("8ed5"),s={name:"Year",components:{Judge:l["a"]},data:function(){return{params:{userId:this.$store.state.checkUser.id},planeList:[],plan:{},yearData:"",noEdit:!1,visibleChange:!1,visibleDelete:!1,visibleJudge:!1,changeSignal:!1}},created:function(){this.getPlanList()},methods:{getPlanList:function(){var e=this;Object(r["e"])().then((function(t){e.planeList=t.data}))},deletePlan:function(){var e=this;Object(r["b"])(this.plan).then((function(t){e.$message(t?"删除成功":"删除失败"),e.visibleDelete=!1,e.plan={},e.getPlanList()}))},changeData:function(e,t){this.visibleChange=!0,this.noEdit=t,this.plan=JSON.parse(JSON.stringify(e)),this.yearData=new Date(e.year,1,1)},save:function(e){var t=this;this.plan.year=this.yearData.getFullYear(),this.plan.id?2==e?Object(r["c"])({id:this.plan.id,evaluation:this.plan.evaluation}).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleJudge=!1,t.plan={},t.getPlanList()})):Object(r["f"])(this.plan).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleChange=!1,t.visibleJudge=!1,t.plan={},t.getPlanList(),t.$store.dispatch("setCurPlanSin")})):Object(r["a"])(this.plan).then((function(e){t.$message(e.result?"添加成功":e.message),t.visibleChange=!1,t.plan={},t.getPlanList(),t.$store.dispatch("setCurPlanSin")}))},setEvaluation:function(e){this.plan.evaluation=e},judgePlan:function(e){this.visibleJudge=!0,this.noEdit=!0,this.plan=JSON.parse(JSON.stringify(e)),this.changeSignal=!this.changeSignal,this.yearData=new Date(e.year,1,1)}}},o=s,c=(n("e435"),n("2877")),u=Object(c["a"])(o,a,i,!1,null,"5e96dcb4",null);t["default"]=u.exports},5740:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var a=n("bc3a"),i=n.n(a),r=n("4328"),l=n.n(r);function s(){return i.a.get("/annual/list").then((function(e){return e.data}))}function o(e){return i.a.get("/annual/current",{params:{year:e}}).then((function(e){return e.data}))}function c(e){return i()({method:"post",url:"/annual/add",data:l.a.stringify(e)}).then((function(e){return e.data}))}function u(e){return i()({method:"post",url:"/annual/update",data:l.a.stringify(e)}).then((function(e){return e.data}))}function d(e){return i()({method:"post",url:"/annual/delete",data:l.a.stringify(e)}).then((function(e){return e}))}function p(e){return i()({method:"post",url:"/annual/evaluate",data:l.a.stringify(e)}).then((function(e){return e.data}))}},"651b":function(e,t,n){},"67f4":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main-page"},[n("div",{staticClass:"left-menu"},[e._m(0),n("p",[e._v(e._s(e.$store.state.loginUser.name))]),n("ul",e._l(e.list,(function(e){return n("li",{key:e.name},[n("router-link",{staticClass:"route-menu",attrs:{to:e.link}},[n("img",{attrs:{src:e.src}})])],1)})),0),n("i",{staticClass:"el-icon-s-release seting-bt",on:{click:e.logout}})]),n("div",{staticClass:"right-content"},[n("div",{staticClass:"tool-bar"},[n("div",[e.ableChangeUser?n("span",[e._v("查看计划:"+e._s(e.$store.state.checkUser.name))]):e._e(),e.ableChangeUser?n("el-button",{attrs:{type:"primary",icon:"el-icon-edit",circle:""},on:{click:function(t){e.personChange=!0,e.currentUser=JSON.parse(JSON.stringify(e.$store.state.checkUser))}}}):e._e()],1),n("p",[n("label",[e._v("年度总目标:"+e._s(e.currentPlan.name))])])]),n("router-view",{staticClass:"route-area"})],1),n("el-dialog",{staticClass:"dialog-style",attrs:{title:"切换成员",visible:e.personChange,width:"500px"},on:{"update:visible":function(t){e.personChange=t}}},[n("p",[e._v("查看:"+e._s(e.currentUser.name))]),n("UserTree",{on:{chooseUser:e.chooseUser}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.personChange=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.changeCheckUser}},[e._v("确 定")])],1)],1)],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"head"},[n("p",[e._v("头像")])])}],r=(n("a481"),n("7f7f"),n("5740")),l=n("7ded"),s=n("af80"),o={name:"MainPage",components:{UserTree:s["a"]},data:function(){return{list:[{name:"年度计划",src:n("0be1"),link:"/app/mainPage/year"},{name:"季度计划",src:n("37bf"),link:"/app/mainPage/quarter"},{name:"月计划",src:n("a2e6"),link:"/app/mainPage/month"},{name:"人员",src:n("8a36"),link:"/app/mainPage/department"}],personChange:!1,currentPlan:{},currentUser:{}}},created:function(){this.getCurrent()},computed:{ableChangeUser:function(){return"Month"==this.$route.name}},watch:{"$store.state.curPlanSin":function(e){this.getCurrent()}},methods:{getCurrent:function(){var e=this,t=(new Date).getFullYear();Object(r["d"])(t).then((function(t){t.result&&(e.currentPlan=t.data)}))},chooseUser:function(e){this.currentUser=e},changeCheckUser:function(){this.$store.dispatch("setCheckUser",this.currentUser),this.personChange=!1},logout:function(){var e=this;Object(l["c"])().then((function(t){t&&"1"==t.ok?e.$router.replace({path:"/login"}):e.$Message.error(t&&t.msg||"登出失败!")})).catch((function(){e.$Message.error("登出失败!")}))}}},c=o,u=(n("fbbc"),n("2877")),d=Object(u["a"])(c,a,i,!1,null,"1aafc354",null);t["default"]=d.exports},"7f7f":function(e,t,n){var a=n("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,l="name";l in i||n("9e1e")&&a(i,l,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},"8a36":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFC0lEQVRoQ8WZW6hVVRSGv58oKEGjC5X6ENRDZUVZkZBQvsiRsoQsUtCiLOghoiwyfKggi6SinqKL3ZTsiqGh2UMa0g06WUI9dIeikIzo+lL0x5C5D9N19t5rrrX3OQ5YnL3OHPMf41/zNuYYYohi+wognpOBo4FjAAM/p+d9YJOkncMyq0GBbE8FbgJWACcW4n0BrJO0tlC/p9pABGzfmJw/taUj7wJrJW1u2Z/WBGw/BNza1nClX5C4ow1WKwK2nweWdTH4K/A28CqwB/gh6cwEYpQuARam9VHtvlXSxU1JNCZg+15gdcXQj8CTwOOSfurnhO0TgBvSM72ie4ukR5qQaETAdnzBLRUDsaNcJ+mbJoZtnwa8DMyq9JvXZJcqJmD7UOADYHZmcLek/L0Jh/26tncBc7OOHwNzJP1TAtaEQCzYWLgdifk+U9LfJYZ66dg+DPgWyKfTSkkPl+AWEbB9XPr6+T6/WNJrJUbqdGxfBrye6X2XRmFvXd9SAlcDz2ZgWyRdWgfepN12nAWxQ3VkhaR1dRilBGJnuDkDWyjpjTrwJu1dNog4qeN07yulBHYDZyWkvZKOrwNu0247YqaIn0I+k3R6HU4tAdtHAH9lQOslLa8DbtNuO7bVCAY7MqVukyghcDYQW1tHbpOU70ZtfO3ax/ZK4MGscbakGP2eUkLgKmBjhrBUUv4+TAJLgBcywCWSXhyUwF3A3RlIo5OyCTvbFwE7sj73SMptj4MrGYFrgGcO0ggsl7R+0BGofpXJXANzJcWdYaA1EKdvHPUd2ShpaZOpUaprexOwKNOfXhfd1k6hALMd99qO/AHMkBR/hya2j0z3hykJdJ+kY+sMlBKII/3aDCzC56frwJu02w78PHR4StL1dRilBBYAWzOwnZLm1YE3abcdu0+st44UhStFBNI0+jKlSzoGrpT0ShMne+najnkf878jX0uK1EytNCFQvQ8E+CxJn9da6aNge0Z2d+5o3i4pP5F7IhQTSKOwDRipoE1tu6BtR+AWAVwujaZnUwIXAO8Ah2QW4y68QFIkq4rF9pnAW0BclnIZkbS9FKgRgTQK1dAi/j2srERt6FAl1phAIhHxSRCpyiB5ocbOh/FWBGpIlI5+rtfK+dYEbJ+fFnOcD/F7UPkQeBPYJil+F0vxCNiOmCgu98NyupeTQWBDJBEk/VnHpJaA7bgLh+MRVke8MlnyFfAc8Gi/bbonAduHpxxoNQ/ajUDkbz4FPgEi/P0e2Af8AvyXiAf5eE4BLkxhQ0k9IUZkVa90Y1cCKdEUjp/X53OH05En3Sypmi8tGiXbc4DISEeOKc6FXvJvIjHuLj6OQCoTRXagl4wCTwAvSfqtyNMCJdvzgctT1rpXj3G71QEEapyP6fGYpHB+wsT2OVn6vZudA0iMEehztAfIA8CatjFPG7ZpGsed46gu/cfuyjmBiD9iGHOJdPpqSVF1mXSxPQ2IKXtSxXisv/mS9uwnYPs+4M6KUhQuFg1znrf9ArajZBXrI5cNkpYpLZ5q9Ddw4aKts7362Y4zoZrSHAkCsV1G3asjQylcTACBqK19VCmErAkC1bk/tMLFBJCoRsG7gkCeMgmb0yT9Pmzjw8CzfUYq347BVQmMSjp3GMYmCsN2JNnGQpAqgUb30Ylysh9uNf0SBPKiQlEy6WA43rFpexVwf3ofDQKRk18MvBeHRpMi88EgklLwUdWM8uz2/wH10djMPIqEmgAAAABJRU5ErkJggg=="},"8cfd":function(e,t,n){"use strict";var a=n("fa40"),i=n.n(a);i.a},"8ed5":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"wang-editor",rawName:"v-wang-editor",value:{config:e.editorConfig,text:e.planJudge,changeSignal:e.changeSignal},expression:"{\r\n config:editorConfig,\r\n text: planJudge,\r\n changeSignal:changeSignal\r\n }"}]},[n("div")])])},i=[],r=(n("8e6e"),n("ac6a"),n("456d"),n("bd86")),l=n("1aa9");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={name:"Judge",components:{},props:{planJudge:{type:String,default:""},changeSignal:{type:Boolean,default:!1}},data:function(){var e=this;return{editorConfig:o({},l["a"],{onchange:function(t){e.$emit("setEvaluation",t)}})}},created:function(){},watch:{},methods:{}},u=c,d=n("2877"),p=Object(d["a"])(u,a,i,!1,null,"0449524a",null);t["a"]=p.exports},9887:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quarter"},[n("div",{staticClass:"tool-panel"},[n("el-date-picker",{attrs:{type:"year",placeholder:"选择年"},on:{change:e.getPlanList},model:{value:e.params.year,callback:function(t){e.$set(e.params,"year",t)},expression:"params.year"}}),n("el-button",{attrs:{type:"primary"},on:{click:e.addPlan}},[e._v("新增季度计划")])],1),n("table",[e._m(0),n("tbody",e._l(e.planeList,(function(t,a){return n("tr",{key:a},[n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.year))]),n("td",[e._v(e._s(t.quarter))]),n("td",[e._v(e._s(t.departmentName))]),n("td",[e._v(e._s(t.content))]),n("td",[n("a",{on:{click:function(n){return e.changeData(t,!0)}}},[e._v("详情")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){return e.changeData(t,!1)}}},[e._v("修改")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){return e.openChildPlan(t)}}},[e._v("子项")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){return e.judgePlan(t)}}},[e._v("评价")]),e._v("\r\n   \r\n "),n("a",{on:{click:function(n){e.visibleDelete=!0,e.plan.id=t.id}}},[e._v("删除")])])])})),0)]),n("el-dialog",{staticClass:"dialog-style",attrs:{title:e.noEdit?"详情":"编辑",visible:e.visibleChange,width:"600px"},on:{"update:visible":function(t){e.visibleChange=t}}},[n("div",[n("label",[e._v("名称:")]),n("el-input",{attrs:{name:"name",placeholder:"请输入名称",required:"required",disabled:e.noEdit},model:{value:e.plan.name,callback:function(t){e.$set(e.plan,"name",t)},expression:"plan.name"}})],1),n("div",[n("label",[e._v("年份:")]),n("el-date-picker",{attrs:{type:"year",placeholder:"选择年",disabled:e.noEdit},model:{value:e.yearData,callback:function(t){e.yearData=t},expression:"yearData"}})],1),n("div",[n("label",[e._v("季度:")]),n("el-select",{attrs:{placeholder:"请选择",disabled:e.noEdit},model:{value:e.plan.quarter,callback:function(t){e.$set(e.plan,"quarter",t)},expression:"plan.quarter"}},e._l(e.quarterOptions,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("div",[n("label",[e._v("部门:")]),n("el-input",{staticStyle:{width:"380px"},attrs:{required:"required",disabled:""},model:{value:e.currentDepart.name,callback:function(t){e.$set(e.currentDepart,"name",t)},expression:"currentDepart.name"}}),n("i",{staticClass:"el-icon-edit",on:{click:function(t){e.departChange=!e.noEdit}}})],1),n("div",[n("label",{staticClass:"text-label"},[e._v("内容:")]),n("el-input",{attrs:{placeholder:"请输入内容",required:"required",disabled:e.noEdit,type:"textarea",autosize:{minRows:5}},model:{value:e.plan.content,callback:function(t){e.$set(e.plan,"content",t)},expression:"plan.content"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleChange=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:e.plan.name+" 任务评价",visible:e.visibleJudge,width:"800px"},on:{"update:visible":function(t){e.visibleJudge=t}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.noEdit,expression:"noEdit"}],domProps:{innerHTML:e._s(e.plan.evaluation)}}),n("Judge",{directives:[{name:"show",rawName:"v-show",value:!e.noEdit,expression:"!noEdit"}],attrs:{planJudge:e.plan.evaluation,changeSignal:e.changeSignal},on:{setEvaluation:e.setEvaluation}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.noEdit=!1}}},[e._v("编辑")]):e._e(),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleJudge=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.save(2)}}},[e._v("确 定")])],1)],1),n("el-dialog",{staticClass:"dialog-style",attrs:{title:"切换部门",modal:!1,visible:e.departChange,width:"500px"},on:{"update:visible":function(t){e.departChange=t}}},[n("p",[e._v("选择:"+e._s(e.currentDepart.name))]),n("UserTree",{attrs:{showUser:!1},on:{chooseUser:e.chooseDepart}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.departChange=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.changeCheckDepart}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1,e.plan={}}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.deletePlan}},[e._v("确 定")])],1)]),n("el-drawer",{attrs:{title:e.plan.name+" 子任务",visible:e.childPlanFlag,direction:"rtl",size:"80%"},on:{"update:visible":function(t){e.childPlanFlag=t}}},[n("ChildPlan",{attrs:{parentPlan:e.plan,showTable:e.childPlanFlag}})],1)],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("计划名")]),n("th",[e._v("年份")]),n("th",{staticStyle:{width:"50px"}},[e._v("季度")]),n("th",{staticStyle:{"min-width":"50px"}},[e._v("部门")]),n("th",[e._v("内容")]),n("th",{staticStyle:{width:"140px","text-align":"center"}},[e._v("操作")])])])}],r=n("bd86"),l=n("bc3a"),s=n.n(l),o=n("4328"),c=n.n(o);function u(e){return s.a.get("/quarterly/list",{params:e}).then((function(e){return e.data}))}function d(e){return s()({method:"post",url:"/quarterly/add",data:c.a.stringify(e)}).then((function(e){return e.data}))}function p(e){return s()({method:"post",url:"/quarterly/update",data:c.a.stringify(e)}).then((function(e){return e.data}))}function f(e){return s()({method:"post",url:"/quarterly/delete",data:c.a.stringify(e)}).then((function(e){return e}))}function h(e){return s()({method:"post",url:"/quarterly/evaluate",data:c.a.stringify(e)}).then((function(e){return e.data}))}var v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"child-plan"},[n("el-table",{attrs:{data:e.childPlan}},[n("el-table-column",{attrs:{property:"name",label:"计划"}}),n("el-table-column",{attrs:{property:"content",label:"简要说明"}}),n("el-table-column",{attrs:{property:"departmentName",label:"部门"}}),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.changeData(t.row,!0)}}},[e._v("详情")]),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.changeData(t.row,!1)}}},[e._v("修改")]),n("el-button",{staticStyle:{"margin-left":"0"},attrs:{type:"text",size:"small"},on:{click:function(n){return e.judgePlan(t.row)}}},[e._v("评价")]),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){e.visibleDelete=!0,e.plan.id=t.row.id}}},[e._v("删除")])]}}])})],1),n("div",{staticClass:"add-bt"},[n("el-button",{attrs:{type:"primary"},on:{click:e.addPlan}},[e._v("新增")])],1),n("el-dialog",{staticClass:"dialog-style",attrs:{title:e.noEdit?"详情":"编辑",visible:e.visibleChange,modal:!1,width:"600px"},on:{"update:visible":function(t){e.visibleChange=t}}},[n("div",[n("label",[e._v("名称:")]),n("el-input",{attrs:{name:"name",placeholder:"请输入名称",required:"required",disabled:e.noEdit},model:{value:e.plan.name,callback:function(t){e.$set(e.plan,"name",t)},expression:"plan.name"}})],1),n("div",[n("label",{staticClass:"text-label"},[e._v("内容:")]),n("el-input",{attrs:{placeholder:"请输入内容",required:"required",disabled:e.noEdit,type:"textarea",autosize:{minRows:5}},model:{value:e.plan.content,callback:function(t){e.$set(e.plan,"content",t)},expression:"plan.content"}})],1),n("div",[n("label",[e._v("部门:")]),n("el-input",{staticStyle:{width:"380px"},attrs:{required:"required",disabled:""},model:{value:e.currentDepart.name,callback:function(t){e.$set(e.currentDepart,"name",t)},expression:"currentDepart.name"}}),n("i",{staticClass:"el-icon-edit",on:{click:function(t){e.departChange=!e.noEdit}}})],1),n("div",[n("label",{staticClass:"text-label"},[e._v("备注:")]),n("el-input",{attrs:{placeholder:"请输入内容",disabled:e.noEdit,type:"textarea",autosize:{minRows:2}},model:{value:e.plan.remark,callback:function(t){e.$set(e.plan,"remark",t)},expression:"plan.remark"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleChange=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.saveChildPlan}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,modal:!1,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1,e.plan={}}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.deletePlan}},[e._v("确 定")])],1)]),n("el-dialog",{staticClass:"dialog-style",attrs:{title:"切换部门",modal:!1,visible:e.departChange,width:"500px"},on:{"update:visible":function(t){e.departChange=t}}},[n("p",[e._v("选择:"+e._s(e.currentDepart.name))]),n("UserTree",{attrs:{showUser:!1},on:{chooseUser:e.chooseDepart}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.departChange=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.changeCheckDepart}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:e.plan.name+" 任务评价",modal:!1,visible:e.visibleJudge,width:"800px"},on:{"update:visible":function(t){e.visibleJudge=t}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.noEdit,expression:"noEdit"}],domProps:{innerHTML:e._s(e.plan.evaluation)}}),n("Judge",{directives:[{name:"show",rawName:"v-show",value:!e.noEdit,expression:"!noEdit"}],attrs:{planJudge:e.plan.evaluation,changeSignal:e.changeSignal},on:{setEvaluation:e.setEvaluation}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.noEdit?n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.noEdit=!1}}},[e._v("编辑")]):e._e(),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleJudge=!1,e.plan={}}}},[e._v("取消")]),e.noEdit?e._e():n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveChildPlan(2)}}},[e._v("确 定")])],1)],1)],1)},g=[];n("7f7f");function b(e){return s()({method:"post",url:"/planningItem/findByPlanningIdAndType",data:c.a.stringify(e)}).then((function(e){return e.data}))}function m(e){return s()({method:"post",url:"/planningItem/addItem",data:e}).then((function(e){return e.data}))}function y(e){return s()({method:"post",url:"/planningItem/update",data:c.a.stringify(e)}).then((function(e){return e.data}))}function C(e){return s()({method:"post",url:"/planningItem/deleteItem",data:c.a.stringify(e)}).then((function(e){return e}))}function w(e){return s()({method:"post",url:"/planningItem/evaluate",data:c.a.stringify(e)}).then((function(e){return e.data}))}var A=n("af80"),k=n("8ed5"),P={name:"ChildPlan",props:{parentPlan:{},showTable:{type:Boolean,default:!1}},data:function(){return{childPlan:[],params:{planningId:this.parentPlan.id,type:1},plan:{},visibleChange:!1,visibleDelete:!1,noEdit:!1,departChange:!1,currentDepart:{name:""},visibleJudge:!1,changeSignal:!1}},components:{UserTree:A["a"],Judge:k["a"]},created:function(){this.getPlanList()},watch:{showTable:function(e){e&&(this.params.planningId=this.parentPlan.id,this.getPlanList())}},computed:{},methods:{getPlanList:function(){var e=this;b(this.params).then((function(t){e.childPlan=t.data}))},addPlan:function(){this.visibleChange=!0,this.noEdit=!1,this.plan={content:"",departmentId:"",name:"",planningId:this.parentPlan.id,remark:"",type:1},this.currentDepart.name=""},deletePlan:function(){var e=this;C(this.plan).then((function(t){e.$message(t?"删除成功":"删除失败"),e.visibleDelete=!1,e.plan={},e.getPlanList()}))},changeData:function(e,t){this.visibleChange=!0,this.noEdit=t,this.plan=JSON.parse(JSON.stringify(e)),this.currentDepart={id:this.plan.departmentId,name:this.plan.departmentName}},saveChildPlan:function(e){var t=this;this.plan.id?2==e?w({id:this.plan.id,evaluation:this.plan.evaluation}).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleJudge=!1,t.plan={},t.getPlanList()})):y(this.plan).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleChange=!1,t.visibleJudge=!1,t.plan={},t.getPlanList()})):m(this.plan).then((function(e){t.$message(e.result?"添加成功":"添加失败"),t.visibleChange=!1,t.plan={},t.getPlanList()}))},chooseDepart:function(e){this.currentDepart=e},changeCheckDepart:function(){this.plan.departmentId=this.currentDepart.id,this.plan.departmentName=this.currentDepart.name,this.departChange=!1},setEvaluation:function(e){this.plan.evaluation=e},judgePlan:function(e){this.visibleJudge=!0,this.noEdit=!0,this.plan=JSON.parse(JSON.stringify(e)),this.changeSignal=!this.changeSignal}}},E=P,D=(n("8cfd"),n("2877")),_=Object(D["a"])(E,v,g,!1,null,"505bd7b6",null),O=_.exports,x={name:"Quarter",components:{ChildPlan:O,UserTree:A["a"],Judge:k["a"]},data:function(){var e;return e={params:{userId:this.$store.state.checkUser.id},planeList:[],plan:{},yearData:"",quarterOptions:[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}]},Object(r["a"])(e,"params",{year:""}),Object(r["a"])(e,"currentDepart",{name:""}),Object(r["a"])(e,"visibleChange",!1),Object(r["a"])(e,"departChange",!1),Object(r["a"])(e,"visibleDelete",!1),Object(r["a"])(e,"noEdit",!1),Object(r["a"])(e,"childPlanFlag",!1),Object(r["a"])(e,"visibleJudge",!1),Object(r["a"])(e,"changeSignal",!1),e},created:function(){this.getPlanList()},methods:{getPlanList:function(){var e=this,t=JSON.parse(JSON.stringify(this.params));t.year=this.params.year?this.params.year.getFullYear():"",u(t).then((function(t){e.planeList=t.data}))},addPlan:function(){this.visibleChange=!0,this.noEdit=!1,this.plan={content:"",departmentId:"",name:""},this.currentDepart.name=""},deletePlan:function(){var e=this;f(this.plan).then((function(t){e.$message(t?"删除成功":"删除失败"),e.visibleDelete=!1,e.plan={},e.getPlanList()}))},changeData:function(e,t){this.visibleChange=!0,this.noEdit=t,this.plan=JSON.parse(JSON.stringify(e)),this.yearData=new Date(e.year,1,1),this.currentDepart={id:this.plan.departmentId,name:this.plan.departmentName}},save:function(e){var t=this;this.plan.year=this.yearData.getFullYear(),this.plan.id?2==e?h({id:this.plan.id,evaluation:this.plan.evaluation}).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleJudge=!1,t.plan={},t.getPlanList()})):p(this.plan).then((function(e){t.$message(e.result?"更新成功":"更新失败"),t.visibleChange=!1,t.visibleJudge=!1,t.plan={},t.getPlanList()})):d(this.plan).then((function(e){t.$message(e.result?"添加成功":"添加失败"),t.visibleChange=!1,t.plan={},t.getPlanList()}))},chooseDepart:function(e){this.currentDepart=e},openChildPlan:function(e){this.childPlanFlag=!0,this.plan=e},changeCheckDepart:function(){this.plan.departmentId=this.currentDepart.id,this.departChange=!1},setEvaluation:function(e){this.plan.evaluation=e},judgePlan:function(e){this.visibleJudge=!0,this.noEdit=!0,this.plan=JSON.parse(JSON.stringify(e)),this.changeSignal=!this.changeSignal,this.yearData=new Date(e.year,1,1)}}},S=x,J=(n("a69d"),Object(D["a"])(S,a,i,!1,null,"706c2ea0",null));t["default"]=J.exports},"9c13":function(e,t,n){},"9e6a":function(e,t,n){"use strict";var a=n("d233"),i=Object.prototype.hasOwnProperty,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:a.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,l),o=0;o<s.length;++o){var c,u,d=s[o],p=d.indexOf("]="),f=-1===p?d.indexOf("="):p+1;-1===f?(c=t.decoder(d,r.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,f),r.decoder),u=t.decoder(d.slice(f+1),r.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(u):n[c]=u}return n},s=function(e,t,n){for(var a=t,i=e.length-1;i>=0;--i){var r,l=e[i];if("[]"===l)r=[],r=r.concat(a);else{r=n.plainObjects?Object.create(null):{};var s="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,o=parseInt(s,10);!isNaN(o)&&l!==s&&String(o)===s&&o>=0&&n.parseArrays&&o<=n.arrayLimit?(r=[],r[o]=a):r[s]=a}a=r}return a},o=function(e,t,n){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,o=r.exec(a),c=o?a.slice(0,o.index):a,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var d=0;while(null!==(o=l.exec(a))&&d<n.depth){if(d+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(o[1])}return o&&u.push("["+a.slice(o.index)+"]"),s(u,t,n)}};e.exports=function(e,t){var n=t?a.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||a.isRegExp(n.delimiter)?n.delimiter:r.delimiter,n.depth="number"===typeof n.depth?n.depth:r.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:r.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:r.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:r.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:r.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:r.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:r.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:r.strictNullHandling,""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?l(e,n):e,s=n.plainObjects?Object.create(null):{},c=Object.keys(i),u=0;u<c.length;++u){var d=c[u],p=o(d,i[d],n);s=a.merge(s,p,n)}return a.compact(s)}},a2e6:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADc0lEQVRoQ+1aPWsVQRQ9pxFBEREUtRAFrQJ+fxWCBgsbFVQQjCiKKEiwsBdMfoFFICoIBj9BUQRttDFWfmAwBrRQCxtFsLEQsTtyZd8yO2/3ZWdnXpHwBl4ze+fce+6duXNn5hEzvHGG249GBCRtArAPwGOSE7FOcPBukfwSghdMQNIuAM8dJf0kx0OUurI+Hskgm4KETbGkIQAXHSOGSVpfoxaLN3sJSJoDYEn2W+C4dycA1+PDABpPIQCd8L6R/NwptKURkHQawAUAKxrNi7SDfgJ4A+AKySc+dBsBSbcBDKS1IRmaZb39LlqBgKQjAO4kU9cdoELW8wm8BLDd02sh/OD1WSpttZj538KowusDsNjTPU6yv9WXE5C0FsB7T/gsgDGSf1v9sWnPD4ok21NcArmHJc0FcALAZW/cOpJT1ucSOAbghiM4SXJDiULbhd/mHgjceErw3I1xguTmEpl3ANY7/cdJ3vQJ1N6gst3T0t99kh9jp3qGZwba9JgsIVBpmxuB2gRiDQ4d32nazmoCKbJLqLM7ybsLPa+/OkUgpfLUWD0CqT0ailcrArFVZqhR08m7h6h6BGIOKtNZE/K95BTYIxDiwGjZXgScStQO8+6GYp8ekhxx3SwpRu4ugHskfzl6/ZuQ8DUgycra6xXz4STJMfuWSO4AyUcdCAyRtCxZKKfNa4XDupuFJJnxRqKsjZIczAikkBskOZqUQGbcKwDbPAZfSa7yplCMnNVgh0naSfB/K1nE4RHwwHJ7q27lMqVJ5JoSyFlG58FIgB4BZ/osAnDOXfwA2m6UJbXJlZUlklb6iaFCzk+jtdZAYQpJWgbge8Vs6GudjQPkjhr56fBiFrFPwL/+cHXnG0vJNUmUXEoCfhhdw9y7nLpyZwBcrYhA4fYt2SLOgPxS4ilJu9HLW4Vc4TVH0sKsLHHvewyj7dUnGYHIbNh4eI9AY9clGlg3AqcAXHN0PiO5J5ENUTAlheQASSu7C9XoluwlpDS7RFkQMVjSVgCvPYiNJO3Ct0BgHoBPAJZ7wlYdvoiwIWboDgC7PQDbTNeQ/FMgkG0Y/pkgRnm3xhaedcveyB4AONgt7ZG4dnw95GJUvVLuBXAJwOpIhamG298Pztd6pWxplDQfgD072W9pKksCcX4AsKekKZK/y8YGv9QHGtB18X8naTpPrGVDoQAAAABJRU5ErkJggg=="},a69d:function(e,t,n){"use strict";var a=n("f4cf"),i=n.n(a);i.a},aae3:function(e,t,n){var a=n("d3f4"),i=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},af80:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"search-tree"},[n("el-input",{attrs:{placeholder:"输入关键字查找"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),n("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.departmentTree,props:e.defaultProps,"filter-node-method":e.filterNode,"default-expand-all":""},on:{"node-click":e.getNode}})],1)},i=[],r=(n("7f7f"),n("0e8f")),l={name:"UserTree",components:{},props:{showUser:{type:Boolean,default:!0},setUserId:{}},data:function(){return{filterText:"",departmentTree:[],defaultProps:{children:"children",label:"name"}}},created:function(){this.getTree()},watch:{filterText:function(e){this.$refs.tree.filter(e)}},methods:{getTree:function(){var e=this;Object(r["a"])(this.showUser).then((function(t){if(e.departmentTree.push(t.data),e.showUser){var n=[].concat(e.departmentTree);while(n.length>0){var a=n.pop();0==a.children.length&&a.userList.length?a.children=a.userList:n=n.concat(a.children)}}}))},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)},getNode:function(e){(this.showUser&&e.username||!this.showUser&&e.name)&&this.$emit("chooseUser",e)}}},s=l,o=n("2877"),c=Object(o["a"])(s,a,i,!1,null,"4da72e4c",null);t["a"]=c.exports},b313:function(e,t,n){"use strict";var a=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return a.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},c643:function(e,t,n){},cc0d:function(e,t,n){"use strict";var a=n("c643"),i=n.n(a);i.a},d233:function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),r=function(e){var t;while(e.length){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var a=[],i=0;i<t.length;++i)"undefined"!==typeof t[i]&&a.push(t[i]);n.obj[n.prop]=a}}return t},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)"undefined"!==typeof e[a]&&(n[a]=e[a]);return n},s=function e(t,n,i){if(!n)return t;if("object"!==typeof n){if(Array.isArray(t))t.push(n);else{if("object"!==typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!a.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!==typeof t)return[t].concat(n);var r=t;return Array.isArray(t)&&!Array.isArray(n)&&(r=l(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,r){a.call(t,r)?t[r]&&"object"===typeof t[r]?t[r]=e(t[r],n,i):t.push(n):t[r]=n})),t):Object.keys(n).reduce((function(t,r){var l=n[r];return a.call(t,r)?t[r]=e(t[r],l,i):t[r]=l,t}),r)},o=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},c=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},u=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),n="",a=0;a<t.length;++a){var r=t.charCodeAt(a);45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122?n+=t.charAt(a):r<128?n+=i[r]:r<2048?n+=i[192|r>>6]+i[128|63&r]:r<55296||r>=57344?n+=i[224|r>>12]+i[128|r>>6&63]+i[128|63&r]:(a+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(a)),n+=i[240|r>>18]+i[128|r>>12&63]+i[128|r>>6&63]+i[128|63&r])}return n},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],l=i.obj[i.prop],s=Object.keys(l),o=0;o<s.length;++o){var c=s[o],u=l[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:l,prop:c}),n.push(u))}return r(t)},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},f=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:l,assign:o,compact:d,decode:c,encode:u,isBuffer:f,isRegExp:p,merge:s}},e435:function(e,t,n){"use strict";var a=n("9c13"),i=n.n(a);i.a},ea9e:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart"},[n("div",{staticClass:"depart-tree"},[n("UserTree",{attrs:{setUserId:e.currentPerson.id},on:{chooseUser:e.chooseUser}})],1),n("div",{staticClass:"depart-content"},[n("el-collapse",{on:{change:e.handleChange},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[n("el-collapse-item",{attrs:{title:"姓名",name:"1"}},[e.ableEdit?e._e():n("div",[e._v(e._s(e.currentPerson.name))]),e.ableEdit?n("el-input",{attrs:{placeholder:"请输入"},model:{value:e.currentPerson.name,callback:function(t){e.$set(e.currentPerson,"name",t)},expression:"currentPerson.name"}}):e._e()],1),n("el-collapse-item",{attrs:{title:"职位",name:"2"}},[n("div",[e._v(e._s(e.currentPerson.departmentName))])]),n("el-collapse-item",{attrs:{title:"简介",name:"3"}}),n("el-collapse-item",{attrs:{title:"联系方式",name:"4"}},[e.ableEdit?e._e():n("div",[n("p",[e._v("手机:"+e._s(e.currentPerson.phone))]),n("p",[e._v("邮箱:"+e._s(e.currentPerson.email))])]),e.ableEdit?n("div",[n("p",[e._v("手机:"),n("el-input",{attrs:{placeholder:"请输入"},model:{value:e.currentPerson.phone,callback:function(t){e.$set(e.currentPerson,"phone",t)},expression:"currentPerson.phone"}})],1),n("p",[e._v("邮箱:"),n("el-input",{attrs:{placeholder:"请输入"},model:{value:e.currentPerson.email,callback:function(t){e.$set(e.currentPerson,"email",t)},expression:"currentPerson.email"}})],1)]):e._e()])],1),n("div",[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visiblePass=!0}}},[e._v("修改密码")]),e.ableEdit?e._e():n("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.ableEdit=!0}}}),e.ableEdit?n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]):e._e()],1)],1),n("el-dialog",{staticClass:"dialog-style",attrs:{title:"修改密码",visible:e.visiblePass,width:"300px"},on:{"update:visible":function(t){e.visiblePass=t}}},[n("input",{staticClass:"hide",attrs:{name:"zzzz"}}),n("input",{staticClass:"hide",attrs:{name:"zzzz",type:"password"}}),n("div",[n("label",[e._v("旧密码:")]),n("el-input",{attrs:{name:"zzzz","show-password":"",required:"required",autocomplete:"off"},model:{value:e.oldPassword,callback:function(t){e.oldPassword=t},expression:"oldPassword"}})],1),n("div",[n("label",[e._v("新密码:")]),n("el-input",{attrs:{name:"zzzz","show-password":"",required:"required",autocomplete:"off"},model:{value:e.newPassword,callback:function(t){e.newPassword=t},expression:"newPassword"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visiblePass=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.savePass}},[e._v("确 定")])],1)])],1)},i=[],r=n("0e8f"),l=n("af80"),s={name:"Department",components:{UserTree:l["a"]},data:function(){return{activeNames:["1","2","3","4"],currentPerson:this.$store.state.loginUser,ableEdit:!1,visiblePass:!1,oldPassword:"",newPassword:""}},created:function(){},watch:{},methods:{chooseUser:function(e){this.currentPerson=e},save:function(){var e=this;Object(r["c"])(this.currentPerson).then((function(t){t.result&&(e.ableEdit=!1),e.$message(t.message)}))},savePass:function(){var e=this;Object(r["b"])(this.currentPerson.id,this.newPassword,this.oldPassword).then((function(t){t.result&&(e.visiblePass=!1),e.$message(t.message)}))},handleChange:function(e){}}},o=s,c=(n("19ed"),n("2877")),u=Object(c["a"])(o,a,i,!1,null,"325b98c7",null);t["default"]=u.exports},f4cf:function(e,t,n){},fa40:function(e,t,n){},fac7:function(e,t,n){"use strict";var a=n("26f7"),i=n.n(a);i.a},fbbc:function(e,t,n){"use strict";var a=n("651b"),i=n.n(a);i.a}}]);