|
@@ -6,7 +6,7 @@
|
|
|
*/
|
|
|
|
|
|
import { useCountryInfoStore } from '/@/stores/countryInfo';
|
|
|
-import { Delete, InfoFilled, Operation } from '@element-plus/icons-vue';
|
|
|
+import { Delete, InfoFilled, Operation, Tickets, Timer } from '@element-plus/icons-vue';
|
|
|
import { getTagType } from '/@/utils/useTagColor';
|
|
|
import PermissionButton from '/@/components/PermissionButton/index.vue';
|
|
|
import ProductInfo from '/@/views/product-manage/product-list/component/ProductInfo.vue';
|
|
@@ -40,7 +40,7 @@ function onConfirm() {
|
|
|
<template>
|
|
|
<div class="font-medium">
|
|
|
<div v-if="field === 'product_info'">
|
|
|
- <ProductInfo :img-width="50" :item="row.goods" />
|
|
|
+ <ProductInfo :img-width="50" :item="row.goods"/>
|
|
|
</div>
|
|
|
<div v-else-if="field === 'country_code'">
|
|
|
<el-tag :disable-transitions="true" :style="{ color: color, borderColor: color }" effect="plain" round>
|
|
@@ -120,10 +120,10 @@ function onConfirm() {
|
|
|
</template>
|
|
|
</div>
|
|
|
<div v-else-if="field === 'stars'" class="flex flex-col font-normal" style="min-width: 170px">
|
|
|
- <ProgressBar :row="row" percentage="ratings" />
|
|
|
+ <ProgressBar :row="row" percentage="ratings"/>
|
|
|
</div>
|
|
|
<div v-else-if="field === 'all_stars'" class="flex flex-col font-normal" style="min-width: 170px">
|
|
|
- <ProgressBar :row="row" percentage="all_rate" />
|
|
|
+ <ProgressBar :row="row" percentage="all_rate"/>
|
|
|
</div>
|
|
|
<div v-else-if="field === 'status'">
|
|
|
<el-tag :disable-transitions="true" :type=statusType>
|
|
@@ -131,10 +131,28 @@ function onConfirm() {
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
<div v-else-if="field === 'operate'">
|
|
|
+ <div class="flex justify-center gap-2 mb-2">
|
|
|
+ <el-tooltip :enterable="false" :show-arrow="false" content="评论详情" hide-after="0"
|
|
|
+ placement="top" popper-class="custom-btn-tooltip">
|
|
|
+ <PermissionButton circle plain type="success">
|
|
|
+ <el-icon>
|
|
|
+ <Tickets/>
|
|
|
+ </el-icon>
|
|
|
+ </PermissionButton>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip :enterable="false" :show-arrow="false" content="历史详情" hide-after="0"
|
|
|
+ placement="top" popper-class="custom-btn-tooltip">
|
|
|
+ <PermissionButton circle plain type="success">
|
|
|
+ <el-icon>
|
|
|
+ <Timer/>
|
|
|
+ </el-icon>
|
|
|
+ </PermissionButton>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
<div class="flex justify-center gap-2">
|
|
|
<PermissionButton circle plain type="warning" @click="handleEdit">
|
|
|
<el-icon>
|
|
|
- <Operation />
|
|
|
+ <Operation/>
|
|
|
</el-icon>
|
|
|
</PermissionButton>
|
|
|
<el-popconfirm
|
|
@@ -147,7 +165,7 @@ function onConfirm() {
|
|
|
<template #reference>
|
|
|
<PermissionButton circle plain type="danger">
|
|
|
<el-icon>
|
|
|
- <Delete />
|
|
|
+ <Delete/>
|
|
|
</el-icon>
|
|
|
</PermissionButton>
|
|
|
</template>
|
|
@@ -174,4 +192,14 @@ function onConfirm() {
|
|
|
:deep(.flex-1 .el-progress__text) {
|
|
|
font-size: 14px !important;
|
|
|
}
|
|
|
+
|
|
|
+</style>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+.custom-btn-tooltip {
|
|
|
+ background-color: #EFF9EB !important;
|
|
|
+ color: #606266 !important;
|
|
|
+ border: 1px solid #67C23A !important;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
</style>
|