Sfoglia il codice sorgente

招聘管理显示待审核数量

corn 6 mesi fa
parent
commit
1ca62db7bd
2 ha cambiato i file con 34 aggiunte e 0 eliminazioni
  1. 26 0
      src/views/main-navbar.vue
  2. 8 0
      src/views/main-sidebar-sub-menu.vue

+ 26 - 0
src/views/main-navbar.vue

@@ -80,6 +80,7 @@
 				yhQuanxian: false,
 				jlQuanxian: false,
 				qyQuanxian: false,
+				ppQuanxian: false,
 				jzxmQuanxian: false,
 				entryName:'',
 			}
@@ -449,6 +450,24 @@
 
 				})
 			},
+			// 获取招聘待审核数据
+			dataSelectPP() {
+				this.$http({
+					url: this.$http.adornUrl('postPush/getAdminPostPushList'),
+					method: 'get',
+					params: this.$http.adornParams({
+						'page': 1,
+						'limit': 10,
+						'status': 1
+					})
+				}).then(({
+					data
+				}) => {
+					if (data.data) {
+						this.$cookie.set('numberPP', data.data.total)
+					}
+				})
+			},
 			// 获取企业待审核数据
 			dataSelectPy() {
 				this.$http({
@@ -552,6 +571,7 @@
 			this.messageSelect2()
 			this.dataSelect()
 			this.dataSelectPy()
+			this.dataSelectPP()
 			this.dataSelectYh()
 			// this.dataSelectJzts()
 			// this.dataSelectDzh()
@@ -572,6 +592,9 @@
 				if (arrPermissions[i] == 'locality:shenhe') {
 					this.jzxmQuanxian = true
 				}
+				if (arrPermissions[i] == 'recruitListS:update') {
+					this.ppQuanxian = true
+				}
 
 			}
 
@@ -609,6 +632,9 @@
 			this.chatNumYh = setInterval(() => {
 				this.dataSelectYh()
 			}, 6000)
+			this.chatNumPP = setInterval(() => {
+				this.dataSelectPP()
+			}, 6000)
 			// this.chatNumJzts = setInterval(() => {
 			// 	this.dataSelectJzts()
 			// }, 6000)

+ 8 - 0
src/views/main-sidebar-sub-menu.vue

@@ -30,6 +30,10 @@
 			<icon-svg :name="menu.icon || ''" class="site-sidebar__menu-icon"></icon-svg>
 			<span>{{ menu.name }}</span>
 		</el-badge>
+		<el-badge class="item" v-else-if="menu.menuId==118&&chatNumPP!=0&&isAuth('recruitListS:update')" :value="chatNumPP">
+			<icon-svg :name="menu.icon || ''" class="site-sidebar__menu-icon"></icon-svg>
+			<span>{{ menu.name }}</span>
+		</el-badge>
 		
 		<span v-else>
 			<icon-svg :name="menu.icon || ''" class="site-sidebar__menu-icon"></icon-svg>
@@ -51,6 +55,7 @@
 				chatNumYh:0,
 				chatNumJzts:0,
 				chatNumDzh:0,
+				chatNumPP:0,
 			}
 		},
 		props: {
@@ -93,6 +98,9 @@
 				if(this.$cookie.get('numberQy')){
 					this.chatNumQy = this.$cookie.get('numberQy')
 				}
+				if(this.$cookie.get('numberPP')){
+					this.chatNumPP = this.$cookie.get('numberPP')
+				}
 				if(this.$cookie.get('numberYh')){
 					this.chatNumYh = this.$cookie.get('numberYh')
 				}