Commit 4fd1bcfe authored by TTS Kieu Tuan Anh's avatar TTS Kieu Tuan Anh

amend

parent ac29aa6b
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<v-text-field <v-text-field
v-model="sTitle" v-model="sTitle"
label="Title" label="Title"
disabled readonly
/> />
</v-col> </v-col>
<v-col <v-col
...@@ -46,14 +46,15 @@ ...@@ -46,14 +46,15 @@
item-text="name" item-text="name"
item-value="id" item-value="id"
label="Category" label="Category"
disabled readonly
/> />
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
<v-text-field <v-text-field
v-model="sContent" v-model="sContent"
label="Content" label="Content"
disabled word-break="break-word"
readonly
/> />
</v-col> </v-col>
<v-col <v-col
...@@ -64,8 +65,8 @@ ...@@ -64,8 +65,8 @@
:items="statusDefaul" :items="statusDefaul"
item-text="name" item-text="name"
item-value="id" item-value="id"
label="Category" label="Status"
disabled readonly
/> />
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
...@@ -394,7 +395,7 @@ export default { ...@@ -394,7 +395,7 @@ export default {
id: '2' id: '2'
}, },
{ {
name: 'UnPublish', name: 'Unpublish',
id: '3' id: '3'
} }
], ],
...@@ -405,7 +406,7 @@ export default { ...@@ -405,7 +406,7 @@ export default {
sCategoryId: '', sCategoryId: '',
sContent: '', sContent: '',
sUserId: '', sUserId: '',
sStatus: null, sStatus: '',
sImages: null, sImages: null,
eId: '', eId: '',
eTitle: '', eTitle: '',
...@@ -607,7 +608,6 @@ export default { ...@@ -607,7 +608,6 @@ export default {
Authorization: `Bearer ${this.$auth.$storage.getUniversal('token')}` Authorization: `Bearer ${this.$auth.$storage.getUniversal('token')}`
} }
}) })
console.log(resp.data)
this.sTitle = resp.data.data.title this.sTitle = resp.data.data.title
this.sContent = resp.data.data.content this.sContent = resp.data.data.content
this.sCategoryId = resp.data.data.category_id this.sCategoryId = resp.data.data.category_id
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
<v-text-field <v-text-field
v-model="sDescription" v-model="sDescription"
label="Description" label="Description"
disabled
/> />
</v-col> </v-col>
<v-col v-for="(image, index) in sImages" :key="index" cols="12"> <v-col v-for="(image, index) in sImages" :key="index" cols="12">
...@@ -432,7 +433,7 @@ ...@@ -432,7 +433,7 @@
<v-btn <v-btn
color="blue darken-1" color="blue darken-1"
text text
@click="dialog1 = false; seeVariant()" @click="dialog1 = false"
> >
Close Close
</v-btn> </v-btn>
...@@ -510,7 +511,6 @@ export default { ...@@ -510,7 +511,6 @@ export default {
{ text: 'id', value: 'id' }, { text: 'id', value: 'id' },
{ text: 'category ID', value: 'category_id' }, { text: 'category ID', value: 'category_id' },
{ text: 'price', value: 'price', sortable: false }, { text: 'price', value: 'price', sortable: false },
{ text: 'description', value: 'description' },
{ text: 'stock', value: 'stock' }, { text: 'stock', value: 'stock' },
{ text: 'Actions', value: 'actions', sortable: false } { text: 'Actions', value: 'actions', sortable: false }
], ],
...@@ -536,7 +536,7 @@ export default { ...@@ -536,7 +536,7 @@ export default {
sPrice: '', sPrice: '',
sDescription: '', sDescription: '',
sStock: '', sStock: '',
sImages: null, sImages: [],
sVariants: [ sVariants: [
{ {
color: '', color: '',
......
export default function ({ $axios }, inject, redirect) { export default function ({ $axios }, inject, redirect ) {
$axios.onError((error) => { $axios.onError((error) => {
if (error.response.status === 500) { if (error.response.status === 500) {
redirect('/500') redirect('/500')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment