@ -13,33 +13,48 @@
< a class = "site-navbar__brand-lg" href = "javascript:;" > { { pageLanguage . XjSysManage } } < / a >
< a class = "site-navbar__brand-lg" href = "javascript:;" > { { pageLanguage . XjSysManage } } < / a >
< a class = "site-navbar__brand-mini" href = "javascript:;" > { { pageLanguage . abbreviation } } < / a >
< a class = "site-navbar__brand-mini" href = "javascript:;" > { { pageLanguage . abbreviation } } < / a >
< / h1 >
< / h1 >
< / div >
< / div >
< div class = "site-navbar__body clearfix" >
< div class = "site-navbar__body clearfix" >
< el -menu
< el -menu
class = "site-navbar__menu site-navbar__menu--right"
class = "site-navbar__menu site-navbar__menu--right"
mode = "horizontal" >
mode = "horizontal" >
< el -menu -item class = "site-navbar__avatar" index = "1" >
< el -menu -item v-if ="isAuth('review:show')" class="site-navbar__avatar" index="1" >
< span class = "el-dropdown-link" >
< router -link : to = "{path:'purchaseorder-procurementReview',query:{'': ''}}" >
工具待审核
< / r o u t e r - l i n k >
< el -badge isAuth :value ="pending.pendingReview" class = "item" style = "margin-top: 10px" / >
< / span >
< / e l - m e n u - i t e m >
< el -menu -item class = "site-navbar__avatar" index = "2" >
< span style = " color: #909399;" @click ="helpFileList()" >
< span style = " color: #909399;" @click ="helpFileList()" >
帮助
帮助
<!-- < icon -svg name = "help" style = "width: 25px;height: 25px;margin-top: 5px" > < / i c o n - s v g > - - >
<!-- < icon -svg name = "help" style = "width: 25px;height: 25px;margin-top: 5px" > < / i c o n - s v g > - - >
< / span >
< / span >
< / e l - m e n u - i t e m >
< / e l - m e n u - i t e m >
< el -submenu index = "2" >
< el -submenu index = "3 " >
< template slot = "title" > { { pageLanguage . setting } } < / template >
< template slot = "title" > { { pageLanguage . setting } } < / template >
< el -submenu index = "2-1" >
< el -submenu index = "2-1" >
< template slot = "title" > { { pageLanguage . languageSetting } } < / template >
< template slot = "title" > { { pageLanguage . languageSetting } } < / template >
< el -menu -item index = "2-1-1" :key ="index" :value ="item.languageCode" v-for ="(item,index) in languageList " @click.native="switch_the_language(item.languageCode)" > {{ item.languageName }} < / el -menu -item >
< el -menu -item index = "2-1-1" :key ="index" :value ="item.languageCode" v -for = " ( item , index ) in languageList "
@ click . native = "switch_the_language(item.languageCode)" > { { item . languageName } }
< / e l - m e n u - i t e m >
< / e l - s u b m e n u >
< / e l - s u b m e n u >
< el -submenu index = "2-2" >
< el -submenu index = "2-2" >
< template slot = "title" > { { pageLanguage . userSetting } } < / template >
< template slot = "title" > { { pageLanguage . userSetting } } < / template >
< el -menu -item index = "2-2-1" @click.native ="updatePasswordHandle()" > { { pageLanguage . updatePassword } } < / e l - m e n u - i t e m >
< el -menu -item index = "2-2-2" @click.native ="updateLanguageHandle()" > { { pageLanguage . updateDefaultLanguage } } < / e l - m e n u - i t e m >
< el -menu -item index = "2-2-1" @click.native ="updatePasswordHandle()" > { { pageLanguage . updatePassword } }
< / e l - m e n u - i t e m >
< el -menu -item index = "2-2-2" @click.native ="updateLanguageHandle()" > { { pageLanguage . updateDefaultLanguage } }
< / e l - m e n u - i t e m >
< / e l - s u b m e n u >
< / e l - s u b m e n u >
< el -menu -item index = "2-3" @ click = "$router.push({ name: 'theme' })" > { { pageLanguage . cssSetting } } < / e l - m e n u - i t e m >
< el -menu -item index = "2-3" @ click = "$router.push({ name: 'theme' })" > { { pageLanguage . cssSetting } }
< / e l - m e n u - i t e m >
< el -menu -item index = "2-4" @click ="printList()" > {{ pageLanguage.printSetting }} < / el -menu -item >
< el -menu -item index = "2-4" @click ="printList()" > {{ pageLanguage.printSetting }} < / el -menu -item >
< / e l - s u b m e n u >
< / e l - s u b m e n u >
< el -menu -item class = "site-navbar__avatar" index = "3 " >
< el -menu -item class = "site-navbar__avatar" index = "4 " >
< el -dropdown :show-timeout ="0" placement = "bottom" >
< el -dropdown :show-timeout ="0" placement = "bottom" >
< span class = "el-dropdown-link" >
< span class = "el-dropdown-link" >
< img src = "~@/assets/img/avatar.png" :alt ="userName" > { { userName } }
< img src = "~@/assets/img/avatar.png" :alt ="userName" > { { userName } }
@ -74,6 +89,12 @@
saveButtonList ,
saveButtonList ,
searchSysLanguage ,
searchSysLanguage ,
} from "@/api/sysLanguage.js"
} from "@/api/sysLanguage.js"
import {
getReviewToolCount
} from '@/api/purchaseorder/procurementReview.js'
export default {
export default {
data ( ) {
data ( ) {
return {
return {
@ -167,9 +188,26 @@
tableId : "systemInformation"
tableId : "systemInformation"
}
}
] ,
] ,
pending : {
pendingReview : 0 ,
pendingSum : 0 ,
} ,
queryToolReview : {
site : this . $store . state . user . site ,
userId : this . $store . state . user . name ,
strUserId : this . $store . state . user . id ,
} ,
toolReviewTimer : null ,
}
}
} ,
} ,
watch : {
pending : {
deep : true ,
handler : function ( newV , oldV ) {
this . pending . pendingSum = this . pending . pendingReview
}
} ,
} ,
components : {
components : {
UpdatePassword ,
UpdatePassword ,
UpdateLanguage ,
UpdateLanguage ,
@ -206,8 +244,22 @@
} ,
} ,
activated ( ) {
activated ( ) {
} ,
mounted ( ) {
this . toolReviewTimer = setInterval ( this . getReviewToolCount , 1000 * 60 ) ;
} ,
beforeDestroy ( ) {
clearInterval ( this . toolReviewTimer ) ;
} ,
} ,
methods : {
methods : {
/ / 获 取 待 审 核 的 是 工 具 申 请 单 数 量
getReviewToolCount ( ) {
getReviewToolCount ( this . queryToolReview ) . then ( ( { data } ) => {
if ( data . code == 0 ) {
this . pending . pendingReview = data . data
}
} )
} ,
/ / 打 印 机 列 表
/ / 打 印 机 列 表
printList ( ) {
printList ( ) {
this . printListVisible = true ;
this . printListVisible = true ;
@ -296,6 +348,7 @@
created ( ) {
created ( ) {
this . getLanguageList ( )
this . getLanguageList ( )
this . getFunctionButtonList ( )
this . getFunctionButtonList ( )
this . getReviewToolCount ( )
}
}
}
}
< / script >
< / script >
@ -304,6 +357,7 @@
. icon - svg {
. icon - svg {
width : 2 em ;
width : 2 em ;
}
}
. el - menu -- collapse . el - menu . el - submenu , . el - menu -- popup , . el - menu - item {
. el - menu -- collapse . el - menu . el - submenu , . el - menu -- popup , . el - menu - item {
min - width : 50 px ! important ;
min - width : 50 px ! important ;
}
}
@ -313,6 +367,7 @@
color : # fff ;
color : # fff ;
margin - left : - 45 px ;
margin - left : - 45 px ;
}
}
. el - menu -- horizontal > . el - menu - item {
. el - menu -- horizontal > . el - menu - item {
color : # 3 b4249 ;
color : # 3 b4249 ;
}
}