This commit is contained in:
Swift
2024-02-24 18:43:19 +03:30
parent 85b95ed60d
commit 9bf686bbfe
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -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">
+3 -3
View File
@@ -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>
+6
View File
@@ -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
}
}) })
} }
} }