81.a1413feaf06afafa546b.js 1.6 KB

1
  1. webpackJsonp([81],{d2P3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a("XmAh");var o=a("il3B"),i=a("vLgD"),n=a("EUN7");a("7+uW").a.use(o.a);var l={data:function(){return{title:"设置用户管理范围",employee_list:[],git_id:this.$route.query.employee_id}},components:{EmployeeSelectorCell:n.a},methods:{showLoading:function(){this.$toast.loading({loadingType:"spinner",message:"正在处理"})},set_power_range:function(){var e=this;e.showLoading(),e.employee_list.id?o.a.confirm({title:"提示",message:"列表为空,你确定要删除吗?"}).then(function(){e.sub_data()}).catch(function(){}):e.sub_data()},sub_data:function(){var e=this,t=[];e.employee_list.forEach(function(e){t.push(e.id)});var a={employee_id:e.git_id,id:t};Object(i.a)("post","/api/employee/scope",a).then(function(t){t.data.code,e.$toast.clear(),e.$toast(t.data.msg)}).catch(function(t){e.$toast.clear()})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("van-nav-bar",{attrs:{title:e.title,"left-text":"返回","left-arrow":""},on:{"click-left":e.$route_back}}),e._v(" "),a("div",{staticClass:"body_com has_header"},[a("van-cell-group",[a("EmployeeSelectorCell",{attrs:{title:"选择管理范围",max:0},model:{value:e.employee_list,callback:function(t){e.employee_list=t},expression:"employee_list"}})],1),e._v(" "),a("div",{staticStyle:{padding:"0.32rem"}},[a("van-button",{attrs:{type:"info",block:""},on:{click:e.set_power_range}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(l,s,!1,function(e){a("fR2z")},"data-v-9bf5a274",null);t.default=c.exports},fR2z:function(e,t){}});