fix: 修复实体列表左侧筛选数字显示错误问题、修复报告编辑回显问题
This commit is contained in:
@@ -316,14 +316,20 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
scheduleType (n, o) {
|
scheduleType (n, o) {
|
||||||
this.editObject.config.schedulerConfig.type = n
|
this.editObject.config.schedulerConfig.type = n
|
||||||
this.cleanScheduleConfig()
|
if (!this.editObject.id) {
|
||||||
|
this.cleanScheduleConfig()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
scheduleChecked (n) {
|
scheduleChecked (n) {
|
||||||
this.editObject.config.isScheduler = n ? 1 : 0
|
this.editObject.config.isScheduler = n ? 1 : 0
|
||||||
this.cleanScheduleConfig()
|
if (!this.editObject.id) {
|
||||||
|
this.cleanScheduleConfig()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
monthScheduleType (n) {
|
monthScheduleType (n) {
|
||||||
this.cleanScheduleConfig()
|
if (!this.editObject.id) {
|
||||||
|
this.cleanScheduleConfig()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'editObject.config.schedulerConfig.interval': {
|
'editObject.config.schedulerConfig.interval': {
|
||||||
handler (n) {
|
handler (n) {
|
||||||
@@ -476,7 +482,6 @@ export default {
|
|||||||
}
|
}
|
||||||
copyObject.config = JSON.stringify(copyObject.config)
|
copyObject.config = JSON.stringify(copyObject.config)
|
||||||
|
|
||||||
|
|
||||||
if (copyObject.id) {
|
if (copyObject.id) {
|
||||||
put(this.url, copyObject).then(res => {
|
put(this.url, copyObject).then(res => {
|
||||||
this.blockOperation.save = false
|
this.blockOperation.save = false
|
||||||
|
|||||||
@@ -555,10 +555,10 @@ export default {
|
|||||||
this.filterData[3].data.forEach(d => {
|
this.filterData[3].data.forEach(d => {
|
||||||
d.value = response.data.result[d.column] || 0
|
d.value = response.data.result[d.column] || 0
|
||||||
})
|
})
|
||||||
/* this.filterData[3].totalCount = response.data.result.count
|
this.filterData[3].totalCount = response.data.result.count
|
||||||
this.filterData[3].osTotalCount = response.data.result.osTotalCount
|
this.filterData[3].osTotalCount = response.data.result.osTotalCount
|
||||||
this.filterData[3].orgTotalCount = response.data.result.orgTotalCount
|
this.filterData[3].orgTotalCount = response.data.result.orgTotalCount
|
||||||
this.filterData[3].softwareTotalCount = response.data.result.softwareTotalCount */
|
this.filterData[3].softwareTotalCount = response.data.result.softwareTotalCount
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user