chunk-2bdc.ced7bfcb.js 2.6 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2bdc"],{"3v/j":function(t,e,s){},UxYp:function(t,e,s){"use strict";var a=s("3v/j");s.n(a).a},yk9r:function(t,e,s){"use strict";s.r(e);var a=s("14Xm"),i=s.n(a),n=s("D3Ub"),c=s.n(n),r={data:function(){return{is_body:!1,cid:""}},methods:{submitBaseSet:function(){},setTagSetting:function(){},getBasicSet:function(){var t=this;return c()(i.a.mark(function e(){var s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$http.pc_post("plugin/ShopEsignV2/getSet",{cid:t.cid});case 3:if(1==(s=e.sent).result){e.next=6;break}return e.abrupt("return",t.$message.error(s.msg));case 6:t.is_body=s.data.is_body,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}},e,t,[[0,9]])}))()},changeToBody:function(){var t=this;return c()(i.a.mark(function e(){var s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t.cid),e.prev=1,e.next=4,$http.pc_post("plugin/ShopEsignV2/storeSet",{form:{cid:t.cid,status:1}});case 4:if(1==(s=e.sent).result){e.next=7;break}return e.abrupt("return",t.$message.error(s.msg));case 7:t.is_body=s.data.is_body,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:case"end":return e.stop()}},e,t,[[1,10]])}))()}},created:function(){this.cid=localStorage.getItem("cid"),this.getBasicSet()},components:{dealerContractSide:s("rOYc").a}},o=(s("UxYp"),s("KHd+")),d=Object(o.a)(r,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"all"},[s("dealer-contract-side",{attrs:{defaultActive:"basicSet"}}),t._v(" "),s("div",{attrs:{id:"app"}},[s("div",{staticClass:"container"},[t._m(0),t._v(" "),s("div",{staticClass:"setting-list"},[s("div",{staticClass:"setting-item"},[s("div",{staticClass:"setting-text"},[t._v("是否为主体")]),t._v(" "),t.is_body?s("div",{staticClass:"setting-switch",staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v("\n 是\n ")]):s("div",{staticClass:"setting-switch",staticStyle:{"font-size":"18px","font-weight":"bold"}},[s("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v("否")]),t._v(" "),s("el-button",{staticStyle:{color:"#ffffff","background-color":"#29ba9c","margin-left":"24px"},on:{click:t.changeToBody}},[t._v("更改为主体")])],1)])])])])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header"},[e("div",{staticClass:"header-title"},[e("span"),e("b",[this._v("基础设置")])])])}],!1,null,"4b903897",null);d.options.__file="basic_set.vue";e.default=d.exports}}]);