修改
This commit is contained in:
parent
adc5bdae2e
commit
e7c5824f70
@ -13,14 +13,15 @@
|
|||||||
<img class="material-img" :src="item.url" />
|
<img class="material-img" :src="item.url" />
|
||||||
<p class="item-name">{{ item.name }}</p>
|
<p class="item-name">{{ item.name }}</p>
|
||||||
<el-row class="ope-row">
|
<el-row class="ope-row">
|
||||||
<el-button type="success" @click="selectMaterialFun(item)">
|
<el-button type="success" @click="selectMaterialFun(item)"
|
||||||
选择 <Icon icon="ep:circle-check" />
|
>选择 <Icon icon="ep:circle-check" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<Pagination
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-model:page="queryParams.pageNo"
|
v-model:page="queryParams.pageNo"
|
||||||
v-model:limit="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@ -29,6 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 类型:voice -->
|
<!-- 类型:voice -->
|
||||||
<div v-else-if="objData.type === 'voice'">
|
<div v-else-if="objData.type === 'voice'">
|
||||||
|
<!-- 列表 -->
|
||||||
<el-table v-loading="loading" :data="list">
|
<el-table v-loading="loading" :data="list">
|
||||||
<el-table-column label="编号" align="center" prop="mediaId" />
|
<el-table-column label="编号" align="center" prop="mediaId" />
|
||||||
<el-table-column label="文件名" align="center" prop="name" />
|
<el-table-column label="文件名" align="center" prop="name" />
|
||||||
@ -37,23 +39,27 @@
|
|||||||
<WxVoicePlayer :url="scope.row.url" />
|
<WxVoicePlayer :url="scope.row.url" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="上传时间" align="center" prop="createTime" width="180">
|
||||||
label="上传时间"
|
|
||||||
align="center"
|
|
||||||
prop="createTime"
|
|
||||||
width="180"
|
|
||||||
:formatter="dateFormatter"
|
|
||||||
/>
|
|
||||||
<el-table-column label="操作" align="center" fixed="right">
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button type="text" @click="selectMaterialFun(scope.row)">
|
<span>{{ formatDate(scope.row.createTime) }}</span>
|
||||||
选择 <Icon icon="ep:plus" />
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
fixed="right"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button type="text" @click="selectMaterialFun(scope.row)"
|
||||||
|
>选择<Icon icon="ep:plus" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<Pagination
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-model:page="queryParams.pageNo"
|
v-model:page="queryParams.pageNo"
|
||||||
v-model:limit="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@ -73,14 +79,17 @@
|
|||||||
<WxVideoPlayer :url="scope.row.url" />
|
<WxVideoPlayer :url="scope.row.url" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="上传时间" align="center" prop="createTime" width="180">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ formatDate(scope.row.createTime) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="上传时间"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createTime"
|
fixed="right"
|
||||||
width="180"
|
class-name="small-padding fixed-width"
|
||||||
:formatter="dateFormatter"
|
>
|
||||||
/>
|
|
||||||
<el-table-column label="操作" align="center">
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button type="text" @click="selectMaterialFun(scope.row)"
|
<el-button type="text" @click="selectMaterialFun(scope.row)"
|
||||||
>选择<Icon icon="akar-icons:circle-plus" />
|
>选择<Icon icon="akar-icons:circle-plus" />
|
||||||
@ -89,7 +98,8 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<Pagination
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-model:page="queryParams.pageNo"
|
v-model:page="queryParams.pageNo"
|
||||||
v-model:limit="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@ -111,7 +121,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<Pagination
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-model:page="queryParams.pageNo"
|
v-model:page="queryParams.pageNo"
|
||||||
v-model:limit="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@ -120,6 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" name="WxMaterialSelect">
|
<script lang="ts" name="WxMaterialSelect">
|
||||||
import WxNews from '@/views/mp/components/wx-news/main.vue'
|
import WxNews from '@/views/mp/components/wx-news/main.vue'
|
||||||
import WxVoicePlayer from '@/views/mp/components/wx-voice-play/main.vue'
|
import WxVoicePlayer from '@/views/mp/components/wx-voice-play/main.vue'
|
||||||
@ -127,7 +139,7 @@ import WxVideoPlayer from '@/views/mp/components/wx-video-play/main.vue'
|
|||||||
import { getMaterialPage } from '@/api/mp/material'
|
import { getMaterialPage } from '@/api/mp/material'
|
||||||
import { getFreePublishPage } from '@/api/mp/freePublish'
|
import { getFreePublishPage } from '@/api/mp/freePublish'
|
||||||
import { getDraftPage } from '@/api/mp/draft'
|
import { getDraftPage } from '@/api/mp/draft'
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter, formatDate } from '@/utils/formatTime'
|
||||||
import { defineComponent, PropType } from 'vue'
|
import { defineComponent, PropType } from 'vue'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@ -231,6 +243,7 @@ export default defineComponent({
|
|||||||
selectMaterialFun,
|
selectMaterialFun,
|
||||||
getMaterialPageFun,
|
getMaterialPageFun,
|
||||||
getPage,
|
getPage,
|
||||||
|
formatDate,
|
||||||
newsTypeRef,
|
newsTypeRef,
|
||||||
queryParams,
|
queryParams,
|
||||||
objDataRef,
|
objDataRef,
|
||||||
|
Loading…
Reference in New Issue
Block a user