You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
(window["webpackJsonp_TIS_PLATFORM"]=window["webpackJsonp_TIS_PLATFORM"]||[]).push([["SettingSys"],{1148:function(t,e,s){"use strict";var i=s("a691"),a=s("1d80");t.exports="".repeat||function(t){var e=String(a(this)),s="",n=i(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(s+=e);return s}},"408a":function(t,e,s){var i=s("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=i(t))throw TypeError("Incorrect invocation");return+t}},"70b0":function(t,e,s){"use strict";s("9f14")},"78cd":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));s("99af"),s("4de4"),s("d81d"),s("b0c0"),s("b680");var i=s("2909"),a=s("4ec3"),n={data:function(){return{isVisible:!0,menuIndex:1,radio:"1",radio_theme:localStorage.getItem("TIS_DESIGN_THEME")||"default",radio_mode:localStorage.getItem("SYS_MODE")||"0",radio_message_hint:"无",radio_message_precise:"模糊",switchMessageHint:!0,DNDmodel:!1,startTime:"",endTime:"",value1:0,value2:0,value3:0,value4:0,value5:50,value6:0,tags:[{name:"标签一",type:"",hidden:!1},{name:"标签二",type:"success",hidden:!1},{name:"标签三",type:"info",hidden:!1},{name:"标签四",type:"warning",hidden:!1},{name:"标签五",type:"danger",hidden:!1}]}},filters:{byteToMB:function(t){return(t/1024/1024).toFixed(2)}},computed:{msgForm:function(){return this.$tis.getNotificationConfig()},configComponents:function(){return[{name:"显示设置",selected:!1},{name:"消息设置",selected:!0},{name:"监控模块",selected:!1},{name:"语音设置",selected:!1}].concat(Object(i["a"])(this.$tis.getAllComponents().filter((function(t){return t.type&&"config"===t.type})).map((function(t){return t.selected=!1,t}))))},runningApps:function(){var t=this.$tis.getApps();return t.map((function(t){var e=!!t.instance,s=t.opened,i="未加载";return e&&(i=s?"运行":"隐藏"),{name:t.name,id:t.id,loadTime:t.loadTime,loaded:e,opened:s,status:i}}))},memory:function(){return window.performance.memory},isShowMode:function(){return"manager"===this.$tis.bus.userInfo.username}},created:function(){this.radio_theme=document.documentElement.getAttribute("data-theme")||"",console.log(localStorage.getItem("SYS_MODE"))},destroy:function(){console.log(122),this.radio_mode="0"},methods:{onClose:function(){this.$tis.closeWidgetSettingPanel(),console.log(this.msgForm),this.$tis.setNotificationConfig(this.msgForm)},onMenuSelect:function(t){this.menuIndex=t;var e=this.configComponents[t];e.component&&this.$tis._loadComponent(e.component).then((function(){return e.loaded=!0})).catch((function(){return e.loaded=!0}))},onTabClose:function(t){this.tags[t].hidden=!0},addTab:function(){this.tags.push({name:"标签"+this.tags.length,hidden:!1})},setMode:function(){var t=this,e=parseInt(this.radio_mode);this.$tis.initOMFrameView(e),Object(a["w"])({mode:e}).then((function(e){localStorage.setItem("SYS_MODE",t.radio_mode)}))}},watch:{radio_theme:function(){this.$tis.switchFrameTheme(this.radio_theme)}}}},"9f14":function(t,e,s){},b680:function(t,e,s){"use strict";var i=s("23e7"),a=s("a691"),n=s("408a"),o=s("1148"),l=s("d039"),r=1..toFixed,c=Math.floor,d=function(t,e,s){return 0===e?s:e%2===1?d(t,e-1,s*t):d(t*t,e/2,s)},m=function(t){var e=0,s=t;while(s>=4096)e+=12,s/=4096;while(s>=2)e+=1,s/=2;return e},u=r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){r.call({})}));i({target:"Number",proto:!0,forced:u},{toFixed:function(t){var e,s,i,l,r=n(this),u=a(t),v=[0,0,0,0,0,0],p="",f="0",_=function(t,e){var s=-1,i=e;while(++s<6)i+=t*v[s],v[s]=i%1e7,i=c(i/1e7)},g=function(t){var e=6,s=0;while(--e>=0)s+=v[e],v[e]=c(s/t),s=s%t*1e7},h=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==v[t]){var s=String(v[t]);e=""===e?s:e+o.call("0",7-s.length)+s}return e};if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(r<0&&(p="-",r=-r),r>1e-21)if(e=m(r*d(2,69,1))-69,s=e<0?r*d(2,-e,1):r/d(2,e,1),s*=4503599627370496,e=52-e,e>0){_(0,s),i=u;while(i>=7)_(1e7,0),i-=7;_(d(10,i,1),0),i=e-1;while(i>=23)g(1<<23),i-=23;g(1<<i),_(1,1),g(2),f=h()}else _(0,s),_(1<<-e,0),f=h()+o.call("0",u);return u>0?(l=f.length,f=p+(l<=u?"0."+o.call("0",u-l)+f:f.slice(0,l-u)+"."+f.slice(l-u))):f=p+f,f}})},d121:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.isVisible?s("div",{staticClass:"SettingSys"},[s("div",{staticClass:"title"},[t._v("系统设置")]),s("span",{staticClass:"close",on:{click:t.onClose}}),s("div",{staticClass:"right-container"},t._l(t.configComponents,(function(e,i){return t.menuIndex==i?s("div",{key:i,staticClass:"news-setting"},[s("div",{staticClass:"titlePanle"},[s("span",{staticClass:"bg-gray"}),s("span",{staticClass:"bg"}),s("span",{staticClass:"text"},[t._v(t._s(e.configTitle||e.name))])]),0==t.menuIndex?s("div",{staticClass:"newSetingContent"},[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("主题")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.radio_theme,callback:function(e){t.radio_theme=e},expression:"radio_theme"}},[s("tis-radio",{attrs:{label:"default"}},[t._v("默认主题")]),s("tis-radio",{attrs:{label:"blue"}},[t._v("蓝色主题")]),s("tis-radio",{attrs:{label:"kt"}},[t._v("空突主题")])],1)],1)]),t.isShowMode?s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("模式")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{on:{change:t.setMode},model:{value:t.radio_mode,callback:function(e){t.radio_mode=e},expression:"radio_mode"}},[s("tis-radio",{attrs:{label:"0"}},[t._v("低级模式")]),s("tis-radio",{attrs:{label:"1"}},[t._v("高级模式")])],1)],1)]):t._e()]):t._e(),1==t.menuIndex?s("div",{staticClass:"newSetingContent"},[s("tis-form",{attrs:{model:t.msgForm}},[s("tis-form-item",[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("消息语音提示")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.msgForm.voiceHint,callback:function(e){t.$set(t.msgForm,"voiceHint",e)},expression:"msgForm.voiceHint"}},[s("tis-radio",{attrs:{label:"无"}}),s("tis-radio",{attrs:{label:"提示音"}}),s("tis-radio",{attrs:{label:"语音播报"}})],1)],1)])]),s("tis-form-item",[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("消息精准度")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.msgForm.precise,callback:function(e){t.$set(t.msgForm,"precise",e)},expression:"msgForm.precise"}},[s("tis-radio",{attrs:{label:"模糊"}}),s("tis-radio",{attrs:{label:"精确"}})],1)],1)])]),s("tis-form-item",[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("右侧消息提醒")]),s("div",{staticClass:"right-content"},[s("div",{staticClass:"switch-div",on:{click:function(e){t.msgForm.rightHint=!t.msgForm.rightHint}}},[s("span",{class:{switch_open:t.switchMessageHint,switch_close_defult:!t.switchMessageHint}}),s("span",{class:{switch_open_defult:t.switchMessageHint,switch_close:!t.switchMessageHint}})])])])]),s("div",{staticClass:"small-text-div"},[t._v(" 当前席位处于在线状态时,常规消息通知都会从右侧弹出,重要消息保持强提示方式 ")]),s("span",{staticClass:"news-line"}),s("tis-form-item",[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("勿扰模式")]),s("div",{staticClass:"right-content"},[s("div",{staticClass:"switch-div",on:{click:function(e){t.msgForm.disturb=!t.msgForm.disturb}}},[s("span",{class:{switch_open:t.msgForm.disturb,switch_close_defult:!t.msgForm.disturb}}),s("span",{class:{switch_open_defult:t.msgForm.disturb,switch_close:!t.msgForm.disturb}})])])])]),s("tis-form-item",[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("勿扰时间段")]),s("div",{staticClass:"right-content"},[s("tis-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:t.msgForm.startTime,callback:function(e){t.$set(t.msgForm,"startTime",e)},expression:"msgForm.startTime"}}),s("span",{staticClass:"zhi"},[t._v("至")]),s("tis-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"08:30",step:"00:15",end:"18:30",minTime:t.msgForm.startTime}},model:{value:t.msgForm.endTime,callback:function(e){t.$set(t.msgForm,"endTime",e)},expression:"msgForm.endTime"}})],1)])])],1)],1):t._e(),2==t.menuIndex?s("div",{staticClass:"monitoring-setting"},[s("div",{staticClass:"performance-analysis"},[s("ul",[s("li",{staticClass:"item"},[s("span",[t._v("当前活跃内存")]),s("span",[t._v(t._s(t._f("byteToMB")(t.memory.usedJSHeapSize))+" MB")])]),s("li",{staticClass:"item"},[s("span",[t._v("已分配内存")]),s("span",[t._v(t._s(t._f("byteToMB")(t.memory.totalJSHeapSize))+" MB")])]),s("li",{staticClass:"item"},[s("span",[t._v("可用最大内存")]),s("span",[t._v(t._s(t._f("byteToMB")(t.memory.jsHeapSizeLimit))+" MB")])])])]),s("div",{class:["card-list","group-card-list"],style:{display:"none"}},[s("tis-card",{staticClass:"box-card",style:{width:"48%"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[t._v("列表")])]),t._l(4,(function(e){return s("div",{key:e,staticClass:"text item"},[t._v(" "+t._s("列表内容 "+e)+" ")])}))],2),s("tis-card",{staticClass:"box-card",style:{width:"48%"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[t._v("列表")])]),t._l(4,(function(e){return s("div",{key:e,staticClass:"text item"},[t._v(" "+t._s("列表内容 "+e)+" ")])}))],2)],1),s("div",{staticClass:"card-list"},[s("tis-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[t._v("应用列表")])]),t._l(t.runningApps,(function(e){return s("div",{key:e.name,staticClass:"text item"},[t._v(" "+t._s(e.name)+" (状态: "+t._s(e.status)+t._s(e.loadTime&&" 加载耗时: "+e.loadTime+"ms")+") ")])}))],2)],1)]):t._e(),3==t.menuIndex?s("div",{staticClass:"voice-setting"},[s("div",{staticClass:"newSetingContent"},[s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("默认模式")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}},[s("tis-radio",{attrs:{label:0}},[t._v("实时流模式")]),s("tis-radio",{attrs:{label:1}},[t._v("命令词模式")])],1)],1)]),s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("人声")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}},[s("tis-radio",{attrs:{label:0}},[t._v("男声")]),s("tis-radio",{attrs:{label:1}},[t._v("女声")])],1)],1)]),s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("语速")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}},[s("tis-radio",{attrs:{label:0}},[t._v("标准")]),s("tis-radio",{attrs:{label:1}},[t._v("快")])],1)],1)]),s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("语调")]),s("div",{staticClass:"right-content"},[s("tis-radio-group",{model:{value:t.value4,callback:function(e){t.value4=e},expression:"value4"}},[s("tis-radio",{attrs:{label:0}},[t._v("标准")]),s("tis-radio",{attrs:{label:1}},[t._v("低")])],1)],1)]),s("div",{staticClass:"rowItem"},[s("span",{staticClass:"title-label"},[t._v("音量")]),s("div",{staticClass:"right-content"},[s("tis-slider",{model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}})],1)])]),t._m(0,!0),s("div",{staticClass:"content content6"},[s("tis-tabs",{model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}},[s("tis-tab-pane",{attrs:{label:"组件菜单",name:"0"}},[s("tis-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.addTab}},[t._v(" + ")]),t._l(t.tags,(function(e,i){return s("tis-tag",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!tag.hidden"}],key:e.name,attrs:{closable:"",type:e.type},on:{close:function(e){return t.onTabClose(i)}}},[t._v(" "+t._s(e.name)+" ")])}))],2),s("tis-tab-pane",{attrs:{label:"分屏操作",name:"1"}},[t._v(" 分屏操作 ")]),s("tis-tab-pane",{attrs:{label:"其他",name:"2"}},[t._v(" 其他 ")])],1)],1)]):t._e(),t.menuIndex!=i||[0,1,2].includes(t.menuIndex)?t._e():s("div",{staticClass:"newSetingContent"},[e.loaded?s(e.component,{tag:"component"}):s("h1",[t._v(t._s(e.component))])],1)]):t._e()})),0),s("div",{staticClass:"left-container"},[s("tis-row",{staticClass:"tac-menu"},[s("tis-col",[s("tis-menu",{staticClass:"el-menu-vertical",attrs:{"default-active":"1","text-color":"#666","active-text-color":"#ffffff"},on:{select:t.onMenuSelect}},t._l(t.configComponents,(function(e,i){return s("tis-menu-item",{key:i,attrs:{index:i+""}},[t.menuIndex==i?s("span",{staticClass:"icon-news"}):t._e(),s("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])])})),1)],1)],1)],1)]):t._e()},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"titlePanle"},[s("span",{staticClass:"bg-gray"}),s("span",{staticClass:"bg"}),s("span",{staticClass:"text"},[t._v("快 捷 指 令")])])}],n=s("78cd"),o={mixins:[n["a"]]},l=o,r=(s("70b0"),s("2877")),c=Object(r["a"])(l,i,a,!1,null,"909af1b4",null);e["default"]=c.exports}}]);
|