diff --git a/pages/admin/surveys/private/index.vue b/pages/admin/surveys/private/index.vue index 3fdff63..0c34ffd 100644 --- a/pages/admin/surveys/private/index.vue +++ b/pages/admin/surveys/private/index.vue @@ -71,7 +71,7 @@ export default { layout: 'admin', async asyncData({ $axios, error }) { try { - const surveys = await $axios.$get(`/api/admin/surveys`) + const surveys = await $axios.$get(`/api/admin/surveys?type=0`) return { surveys } diff --git a/pages/admin/surveys/public/_item.vue b/pages/admin/surveys/public/_item.vue deleted file mode 100644 index 83b40b5..0000000 --- a/pages/admin/surveys/public/_item.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - نظر سنجی - - - - نام و نام خانوادگی : - {{ complaint?.fullName }} - - - - کد ملی : - {{ complaint?.national }} - - - - شماره تماس : - {{ complaint?.phoneNumber }} - - - - ایمیل : - {{ complaint?.email }} - - - - کد پذیرش : - {{ complaint?.receptionCode }} - - - - - توضیحات : - - - {{ complaint?.caption }} - - - - - - - - - - - - - diff --git a/pages/admin/surveys/public/_survey.vue b/pages/admin/surveys/public/_survey.vue new file mode 100644 index 0000000..758ab55 --- /dev/null +++ b/pages/admin/surveys/public/_survey.vue @@ -0,0 +1,62 @@ + + + + {{ title }} + برگشت به صفحه قبل + + + + + + + + + + + + + + + + + + diff --git a/pages/admin/surveys/public/index.vue b/pages/admin/surveys/public/index.vue index b84ac01..13faba2 100644 --- a/pages/admin/surveys/public/index.vue +++ b/pages/admin/surveys/public/index.vue @@ -1,64 +1,58 @@ - نظر سنجی - + {{ title }} - - - - - نظر سنجی - - + - + + میزان رضایت کلی مشتریان در تمام نظرات ثبت شده: + + + + + {{ item.title }} + %{{ getPercentage(item.fieldName) }} + + + + + + + + + + - - - - - + - {{ scope.row.national }} + + {{ scope.row.user.first_name + ' ' + scope.row.user.last_name }} + - + - {{ scope.row.caption }} + {{ scope.row.code || '-' }} - + {{ $jDate(scope.row.created_at) }} - - - - - {{ scope.row.phoneNumber }} - - - - - - {{ scope.row.email }} - - - - + @@ -71,40 +65,49 @@
{{ complaint?.fullName }}
{{ complaint?.national }}
{{ complaint?.phoneNumber }}
{{ complaint?.email }}
{{ complaint?.receptionCode }}
{{ complaint?.caption }}
+ {{ item.title }} + %{{ getPercentage(item.fieldName) }} +