Add
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="m-3">
|
<div class="m-3">
|
||||||
|
|
||||||
<div class="row ui-box p-3">
|
<div class="row ui-box p-3">
|
||||||
<h4>شکایت</h4>
|
<h4>شکایت</h4>
|
||||||
<hr/>
|
<hr />
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="d-flex mt-3" style="align-items: center">
|
<div class="d-flex mt-3" style="align-items: center">
|
||||||
<h5 style="margin-bottom: 1rem">نام و نام خانوادگی :</h5>
|
<h5 style="margin-bottom: 1rem">نام و نام خانوادگی :</h5>
|
||||||
@@ -31,7 +30,7 @@
|
|||||||
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.receptionCode }}</p>
|
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.receptionCode }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex mt-3" style="align-items: center">
|
<div v-if="complaint?.deviceNumber" class="d-flex mt-3" style="align-items: center">
|
||||||
<h5 style="margin-bottom: 1rem">شماره سریال دستگاه :</h5>
|
<h5 style="margin-bottom: 1rem">شماره سریال دستگاه :</h5>
|
||||||
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.deviceNumber }}</p>
|
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.deviceNumber }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +40,7 @@
|
|||||||
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.callType ? 'ایمیل' : ' تماس تلفنی' }}</p>
|
<p class="mr-2" style="margin-bottom: 1rem">{{ complaint?.callType ? 'ایمیل' : ' تماس تلفنی' }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-1" style="border-left:1px solid #8f8f8f;height:500px"></div>
|
<div class="col-lg-1" style="border-left: 1px solid #8f8f8f; height: 500px"></div>
|
||||||
<div class="col-lg-7">
|
<div class="col-lg-7">
|
||||||
<h5>توضیحات :</h5>
|
<h5>توضیحات :</h5>
|
||||||
<div style="display: flex; align-items: center; justify-content: center">
|
<div style="display: flex; align-items: center; justify-content: center">
|
||||||
@@ -50,12 +49,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="hasPermission('apply')" class="d-flex mt-3" style="align-items: center">
|
<div v-if="hasPermission('apply')" >
|
||||||
|
<div class="d-flex mt-3" style="align-items: center">
|
||||||
<h5>پیگیری شده :</h5>
|
<h5>پیگیری شده :</h5>
|
||||||
<el-checkbox v-model="complete" class="p-2"></el-checkbox>
|
<el-checkbox v-model="complete" class="p-2"></el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<el-button v-if="hasPermission('apply')" class="p-2" type="primary" @click="applyComplaint">تایید</el-button>
|
<div class="d-flex mt-3" style="align-items: center; justify-self: center;">
|
||||||
|
<el-button class="p-2 w-20 m-auto" type="primary" @click="applyComplaint">تایید</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,8 +73,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
complaint: null,
|
complaint: null,
|
||||||
complete:false
|
complete: false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -88,12 +89,11 @@ export default {
|
|||||||
if (this.$auth.loggedIn) return this.$auth.user.permissions.includes(permission)
|
if (this.$auth.loggedIn) return this.$auth.user.permissions.includes(permission)
|
||||||
else return false
|
else return false
|
||||||
},
|
},
|
||||||
applyComplaint(){
|
applyComplaint() {
|
||||||
this.$axios.put(`/api/admin/complaint/${this.$route.params.item}`,{ complete: this.complete }).then(res => {
|
this.$axios.put(`/api/admin/complaint/${this.$route.params.item}`, { complete: this.complete }).then(res => {
|
||||||
this.complaint = res.data
|
this.complaint = res.data
|
||||||
this.complete = res.data.complete
|
this.complete = res.data.complete
|
||||||
this.$router.push('/admin/complaint')
|
this.$router.push('/admin/complaint')
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -125,4 +125,8 @@ export default {
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
.w-20{
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
<el-table-column label="پیگیری شکایت" width="">
|
<el-table-column label="پیگیری شکایت" width="">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="singleLineTxt" :title="scope.row.email"> {{ scope.row.complete ? "پیگیری شده" : "پیگیری نشده" }} </span>
|
<span :class="{ 'text-success': scope.row.complete , 'text-danger': !scope.row.complete }" class="singleLineTxt" :title="scope.row.email"> {{ scope.row.complete ? "پیگیری شده" : "پیگیری نشده" }} </span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user