1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-47d9a70c"],{"17fd":function(t,e,n){"use strict";var a=n("7e1f");n.n(a).a},"7e1f":function(t,e,n){},fe5d:function(t,e,n){"use strict";n.r(e);var a=n("a34a"),r=n.n(a),o=n("2f62"),i=n("a069"),c=n("8593");function s(t,e,n,a,r,o,i){try{var c=t[o](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(a,r)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={components:{WangEditor:i.a},data:function(){return{loadingExist:!1,currentTab:"privacy",headerList:[{label:"隐私协议",value:"privacy"},{label:"用户协议",value:"user"},{label:"注销协议",value:"cancel"},{label:"供应商入住协议",value:"supplier"}],id:0,list:0,formValidate:{content:""},content:"",spinShow:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.e)("admin/layout",["isMobile","menuCollapse"])),created:function(){this.changeTab(this.currentTab)},methods:{save:function(){var t=this;this.formValidate.content=this.content,Object(c.T)(this.formValidate,this.currentTab).then(function(){var e,n=(e=r.a.mark((function e(n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function i(t){s(o,a,r,i,c,"next",t)}function c(t){s(o,a,r,i,c,"throw",t)}i(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getEditorContent:function(t){this.content=t},changeTab:function(t){var e=this;Object(c.t)(t).then((function(t){var n=t.data.content?t.data.content:" ";e.formValidate.content=n,e.content=n}))}}},f=(n("17fd"),n("2877")),p=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"agreemant"},[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Tabs",{on:{"on-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,e){return n("TabPane",{key:e,attrs:{label:t.label,name:t.value.toString()}})})),1)],1)]),n("Row",{staticClass:"mb10 content"},[n("Col",{attrs:{span:"16"}},[n("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.formValidate.content},on:{editorContent:t.getEditorContent}})],1),n("Col",{staticStyle:{width:"33%"},attrs:{span:"6"}},[n("div",{staticClass:"ifam"},[n("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})])])],1),n("Card",{staticClass:"fixed-card",style:{left:t.menuCollapse?t.isMobile?"0":"80px":"200px"},attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row row-center"},[n("Button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.save}},[t._v("保存")])],1)])],1)}),[],!1,null,"1fc97725",null);e.default=p.exports}}]);
|