优化状态标签及字段命名,修复重复代码
This commit is contained in:
parent
ef98909864
commit
40b6b8d447
@ -31,12 +31,12 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="发布状态" align="center" prop="status" width="100px">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.status == 1" type="primary">审核中</el-tag>
|
||||
<el-tag v-if="scope.row.status == 2" type="success">发布</el-tag>
|
||||
<el-tag v-if="scope.row.status == 0" type="info">未发布</el-tag>
|
||||
<el-tag v-if="scope.row.status == 1" type="success">审核中</el-tag>
|
||||
<el-tag v-if="scope.row.status == 2" type="primary">已发布</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发布时间" align="center" prop="publishTime" />
|
||||
<el-table-column label="操作时间" align="center" prop="updateTime" />
|
||||
<el-table-column label="操作" align="center" width="150px" fixed="right" class-name="small-padding fixed-width"
|
||||
v-if="props.parentName != 'dyUser'">
|
||||
<template #default="scope">
|
||||
|
@ -733,7 +733,6 @@ const openObtainedItemsListDialog = async (row: DyUserVO) => {
|
||||
obtainedItemsDialog.obtainedList = res.rows;
|
||||
obtainedItemsDialog.total = res.total;
|
||||
obtainedItemsDialog.visible = true;
|
||||
obtainedItemsDialog.visible = true;
|
||||
};
|
||||
/**
|
||||
* 用户邀请列表
|
||||
|
@ -510,9 +510,8 @@ const getlistVendor = async () => {
|
||||
const productAllList=ref([]);
|
||||
const getProductAllList=(e:any)=>{
|
||||
console.log(e);
|
||||
|
||||
if (e) {
|
||||
productAll({status:1}).then(res=>{
|
||||
productAll({status:2}).then(res=>{
|
||||
Object.assign(productAllList.value,res.data)
|
||||
})
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
<el-input class="inputWidth" v-model="queryParams.productName" placeholder="请输入商品名称" clearable
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="商品状态" prop="productShows">
|
||||
<el-form-item label="商品状态" prop="status">
|
||||
<el-select class="inputWidth" v-model="queryParams.status" placeholder="请选择商品状态" clearable>
|
||||
<el-option v-for="dict in sys_shelf_status" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
|
@ -119,7 +119,7 @@
|
||||
<el-table-column :label="queryParams.type == '0' ?'景点评论数':queryParams.type == '1' ?'租车评论数':'游艇评论数'" align="center"
|
||||
prop="commentCount" width="90px">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" v-if="scope.row.status!==3" @click="handleNote(scope.row)">1{{
|
||||
<el-button link type="primary" v-if="scope.row.status!==3" @click="handleNote(scope.row)">{{
|
||||
scope.row.commentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
Loading…
Reference in New Issue
Block a user