|
|
@@ -2,7 +2,7 @@
|
|
|
<a-card>
|
|
|
<!-- 标签页 -->
|
|
|
<a-tabs v-model:activeKey="formState.verifyStatus" @change="tabChange">
|
|
|
- <a-tab-pane key="0" tab="未发布"></a-tab-pane>
|
|
|
+ <a-tab-pane key="0,3" tab="未发布" v-if="!pageType"></a-tab-pane>
|
|
|
<a-tab-pane key="1" tab="待审核"></a-tab-pane>
|
|
|
<a-tab-pane key="2" tab="已发布"></a-tab-pane>
|
|
|
<!-- <a-tab-pane key="3" tab="已审核" v-if="pageType == 'economize'"></a-tab-pane> -->
|
|
|
@@ -51,12 +51,15 @@
|
|
|
:fieldNames="{ label: 'fileExtendName', value: 'fileExtendName', children: 'children' }"
|
|
|
placeholder="请选择资源格式"
|
|
|
/>
|
|
|
- <!-- <a-select v-model:value="formState.suffix" placeholder="请选择资源格式" style="width: 150px; margin-left: 8px">
|
|
|
- <a-select-option value="mp4">mp4</a-select-option>
|
|
|
- <a-select-option value="ppt">ppt</a-select-option>
|
|
|
- <a-select-option value="word">word</a-select-option>
|
|
|
- <a-select-option value="pdf">pdf</a-select-option>
|
|
|
- </a-select> -->
|
|
|
+ <a-select
|
|
|
+ v-if="['0,3', '0', '3'].includes(formState.verifyStatus)"
|
|
|
+ v-model:value="isVerifyStatus"
|
|
|
+ placeholder="请选择资源状态"
|
|
|
+ style="width: 150px; margin-left: 8px"
|
|
|
+ >
|
|
|
+ <a-select-option value="0">未发布</a-select-option>
|
|
|
+ <a-select-option value="3">未通过</a-select-option>
|
|
|
+ </a-select>
|
|
|
<!-- <a-select
|
|
|
v-model:value="formState.suffix"
|
|
|
style="width: 200px; margin-left: 8px"
|
|
|
@@ -70,7 +73,7 @@
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
style="margin-right: 8px"
|
|
|
- v-if="formState.verifyStatus === '0' && !pageType"
|
|
|
+ v-if="formState.verifyStatus === '0,3' && !pageType"
|
|
|
@click="batchPublish"
|
|
|
:disabled="selectedRowKeys.length === 0"
|
|
|
>
|
|
|
@@ -106,6 +109,7 @@
|
|
|
<span v-if="record.verifyStatus === '0'">
|
|
|
<a-badge status="processing" text="未发布" />
|
|
|
</span>
|
|
|
+
|
|
|
<span v-else-if="record.verifyStatus === 'uploaded'">
|
|
|
<a-badge status="success" text="已上传" />
|
|
|
</span>
|
|
|
@@ -115,6 +119,9 @@
|
|
|
<span v-else-if="record.verifyStatus === '2'">
|
|
|
<a-badge status="success" text="已发布" />
|
|
|
</span>
|
|
|
+ <span v-if="record.verifyStatus === '3'">
|
|
|
+ <a-badge status="error" text="未通过" />
|
|
|
+ </span>
|
|
|
<span v-else-if="record.verifyStatus === '4'">
|
|
|
<a-badge status="error" text="已删除" />
|
|
|
</span>
|
|
|
@@ -131,7 +138,7 @@
|
|
|
<!-- 个人资源操作列 -->
|
|
|
<template v-if="column.key === 'action' && !pageType">
|
|
|
<div class="editable-cell">
|
|
|
- <a v-if="formState.verifyStatus === '0'" @click="handlePublish(record)">发布</a>
|
|
|
+ <a v-if="formState.verifyStatus === '0,3'" @click="handlePublish(record)">发布</a>
|
|
|
<a v-if="formState.verifyStatus === '4'" @click="handleRestore(record)">恢复</a>
|
|
|
<a-divider type="vertical" />
|
|
|
<a-dropdown>
|
|
|
@@ -315,6 +322,7 @@
|
|
|
const isPublishBulk = ref(false) //是否批量发布
|
|
|
const loading = ref(false) // 列表loading
|
|
|
const isState = ref(0) //是否是编辑 0:新增 1:编辑
|
|
|
+ const isVerifyStatus = ref(null) //未发布状态 0未发布 3已驳回
|
|
|
const editResourcesId = ref(null) //资源id
|
|
|
// 搜索值
|
|
|
const searchValue = ref('')
|
|
|
@@ -328,7 +336,7 @@
|
|
|
})
|
|
|
const formState = reactive({
|
|
|
fileName: null,
|
|
|
- verifyStatus: '0',
|
|
|
+ verifyStatus: '0,3',
|
|
|
resourcesId: null,
|
|
|
// majorId: null, //专业
|
|
|
collegeId: null, //院校一级id
|
|
|
@@ -522,7 +530,7 @@
|
|
|
let params = {
|
|
|
current: pagination.pageNum,
|
|
|
size: pagination.pageSize,
|
|
|
- verifyStatus: formState.verifyStatus,
|
|
|
+ verifyStatus: isVerifyStatus.value ? isVerifyStatus.value : formState.verifyStatus,
|
|
|
fileName: formState.fileName,
|
|
|
resourceType: formState.resourceType,
|
|
|
resourceTwoType: formState.resourceTwoType,
|
|
|
@@ -640,6 +648,10 @@
|
|
|
searchValue.value = null
|
|
|
majorIdName.value = null
|
|
|
resourceName.value = null
|
|
|
+ isVerifyStatus.value = null
|
|
|
+ if (formState.verifyStatus == '3' || formState.verifyStatus == '0') {
|
|
|
+ formState.verifyStatus = '0,3'
|
|
|
+ }
|
|
|
formState.fileName = null
|
|
|
formState.resourceType = null
|
|
|
formState.resourceTwoType = null
|
|
|
@@ -877,9 +889,9 @@
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
- // if (pageType == 'economize') {
|
|
|
- // formState.verifyStatus = '1'
|
|
|
- // }
|
|
|
+ if (pageType == 'economize') {
|
|
|
+ formState.verifyStatus = '1'
|
|
|
+ }
|
|
|
getOrgTreeSelector()
|
|
|
getFileformat()
|
|
|
getResourceTypeTree()
|