Browse Source

【pc端 - 优化bug】-【时间控件统一时间更改】-(魏凯)-2020/07/31

master
weikai 5 years ago
parent
commit
814757c502
  1. 4
      src/views/modules/analysis/issue/issue-classified-statistic.vue
  2. 26
      src/views/modules/analysis/item/difficult-Item-list.vue
  3. 7
      src/views/modules/analysis/item/report-solved-item-list.vue
  4. 7
      src/views/modules/analysis/item/report-unsolved-item-list.vue
  5. 4
      src/views/modules/master/masternotice.vue
  6. 4
      src/views/modules/master/mastertopic.vue
  7. 9
      src/views/modules/master/masteruserrelation.vue

4
src/views/modules/analysis/issue/issue-classified-statistic.vue

@ -102,7 +102,9 @@ export default {
communityId: '', communityId: '',
gridId: '', gridId: '',
sort: 'desc', sort: 'desc',
categoryLevel: '1' categoryLevel: '1',
startTime:'',
endTime:''
}, },
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {

26
src/views/modules/analysis/item/difficult-Item-list.vue

@ -294,16 +294,26 @@ export default {
this.$router.push({ path: '/analysis-item-difficult-Item', query: { id: id } }) this.$router.push({ path: '/analysis-item-difficult-Item', query: { id: id } })
}, },
changeItemStartTime(dateValue){ changeItemStartTime(dateValue){
if (dateValue === null || dateValue === '' || dateValue === "null" ) { var startTimeIsNull = this.dataForm.changeItemStartTime === '' || this.dataForm.changeItemStartTime === 'null' || this.dataForm.changeItemStartTime === null
this.dataForm.changeItemStartTime = '' var endTimeIsNull = this.dataForm.changeItemEndTime === '' || this.dataForm.changeItemEndTime === 'null' || this.dataForm.changeItemEndTime === null
this.dataForm.changeItemEndTime = '' if (dateValue === null || dateValue === '' || dateValue === 'null') {
} this.dataForm.changeItemStartTime = ''
this.dataForm.changeItemEndTime = ''
} else if (startTimeIsNull || endTimeIsNull) {
this.dataForm.changeItemStartTime = dateValue
this.dataForm.changeItemEndTime = dateValue
}
}, },
changeProcessedStartTime(dateValue){ changeProcessedStartTime(dateValue){
if (dateValue === null || dateValue === '' || dateValue === "null" ) { var startTimeIsNull = this.dataForm.processedStartTime === '' || this.dataForm.processedStartTime === 'null' || this.dataForm.processedStartTime === null
this.dataForm.processedStartTime = '' var endTimeIsNull = this.dataForm.processedEndTime === '' || this.dataForm.processedEndTime === 'null' || this.dataForm.processedEndTime === null
this.dataForm.processedEndTime = '' if (dateValue === null || dateValue === '' || dateValue === 'null') {
} this.dataForm.processedStartTime = ''
this.dataForm.processedEndTime = ''
} else if (startTimeIsNull || endTimeIsNull) {
this.dataForm.processedStartTime = dateValue
this.dataForm.processedEndTime = dateValue
}
} }
} }
} }

7
src/views/modules/analysis/item/report-solved-item-list.vue

@ -215,9 +215,14 @@ export default {
this.dataForm.searchContent = e.target.value this.dataForm.searchContent = e.target.value
}, },
changeReportStartTime(dateValue){ changeReportStartTime(dateValue){
if (dateValue === null || dateValue === '' || dateValue === "null" ) { var startTimeIsNull = this.dataForm.reportStartTime === '' || this.dataForm.reportStartTime === 'null' || this.dataForm.reportStartTime === null
var endTimeIsNull = this.dataForm.reportEndTime === '' || this.dataForm.reportEndTime === 'null' || this.dataForm.reportEndTime === null
if (dateValue === null || dateValue === '' || dateValue === 'null') {
this.dataForm.reportStartTime = '' this.dataForm.reportStartTime = ''
this.dataForm.reportEndTime = '' this.dataForm.reportEndTime = ''
} else if (startTimeIsNull || endTimeIsNull) {
this.dataForm.reportStartTime = dateValue
this.dataForm.reportEndTime = dateValue
} }
} }
} }

7
src/views/modules/analysis/item/report-unsolved-item-list.vue

@ -172,9 +172,14 @@ export default {
this.dataForm.searchContent = e.target.value this.dataForm.searchContent = e.target.value
}, },
changeReportStartTime(dateValue){ changeReportStartTime(dateValue){
if (dateValue === null || dateValue === '' || dateValue === "null" ) { var startTimeIsNull = this.dataForm.reportStartTime === '' || this.dataForm.reportStartTime === 'null' || this.dataForm.reportStartTime === null
var endTimeIsNull = this.dataForm.reportEndTime === '' || this.dataForm.reportEndTime === 'null' || this.dataForm.reportEndTime === null
if (dateValue === null || dateValue === '' || dateValue === 'null') {
this.dataForm.reportStartTime = '' this.dataForm.reportStartTime = ''
this.dataForm.reportEndTime = '' this.dataForm.reportEndTime = ''
} else if (startTimeIsNull || endTimeIsNull) {
this.dataForm.reportStartTime = dateValue
this.dataForm.reportEndTime = dateValue
} }
} }
} }

4
src/views/modules/master/masternotice.vue

@ -125,7 +125,9 @@ export default {
deleteIsBatch: true deleteIsBatch: true
}, },
dataForm: { dataForm: {
id: '' id: '',
endTime:'',
startTime:''
}, },
optionForm: { optionForm: {
id: '', id: '',

4
src/views/modules/master/mastertopic.vue

@ -146,7 +146,9 @@ export default {
dataForm: { dataForm: {
id: '', id: '',
nickName: '', nickName: '',
topicContent: '' topicContent: '',
startTime:'',
endTime:''
}, },
optionForm: { optionForm: {
id: '', id: '',

9
src/views/modules/master/masteruserrelation.vue

@ -120,7 +120,9 @@
dataForm: { dataForm: {
id: '', id: '',
nickname: '', nickname: '',
realName: '' realName: '',
startTime:'',
endTime:''
}, },
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
@ -206,7 +208,8 @@
}) })
}).catch(() => { }).catch(() => {
}) })
} },
} }
} }
</script> </script>
@ -214,4 +217,4 @@
.el-input { .el-input {
width: 200px; width: 200px;
} }
</style> </style>

Loading…
Cancel
Save