提交 d957f278 编写于 作者: 张峻

🔨 banner status

上级 0a2347a4
...@@ -272,8 +272,8 @@ ...@@ -272,8 +272,8 @@
</td> </td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
<ElTag <ElTag
:type="TagColor[person.status + 2]" :type="TagColor[person.status == 'PUBLISHED'?3:person.status == 'CREATED'?2:4 ]"
>{{ person.status == 0 ?'待上线': person.status == 1?'已上线':'已下线' }}</ElTag> >{{ person.status == 'CREATED' ?'待上线': person.status == 'PUBLISHED'?'已上线':'已下线' }}</ElTag>
</td> </td>
<td class="px-3 py-4 text-sm text-gray-500 max-w-md"> <td class="px-3 py-4 text-sm text-gray-500 max-w-md">
<div <div
...@@ -287,15 +287,19 @@ ...@@ -287,15 +287,19 @@
<div class="flex items-center"> <div class="flex items-center">
<el-button <el-button
type="success" type="success"
v-if="person.status!==1" v-if="person.status!=='PUBLISHED'"
@click="relbum(person)" @click="relbum(person)"
>编辑</el-button> >编辑</el-button>
<el-button <el-button
type="success" type="success"
v-if="person.status!==1" v-if="person.status!=='PUBLISHED'"
@click="GoLive(person)" @click="GoLive(person)"
>上线</el-button> >上线</el-button>
<el-button type="danger" v-if="person.status==1" @click="Offline(person)">下线</el-button> <el-button
type="danger"
v-if="person.status=='PUBLISHED'"
@click="Offline(person)"
>下线</el-button>
</div> </div>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册