|
|
|
|
@ -53,10 +53,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <template v-slot:date>
|
|
|
|
|
<template v-slot:date>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Sort Time:
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template> -->
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sort>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
@ -125,7 +125,7 @@
|
|
|
|
|
name: "",
|
|
|
|
|
is_top: 0,
|
|
|
|
|
is_visible: 1,
|
|
|
|
|
// date:'',
|
|
|
|
|
date:'',
|
|
|
|
|
sort: 0,
|
|
|
|
|
// product_ids:[],
|
|
|
|
|
files: []
|
|
|
|
|
@ -200,7 +200,7 @@
|
|
|
|
|
json_data_fields: ['files']
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
|
// this.form.date = res.date ? res.date : this.$moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
this.form.date = res.date ? res.date : this.$moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
this.form.is_top = res.is_top ? res.is_top : 0
|
|
|
|
|
this.form.is_visible = res.is_visible ? res.is_visible : 0
|
|
|
|
|
this.form.sort = res.sort ? res.sort : 0
|
|
|
|
|
@ -224,7 +224,7 @@
|
|
|
|
|
if (this.type === 'editor') {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
// this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
@ -238,7 +238,7 @@
|
|
|
|
|
is_top: 0,
|
|
|
|
|
is_visible: 1,
|
|
|
|
|
sort:0,
|
|
|
|
|
// date: '',
|
|
|
|
|
date: '',
|
|
|
|
|
// product_ids: [],
|
|
|
|
|
files: []
|
|
|
|
|
}
|
|
|
|
|
|