敏感词

This commit is contained in:
liuye
2023-09-06 13:50:40 +08:00
parent f05e036bd0
commit e22bee323c

View File

@@ -144,11 +144,11 @@ export default {
},
created() {
this.getDeptList()
this.getStatisticsToatl()
this.getTotal()
this.getStatistics()
},
methods: {
getStatisticsToatl() {
getTotal() {
console.log(1)
var totalDepartmentId = this.totalDeptList.length ? this.totalDeptList[this.totalDeptList.length-1] : ''
this.instance.post(`/app/appsessionarchivekeywordrecord/statistics1?departmentId=${totalDepartmentId}`).then(res => {
@@ -160,9 +160,10 @@ export default {
},
getStatistics() {
this.trendData = [], this.barData = [], this.wordData = [], this.tableData = []
var departmentId = this.deptList.length ? this.deptList[this.deptList.length-1] : ''
this.instance.post('/app/appsessionarchivekeywordrecord/statistics2', null, {
params: {
departmentId: this.deptList.length ? this.deptList[0] : '',
departmentId,
type: this.type,
startTime: this.startTime,
endTime: this.endTime,
@@ -356,7 +357,7 @@ export default {
},
totalDeptSelect(val) {
if(!val) {
this.getStatisticsToatl()
this.getTotal()
}
},
deptSelect(val) {
@@ -369,6 +370,8 @@ export default {
if (index == 3) {
this.dialogDate = true
} else {
this.startTime = ''
this.endTime = ''
this.getStatistics()
}
},