Bladeren bron

统计优化

shish 1 jaar geleden
bovenliggende
commit
292df5818f
1 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 6 4
      hdApp/src/admin/stat/cgItem.vue

+ 6 - 4
hdApp/src/admin/stat/cgItem.vue

@@ -11,7 +11,7 @@
 
 					<button class="admin-button-com middle blue" style="position: absolute;right:320upx;top:-8upx;" @click="selGhs()">{{ ghsName==''?'选供货商':ghsName }}</button>
 
-			<button class="admin-button-com middle blue" style="position: absolute;right:130upx;top:-8upx;" @click="showGhsName()">显供货商名</button>
+			<button class="admin-button-com middle" :class="[showGhsParam == 1 ? 'blue' : 'default']" style="position: absolute;right:130upx;top:-8upx;" @click="showGhsName()">显供货商名</button>
 			
 			<button class="admin-button-com middle blue" style="position: absolute;right:20upx;top:-8upx;" @click="resetSearch()">重置</button>
 
@@ -91,9 +91,11 @@ export default {
 			this.$util.pageTo({ url: "/pagesPurchase/selectGhs"})
 		},
 		showGhsName(){
-			this.showGhsParam = 1
-			this.resetList()
-			this.getMyStatList()
+			this.showGhsParam =  this.showGhsParam == 0 ? 1 : 0
+			if(Number(this.ghsId)>0){
+				this.resetList()
+				this.getMyStatList()
+			}
 		},
 		resetSearch(){
 			this.ghsId = 0