修復時間格式化
This commit is contained in:
@@ -210,6 +210,7 @@ export default {
|
||||
this.$nextTick(function () {
|
||||
let $this = this;
|
||||
$('#iconUploadBtn').click(function () {
|
||||
console.log('iconUploadBtn');
|
||||
uploadFile('iconFile').then(res => {
|
||||
console.log(res);
|
||||
if (res.path) {
|
||||
@@ -219,6 +220,7 @@ export default {
|
||||
});
|
||||
});
|
||||
$('#urlUploadBtn').click(function () {
|
||||
console.log('urlUploadBtn');
|
||||
uploadFile('urlFile').then(res => {
|
||||
console.log(res);
|
||||
if (res.path) {
|
||||
@@ -265,6 +267,14 @@ export default {
|
||||
this.totals = data.total;
|
||||
this.tableData = data.records.map(v => {
|
||||
v['enabled'] = (v.isEnabled == 1);
|
||||
let startTime = v.startTime;
|
||||
let endTime = v.endTime;
|
||||
if (startTime) {
|
||||
v['startTime'] = new Date(startTime).format("yyyy-MM-dd hh:mm:ss");
|
||||
}
|
||||
if (endTime) {
|
||||
v['endTime'] = new Date(endTime).format("yyyy-MM-dd hh:mm:ss");
|
||||
}
|
||||
return v;
|
||||
});
|
||||
console.log(this.tableData);
|
||||
|
Reference in New Issue
Block a user