chunk-6eea.1de12eed.js 6.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6eea"],{"3KmU":function(t,e,a){"use strict";var n=a("DGmr");a.n(n).a},DGmr:function(t,e,a){},E2G6:function(t,e,a){"use strict";a.r(e);var n={data:function(){return{tableData:[],current_page:1,done:!1,total:1,per_page:1,loading:!0}},mounted:function(){this.getData()},watch:{taskDialogVisible:function(t,e){t||this.closeDialogMethod()}},computed:{taskDialogVisible:{get:function(){return this.$store.getters.taskDialogVisible},set:function(){console.log("1")}}},methods:{statusDecoration:function(t){if("6"==t||"-1"==t)return!0},closeDialogMethod:function(){this.$store.commit("hideTask"),this.getData()},showTaskCard:function(t){this.$store.commit("taskCard",{id:t.id})},selectColor:function(t){return 0==t?"#E11414":1==t?"#F9C752":2==t?"#5FE2EE":3==t?"#3EBBEF":4==t?"#868AF6":5==t?"#2EEAC8":6==t?"#78D921":void 0},searchTapMethod:function(t){this.init(),this.done=t.done,this.getData(t)},init:function(){this.current_page=1,this.total=1,this.per_page=1,this.tableData=[]},search:function(t){this.current_page=t,this.getData()},getData:function(t){var e=this,a={keyword:t?t.key:"",page:this.current_page};this.done&&(a.show_complete=1),$http.pc_post("plugin/project-manager/work/create",a).then(function(t){t.result?(console.log(t),e.loading=!1,e.current_page=t.data.current_page,e.total=t.data.total,e.per_page=t.data.per_page,e.tableData=t.data.data):(e.loading=!1,e.$message({type:"error",message:t.msg}))},function(t){e.$message({type:"error",message:t.msg})})}},components:{workMainTop:a("NFp+").a}},o=(a("l9qJ"),a("KHd+")),s=Object(o.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"delegated"},[a("workMainTop",{attrs:{showSearch:!0,activeIndex:2},on:{searchTap:t.searchTapMethod}}),t._v(" "),a("div",{staticClass:"tdTop"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"row-style":{height:"64px"},"header-row-style":{height:"74px",fontSize:"16px"}},on:{"row-click":t.showTaskCard}},[a("el-table-column",{attrs:{prop:"id",label:"编号",align:"center",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status_body.name",label:"状态",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"statusBox",style:{background:e.row.status_body.color}},[a("i",{staticClass:"iconfont",class:e.row.status_body.icon,style:{color:t.selectColor(e.row.status_body.id)}}),t._v("\n "+t._s(e.row.status_body.name)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"标题",width:"280",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:t.statusDecoration(e.row.status)?"decoration":""},[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"has_one_staff.name",label:"负责人",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_time",label:"开始时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"deadline_time",label:"截止时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"has_one_project.name",label:"所属项目",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"label",label:"标签",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.label.length>0?a("div",{staticClass:"lableBox"},t._l(e.row.label,function(e,n){return a("div",{key:n,staticClass:"labox"},[t._v("\n "+t._s(e.name)+"\n ")])})):t._e()]}}])})],1)],1),t._v(" "),a("div",{staticClass:"e_pagination"},[a("el-pagination",{attrs:{layout:"prev, pager, next,jumper",total:t.total,"page-size":t.per_page,"current-page":t.current_page,background:""},on:{"current-change":t.search}})],1)],1)},[],!1,null,"394dae29",null);s.options.__file="delegated.vue";e.default=s.exports},"NFp+":function(t,e,a){"use strict";var n={props:["showSearch","activeIndex"],data:function(){return{settingShow:!1,keywork:"",done:!1}},methods:{switchChange:function(){console.log(this.done,"dddddddd"),this.$emit("searchTap",{key:this.keywork,done:this.done})},getSearch:function(){this.$emit("searchTap",{key:this.keywork,done:this.done})},toType:function(){this.$router.push(this.fun.getUrl("worktileWorktaskType"))},tapActive:function(t){"2"==t?this.$router.push(this.fun.getUrl("worktileWorkDelegated")):"1"==t?this.$router.push(this.fun.getUrl("worktileWork")):"3"==t&&this.$router.push(this.fun.getUrl("worktileWorkFollowing"))},handleSelect:function(t,e){console.log(t,e,"handleSelect")},settingTap:function(){this.settingShow=!this.settingShow}}},o=(a("3KmU"),a("KHd+")),s=Object(o.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workMainTopA"},[a("div",{staticClass:"workMainTop"},[a("div",{staticClass:"menu_demo"},[a("div",{staticClass:"demoli",class:"1"==t.activeIndex?"scolor":"mcolor",on:{click:function(e){t.tapActive("1")}}},[t._v("\n 我负责的\n "),"1"==t.activeIndex?a("div",{staticClass:"line"}):t._e()]),t._v(" "),a("div",{staticClass:"demoli",class:"2"==t.activeIndex?"scolor":"mcolor",on:{click:function(e){t.tapActive("2")}}},[t._v("\n 我创建的\n "),"2"==t.activeIndex?a("div",{staticClass:"line"}):t._e()]),t._v(" "),a("div",{staticClass:"demoli",class:"3"==t.activeIndex?"scolor":"mcolor",on:{click:function(e){t.tapActive("3")}}},[t._v("\n 我参与的\n "),"3"==t.activeIndex?a("div",{staticClass:"line"}):t._e()])]),t._v(" "),a("div",{staticClass:"settingBtn"})]),t._v(" "),t.showSearch?a("div",{staticClass:"searchBox"},[1!=t.activeIndex?a("div",{staticClass:"switchBox"},[a("el-switch",{attrs:{"active-color":"#348fe4","inactive-color":"#dde4f6"},on:{change:t.switchChange},model:{value:t.done,callback:function(e){t.done=e},expression:"done"}}),t._v(" "),a("span",[t._v("已完成")])],1):t._e(),t._v(" "),a("div",{staticClass:"searchInp"},[a("el-input",{attrs:{placeholder:"搜索任务、任务ID(任务ID前加#)","prefix-icon":"iconfont icon-sousuo1"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getSearch()}},model:{value:t.keywork,callback:function(e){t.keywork=e},expression:"keywork"}})],1),t._v(" "),a("div",{staticClass:"searchBtn",on:{click:function(e){t.getSearch()}}},[t._v("搜索")])]):t._e()])},[],!1,null,"3d93ea18",null);s.options.__file="workMainTop.vue";e.a=s.exports},NW7u:function(t,e,a){},l9qJ:function(t,e,a){"use strict";var n=a("NW7u");a.n(n).a}}]);