saaf-common
Advanced tools
Comparing version 1.0.37 to 1.0.38
{ | ||
"name": "saaf-common", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: zhengxiaowen | ||
* @Last Modified time: 2019-11-15 09:25:44 | ||
* @Last Modified time: 2019-11-27 18:21:39 | ||
*/ | ||
@@ -12,7 +12,17 @@ | ||
import {storeTool} from '../index' | ||
import { Spin, Message } from 'view-design' | ||
import systemHook from '@/config/systemHook' | ||
export default class tabsService{ | ||
static openTab(item){ | ||
let num = systemHook && systemHook.tabsLength ? systemHook.tabsLength : 10 | ||
if(!store.state.tabs.tabList[item[store.state.tabs.tabKey]]){ | ||
if(Object.keys(store.state.tabs.tabList).length >= num){ | ||
Message.error(`页签不能超过${num}个`) | ||
return | ||
} | ||
} | ||
store.commit("ADD_TAB",item) | ||
store.commit("ACTIVE_TAB",item) | ||
$('#tabs-tag-box').find('.gm-scroll-view').scrollLeft($('#tabs-tag-'+item.menuId).position().left) | ||
this.goto(item) | ||
@@ -19,0 +29,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
975926
8824