canyin-project/ybcy/views/channel/index/static/js/chunk-2d0c434e.a6851ec4.js
2024-11-01 16:07:54 +08:00

1 line
3.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c434e"],{"3a9c":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),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:"喇叭名称",prop:"name",required:!0}},[r("el-input",{attrs:{placeholder:"请输入喇叭名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"云喇叭ID",prop:"sn",required:!0}},[r("el-input",{attrs:{placeholder:"请输入云音响的ID"},model:{value:e.form.sn,callback:function(t){e.$set(e.form,"sn",t)},expression:"form.sn"}}),r("div",{staticClass:"yb_margin lh16"},[e._v("喇叭后面的SN码")])],1),r("el-form-item",{attrs:{label:"代理商token",prop:"token",required:!0}},[r("el-input",{attrs:{placeholder:"请输入代理商token"},model:{value:e.form.token,callback:function(t){e.$set(e.form,"token",t)},expression:"form.token"}}),r("div",{staticClass:"yb_margin lh16"},[e._v("代理商的 token, 预先通过安全渠道分配,使得代理商对该 SPEAKERID 有操作权限")])],1),r("el-form-item",{attrs:{label:"播放语速"}},[r("el-input",{attrs:{placeholder:"请输入播放语速"},model:{value:e.form.speed,callback:function(t){e.$set(e.form,"speed",t)},expression:"form.speed"}}),r("div",{staticClass:"yb_margin lh16"},[e._v("语速速度范围为0-100默认为65")])],1),r("el-form-item",{attrs:{label:"版本"}},[r("el-select",{attrs:{placeholder:"请选择版本"},model:{value:e.form.version,callback:function(t){e.$set(e.form,"version",t)},expression:"form.version"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],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)])},n=[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("云喇叭设置")])])])}],l=(r("96cf"),r("1da1")),s=r("294d"),o={created:function(){this.edit()},data:function(){return{form:{name:"",sn:"",token:"",speed:"65",version:"1"},options:[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"}],collapseName:""}},methods:{edit:function(){var e=this;return Object(l["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["E"])({ident:"voice"});case 2:r=t.sent,a=r.data,e.form2=e.form,e.form=Object.assign(e.form2,a);case 6:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(l["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(l["a"])(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return e.form.ident="voice",e.form.identName="云喇叭设置",t.next=5,Object(s["V"])(e.form);case 5:a=t.sent,n=a.msg,e.$baseMessage(n,"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)})))()}}},i=o,c=r("2877"),u=Object(c["a"])(i,a,n,!1,null,null,null);t["default"]=u.exports}}]);