mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-19 22:58:13 +00:00
1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b30c10fe"],{"6b59":function(t,e,n){},ddde:function(t,e,n){"use strict";var i=n("6b59");n.n(i).a},ec81:function(t,e,n){"use strict";n.r(e);var i=n("a069"),a=n("c24f");i={components:{WangEditor:i.a},data:function(){return{ueConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/admin/UEditor/",serverUrl:""},agreement:{content:"",id:0},spinShow:!1}},created:function(){this.memberAgreement()},methods:{getEditorContent:function(t){this.agreement.content=t},memberAgreement:function(){var t=this;this.spinShow=!0,Object(a.a)().then((function(e){t.spinShow=!1;e=e.data;var n=(e.title,e.content);e.status,e=e.id;t.agreement.content=n,t.agreement.id=e||0})).catch((function(e){t.$Message.error(e),t.spinShow=!1}))},memberAgreementSave:function(){var t=this;this.$Spin.show(),Object(a.b)(this.agreement).then((function(e){t.$Spin.hide(),t.$Message.success("保存成功"),t.memberAgreement()})).catch((function(e){t.$Spin.hide(),t.$Message.error(e)}))}}},n("ddde"),n=n("2877"),n=Object(n.a)(i,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("div",{staticClass:"i-layout-page-header"},[e("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{attrs:{"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"协议内容:"}},[e("WangEditor",{attrs:{content:t.agreement.content},on:{editorContent:t.getEditorContent}})],1),e("FormItem",[e("Button",{attrs:{type:"primary"},on:{click:t.memberAgreementSave}},[t._v("保存")])],1)],1),t.spinShow?e("Spin",{attrs:{fix:""}}):t._e()],1)],1)}),[],!1,null,"df4ff7b0",null);e.default=n.exports}}]); |