fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<CustomSubHeader>
|
<CustomSubHeader>
|
||||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||||
<CButton size="sm" color="primary" class="mr-auto" :to="{ name: 'admin-surveys-private' }">برگشت به صفحه قبل</CButton>
|
<CButton size="sm" color="primary" class="mr-auto" :to="{ name: 'admin-surveys-public' }">برگشت به صفحه قبل</CButton>
|
||||||
</CustomSubHeader>
|
</CustomSubHeader>
|
||||||
<CRow>
|
<CRow>
|
||||||
<CCol xl="12">
|
<CCol xl="12">
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
|
|
||||||
<el-table-column prop="title" label="کاربر" width="">
|
<el-table-column prop="title" label="کاربر" width="">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<nuxt-link :to="{ name: 'admin-customers-customer', params: { customer: scope.row.user._id } }">
|
|
||||||
{{ scope.row.user.first_name + ' ' + scope.row.user.last_name }}
|
{{ scope.row.fullName }}
|
||||||
</nuxt-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|||||||
@@ -285,6 +285,12 @@ export default {
|
|||||||
return this.$router.push('/')
|
return this.$router.push('/')
|
||||||
}
|
}
|
||||||
this.survey = this.initForm()
|
this.survey = this.initForm()
|
||||||
|
}).catch((error)=>{
|
||||||
|
if (error.response.status === 422) {
|
||||||
|
this.validation = error.response.data.validation
|
||||||
|
this.hasValidationError = true
|
||||||
|
this.waiting = false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user