(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7efcfdf0"],{"731a":function(t,e,a){},a10a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"team-container"},[a("div",{staticClass:"member-search"},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm}},[a("el-form-item",{attrs:{prop:"search_name"}},[a("el-input",{staticClass:"search-input",attrs:{placeholder:"团队姓名","prefix-icon":"el-icon-search"},model:{value:t.searchForm.search_name,callback:function(e){t.$set(t.searchForm,"search_name",e)},expression:"searchForm.search_name"}})],1),t._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.searchFind}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{data:t.tableData,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"id",label:"团队编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"团队名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"introduction",label:"团队简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toInfo(e.row)}}},[t._v("查看简介")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"当前状态",formatter:t.scopeTag}}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.toExamine(e.row)}}},[t._v("\n "+t._s(1===e.row.status?"禁用":"启用")+"\n ")])],t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.toEdit(e.row)}}},[t._v("\n 修改\n ")])]}}])})],1),t._v(" "),a("el-pagination",{attrs:{background:"","page-size":t.searchParams.page_size,"current-page":t.searchParams.page_index,layout:"prev, pager, next",total:t.pageCount},on:{"update:currentPage":function(e){return t.$set(t.searchParams,"page_index",e)},"update:current-page":function(e){return t.$set(t.searchParams,"page_index",e)},"current-change":t.changePage}}),t._v(" "),a("el-dialog",{attrs:{title:"团队简介",visible:t.dialogShow,width:"1000px","before-close":t.closedislog,"custom-class":"descdislog"},on:{"update:visible":function(e){t.dialogShow=e}}},[a("div",{staticClass:"seeInfoDia",domProps:{innerHTML:t._s(t.teamDetail)}})])],1)},r=[],s=(a("7f7f"),a("b775"));function o(t){return Object(s["a"])({url:"/teams/getteamlist",method:"get",params:t})}function i(t){return Object(s["a"])({url:"/teams/auditteam",method:"post",data:t})}var c={name:"Dashboard",data:function(){return{searchForm:{search_name:""},tableData:[],searchParams:{search_name:"",page_size:20,page_index:1},dialogShow:!1,teamDetail:"",pageCount:0}},created:function(){this.create()},methods:{create:function(){var t=this,e=this;o(e.searchParams).then((function(a){var n=a.list,r=a.count;200===a.error_code&&(e.tableData=n,t.pageCount=r)}))},toInfo:function(t){this.teamDetail=t.introduction,this.opendislog()},closedislog:function(){this.dialogShow=!1},opendislog:function(){this.dialogShow=!0},changePage:function(t){this.searchParams.page_index=t,this.create()},searchFind:function(){var t=this.searchForm.search_name;this.searchParams.search_name=t,this.searchParams.page_index=1,this.create()},toExamine:function(t){var e=this,a=t.id,n=t.status;i({id:a,type:1===n?3:1}).then((function(t){e.$message({message:t.msg,type:"success"}),e.create()}))},toEdit:function(t){var e=t.id,a=t.name,n=t.introduction;this.$router.push({path:"/team/add",query:{id:e,introduction:n,name:a}})},scopeTag:function(t){var e=this.$createElement,a=t.status;return 1===a?e("el-tag",{attrs:{type:"success","close-transition":!0}},["正常"]):e("el-tag",{attrs:{type:"danger","close-transition":!0}},["禁用"])}}},l=c,u=(a("c93a"),a("2877")),m=Object(u["a"])(l,n,r,!1,null,null,null);e["default"]=m.exports},c93a:function(t,e,a){"use strict";var n=a("731a"),r=a.n(n);r.a}}]);