修改bug
This commit is contained in:
parent
3427f09007
commit
dfb2faefc2
|
@ -91,8 +91,8 @@ export default {
|
||||||
tableParams: {
|
tableParams: {
|
||||||
schemaMass: null,
|
schemaMass: null,
|
||||||
tableName: null,
|
tableName: null,
|
||||||
startDateString: null,
|
startTime: null,
|
||||||
endDateString: null,
|
endTime: null,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNum: 1
|
pageNum: 1
|
||||||
},
|
},
|
||||||
|
@ -182,14 +182,14 @@ export default {
|
||||||
onChangeTime(date, dateString) {
|
onChangeTime(date, dateString) {
|
||||||
if (date.length == 0) {
|
if (date.length == 0) {
|
||||||
this.defaultTime = []
|
this.defaultTime = []
|
||||||
this.tableParams.startDateString = null
|
this.tableParams.startTime = null
|
||||||
this.tableParams.endDateString = null
|
this.tableParams.endTime = null
|
||||||
this.tableParams.pageNum = 1
|
this.tableParams.pageNum = 1
|
||||||
this.getTableDataList()
|
this.getTableDataList()
|
||||||
} else {
|
} else {
|
||||||
this.tableParams.startDateString = moment(date[0]).format(this.dateFormat);
|
this.tableParams.startTime = moment(date[0]).format(this.dateFormat);
|
||||||
this.tableParams.endDateString = moment(date[1]).format(this.dateFormat);
|
this.tableParams.endTime = moment(date[1]).format(this.dateFormat);
|
||||||
this.defaultTime = [this.tableParams.startDateString, this.tableParams.endDateString]
|
this.defaultTime = [this.tableParams.startTime, this.tableParams.endTime]
|
||||||
this.tableParams.pageNum = 1
|
this.tableParams.pageNum = 1
|
||||||
this.getTableDataList()
|
this.getTableDataList()
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,6 +207,7 @@ import { taskCreate,
|
||||||
if(res.success){
|
if(res.success){
|
||||||
that.$message.success(res.message);
|
that.$message.success(res.message);
|
||||||
that.$emit('ok');
|
that.$emit('ok');
|
||||||
|
this.close()
|
||||||
}else{
|
}else{
|
||||||
that.$message.warning(res.message);
|
that.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
|
@ -220,6 +221,7 @@ import { taskCreate,
|
||||||
if(res.success){
|
if(res.success){
|
||||||
that.$message.success(res.message);
|
that.$message.success(res.message);
|
||||||
that.$emit('ok');
|
that.$emit('ok');
|
||||||
|
this.close()
|
||||||
}else{
|
}else{
|
||||||
that.$message.warning(res.message);
|
that.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user