no message

This commit is contained in:
小陌 2023-06-13 22:07:58 +08:00
parent 7fc60685df
commit 838ca8b1db

View File

@ -3,9 +3,9 @@
<el-header class="header-tabs"> <el-header class="header-tabs">
<el-tabs type="card" v-model="search.status" @tab-change="tabChange"> <el-tabs type="card" v-model="search.status" @tab-change="tabChange">
<el-tab-pane label="所有" name="0"></el-tab-pane> <el-tab-pane label="所有" name="0"></el-tab-pane>
<el-tab-pane label="开启" name="1"></el-tab-pane> <el-tab-pane label="在线公寓" name="1"></el-tab-pane>
<el-tab-pane label="下架" name="2"></el-tab-pane> <el-tab-pane label="下架" name="2"></el-tab-pane>
<el-tab-pane label="短租" name="3"></el-tab-pane> <el-tab-pane label="短租公寓" name="3"></el-tab-pane>
</el-tabs> </el-tabs>
</el-header> </el-header>
<el-header> <el-header>
@ -22,7 +22,7 @@
<el-main class="nopadding"> <el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" :hideSetting="true" remoteSort remoteFilter stripe> <scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" :hideSetting="true" remoteSort remoteFilter stripe>
<el-table-column type="selection" width="30"></el-table-column> <el-table-column type="selection" width="30"></el-table-column>
<el-table-column label="小程序ID" prop="uniqid" width="150"></el-table-column> <el-table-column label="ID" prop="id" width="50"></el-table-column>
<el-table-column label="" prop="status" width="38"> <el-table-column label="" prop="status" width="38">
<template #default="scope"> <template #default="scope">
<sc-status-indicator v-if="scope.row.status==1" pulse type="success"></sc-status-indicator> <sc-status-indicator v-if="scope.row.status==1" pulse type="success"></sc-status-indicator>
@ -62,16 +62,17 @@
<el-table-column label="添加时间" prop="timestamp" width="150"></el-table-column> <el-table-column label="添加时间" prop="timestamp" width="150"></el-table-column>
<el-table-column label="浏览" prop="viewnum" width="90"></el-table-column> <el-table-column label="浏览" prop="viewnum" width="90"></el-table-column>
<el-table-column label="操作" fixed="right" align="right" width="200"> <el-table-column label="操作" fixed="right" align="left" width="195">
<template #default="scope"> <template #default="scope">
<el-button-group> <el-button-group>
<el-button type="primary" size="small" @click="table_edit(scope.row, scope.$index)">编辑</el-button> <el-button type="primary" size="small" @click="table_edit(scope.row, scope.$index)">编辑</el-button>
<el-button type="warning" size="small" @click="table_room(scope.row, scope.$index)">房型({{ scope.row.room }})</el-button> <el-button type="warning" size="small" @click="table_room(scope.row, scope.$index)">房型({{ scope.row.room }})</el-button>
<el-popconfirm title="确定下架吗?" @confirm="table_del(scope.row, scope.$index)"> <el-button type="danger" size="small" @click="open(scope.row)">海报</el-button>
<!-- <el-popconfirm title="确定下架吗?" @confirm="table_del(scope.row, scope.$index)">
<template #reference> <template #reference>
<el-button type="info" size="small">下架</el-button> <el-button type="info" size="small">下架</el-button>
</template> </template>
</el-popconfirm> </el-popconfirm> -->
</el-button-group> </el-button-group>
</template> </template>
</el-table-column> </el-table-column>
@ -124,6 +125,9 @@
}, },
methods: { methods: {
open(o){
window.open(o.apartmentposter)
},
// //
tabChange(status){ tabChange(status){
this.search.status = status; this.search.status = status;