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