|
@@ -22,11 +22,11 @@
|
|
|
</div>
|
|
|
<Operate :show="open" v-action="'video.video.add'" />
|
|
|
<el-table :data="tableData" class="mt-3" v-loading="loading" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" />
|
|
|
- <el-table-column prop="id" width="100" label="剧号" />
|
|
|
- <el-table-column label="封面" width="200" show-overflow-tooltip>
|
|
|
+ <el-table-column type="selection" />
|
|
|
+ <el-table-column prop="id" label="剧号" />
|
|
|
+ <el-table-column label="封面" show-overflow-tooltip>
|
|
|
<template #default="scope">
|
|
|
- <div class="flex flex-col items-center justify-center wrapper">
|
|
|
+ <div class="flex flex-col items-start justify-center wrapper">
|
|
|
<el-popover placement="top" :width="200" trigger="hover">
|
|
|
<template #reference>
|
|
|
<el-image :src="scope.row.cover_image" class="cursor-pointer" style="width:48px;height:48px;"
|
|
@@ -38,24 +38,24 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="短剧名称" width="250" show-overflow-tooltip>
|
|
|
+ <el-table-column label="短剧名称" show-overflow-tooltip min-width="250">
|
|
|
<template #default="scope">
|
|
|
<div class="wrapper">
|
|
|
<span class="text-lg font-bold text-blue-400 cursor-pointer content"
|
|
|
@click="openType('videoDetailVisible', scope.row)">
|
|
|
{{ scope.row.name }}
|
|
|
</span>
|
|
|
- <span>
|
|
|
+ <span v-if="!rolesIdentify.includes('company')">
|
|
|
【 {{ scope.row.update_type_str }} 】
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div class="wrapper">
|
|
|
+ <div class="wrapper" v-if="!rolesIdentify.includes('optimizer')">
|
|
|
<span class="label">上架时间:</span>
|
|
|
<span class="content">{{ scope.row.shelf_at }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="total_episode_num" label="集数">
|
|
|
+ <el-table-column prop="total_episode_num" label="集数" v-if="!rolesIdentify.includes('optimizer')">
|
|
|
<template #default="scope">
|
|
|
<div class="flex wrapper">
|
|
|
<div v-if="scope.row.update_type == 1">
|
|
@@ -72,15 +72,15 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="category_str" label="频道" />
|
|
|
- <el-table-column prop="shelf_type_str" label="上架状态" />
|
|
|
- <el-table-column prop="charge_sequence" label="起始集" />
|
|
|
- <el-table-column prop="charge_coin" label="定价">
|
|
|
+ <el-table-column prop="category_str" label="频道" v-if="!rolesIdentify.includes('optimizer')" />
|
|
|
+ <el-table-column prop="shelf_type_str" label="上架状态" v-if="!rolesIdentify.includes('optimizer')" />
|
|
|
+ <el-table-column prop="charge_sequence" label="起始集" v-if="!rolesIdentify.includes('optimizer')" />
|
|
|
+ <el-table-column prop="charge_coin" label="定价" v-if="!rolesIdentify.includes('optimizer')">
|
|
|
<template #header>
|
|
|
<div class="flex items-center">
|
|
|
<span>定价</span>
|
|
|
<el-tooltip placement="top">
|
|
|
- <template #content> multiple lines<br />second line </template>
|
|
|
+ <template #content> 定价为所需看剧币<br />1元等于100币 </template>
|
|
|
<el-icon>
|
|
|
<InfoFilled />
|
|
|
</el-icon>
|
|
@@ -161,6 +161,7 @@ const current = ref({})
|
|
|
const selectType = ref([])
|
|
|
const statusOptions = ref([{ label: '连载中', value: '1' }, { label: '完结', value: '2' }]);
|
|
|
const cooperations = ref([]);
|
|
|
+const rolesIdentify = ref([]);
|
|
|
|
|
|
|
|
|
const userStore = useUserStore()
|
|
@@ -279,6 +280,8 @@ const mulSet = () => {
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ rolesIdentify.value = userStore.getRoles?.map(el => el?.identify)
|
|
|
+ console.log(rolesIdentify.value, 'rolesroles');
|
|
|
if (userStore.getRoles?.some(el => (el?.identify == 'company'))) {
|
|
|
query.value.operateUserId = JSON.parse(Cache.get('nav_data'))?.advertiser?.id;
|
|
|
}
|