"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[9703,2047,3888],{82047:function(t,e,r){r.r(e);var n=r(14048),a=r(30388),u=r(25026),s=r(69492),c=r(23772),o=(r(62010),r(96557)),i=function(){function t(e){var r=e.uPage,n=void 0===r?0:r,a=e.uCount,s=void 0===a?5:a,o=e.lPage,i=void 0===o?0:o,p=e.lCount,l=void 0===p?10:p,f=e.sPage,h=void 0===f?0:f,v=e.sCount,d=void 0===v?10:v;(0,u.A)(this,t),(0,c.A)(this,"name",null),(0,c.A)(this,"start",null),(0,c.A)(this,"end",null),(0,c.A)(this,"keyword",null),(0,c.A)(this,"relationId",null),0===n&&(this.uPage=n),s&&(this.uCount=s),0===i&&(this.lPage=i),l&&(this.lCount=l),0===h&&(this.sPage=h),d&&(this.sCount=d)}return(0,s.A)(t,[{key:"increaseUpage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.uPage+=1;case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"increaseLpage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.lPage+=1;case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"increaseSpage",value:function(){this.sPage+=1}},{key:"init",value:function(){this.lPage=0,this.uPage=0,this.sPage=0}},{key:"setBaseInfo",value:function(t,e,r){this.name=t,this.start=e,this.end=r}},{key:"setBaseInfo2",value:function(t,e,r){this.relationId=t,this.start=e,this.end=r}},{key:"setKeyword",value:function(t){this.keyword=t}},{key:"addTestLog",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){var e;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,o.get)("cms/test/info");case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLoggedUsers",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r,a,u;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.count,a=e.page,t.next=3,(0,o.get)("cms/log/users",{count:r||this.uCount,page:a||this.uPage});case 3:return u=t.sent,t.abrupt("return",u);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getLogs",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r,a,u,s,c,i,p,l;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.count,a=e.page,u=e.name,s=e.start,c=e.end,i=e.next,p=void 0!==i&&i,p||this.setBaseInfo(u,s,c),0===a&&(this.lPage=0),t.next=5,(0,o["default"])({url:"cms/log",params:{count:r||this.lCount,page:a||this.lPage,name:u||this.name,start:s||this.start,end:c||this.end},handleError:!0});case 5:return l=t.sent,t.abrupt("return",l);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"searchLogs",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r,a,u,s,c,i,p,l,f;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.count,a=e.page,u=e.keyword,s=e.name,c=e.start,i=e.end,p=e.next,l=void 0!==p&&p,l||(this.setBaseInfo(s,c,i),this.setKeyword(u)),0===a&&(this.sPage=0),t.prev=3,t.next=6,(0,o.get)("cms/log/search",{count:r||this.sCount,page:a||this.sPage,keyword:u||this.keyword,name:s||this.name,start:c||this.start,end:i||this.end});case 6:return f=t.sent,t.abrupt("return",f);case 10:t.prev=10,t.t0=t["catch"](3),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[3,10]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"moreUserPage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.increaseUpage();case 2:return t.abrupt("return",this.getLoggedUsers({}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"moreLogPage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.increaseLpage();case 2:return t.abrupt("return",this.getLogs({next:!0}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"moreSearchPage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.increaseSpage(),t.abrupt("return",this.searchLogs({next:!0}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"relationLogs",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r,a,u,s,c,i,p,l,f;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.count,a=e.page,u=e.keyword,s=e.relationId,c=e.start,i=e.end,p=e.next,l=void 0!==p&&p,l||(this.setBaseInfo2(s,c,i),this.setKeyword(u)),0===a&&(this.sPage=0),t.prev=3,t.next=6,(0,o.get)("cms/log/relation_log/".concat(s),{count:r||this.sCount,page:a||this.sPage,keyword:u||this.keyword,relationId:s||this.relationId,start:c||this.start,end:i||this.end});case 6:return f=t.sent,t.abrupt("return",f);case 10:t.prev=10,t.t0=t["catch"](3),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[3,10]])})));function e(e){return t.apply(this,arguments)}return e}()}])}();e["default"]=new i({})},3888:function(t,e,r){r.r(e);var n=r(14048),a=r(30388),u=r(25026),s=r(69492),c=r(96557),o=function(){function t(){(0,u.A)(this,t)}return(0,s.A)(t,[{key:"createProjectInfo",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c["default"])({method:"post",url:"v1/projectInfo",data:e}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectInfo",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.get)("v1/projectInfo/".concat(e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectInfoDetail",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.get)("v1/projectInfo/detail/".concat(e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"editProjectInfo",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"deleteProjectInfo",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){var r;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c._delete)("v1/projectInfo/".concat(e));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectInfoList",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c["default"])({method:"get",url:"v1/projectInfo/list",params:e,handleError:!0}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectInfoPage",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c["default"])({method:"get",url:"v1/projectInfo/page",params:e,handleError:!0}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectStatistics",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c["default"])({method:"get",url:"v1/projectInfo/hourStatistics",params:e,handleError:!0}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getProjectStatisticsUnconfirm",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e){return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c["default"])({method:"get",url:"v1/projectInfo/all/hourStatistics",params:e,handleError:!0}));case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"editProjectSetUp",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/projectSetUp/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"editProjectInfoStart",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/projectStart/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"editProjectInfoComplete",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/projectComplete/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"editProjectInfoTermination",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/projectTermination/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"editProjectHours",value:function(){var t=(0,a.A)((0,n.A)().mark((function t(e,r){var a;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.put)("v1/projectInfo/projectHours/".concat(e),r);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"getProjectBoard",value:function(t){return(0,c["default"])({method:"post",url:"v1/projectInfo/board",data:t,handleError:!0})}},{key:"editProjectProBusDate",value:function(t,e){var r=(0,c.put)("v1/projectInfo/projectProBusDate/".concat(t),e);return r}},{key:"getProjectBoardByMonth",value:function(t){return(0,c["default"])({method:"post",url:"v1/projectInfo/board/month",data:t,handleError:!0})}}])}();e["default"]=new o},69703:function(t,e,r){r.r(e),r.d(e,{default:function(){return h}});var n=r(20641),a={class:"container"};function u(t,e,r,u,s,c){var o=(0,n.g2)("el-table-column"),i=(0,n.g2)("el-table"),p=(0,n.gN)("loading");return(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",a,[(0,n.bF)(i,{size:"small","show-summary":"",data:u.projectStatistics,stripe:"",style:{width:"100%"}},{default:(0,n.k6)((function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(u.projectStatisticsCloums,(function(t){return(0,n.uX)(),(0,n.Wv)(o,{key:t.prop,prop:t.prop,label:t.label},null,8,["prop","label"])})),128))]})),_:1},8,["data"])])),[[p,t.loading]])}var s=r(14048),c=r(30388),o=(r(82047),r(3888)),i=r(50953),p={props:{editId:{type:String,default:null}},setup:function(t,e){var r=(0,i.KR)(null),a=(0,i.KR)({}),u=(0,i.KR)([]),p=(0,i.KR)(!1),l=(0,i.KR)(""),f=(0,i.KR)([{label:"姓名",prop:"create_user_name"},{label:"计划工时",prop:"estimated_hours"},{label:"实际工时",prop:"actual_hours"},{label:"实际工时百分比",prop:"actual_hours_percent"}]);(0,n.sV)((function(){h(),d(),v()}));var h=function(){var e=(0,c.A)((0,s.A)().mark((function e(){return(0,s.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editId&&(l.value=t.editId);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=(0,c.A)((0,s.A)().mark((function e(){return(0,s.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.editId){e.next=4;break}return e.next=3,o["default"].getProjectInfoDetail(t.editId);case 3:a.value=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,c.A)((0,s.A)().mark((function e(){var r,n;return(0,s.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u.value=[],r={project_Id:t.editId},e.next=4,o["default"].getProjectStatisticsUnconfirm(r);case 4:n=e.sent,u.value=n;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){r.value.resetFields()},A=function(){e.emit("editClose")};return{back:A,projectStatisticsCloums:f,projectStatistics:u,finished:p,form:r,resetForm:w,project:a}}},l=r(66262);const f=(0,l.A)(p,[["render",u],["__scopeId","data-v-4cff7ac8"]]);var h=f}}]);
|