(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d210837"],{b7e1:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{},[r("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),e._m(1),r("div",{staticClass:"mar_t20 flex-bet flex-y-top"},[r("div",{staticClass:"flex-g-1"},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"180px"}},[r("el-form-item",{attrs:{label:"APP ID",required:!0,prop:"appId"}},[r("el-input",{attrs:{placeholder:"请输入appId"},model:{value:e.form.appId,callback:function(t){e.$set(e.form,"appId",t)},expression:"form.appId"}})],1),r("el-form-item",{attrs:{label:"API KEY",required:!0,prop:"apiKey"}},[r("el-input",{attrs:{placeholder:"请输入apiKey"},model:{value:e.form.apiKey,callback:function(t){e.$set(e.form,"apiKey",t)},expression:"form.apiKey"}})],1),r("el-form-item",{attrs:{label:"SECRET KEY",required:!0,prop:"secretKey"}},[r("el-input",{attrs:{placeholder:"请输入secretKey"},model:{value:e.form.secretKey,callback:function(t){e.$set(e.form,"secretKey",t)},expression:"form.secretKey"}})],1)],1)],1)])]),r("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("语音合成设置")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ba_f8 pad_20"},[r("div",{staticClass:"lh25 msgtext fon_12"},[e._v(" 温馨提示:请到百度AI开发平台上创建语音合成应用;"),r("br"),e._v(" 申请地址;"),r("a",{staticClass:"color_9",attrs:{href:"https://ai.baidu.com/?track=cp:aipinzhuan|pf:pc|pp:AIpingtai|pu:title|ci:|kw:10005792",target:"_blank"}},[e._v("https://ai.baidu.com/?track=cp:aipinzhuan|pf:pc|pp:AIpingtai|pu:title|ci:|kw:10005792")]),r("br")])])}],n=(r("96cf"),r("1da1")),s=r("294d"),c={created:function(){this.bus.$emit("loading",!0),this.init()},components:{},data:function(){return{form:{appId:"",apiKey:"",secretKey:""},id:""}},methods:{init:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["o"])({ident:"voiceSet"});case 2:r=t.sent,a=r.data,e.form2=e.form,e.form=Object.assign(e.form2,a),e.bus.$emit("loading",!1);case 7:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["form"].validate(function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(r){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return e.form.ident="voiceSet",e.form.identName="语音合成",t.next=5,Object(s["S"])(e.form);case 5:a=t.sent,i=a.msg,e.$baseMessage(i,"success"),e.$router.go(-1),t.next=12;break;case 11:return t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}},o=c,p=r("2877"),u=Object(p["a"])(o,a,i,!1,null,null,null);t["default"]=u.exports}}]);