|
|
@@ -27,87 +27,94 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</transition>
|
|
|
- <el-tabs type="border-card" v-model="activeName" @tab-click="handleClickTab">
|
|
|
- <el-tab-pane label="内容审核" name="need">
|
|
|
- <div class="table-content">
|
|
|
+ <div class="table-content">
|
|
|
+ <el-tabs type="border-card" v-model="activeName" @tab-click="handleClickTab">
|
|
|
+ <el-tab-pane label="内容审核" name="need">
|
|
|
+
|
|
|
<el-table v-loading="loading" :data="itemPushList">
|
|
|
- <el-table-column label="ID" align="left" prop="id" width="200" />
|
|
|
- <el-table-column label="名称" align="left" prop="name" />
|
|
|
+ <el-table-column label="ID" align="left" prop="id" width="200"/>
|
|
|
+ <el-table-column label="名称" align="left" prop="name" width="700"/>
|
|
|
<el-table-column label="优先级" align="center" width="100" prop="level">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_level" :value="scope.row.level" />
|
|
|
+ <dict-tag :options="smsb_push_level" :value="scope.row.level"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="类型" align="center" width="100" prop="itemType">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_type" :value="scope.row.itemType" />
|
|
|
+ <dict-tag :options="smsb_push_type" :value="scope.row.itemType"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="发布状态" align="center" width="100" prop="status">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_state" :value="scope.row.status" />
|
|
|
+ <dict-tag :options="smsb_push_state" :value="scope.row.status"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建时间" align="left" prop="createTime" width="180" />
|
|
|
- <el-table-column label="创建人" align="left" prop="createUser" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
|
+ <el-table-column label="创建人" align="left" prop="createUser" width="140" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column label="创建时间" align="left" prop="createTime" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="120">
|
|
|
<template #default="scope">
|
|
|
<el-tooltip content="内容审核" placement="top">
|
|
|
<el-button link type="primary" icon="Notification" @click="handleApproval(scope.row)"
|
|
|
- v-hasPermi="['source:itemPush:edit']"></el-button>
|
|
|
+ v-hasPermi="['source:itemPush:edit']">内容审核
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
+ v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="我的已办" name="finish">
|
|
|
+ <el-table v-loading="loading" :data="itemPushList">
|
|
|
+ <el-table-column label="ID" align="left" prop="id" width="200"/>
|
|
|
+ <el-table-column label="名称" align="left" prop="name" width="700"/>
|
|
|
+ <el-table-column label="优先级" align="center" width="100" prop="level">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :options="smsb_push_level" :value="scope.row.level"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="类型" align="center" width="100" prop="itemType">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :options="smsb_push_type" :value="scope.row.itemType"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发布状态" align="center" width="100" prop="status">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :options="smsb_push_state" :value="scope.row.status"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建人" align="left" prop="createUser" width="140" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column label="创建时间" align="left" prop="createTime" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="120">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-tooltip content="审核详情" placement="top">
|
|
|
+ <el-button link type="primary" icon="View" @click="handleReview(scope.row)"
|
|
|
+ v-hasPermi="['source:itemPush:edit']">审核详情
|
|
|
+ </el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- </div>
|
|
|
- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
- v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
- </el-tab-pane>
|
|
|
- <el-tab-pane label="我的已办" name="finish">
|
|
|
- <el-table v-loading="loading" :data="itemPushList">
|
|
|
- <el-table-column label="ID" align="left" prop="id" width="200" />
|
|
|
- <el-table-column label="名称" align="left" prop="name" />
|
|
|
- <el-table-column label="优先级" align="center" width="100" prop="level">
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_level" :value="scope.row.level" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="类型" align="center" width="100" prop="itemType">
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_type" :value="scope.row.itemType" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="发布状态" align="center" width="100" prop="status">
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :options="smsb_push_state" :value="scope.row.status" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="创建时间" align="left" prop="createTime" width="180" />
|
|
|
- <el-table-column label="创建人" align="left" prop="createUser" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
|
- <template #default="scope">
|
|
|
- <el-tooltip content="审核详情" placement="top">
|
|
|
- <el-button link type="primary" icon="View" @click="handleReview(scope.row)"
|
|
|
- v-hasPermi="['source:itemPush:edit']"></el-button>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
|
|
|
- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
- v-model:limit="queryParams.pageSize" @pagination="getFinishList" />
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
+ v-model:limit="queryParams.pageSize" @pagination="getFinishList"/>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
-import { ItemPushForm, ItemPushQuery, ItemPushVO } from '@/api/smsb/source/item_push_type';
|
|
|
-import { listNeedReview } from '@/api/smsb/source/item_push';
|
|
|
-import type { TabsPaneContext } from 'element-plus';
|
|
|
+import {ItemPushForm, ItemPushQuery, ItemPushVO} from '@/api/smsb/source/item_push_type';
|
|
|
+import {listNeedReview} from '@/api/smsb/source/item_push';
|
|
|
+import type {TabsPaneContext} from 'element-plus';
|
|
|
|
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
|
-const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const { smsb_push_state, smsb_push_type, smsb_push_level } = toRefs<any>(proxy?.useDict('smsb_push_state', 'smsb_push_type', 'smsb_push_level'));
|
|
|
+const {proxy} = getCurrentInstance() as ComponentInternalInstance;
|
|
|
+const {
|
|
|
+ smsb_push_state,
|
|
|
+ smsb_push_type,
|
|
|
+ smsb_push_level
|
|
|
+} = toRefs<any>(proxy?.useDict('smsb_push_state', 'smsb_push_type', 'smsb_push_level'));
|
|
|
const showSearch = ref(true);
|
|
|
const itemPushList = ref<ItemPushVO[]>([]);
|
|
|
const buttonLoading = ref(false);
|