修复时间戳默认转换值
This commit is contained in:
@@ -177,8 +177,13 @@ export default {
|
|||||||
this.tableLoading = true;
|
this.tableLoading = true;
|
||||||
|
|
||||||
let { pageParams, searchForm } = this;
|
let { pageParams, searchForm } = this;
|
||||||
searchForm.startTime = dateFormat(searchForm.startTime,'yyyy-MM-dd hh:mm:ss');
|
console.log(searchForm);
|
||||||
searchForm.endTime = dateFormat(searchForm.endTime,'yyyy-MM-dd hh:mm:ss');
|
searchForm.startTime = searchForm.startTime
|
||||||
|
? dateFormat(searchForm.startTime, "yyyy-MM-dd hh:mm:ss")
|
||||||
|
: null;
|
||||||
|
searchForm.endTime = searchForm.endTime
|
||||||
|
? dateFormat(searchForm.endTime, "yyyy-MM-dd hh:mm:ss")
|
||||||
|
: null;
|
||||||
searchForm = JSON.parse(JSON.stringify(searchForm));
|
searchForm = JSON.parse(JSON.stringify(searchForm));
|
||||||
pageParams = JSON.parse(JSON.stringify(pageParams));
|
pageParams = JSON.parse(JSON.stringify(pageParams));
|
||||||
Object.keys(searchForm).forEach((item) => {
|
Object.keys(searchForm).forEach((item) => {
|
||||||
@@ -198,7 +203,7 @@ export default {
|
|||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.tableData = data.records;
|
this.tableData = data.records;
|
||||||
this.pageTotal = data.total;
|
this.pageTotal = data.total;
|
||||||
}else {
|
} else {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: res.message,
|
message: res.message,
|
||||||
@@ -209,7 +214,7 @@ export default {
|
|||||||
chargeAgentSum(pageParams).then((res) => {
|
chargeAgentSum(pageParams).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.total = res.data;
|
this.total = res.data;
|
||||||
}else {
|
} else {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: res.message,
|
message: res.message,
|
||||||
|
Reference in New Issue
Block a user