This commit is contained in:
Swift
2024-02-03 22:25:59 +03:30
parent 82d763785e
commit 50dd834c7f
2 changed files with 23 additions and 19 deletions
+11 -7
View File
@@ -1,7 +1,6 @@
<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 />
@@ -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>
@@ -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>
@@ -72,7 +74,6 @@ export default {
return { return {
complaint: null, complaint: null,
complete: false complete: false
} }
}, },
@@ -93,7 +94,6 @@ export default {
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>
+1 -1
View File
@@ -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>