fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<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>
|
||||
<CRow>
|
||||
<CCol xl="12">
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
|
||||
<el-table-column prop="title" label="کاربر" width="">
|
||||
<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 }}
|
||||
</nuxt-link>
|
||||
|
||||
{{ scope.row.fullName }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
@@ -285,6 +285,12 @@ export default {
|
||||
return this.$router.push('/')
|
||||
}
|
||||
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