fix: BUG修改

This commit is contained in:
kun 2024-02-29 20:32:08 +08:00
parent 3b3bffe50f
commit a332db7a4b
2 changed files with 10 additions and 3 deletions

View File

@ -182,7 +182,7 @@ export default {
this.searchsn = this.$store.state.projectSn this.searchsn = this.$store.state.projectSn
} else { } else {
var backArr = this.$store.state.mapBackArr var backArr = this.$store.state.mapBackArr
console.log(Number(this.$store.state.userInfo.accountType),'778899')
switch (Number(this.$store.state.userInfo.accountType)) { switch (Number(this.$store.state.userInfo.accountType)) {
case 2: case 2:
this.searchsn = this.$store.state.userInfo.headquartersSn this.searchsn = this.$store.state.userInfo.headquartersSn
@ -197,10 +197,14 @@ export default {
this.searchsn = this.$store.state.userInfo.sn this.searchsn = this.$store.state.userInfo.sn
this.numIndex = 4 this.numIndex = 4
break break
case 7: case 5:
this.searchsn = this.$store.state.userInfo.sn this.searchsn = this.$store.state.userInfo.sn
this.numIndex = 5 this.numIndex = 5
break break
case 7:
this.searchsn = this.$store.state.userInfo.sn
this.numIndex = 7
break
} }
if (this.videoType == 1 && backArr.length > 0) { if (this.videoType == 1 && backArr.length > 0) {
this.searchsn = backArr[backArr.length - 1].sn this.searchsn = backArr[backArr.length - 1].sn
@ -210,7 +214,7 @@ export default {
} }
} }
} }
console.log(this.searchsn,'113355')
// getComapnyVideoListApi({ // getComapnyVideoListApi({
// sn: this.searchsn // sn: this.searchsn
// }).then((res) => { // }).then((res) => {

View File

@ -118,6 +118,9 @@ export default {
case 4: case 4:
this.searchsn = this.$store.state.userInfo.sn; this.searchsn = this.$store.state.userInfo.sn;
break; break;
case 5:
this.searchsn = this.$store.state.userInfo.sn;
break;
} }
} }