chunk-7efcfdf0.0797da91.js 4.3 KB

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