Commit 29b84613 by huaying

fix: 全部分组改为-1

parent 6878fa80
......@@ -192,7 +192,7 @@ export default {
props: {
currentGroupId: {
type: [Number, String],
default: null
default: -1
}
},
data() {
......@@ -209,7 +209,7 @@ export default {
startTime: '',
endTime: '',
orderByField: 'createTime desc',
hmGroupId: ''
hmGroupId: '-1'
},
storeSelect: 1,
dateTime: [],
......@@ -371,7 +371,7 @@ export default {
startTime: '',
endTime: '',
orderByField: 'createTime desc',
hmGroupId: ''
hmGroupId: '-1'
};
this.pageParam = {
pageSize: 20,
......@@ -536,7 +536,9 @@ export default {
this.inFields.startTime = this.dateTime ? Date.parse(new Date(this.dateTime[0]).toString()) : '';
this.inFields.endTime = this.dateTime ? Date.parse(new Date(this.dateTime[1]).toString()) : '';
}
this.inFields.hmGroupId = this.currentGroupId;
if (this.currentGroupId) {
this.inFields.hmGroupId = this.currentGroupId;
}
if (this.inFields.hmSelect == '') {
delete this.inFields.hmSelect;
}
......@@ -573,11 +575,11 @@ export default {
watch: {
currentGroupId: {
handler: function(val) {
// if (val) {
this.currentGroupId = val;
this.pageParam.pageNo = 1;
this.getTableList();
// }
if (val) {
this.currentGroupId = val;
this.pageParam.pageNo = 1;
this.getTableList();
}
},
immediate: true
}
......
......@@ -232,7 +232,7 @@ export default {
{
groupName: '全部分组',
referNum: '',
groupId: ''
groupId: '-1'
}
];
this.groupList[0].referNum = countNum.data.result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment