crm_second_opening_mini/pagesA/circulate/edit.js

1 line
2.5 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/circulate/edit"],{"275f":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("0c59"),a=e("dc92"),o={components:{selectStaff:function(){Promise.all([e.e("common/vendor"),e.e("components/selectStaff")]).then(function(){return resolve(e("16c8"))}.bind(null,e)).catch(e.oe)}},data:function(){return{noClick:!0,BASE_IMG_URL:i.BASE_IMG_URL,id:"",type:"",arr:[],preArr:["只读","读写"],preIndex:0}},onLoad:function(t){this.id=t.id,this.getList()},methods:{changePre:function(t,n){var e=this.arr[n];e.is_edit=t.detail.value,this.$set(this.arr,n,e)},toSelect:function(){this.$refs.staffChild.init()},sureStaff:function(t){if(t.id){var n=!1;if(this.arr.forEach((function(e){e.id==t.id&&(n=!0)})),!n){var e={id:t.id,img:t.img,name:t.name,post:t.post,roles:2,is_edit:0};this.arr.push(e)}}},delFollow:function(t){this.arr.splice(t,1)},getList:function(){var t=this;(0,a.netTeamList)({id:this.id}).then((function(n){t.arr=n.data}))},sureSub:function(){var n=[];this.arr.forEach((function(t){2==t.roles&&n.push({id:t.id,is_edit:t.is_edit})}));var e={id:this.id,staff:n};(0,a.netTeamEdit)(e).then((function(n){t.showToast({title:n.msg,icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),2e3)}))},noChange:function(){t.showToast({title:"不允许修改负责人",icon:"none"})}}};n.default=o}).call(this,e("543d")["default"])},4526:function(t,n,e){"use strict";var i=e("523d"),a=e.n(i);a.a},"523d":function(t,n,e){},"7fc9":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var a=i(e("b5f6"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"928e":function(t,n,e){"use strict";e.r(n);var i=e("275f"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},b59d:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},b5f6:function(t,n,e){"use strict";e.r(n);var i=e("b59d"),a=e("928e");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("4526");var r=e("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"2090a855",null,!1,i["a"],void 0);n["default"]=c.exports}},[["7fc9","common/runtime","common/vendor"]]]);