1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/groupCompany/contact/editInfo"],{"197a":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("dc92"),i=e("76dd"),a=(e("d47e"),{components:{formItem:function(){Promise.all([e.e("common/vendor"),e.e("components/form/formitem")]).then(function(){return resolve(e("d7bf"))}.bind(null,e)).catch(e.oe)}},data:function(){return{id:"",info:{},listForm:[]}},onLoad:function(t){this.id=t.id,this.getInfo()},methods:{getInfo:function(){var t=this;(0,i.netConcatDetailInfo)({id:this.id}).then((function(n){n=n.data,t.info=n,t.getForm()}))},getForm:function(){var t=this;(0,o.netSetForm)({type:"contacts"}).then((function(n){n=n.data.data,n.forEach((function(n){n.value=t.info[n.id]})),t.listForm=n}))},changeData:function(t,n,e){var o=this,i=this.listForm;i.forEach((function(t,i){t.id==e.id&&(t.value=n,o.$set(o.listForm,i,t))}))},toSave:function(){var n=this.checkCommonForm(this.listForm);n&&(n=Object.assign({},n,{id:this.id}),(0,i.netEditContactInfo)(n).then((function(n){t.showToast({title:n.msg,icon:"none",duration:2e3}),setTimeout((function(){t.navigateBack({delta:1})}),2e3)})))}}});n.default=a}).call(this,e("543d")["default"])},"8e80":function(t,n,e){"use strict";e.r(n);var o=e("f64a"),i=e("c2a0");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("d55b");var c=e("f0c5"),f=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"fc12f556",null,!1,o["a"],void 0);n["default"]=f.exports},"8ff2":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("8886");o(e("66fd"));var i=o(e("8e80"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},a8b7:function(t,n,e){},c2a0:function(t,n,e){"use strict";e.r(n);var o=e("197a"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},d55b:function(t,n,e){"use strict";var o=e("a8b7"),i=e.n(o);i.a},f64a:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},i=[]}},[["8ff2","common/runtime","common/vendor"]]]); |