| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1957"],{"9iZK":function(e,t,n){"use strict";var r=n("Tu5q");n.n(r).a},Tu5q:function(e,t,n){},fFGZ:function(e,t,n){"use strict";n.r(t);var r={data:function(){return{showPage:!1,form:{greeting:"",unline_reply:""}}},components:{Tinymce:n("glbJ").a},created:function(){this.$store.dispatch("GetUserInfo"),this.getData()},destroyed:function(){},methods:{getData:function(){var e=this;$http.post("plugin.yun-chat.frontend.employee-settings.get-settings",{},"loading").then(function(t){1===t.result?t.data&&t.data.reply&&(e.form=t.data.reply):e.$message.error(t.msg),e.showPage=!0}).catch(function(e){console.error(e)})},submitForm:function(){var e=this,t={greeting:this.form.greeting,unline_reply:this.form.unline_reply};$http.post("plugin.yun-chat.frontend.employee-settings.save-reply",t).then(function(t){1===t.result?e.$message.success(t.msg):e.$message.error(t.msg)}).catch(function(e){console.error(e)})}}},i=(n("9iZK"),n("KHd+")),o=Object(i.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"right"},[n("div",{staticClass:"box"},[n("div",[n("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{label:"欢迎语消息",prop:"greeting"}},[e.showPage?[n("tinymce",{attrs:{height:200},model:{value:e.form.greeting,callback:function(t){e.$set(e.form,"greeting",t)},expression:"form.greeting"}})]:e._e()],2),e._v(" "),n("el-form-item",{attrs:{label:"不在线时回复消息",prop:"unline_reply"}},[e.showPage?[n("tinymce",{attrs:{height:200},model:{value:e.form.unline_reply,callback:function(t){e.$set(e.form,"unline_reply",t)},expression:"form.unline_reply"}})]:e._e()],2)],1),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("el-button",{staticStyle:{width:"200px"},attrs:{type:"primary"},on:{click:function(t){e.submitForm()}}},[e._v("保存")])],1)],1)])])},[],!1,null,"521f8d19",null);o.options.__file="reply.vue";t.default=o.exports}}]);
|