const tl_rtc_app_module_setting_list = { props: { socket: { type: Object, default: null }, isMobile: { type: Boolean, default: false }, settingList: { type: Array, default: [] }, leftModule: { type: String, default: '' }, rightModule: { type: String, default: '' } }, computed: { propsSocket(){ return this.socket; }, propsIsMobile(){ return this.isMobile; }, propsSettingList(){ return this.settingList; }, propsLeftModule() { return this.leftModule; }, propsRightModule() { return this.rightModule; }, }, data : function(){ return { searchKey: '', activeSettingType: '' } }, watch: { leftModule: function (val) { }, rightModule: function (val) { } }, methods: { /** * 事件触发,向上传递 * @param {*} event */ leftModuleChange: function(event){ this.$emit('left-module-change', event) }, /** * 事件触发,向上传递 * @param {*} event */ rightModuleChange: function(event){ this.$emit('right-module-change', event) }, /** * 打开设置项 * @param {*} item * @returns */ openSettingItem: function(item){ if(item.type == 'logout'){ item.handler && item.handler.call(this) return } item.handler && item.handler.call(this) // 通知兄弟子模块,数据变更 this.emitSubModuleEvent({ event: 'sub-module-setting-content-data-change', data: { settingType : item.type } }) // 打开右侧模块 - 处理移动端情况 this.emitSubModuleEvent({ event: 'sub-module-core-change-module-show', data: { showRightModule: true, } }) this.activeSettingType = item.type }, /** * 打开快速操作面板 */ openQuickOperPanel: function(){ this.emitSubModuleEvent({ event: 'component-popup-add-quick-oper-panel', }) }, /** * 搜索设置 */ searchSetting: function({ callback }){ this.popWarningMsg('暂未开放') callback && callback() } }, mounted() { }, created(){ // 监听搜索快捷设置项目 window.subModule.$on('sub-module-setting-search', this.searchSetting) }, template: `