(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fa54b78"],{"17ea":function(e,n,t){},"1db2":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"warinfomanage"},[t("el-table",{staticStyle:{width:"100%"},attrs:{border:"",stripe:"",data:e.$store.state.user.team_list}},[t("el-table-column",{attrs:{label:"序号",type:"index",width:"60",index:function(e){return e+1}}}),e._v(" "),t("el-table-column",{attrs:{label:"政委昵称",prop:"service"}}),e._v(" "),t("el-table-column",{attrs:{label:"所管战区",prop:"war_name","label-class-name":"label"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[e._v(e._s(n.row.war_name+" 战区"))])]}}])}),e._v(" "),t("el-table-column",{attrs:{label:"操作","label-class-name":"label"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"mini"},on:{click:function(t){return e.handleEdit(n.row)}}},[e._v("修改政委昵称")]),e._v(" "),t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.handleAdd(n.row)}}},[e._v("添加代理公司")])]}}])})],1)],1)},l=[],r=t("b775");function i(e){return Object(r["a"])({method:"get",url:"/war/update_name",params:e})}function o(e){return Object(r["a"])({method:"get",url:"/war/add_phone",params:e})}var c={name:"WarInfoManage",methods:{handleEdit:function(e){var n=this;this.$prompt("请输入新的昵称","修改政委昵称",{inputValue:e.service,confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.+$/,inputErrorMessage:"昵称不能为空"}).then((function(t){var a=t.value;n.loading=n.$loading(),i({war_name:e.war_name,name:a}).then((function(t){200===t.code&&(e.service=a,n.$message.success("修改成功"))})).finally((function(){n.loading.close()}))})).catch((function(){n.$message.info("取消输入")}))},handleAdd:function(e){var n=this;this.$prompt("请输入新增代理公司手机号","添加代理公司",{inputPlaceholder:"请输入代理公司手机号",confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^1[0123456789]\d{9}$/,inputErrorMessage:"手机号格式不正确"}).then((function(t){var a=t.value;n.loading=n.$loading(),o({war_name:e.war_name,phone:a}).then((function(e){200===e.code&&n.$message.success("添加成功")})).finally((function(){n.loading.close()}))})).catch((function(){n.$message.info("取消输入")}))}}},s=c,u=(t("5fdc"),t("2877")),d=Object(u["a"])(s,a,l,!1,null,null,null);n["default"]=d.exports},"5fdc":function(e,n,t){"use strict";var a=t("17ea"),l=t.n(a);l.a}}]);