解决国内外时间格式不一致导致的bug
This commit is contained in:
parent
e803c63099
commit
aa7c6e9045
@ -19,6 +19,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import emitter from 'element-ui/src/mixins/emitter';
|
import emitter from 'element-ui/src/mixins/emitter';
|
||||||
import { getSalesmanSupportList} from "@/api/emis/emisSalesCommissionRatio";
|
import { getSalesmanSupportList} from "@/api/emis/emisSalesCommissionRatio";
|
||||||
|
import { parseTime } from "@/utils/custom";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "SalesSupportPicker",
|
name: "SalesSupportPicker",
|
||||||
@ -103,7 +104,7 @@
|
|||||||
}
|
}
|
||||||
if (!this.sendDate) {
|
if (!this.sendDate) {
|
||||||
//获取系统当前时间 格式为yyyy-MM-dd HH:mm:ss
|
//获取系统当前时间 格式为yyyy-MM-dd HH:mm:ss
|
||||||
this.queryParams.params.sendDate = new Date().toLocaleString().replace(/\//g, "-");
|
this.queryParams.params.sendDate = parseTime(new Date());
|
||||||
}else {
|
}else {
|
||||||
this.queryParams.params.sendDate = this.sendDate;
|
this.queryParams.params.sendDate = this.sendDate;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -535,7 +535,7 @@ export default {
|
|||||||
salesSupport: orderData.salesSupport,
|
salesSupport: orderData.salesSupport,
|
||||||
params: {
|
params: {
|
||||||
userStatus: 1,
|
userStatus: 1,
|
||||||
sendDate: new Date().toLocaleString().replace(/\//g, "-"),
|
sendDate: parseTime(new Date()),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
getSalesmanSupportList(queryParams).then(response => {
|
getSalesmanSupportList(queryParams).then(response => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user