敏感词

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