37.f4d6cce17110cb7fdc36.js 1.9 KB

1
  1. webpackJsonp([37],{SMRe:function(e,t){},d2P3:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=o("bOdI"),i=o.n(a),c=(o("XmAh"),o("il3B")),s=o("vLgD"),l=o("EUN7");o("7+uW").a.use(c.a);var r=(n={data:function(){return{title:"设置用户管理范围",employee_list:[],git_id:this.$route.query.employee_id}},mounted:function(){},components:{EmployeeSelectorCell:l.a},methods:{showLoading:function(){this.$toast.loading({loadingType:"spinner",message:"正在处理"})},set_power_range:function(){var e=this;e.showLoading(),e.employee_list.id?c.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 o={employee_id:e.git_id,id:t};Object(s.a)({url:"/api/employee/scope",method:"post",data:o}).then(function(t){t.data.code,e.$toast.clear(),e.$toast(t.data.msg)}).catch(function(t){e.$toast.clear(),e.$toast(t.data.msg)})}},created:function(){}},i()(n,"mounted",function(){}),i()(n,"beforeCreate",function(){}),i()(n,"beforeMount",function(){}),i()(n,"beforeUpdate",function(){}),i()(n,"updated",function(){}),i()(n,"beforeDestroy",function(){}),i()(n,"destroyed",function(){}),n),d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("van-nav-bar",{attrs:{title:e.title,"left-text":"返回","left-arrow":""},on:{"click-left":e.$route_back}}),e._v(" "),o("div",{staticClass:"body_com has_header"},[o("van-cell-group",[o("EmployeeSelectorCell",{attrs:{title:"选择管理范围",max:0},model:{value:e.employee_list,callback:function(t){e.employee_list=t},expression:"employee_list"}})],1),e._v(" "),o("div",{staticStyle:{padding:"0.32rem"}},[o("van-button",{attrs:{type:"info",block:""},on:{click:e.set_power_range}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var u=o("VU/8")(r,d,!1,function(e){o("SMRe")},"data-v-e8a5d07e",null);t.default=u.exports}});