text: webpackJsonp([2],{UgFs:function(t,e){},WEi9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"taskTable",components:{Pagination:a("1onU").a},data:function(){return{taskData:[{taskName:"长沙-洪涝灾害评估",type:"洪涝灾害评估",createTime:"2017-03-11",createId:"12345",creator:"熊畅",status:"已取消"},{taskName:"湘潭-道路损毁提取",type:"道路损毁提取",createTime:"2017-03-11",createId:"12345",creator:"熊畅",status:"待执行"},{taskName:"株洲-交通流量分配",type:"交通流量分配",createTime:"2017-03-11",createId:"12345",creator:"熊畅",status:"进行中"},{taskName:"株洲-道路损毁提取",type:"道路损毁提取",createTime:"2017-03-11",createId:"12345",creator:"熊畅",status:"已完成"}],list:null,total:0,listLoading:!0,listQuery:{page:1,limit:10},taskTable:{id:"",taskName:"",type:"",createTime:"",createId:"",status:"",operate:""},downloadLoading:!1,strSearch:""}},created:function(){this.getList()},methods:{getList:function(){this.listLoading=!0,this.list=this.tableData,this.total=100},handleShow:function(t){"道路损毁提取"===t.type?this.$router.push({path:"/roadMap"}):this.$message({showClose:!0,message:t,type:"success"})},handleEdit:function(t){this.$message({showClose:!0,message:t,type:"success"})},handleDelete:function(t,e){console.log(t,e),this.$message({showClose:!0,message:e,type:"success"})},filterTaskType:function(t,e){return e.type===t},filterStatus:function(t,e){return e.status===t}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{loading:t.downloadLoading,type:"primary",icon:"el-icon-download"},on:{click:function(t){}}},[t._v("\n      "+t._s(t.$t("table.import"))+"\n    ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{loading:t.downloadLoading,type:"primary",icon:"el-icon-download"},on:{click:function(t){}}},[t._v("\n      "+t._s(t.$t("table.export"))+"\n    ")]),t._v(" "),a("el-input",{staticStyle:{width:"200px","margin-left":"550px"},attrs:{placeholder:"任务名称",clearable:""},model:{value:t.strSearch,callback:function(e){t.strSearch=e},expression:"strSearch"}}),t._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){}}},[t._v("\n      "+t._s(t.$t("table.search"))+"\n    ")])],1),t._v(" "),a("div",{staticClass:"filter-container"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.taskData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:t.$t("taskTable.id"),type:"index",width:"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskName",label:t.$t("taskTable.taskName"),width:"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type",label:t.$t("taskTable.type"),width:"140",filters:[{text:"洪涝灾害评估",value:"洪涝灾害评估"},{text:"道路损毁提取",value:"道路损毁提取"},{text:"交通流量分配",value:"交通流量分配"}],"filter-method":t.filterTaskType,"filter-placement":"bottom-end"}}),t._v(" "),a("el-table-column",{attrs:{prop:"createId",label:t.$t("taskTable.creator"),width:"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"createTime",label:t.$t("taskTable.createTime"),width:"140",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:t.$t("taskTable.status"),width:"140",filters:[{text:"已取消",value:"已取消"},{text:"待执行",value:"待执行"},{text:"进行中",value:"进行中"},{text:"已完成",value:"已完成"}],"filter-method":t.filterStatus,"filter-placement":"bottom-end"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:"已取消"===e.row.status?"danger":"待执行"===e.row.status?"success":"进行中"===e.row.status?"primary":"info","disable-transitions":"true"}},[t._v(t._s(e.row.status)+"\n          ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("rainFallTable.operate")},scopedSlots:t._u([{key:"default",fn:function(e){return["待执行"===e.row.status?a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){return t.handleEdit(e.row)}}},[t._v("编辑任务")]):t._e(),t._v(" "),"待执行"===e.row.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("取消任务")]):t._e(),t._v(" "),"待执行"!=e.row.status?a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.handleShow(e.row)}}},[t._v("查看任务")]):t._e()]}}])})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)])},staticRenderFns:[]};var l=a("C7Lr")(s,i,!1,function(t){a("UgFs")},"data-v-ef94da52",null);e.default=l.exports}});
  //# sourceMappingURL=2.d0fb0bbc601cf086f2b4.js.map