|
@@ -717,27 +717,52 @@ export default {
|
|
|
this.getFilterList()
|
|
|
},
|
|
|
reset() {
|
|
|
- this.$set(this.searchForm, 'id', '')
|
|
|
- this.$set(this.searchForm, 'pm', '')
|
|
|
- this.$set(this.searchForm, 'priorityList', [])
|
|
|
- this.$set(this.searchForm, 'belongingProject', '')
|
|
|
- this.$set(this.searchForm, 'sourceType', '')
|
|
|
- this.$set(this.searchForm, 'creator', '')
|
|
|
- this.$set(this.searchForm, 'type', '')
|
|
|
- this.$set(this.searchForm, 'containStatus', [])
|
|
|
- this.$set(this.searchForm, 'comparisonOperator', '')
|
|
|
- this.$set(this.searchForm, 'days', '')
|
|
|
- this.$set(this.searchForm, 'rqmtProposer', '')
|
|
|
- this.$set(this.searchForm, 'sourceTypeList', [])
|
|
|
- this.$set(this.searchForm, 'isFromDpm', '')
|
|
|
- this.$set(this.searchForm, 'date', [])
|
|
|
- this.$message({
|
|
|
- message: '已重置',
|
|
|
- type: 'success',
|
|
|
- duration: 1000,
|
|
|
- offset: 150
|
|
|
- })
|
|
|
- this.getTableData()
|
|
|
+ // this.$set(this.searchForm, 'id', '')
|
|
|
+ // this.$set(this.searchForm, 'pm', '')
|
|
|
+ // this.$set(this.searchForm, 'priorityList', [])
|
|
|
+ // this.$set(this.searchForm, 'belongingProject', '')
|
|
|
+ // this.$set(this.searchForm, 'sourceType', '')
|
|
|
+ // this.$set(this.searchForm, 'creator', '')
|
|
|
+ // this.$set(this.searchForm, 'type', '')
|
|
|
+ // this.$set(this.searchForm, 'containStatus', [])
|
|
|
+ // this.$set(this.searchForm, 'comparisonOperator', '')
|
|
|
+ // this.$set(this.searchForm, 'days', '')
|
|
|
+ // this.$set(this.searchForm, 'rqmtProposer', '')
|
|
|
+ // this.$set(this.searchForm, 'sourceTypeList', [])
|
|
|
+ // this.$set(this.searchForm, 'isFromDpm', '')
|
|
|
+ // this.$set(this.searchForm, 'date', [])
|
|
|
+ // this.$message({
|
|
|
+ // message: '已重置',
|
|
|
+ // type: 'success',
|
|
|
+ // duration: 1000,
|
|
|
+ // offset: 150
|
|
|
+ // })
|
|
|
+ // 重置
|
|
|
+ this.searchForm = {
|
|
|
+ ...this.searchForm,
|
|
|
+ id: '',
|
|
|
+ pm: '',
|
|
|
+ priorityList: [],
|
|
|
+ belongingProject: '',
|
|
|
+ sourceType: '',
|
|
|
+ creator: '',
|
|
|
+ type: '',
|
|
|
+ containStatus: [],
|
|
|
+ comparisonOperator: '',
|
|
|
+ days: '',
|
|
|
+ rqmtProposer: '',
|
|
|
+ sourceTypeList: [],
|
|
|
+ isFromDpm: '',
|
|
|
+ date: []
|
|
|
+ }
|
|
|
+ if (this.nowTab === 'charts') {
|
|
|
+ this.searchForm = { ...this.searchForm, rqmtOrntIds: [], name: '', statusList: [] }
|
|
|
+ }
|
|
|
+ if (this.nowTab === 'charts') {
|
|
|
+ this.get_charts()
|
|
|
+ } else {
|
|
|
+ this.getTableData()
|
|
|
+ }
|
|
|
},
|
|
|
async remoteMethod(query) {
|
|
|
// 人员查询
|