|
@@ -43,60 +43,62 @@
|
|
>新建资料</el-button>
|
|
>新建资料</el-button>
|
|
<el-button class="inline-block" type="primary" icon="el-icon-open">批量上架</el-button>
|
|
<el-button class="inline-block" type="primary" icon="el-icon-open">批量上架</el-button>
|
|
</div>
|
|
</div>
|
|
- <el-table :data="tableData" border style="width: 100%">
|
|
|
|
- <el-table-column
|
|
|
|
- type="selection"
|
|
|
|
- width="55"
|
|
|
|
- />
|
|
|
|
- <el-table-column label="名称" width="300">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.name }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="所属分类" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.sort }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="播放次数" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.time }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="访问量" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.traffic }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="格式" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.type }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="状态" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="margin-left: 10px">{{ scope.row.status }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="操作">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button size="mini" type="primary" @click="dialogFormVisible = true,sort=true ;">修改</el-button>
|
|
|
|
- <el-button size="mini" type="success" @click="handleModifyStatus(row,'published')">上架</el-button>
|
|
|
|
- <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
|
|
+ <el-tabs type="border-card">
|
|
|
|
+ <el-table v-loading="loading" :data="tableData" border style="width: 100%" highlight-current-row="true">
|
|
|
|
+ <el-table-column
|
|
|
|
+ type="selection"
|
|
|
|
+ width="55"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column label="名称" width="300">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.name }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="所属分类" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.sort }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="播放次数" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.time }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="访问量" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.traffic }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="格式" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.type }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="状态" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="margin-left: 10px">{{ scope.row.status }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button size="mini" type="primary" @click="dialogFormVisible = true,sort=true ;">修改</el-button>
|
|
|
|
+ <el-button size="mini" type="success" @click="handleModifyStatus(row,'published')">上架</el-button>
|
|
|
|
+ <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-tabs>
|
|
|
|
|
|
<el-pagination style="margin-top:50px" background layout="prev, pager, next" :total="1000" />
|
|
<el-pagination style="margin-top:50px" background layout="prev, pager, next" :total="1000" />
|
|
|
|
|
|
- <el-dialog title="新建资料" :visible.sync="dialogFormVisible" @close="$refs['addForm'].resetFields()">
|
|
|
|
|
|
+ <el-dialog title="新建资料" :visible.sync="dialogFormVisible" top="8vh">
|
|
<el-form :model="form">
|
|
<el-form :model="form">
|
|
<el-form-item label="填写名称" :label-width="formLabelWidth">
|
|
<el-form-item label="填写名称" :label-width="formLabelWidth">
|
|
<el-input v-model="form.name" autocomplete="off" />
|
|
<el-input v-model="form.name" autocomplete="off" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="所属分类" :label-width="formLabelWidth">
|
|
<el-form-item label="所属分类" :label-width="formLabelWidth">
|
|
<template>
|
|
<template>
|
|
- <el-checkbox-group v-model="checkList">
|
|
|
|
|
|
+ <el-checkbox-group v-model="form.sort">
|
|
<el-checkbox label="分类1" />
|
|
<el-checkbox label="分类1" />
|
|
<el-checkbox label="分类2" />
|
|
<el-checkbox label="分类2" />
|
|
<el-checkbox label="分类3" />
|
|
<el-checkbox label="分类3" />
|
|
@@ -125,8 +127,6 @@
|
|
list-type="picture-card"
|
|
list-type="picture-card"
|
|
:limit="limitNum"
|
|
:limit="limitNum"
|
|
:on-exceed="numberOverflow"
|
|
:on-exceed="numberOverflow"
|
|
- :on-success="handleSuccess"
|
|
|
|
- :on-error="handleError"
|
|
|
|
>
|
|
>
|
|
<i class="el-icon-plus" />
|
|
<i class="el-icon-plus" />
|
|
<div slot="tip" class="el-upload__tip">封面只能上传jpg/png,且不超过2M</div>
|
|
<div slot="tip" class="el-upload__tip">封面只能上传jpg/png,且不超过2M</div>
|
|
@@ -153,7 +153,7 @@
|
|
</el-upload>
|
|
</el-upload>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer ">
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
|
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -220,6 +220,7 @@ export default {
|
|
status: '下架'
|
|
status: '下架'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
|
|
+ loading: false,
|
|
options2: [
|
|
options2: [
|
|
{
|
|
{
|
|
value: '选项1',
|
|
value: '选项1',
|
|
@@ -254,10 +255,8 @@ export default {
|
|
dialogFormVisible: false,
|
|
dialogFormVisible: false,
|
|
form: {
|
|
form: {
|
|
name: '',
|
|
name: '',
|
|
- region: '',
|
|
|
|
|
|
+ sort: [],
|
|
type: '',
|
|
type: '',
|
|
- date1: '',
|
|
|
|
- date2: '',
|
|
|
|
delivery: false,
|
|
delivery: false,
|
|
resource: '',
|
|
resource: '',
|
|
desc: ''
|
|
desc: ''
|
|
@@ -314,3 +313,8 @@ export default {
|
|
margin-left: 15px;
|
|
margin-left: 15px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
+<style lang="scss">
|
|
|
|
+.el-table td, .el-table th {
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+</style>
|