|
@@ -6,34 +6,20 @@
|
|
<a-form layout="inline">
|
|
<a-form layout="inline">
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
|
- <a-form-item label="视频保存本地地址">
|
|
|
|
- <a-input placeholder="请输入视频保存本地地址" v-model="queryParam.localUrl"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
|
- <a-form-item label="视频描述">
|
|
|
|
- <a-input placeholder="请输入视频描述" v-model="queryParam.videoDesc"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <template v-if="toggleSearchStatus">
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
|
- <a-form-item label="videoName">
|
|
|
|
- <a-input placeholder="请输入videoName" v-model="queryParam.videoName"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
|
- <a-form-item label="视频类别">
|
|
|
|
- <a-input placeholder="请输入视频类别" v-model="queryParam.videoType"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
|
- <a-form-item label="登录人id">
|
|
|
|
- <a-input placeholder="请输入登录人id" v-model="queryParam.loginId"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
|
|
+
|
|
|
|
+ <template v-if="toggleSearchStatus">
|
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
|
+ <a-form-item label="视频名称">
|
|
|
|
+ <a-input placeholder="请输入视频名称" v-model="queryParam.videoName"></a-input>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
|
+ <a-form-item label="视频类别">
|
|
|
|
+ <a-input placeholder="请输入视频类别" v-model="queryParam.videoType"></a-input>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
</template>
|
|
</template>
|
|
- <a-col :md="6" :sm="8" >
|
|
|
|
|
|
+ <a-col :md="6" :sm="8">
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
@@ -52,21 +38,28 @@
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
<a-button type="primary" icon="download" @click="handleExportXls('快手-上传视频')">导出</a-button>
|
|
<a-button type="primary" icon="download" @click="handleExportXls('快手-上传视频')">导出</a-button>
|
|
- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
|
|
|
|
+ @change="handleImportExcel">
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
</a-upload>
|
|
</a-upload>
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
|
|
|
|
+ <a-menu-item key="1" @click="batchDel">
|
|
|
|
+ <a-icon type="delete"/>
|
|
|
|
+ 删除
|
|
|
|
+ </a-menu-item>
|
|
</a-menu>
|
|
</a-menu>
|
|
- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
|
|
|
|
+ <a-button style="margin-left: 8px"> 批量操作
|
|
|
|
+ <a-icon type="down"/>
|
|
|
|
+ </a-button>
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- table区域-begin -->
|
|
<!-- table区域-begin -->
|
|
<div>
|
|
<div>
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
|
|
|
|
|
+ <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
|
|
|
|
+ selectedRowKeys.length }}</a>项
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -85,9 +78,9 @@
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
- <a-divider type="vertical" />
|
|
|
|
|
|
+ <a-divider type="vertical"/>
|
|
<a-dropdown>
|
|
<a-dropdown>
|
|
- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
|
|
|
|
+ <a class="ant-dropdown-link">更多 <a-icon type="down"/></a>
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
<a-menu-item>
|
|
<a-menu-item>
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
@@ -109,15 +102,15 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import KuaiShouVideoModal from './modules/KuaiShouVideoModal'
|
|
import KuaiShouVideoModal from './modules/KuaiShouVideoModal'
|
|
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
|
|
|
+ import {JeecgListMixin} from '@/mixins/JeecgListMixin'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "KuaiShouVideoList",
|
|
name: "KuaiShouVideoList",
|
|
- mixins:[JeecgListMixin],
|
|
|
|
|
|
+ mixins: [JeecgListMixin],
|
|
components: {
|
|
components: {
|
|
KuaiShouVideoModal
|
|
KuaiShouVideoModal
|
|
},
|
|
},
|
|
- data () {
|
|
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
description: '快手-上传视频管理页面',
|
|
description: '快手-上传视频管理页面',
|
|
// 表头
|
|
// 表头
|
|
@@ -125,62 +118,56 @@
|
|
{
|
|
{
|
|
title: '#',
|
|
title: '#',
|
|
dataIndex: '',
|
|
dataIndex: '',
|
|
- key:'rowIndex',
|
|
|
|
- width:60,
|
|
|
|
- align:"center",
|
|
|
|
- customRender:function (t,r,index) {
|
|
|
|
- return parseInt(index)+1;
|
|
|
|
|
|
+ key: 'rowIndex',
|
|
|
|
+ width: 60,
|
|
|
|
+ align: "center",
|
|
|
|
+ customRender: function (t, r, index) {
|
|
|
|
+ return parseInt(index) + 1;
|
|
}
|
|
}
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '视频保存本地地址',
|
|
|
|
- align:"center",
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '视频本地地址',
|
|
|
|
+ align: "center",
|
|
dataIndex: 'localUrl'
|
|
dataIndex: 'localUrl'
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title: '视频描述',
|
|
title: '视频描述',
|
|
- align:"center",
|
|
|
|
|
|
+ align: "center",
|
|
dataIndex: 'videoDesc'
|
|
dataIndex: 'videoDesc'
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'videoName',
|
|
|
|
- align:"center",
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '视频名称',
|
|
|
|
+ align: "center",
|
|
dataIndex: 'videoName'
|
|
dataIndex: 'videoName'
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title: '视频类别',
|
|
title: '视频类别',
|
|
- align:"center",
|
|
|
|
|
|
+ align: "center",
|
|
dataIndex: 'videoType'
|
|
dataIndex: 'videoType'
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '登录人id',
|
|
|
|
- align:"center",
|
|
|
|
- dataIndex: 'loginId'
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'action',
|
|
dataIndex: 'action',
|
|
- align:"center",
|
|
|
|
- scopedSlots: { customRender: 'action' },
|
|
|
|
|
|
+ align: "center",
|
|
|
|
+ scopedSlots: {customRender: 'action'},
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- url: {
|
|
|
|
|
|
+ url: {
|
|
list: "/kuaishou/kuaiShouVideo/list",
|
|
list: "/kuaishou/kuaiShouVideo/list",
|
|
delete: "/kuaishou/kuaiShouVideo/delete",
|
|
delete: "/kuaishou/kuaiShouVideo/delete",
|
|
deleteBatch: "/kuaishou/kuaiShouVideo/deleteBatch",
|
|
deleteBatch: "/kuaishou/kuaiShouVideo/deleteBatch",
|
|
exportXlsUrl: "kuaishou/kuaiShouVideo/exportXls",
|
|
exportXlsUrl: "kuaishou/kuaiShouVideo/exportXls",
|
|
importExcelUrl: "kuaishou/kuaiShouVideo/importExcel",
|
|
importExcelUrl: "kuaishou/kuaiShouVideo/importExcel",
|
|
- },
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- computed: {
|
|
|
|
- importExcelUrl: function(){
|
|
|
|
- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ importExcelUrl: function () {
|
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style scoped>
|
|
<style scoped>
|