Commit 0fb54293 authored by xulili's avatar xulili

conflict resolve

parents 097174d2 a0ff0c1c
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3,22 +3,20 @@ ...@@ -3,22 +3,20 @@
class="custom-dialog" class="custom-dialog"
custom-class="party-dialog" custom-class="party-dialog"
title="上传新版安装包" title="上传新版安装包"
width="540px" width="468px"
:visible.sync="formVisible" :visible.sync="formVisible"
:before-close="close" :before-close="close"
> >
<div class="dialog-content"> <div class="dialog-content">
<el-form <el-form
:model="formItem" :model="formItem"
class="party-form" class="party-form version-add"
ref="formItem" ref="formItem"
label-width="125px" label-position="top"
label-position="right"
:rules="rules" :rules="rules"
> >
<el-form-item label="版本号:" prop="appVersion"> <el-form-item label="版本号:" prop="appVersion">
<el-input <el-input
size="small"
v-model="formItem.appVersion" v-model="formItem.appVersion"
clearable clearable
placeholder="请输入版本号" placeholder="请输入版本号"
...@@ -27,14 +25,12 @@ ...@@ -27,14 +25,12 @@
<el-form-item label="版本信息:" prop="versionInfo"> <el-form-item label="版本信息:" prop="versionInfo">
<el-input <el-input
type="textarea" type="textarea"
size="small"
v-model="formItem.versionInfo" v-model="formItem.versionInfo"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="更新内容:" prop="updateContent"> <el-form-item label="更新内容:" prop="updateContent">
<el-input <el-input
type="textarea" type="textarea"
size="small"
v-model="formItem.updateContent" v-model="formItem.updateContent"
></el-input> ></el-input>
</el-form-item> </el-form-item>
...@@ -55,10 +51,9 @@ ...@@ -55,10 +51,9 @@
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer btn-group"> <div slot="footer" class="dialog-footer btn-group">
<el-button size="mini" type="primary" @click="submitForm('formItem')"
>确定</el-button
>
<el-button size="mini" @click="close">取 消</el-button> <el-button size="mini" @click="close">取 消</el-button>
<el-button size="mini" type="primary" @click="submitForm('formItem')">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
...@@ -87,10 +82,12 @@ export default { ...@@ -87,10 +82,12 @@ export default {
methods: { methods: {
backFn() { backFn() {
this.formVisible = true this.formVisible = true
this.formItem = {}
this.fileList = []
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.formItem.clearValidate() this.$refs.formItem.clearValidate()
}); });
this.formItem = {}
}, },
// 关闭 // 关闭
close() { close() {
...@@ -164,12 +161,16 @@ export default { ...@@ -164,12 +161,16 @@ export default {
<style lang="less"> <style lang="less">
@import "~@/style/dialog.less"; @import "~@/style/dialog.less";
.text-center { .version-add {
text-align: center; .el-upload-dragger {
} height: 120px;
.custom-dialog { .el-icon-upload {
.party-form .el-input { margin-top: 10px;
width: 100%; }
}
.text-center {
text-align: center;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -2,54 +2,31 @@ ...@@ -2,54 +2,31 @@
<el-dialog <el-dialog
custom-class="party-dialog" custom-class="party-dialog"
title="详情" title="详情"
width="540px" width="468px"
:visible.sync="formVisible" :visible.sync="formVisible"
:before-close="close" :before-close="close"
> >
<div class="dialog-content"> <div class="dialog-content">
<el-form <el-form
:model="formItem" :model="formItem"
class="party-form" class="party-form version-detail"
ref="formItem" ref="formItem"
label-width="180px" label-position="top"
label-position="right"
> >
<el-form-item label="上传时间:" prop="createTime"> <el-form-item label="上传时间:" prop="createTime">
<el-input <span class="input-item">{{formItem.createTime}}</span>
size="small"
v-model="formItem.createTime"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="操作者:" prop="userName"> <el-form-item label="操作者:" prop="userName">
<el-input <span class="input-item">{{formItem.userName}}</span>
size="small"
v-model="formItem.userName"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否为当前使用版本:"> <el-form-item label="是否为当前使用版本:">
<el-input <span class="input-item">{{formItem.isCurrent ? '是' : '否'}}</span>
size="small"
:value="formItem.isCurrent ? '是' : '否'"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="版本信息:" prop="versionInfo"> <el-form-item label="版本信息:" prop="versionInfo">
<el-input <span class="input-item">{{formItem.versionInfo}}</span>
type="textarea"
size="small"
v-model="formItem.versionInfo"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="更新内容:" prop="updateLog"> <el-form-item label="更新内容:" prop="updateLog">
<el-input <span class="input-item">{{formItem.updateLog}}</span>
type="textarea"
size="small"
v-model="formItem.updateLog"
disabled
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -82,4 +59,11 @@ export default { ...@@ -82,4 +59,11 @@ export default {
<style lang="less"> <style lang="less">
@import "~@/style/dialog.less"; @import "~@/style/dialog.less";
.version-detail {
.input-item {
font-size: 16px;
color:#333;
}
}
</style> </style>
\ No newline at end of file
...@@ -41,19 +41,21 @@ ...@@ -41,19 +41,21 @@
type="index" type="index"
width="120" width="120"
label="序号" label="序号"
align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="app版本号" label="app版本号"
prop="appVersion" prop="appVersion"
align="center"
></el-table-column> ></el-table-column>
<el-table-column label="是否为最新版本"> <el-table-column align="center" label="是否为最新版本">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isCurrent ? "是" : "否" }}</span> <span>{{ scope.row.isCurrent ? "是" : "否" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="上传时间" prop="createTime"></el-table-column> <el-table-column align="center" label="上传时间" prop="createTime"></el-table-column>
<el-table-column label="操作者" prop="userName"></el-table-column> <el-table-column align="center" label="操作者" prop="userName"></el-table-column>
<el-table-column label="操作" header-align="center" align="center"> <el-table-column align="center" label="操作" header-align="center">
<template slot-scope="scope" width="220"> <template slot-scope="scope" width="220">
<div class="table-btn-group"> <div class="table-btn-group">
<el-tooltip content="详情" placement="top"> <el-tooltip content="详情" placement="top">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<el-dialog <el-dialog
custom-class="party-dialog" custom-class="party-dialog"
:title="title" :title="title"
width="540px" width="468px"
:visible.sync="formVisible" :visible.sync="formVisible"
:before-close="close" :before-close="close"
> >
...@@ -12,12 +12,11 @@ ...@@ -12,12 +12,11 @@
class="party-form" class="party-form"
ref="formItem" ref="formItem"
label-width="125px" label-width="125px"
label-position="right" label-position="top"
:rules="rules" :rules="rules"
> >
<el-form-item label="所属单位:" prop="orgId"> <el-form-item label="所属单位:" prop="orgId">
<el-select <el-select
size="small"
v-model="formItem.orgId" v-model="formItem.orgId"
clearable clearable
placeholder="请选择所属单位" placeholder="请选择所属单位"
...@@ -33,7 +32,6 @@ ...@@ -33,7 +32,6 @@
</el-form-item> </el-form-item>
<el-form-item label="机构地理位置:" prop="areaName"> <el-form-item label="机构地理位置:" prop="areaName">
<el-input <el-input
size="small"
v-model="formItem.areaName" v-model="formItem.areaName"
disabled disabled
></el-input> ></el-input>
...@@ -41,8 +39,8 @@ ...@@ -41,8 +39,8 @@
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer btn-group"> <div slot="footer" class="dialog-footer btn-group">
<el-button type="primary" @click="submitForm('formItem')">确定</el-button>
<el-button @click="close">取 消</el-button> <el-button @click="close">取 消</el-button>
<el-button type="primary" @click="submitForm('formItem')">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
......
...@@ -38,22 +38,7 @@ ...@@ -38,22 +38,7 @@
<div class="btn-group"> <div class="btn-group">
<el-button type="primary" @click="addBox">新建机顶盒账号</el-button> <el-button type="primary" @click="addBox">新建机顶盒账号</el-button>
</div> </div>
<div class="party-table"> <party-table :feildList="feildList" :list="tableData"/>
<el-table
border
style="width: 100%; height: 100%"
height="100%"
:data="tableData"
>
<el-table-column
type="index"
width="120"
label="序号"
></el-table-column>
<el-table-column label="MAC地址" prop="mac"></el-table-column>
<el-table-column label="所属单位" prop="organName"></el-table-column>
</el-table>
</div>
<div class="partyt-pagination" style="margin: 0 20px"> <div class="partyt-pagination" style="margin: 0 20px">
<el-pagination <el-pagination
background background
...@@ -70,11 +55,12 @@ ...@@ -70,11 +55,12 @@
</template> </template>
<script> <script>
import { partyPagination } from "@/components/index"; import { partyPagination } from "@/components/index";
import partyTable from "@/components/table.vue";
import customDialog from "./components/dialog.vue"; import customDialog from "./components/dialog.vue";
import { getAreas } from "@/config/area.js"; import { getAreas } from "@/config/area.js";
import { getOrgListWithOutPage } from "@/config/organ.js"; import { getOrgListWithOutPage } from "@/config/organ.js";
export default { export default {
components: { partyPagination, customDialog }, components: { partyPagination, customDialog,partyTable },
data() { data() {
return { return {
page: { page: {
...@@ -82,6 +68,10 @@ export default { ...@@ -82,6 +68,10 @@ export default {
pageSize: 10, pageSize: 10,
total: 0 total: 0
}, },
feildList: [
{ prop: "mac", label: "MAC地址" },
{ prop: "organName", label: "所属单位" }
],
orgOptions: [], // 单位信息 orgOptions: [], // 单位信息
areaOptions: [], //区域信息 areaOptions: [], //区域信息
defaultProps: { defaultProps: {
......
...@@ -35,12 +35,10 @@ ...@@ -35,12 +35,10 @@
<div class="title">“北京市政府”展板互动信息汇总</div> <div class="title">“北京市政府”展板互动信息汇总</div>
<div class="page-tip"> <div class="page-tip">
<span class="page-tip-title">页面说明:</span> <span class="page-tip-title">页面说明:</span>
<span class="page-tips" <span class="page-tips">可查看某个组织机构的互动信息</span>
>可查看某个组织机构的互动信息</span
>
</div> </div>
</div> </div>
<div class="scrollBox"> <div class="scrollBox" v-show="tableData.length">
<div <div
class="content-item" class="content-item"
v-for="(item, index) in tableData" v-for="(item, index) in tableData"
...@@ -48,16 +46,17 @@ ...@@ -48,16 +46,17 @@
> >
<h5 class="title">{{ item.name }}</h5> <h5 class="title">{{ item.name }}</h5>
<p>{{ item.content }}</p> <p>{{ item.content }}</p>
<div class="img-box"> <div class="img-box" v-if="item.images.length">
<img v-for="(j, idx) in item.images" :src="j" :key="idx" alt="" /> <img v-for="(j, idx) in item.images" :src="j" :key="idx" alt="" />
</div> </div>
<div class="img-box" v-if="!item.images.length">暂无数据</div>
<div class="author"> <div class="author">
<div>{{ item.username }}</div> <div>{{ item.username }}</div>
<div>{{ item.createTime }}</div> <div>{{ item.createTime }}</div>
</div> </div>
</div> </div>
</div> </div>
<div class="partyt-pagination" style="margin: 0 20px"> <div class="partyt-pagination" style="margin: 0 20px" v-show="tableData.length">
<el-pagination <el-pagination
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -75,10 +74,10 @@ export default { ...@@ -75,10 +74,10 @@ export default {
data() { data() {
return { return {
filterText: "", filterText: "",
page: { page: {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 0 total: 0,
}, },
treeData: [], treeData: [],
defaultProps: { defaultProps: {
...@@ -96,19 +95,19 @@ export default { ...@@ -96,19 +95,19 @@ export default {
}, },
mounted() { mounted() {
// 获取全部组织机构数据 // 获取全部组织机构数据
this.getOrgData() this.getOrgData();
this.onSearch() // this.onSearch()
}, },
methods: { methods: {
// 查询 // 查询
onSearch() { onSearch() {
this.page.currentPage = 1 this.page.currentPage = 1;
this.getTableData() this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
getTableData() { getTableData() {
let vm = this let vm = this;
vm.tableData = [] vm.tableData = [];
let param = { let param = {
_index: this.page.currentPage, _index: this.page.currentPage,
_size: this.page.pageSize, _size: this.page.pageSize,
...@@ -124,29 +123,31 @@ export default { ...@@ -124,29 +123,31 @@ export default {
) )
.then((res) => { .then((res) => {
if (res.data.resultCode === "200") { if (res.data.resultCode === "200") {
let data = res.data.data let data = res.data.data;
vm.page.total = data.total vm.page.total = data.total;
vm.tableData = data.records vm.tableData = data.records;
if(!vm.tableData.length){
this.$message('暂无数据')
return false
}
vm.tableData.forEach((item) => { vm.tableData.forEach((item) => {
item.images = item.images.split(",") item.images = item.images ? item.images.split(",") : [];
item.images.forEach((result, index) => { item.images.forEach((result, index) => {
if (/\.(MP4|mp4)/.test(result)) { if (/\.(MP4|mp4)/.test(result)) {
item.images[index] = require("@/assets/video-icon.png") item.images[index] = require("@/assets/video-icon.png");
} else if (/\.(MP3|mp3)/.test(result)) { } else if (/\.(MP3|mp3)/.test(result)) {
item.images[index] = require("@/assets/audio-icon.png") item.images[index] = require("@/assets/audio-icon.png");
} else {
item.images[index] = require("@/assets/default-img.jpeg")
} }
}) });
}) });
vm.tableData = [...vm.tableData] vm.tableData = [...vm.tableData];
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
}) })
.catch(function (err) { .catch(function (err) {
console.log(err) console.log(err);
}); });
}, },
// 获取组织机构数据 // 获取组织机构数据
...@@ -158,13 +159,13 @@ export default { ...@@ -158,13 +159,13 @@ export default {
}).then( }).then(
(res) => { (res) => {
if (res.data.resultCode === "200") { if (res.data.resultCode === "200") {
this.treeData = res.data.data this.treeData = res.data.data;
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
}, },
(error) => { (error) => {
console.log(error) console.log(error);
} }
); );
}, },
...@@ -176,12 +177,12 @@ export default { ...@@ -176,12 +177,12 @@ export default {
// 点击节点事件 // 点击节点事件
handleNodeClick(data) { handleNodeClick(data) {
this.selectAreaId = data.id; this.selectAreaId = data.id;
this.onSearch() this.onSearch();
}, },
// 分页 // 分页
handleCurrentChange(val) { handleCurrentChange(val) {
this.page.currentPage = val this.page.currentPage = val;
this.getTableData() this.getTableData();
}, },
}, },
}; };
......
...@@ -56,14 +56,13 @@ ...@@ -56,14 +56,13 @@
type="index" type="index"
width="120" width="120"
label="序号" label="序号"
align="center"
></el-table-column> ></el-table-column>
<el-table-column label="mac地址" prop="mac"></el-table-column> <el-table-column align="center" label="mac地址" prop="mac"></el-table-column>
<el-table-column label="所属单位" prop="organName"></el-table-column> <el-table-column align="center" label="所属单位" prop="organName"></el-table-column>
<el-table-column label="机顶盒状态" prop="status"> <el-table-column align="center" label="机顶盒状态" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status === 1">待激活</span> <span>{{statusOptions[scope.row.status-1].label}}</span>
<span v-if="scope.row.status === 2">已激活</span>
<span v-if="scope.row.status === 3">故障</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -556,7 +556,7 @@ export default { ...@@ -556,7 +556,7 @@ export default {
this.editForm = resData; this.editForm = resData;
// this.ruleForm = data; // this.ruleForm = data;
// this.ruleForm = { // this.ruleForm = {
// assetCopyrightOwnerId :data.assetCopyrightOwnerId, // videoContentCopyrightOwnerId :data.videoContentCopyrightOwnerId,
// assetId:data.assetId, // assetId:data.assetId,
// assetTypeId:data.assetTypeId, // assetTypeId:data.assetTypeId,
// boardCopyrightOwnerId:data.boardCopyrightOwnerId, // boardCopyrightOwnerId:data.boardCopyrightOwnerId,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<el-upload <el-upload
class="upload-demo" class="upload-demo"
ref="upload" ref="upload"
action="http://192.168.110.67/mall/file/video/upload" action="http://192.168.110.67/mall/file/video/content/upload"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList" :file-list="fileList"
......
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
id: "" id: ""
}, },
classForm: { classForm: {
}, },
typeList: [], typeList: [],
rules: { rules: {
...@@ -417,10 +417,10 @@ export default { ...@@ -417,10 +417,10 @@ export default {
// } // }
// _this.editform= Object.assign({}, row); // _this.editform= Object.assign({}, row);
_this.FormVisible1 = true; _this.FormVisible1 = true;
this.getAssetTypeInfo(row.id) this.getVideoContentCatInfo(row.id)
}, },
// 获取展板分类详情 // 获取展板分类详情
getAssetTypeInfo(id){ getVideoContentCatInfo(id){
let vm = this; let vm = this;
vm.$https( vm.$https(
{ {
...@@ -429,7 +429,7 @@ export default { ...@@ -429,7 +429,7 @@ export default {
authType: this.backToken authType: this.backToken
}, },
// param // param
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getAssetCopyrightData"
v-model="ruleForm.assetCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
v-for="item in copyrightOwner" v-for="item in copyrightOwner"
...@@ -88,9 +88,9 @@ ...@@ -88,9 +88,9 @@
<el-form-item label="请选择预设视频分类"> <el-form-item label="请选择预设视频分类">
<el-select <el-select
placeholder="请选择预设视频分类" placeholder="请选择预设视频分类"
@focus="getAssetTypeData" @focus="getVideoContentCatData"
v-model="ruleForm.assetTypeId" v-model="ruleForm.videoContentCatId"
@change="getAssetType" @change="getVideoContentCat"
> >
<el-option <el-option
v-for="item in videoContentCat" v-for="item in videoContentCat"
...@@ -104,10 +104,10 @@ ...@@ -104,10 +104,10 @@
<el-select <el-select
placeholder="请选择视频" placeholder="请选择视频"
@focus="getVideoData" @focus="getVideoData"
v-model="ruleForm.assetId" v-model="ruleForm.videoContentId"
> >
<el-option <el-option
v-for="item in assetId" v-for="item in videoContentId"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
copyrightOwner: [], copyrightOwner: [],
boardCopyrightOwnerId:[], boardCopyrightOwnerId:[],
exhibitionBoardCatId:[], exhibitionBoardCatId:[],
assetId:[], videoContentId:[],
type: this.$route.query.type, type: this.$route.query.type,
dialogVisible: false, dialogVisible: false,
formLabelWidth: "100px", formLabelWidth: "100px",
...@@ -174,8 +174,8 @@ export default { ...@@ -174,8 +174,8 @@ export default {
ruleForm: { ruleForm: {
name: "", name: "",
boardCopyrightOwnerId:"", boardCopyrightOwnerId:"",
assetCopyrightOwnerId: "", videoContentCopyrightOwnerId: "",
assetTypeId: "", videoContentCatId: "",
videoUrlList: [] videoUrlList: []
}, },
videoContentCat: [ videoContentCat: [
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
trigger: "change" trigger: "change"
} }
], ],
}, },
activeNames: ["1", "2"] activeNames: ["1", "2"]
}; };
...@@ -233,14 +233,14 @@ export default { ...@@ -233,14 +233,14 @@ export default {
}, },
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist) { videoCopyright(idlist) {
this.ruleForm.assetCopyrightOwnerId = idlist; this.ruleForm.videoContentCopyrightOwnerId = idlist;
}, },
// 缩略图地址 // 缩略图地址
imgUrl(url) { imgUrl(url) {
console.log(url, "图片服务器地址"); console.log(url, "图片服务器地址");
this.ruleForm.cover = url; this.ruleForm.cover = url;
}, },
// 二维码 // 二维码
qrcodeUrl(url){ qrcodeUrl(url){
this.ruleForm.qrcodeUrl = url this.ruleForm.qrcodeUrl = url
}, },
...@@ -248,14 +248,14 @@ export default { ...@@ -248,14 +248,14 @@ export default {
videoList(list) { videoList(list) {
this.ruleForm.videoUrlList = list; this.ruleForm.videoUrlList = list;
}, },
getAssetType(data) { getVideoContentCat(data) {
console.log(data); console.log(data);
console.log(this.ruleForm.assetTypeId); console.log(this.ruleForm.videoContentCatId);
}, },
init() { init() {
if (this.$route.query.type === "Update") { if (this.$route.query.type === "Update") {
this.getInfo(this.$route.query.id); this.getInfo(this.$route.query.id);
this.getAssetTypeData(); this.getVideoContentCatData();
this.getAssetCopyrightData(); this.getAssetCopyrightData();
this.getExhibitionBoardCatId(); this.getExhibitionBoardCatId();
this.getBoardCopyrightOwnerId(); this.getBoardCopyrightOwnerId();
...@@ -278,9 +278,9 @@ export default { ...@@ -278,9 +278,9 @@ export default {
// this.ruleForm = data; // this.ruleForm = data;
console.log(this.ruleForm) console.log(this.ruleForm)
this.ruleForm = { this.ruleForm = {
assetCopyrightOwnerId :data.assetCopyrightOwnerId, videoContentCopyrightOwnerId :data.videoContentCopyrightOwnerId,
assetId:data.assetId, videoContentId:data.videoContentId,
assetTypeId:data.assetTypeId, videoContentCatId:data.videoContentCatId,
boardCopyrightOwnerId:data.boardCopyrightOwnerId, boardCopyrightOwnerId:data.boardCopyrightOwnerId,
cover:data.cover, cover:data.cover,
exhibitionBoardCatId:data.exhibitionBoardCatId, exhibitionBoardCatId:data.exhibitionBoardCatId,
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
// videoUrlList:data.videoUrlList // videoUrlList:data.videoUrlList
// 字段对不上 // 字段对不上
} }
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -450,10 +450,10 @@ export default { ...@@ -450,10 +450,10 @@ export default {
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 获取视频分类列表 // 获取视频分类列表
getAssetTypeData() { getVideoContentCatData() {
let vm = this; let vm = this;
vm.$https({ vm.$https({
url: "videoContentCat/getList", url: "videoContentCat/getList",
...@@ -478,7 +478,7 @@ export default { ...@@ -478,7 +478,7 @@ export default {
}) })
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
this.assetId = data; this.videoContentId = data;
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -496,4 +496,4 @@ export default { ...@@ -496,4 +496,4 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
</style> </style>
\ No newline at end of file
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
> >
<el-table-column type="index" width="120" label="序号"></el-table-column> <el-table-column type="index" width="120" label="序号"></el-table-column>
<el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column>
<el-table-column show-overflow-tooltip label="展板分类" prop="assetTypeNames"></el-table-column> <el-table-column show-overflow-tooltip label="展板分类" prop="exhibitionBoardCatNames"></el-table-column>
<el-table-column label="创建时间" prop="createTime"></el-table-column> <el-table-column label="创建时间" prop="createTime"></el-table-column>
<el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column> <el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column>
<el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column> <el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column>
......
...@@ -441,10 +441,10 @@ export default { ...@@ -441,10 +441,10 @@ export default {
// } // }
// _this.editform= Object.assign({}, row); // _this.editform= Object.assign({}, row);
_this.FormVisible1 = true; _this.FormVisible1 = true;
this.getAssetTypeInfo(row.id) this.getVideoContentCatInfo(row.id)
}, },
// 获取视频分类详情 // 获取视频分类详情
getAssetTypeInfo(id){ getVideoContentCatInfo(id){
let vm = this; let vm = this;
vm.$https( vm.$https(
{ {
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
authType: this.backToken authType: this.backToken
}, },
// param // param
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
......
<template> <template>
<div class="info"> <div class="info">
<!-- <audio-play></audio-play> --> <!-- <audio-play></audio-play> -->
<video-dialog></video-dialog> <!-- <video-dialog></video-dialog> -->
<div class="info-header">新建学习内容</div> <div class="info-header">新建学习内容</div>
<div class="info-container"> <div class="info-container">
<div class="info-wrapper"> <div class="info-wrapper">
...@@ -88,12 +88,11 @@ ...@@ -88,12 +88,11 @@
style="width: 100%;height:300px;overflow:auto;" style="width: 100%;height:300px;overflow:auto;"
height="100%" height="100%"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData">
> <el-table-column type="selection" width="55" ></el-table-column>
<el-table-column type="selection" width="55" ></el-table-column>
<el-table-column type="index" width="120" label="序号"></el-table-column> <el-table-column type="index" width="120" label="序号"></el-table-column>
<el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column>
<el-table-column show-overflow-tooltip label="展板类别" prop="assetCopyrightOwnerName"></el-table-column> <el-table-column show-overflow-tooltip label="展板类别" prop="exhibitionBoardCatName"></el-table-column>
<el-table-column show-overflow-tooltip label="展板版权方" prop="boardCopyrightOwnerName"></el-table-column> <el-table-column show-overflow-tooltip label="展板版权方" prop="boardCopyrightOwnerName"></el-table-column>
<el-table-column label="操作" width="180"> <el-table-column label="操作" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -107,7 +106,7 @@ ...@@ -107,7 +106,7 @@
style="padding:0" style="padding:0"
@click="displayPreview(scope.row)" @click="displayPreview(scope.row)"
>展板预览</el-button> >展板预览</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -215,7 +214,7 @@ export default { ...@@ -215,7 +214,7 @@ export default {
trigger: "change" trigger: "change"
} }
], ],
}, },
multipleSelection:[] multipleSelection:[]
}; };
...@@ -273,7 +272,7 @@ export default { ...@@ -273,7 +272,7 @@ export default {
} }
this.tableData = data.exhibitionBoardList this.tableData = data.exhibitionBoardList
this.multipleSelection = data.exhibitionBoardList this.multipleSelection = data.exhibitionBoardList
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -390,9 +389,9 @@ export default { ...@@ -390,9 +389,9 @@ export default {
this.checkedThing = false; this.checkedThing = false;
} }
}, },
// //
getSelectDep2(exhibitionBoardCatIdList) { getSelectDep2(exhibitionBoardCatIdList) {
if (exhibitionBoardCatIdList.length === this.assetType2.length) { if (exhibitionBoardCatIdList.length === this.assetType2.length) {
this.checkedThing2 = true; this.checkedThing2 = true;
} else { } else {
...@@ -482,7 +481,7 @@ export default { ...@@ -482,7 +481,7 @@ export default {
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
this.assetType2 = data; this.assetType2 = data;
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -525,4 +524,4 @@ export default { ...@@ -525,4 +524,4 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
</style> </style>
\ No newline at end of file
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
> >
<el-table-column type="index" width="120" label="序号"></el-table-column> <el-table-column type="index" width="120" label="序号"></el-table-column>
<el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column>
<el-table-column show-overflow-tooltip label="视频分类" prop="assetTypeNames"></el-table-column> <el-table-column show-overflow-tooltip label="视频分类" prop="videoContentCatNames"></el-table-column>
<el-table-column label="创建时间" prop="createTime"></el-table-column> <el-table-column label="创建时间" prop="createTime"></el-table-column>
<el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column> <el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column>
<el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column> <el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getAssetCopyrightData"
v-model="ruleForm.assetCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
v-for="item in copyrightOwner" v-for="item in copyrightOwner"
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
value1: [], value1: [],
ruleForm: { ruleForm: {
name: "", name: "",
assetCopyrightOwnerId:"", videoContentCopyrightOwnerId:"",
assetTypeId: "", assetTypeId: "",
thumbnail:"", thumbnail:"",
videoUrlList:[] videoUrlList:[]
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
methods: { methods: {
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist){ videoCopyright(idlist){
this.ruleForm.assetCopyrightOwnerId = idlist this.ruleForm.videoContentCopyrightOwnerId = idlist
}, },
// 缩略图地址 // 缩略图地址
imgUrl(url){ imgUrl(url){
...@@ -265,7 +265,7 @@ export default { ...@@ -265,7 +265,7 @@ export default {
// this.ruleForm = data; // this.ruleForm = data;
this.ruleForm.id = data.id this.ruleForm.id = data.id
this.ruleForm.name = data.name this.ruleForm.name = data.name
this.ruleForm.assetCopyrightOwnerId = data.assetCopyrightOwnerId this.ruleForm.videoContentCopyrightOwnerId = data.videoContentCopyrightOwnerId
this.ruleForm.assetTypeId = data.assetTypeId this.ruleForm.assetTypeId = data.assetTypeId
this.ruleForm.thumbnail = data.thumbnail this.ruleForm.thumbnail = data.thumbnail
this.ruleForm.videoUrlList = data.videoUrlList this.ruleForm.videoUrlList = data.videoUrlList
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
// this.ruleForm.assetCopyrightOwnerId = ["1373225989501456385"] // this.ruleForm.videoContentCopyrightOwnerId = ["1373225989501456385"]
// this.ruleForm.assetTypeIdList = [] // this.ruleForm.assetTypeIdList = []
// this.ruleForm.videoUrlList = [ // this.ruleForm.videoUrlList = [
// "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4" // "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4"
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
// 修改版权方 // 修改版权方
updateForm(formName) { updateForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$https( this.$https(
{ {
...@@ -439,4 +439,4 @@ export default { ...@@ -439,4 +439,4 @@ export default {
<style lang="less"> <style lang="less">
@import "../../../../style/dialog"; @import "../../../../style/dialog";
</style> </style>
\ No newline at end of file
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
> >
<el-table-column type="index" width="120" label="序号"></el-table-column> <el-table-column type="index" width="120" label="序号"></el-table-column>
<el-table-column show-overflow-tooltip label="视频名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="视频名称" prop="name"></el-table-column>
<el-table-column show-overflow-tooltip label="版权方" prop="assetCopyrightOwnerName"></el-table-column> <el-table-column show-overflow-tooltip label="版权方" prop="videoContentCopyrightOwnerName"></el-table-column>
<el-table-column label="视频分类" prop="assetTypeName"></el-table-column> <el-table-column label="视频分类" prop="videoContentCatName"></el-table-column>
<el-table-column label="审核状态" prop="auditStatus"> <el-table-column label="审核状态" prop="auditStatus">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.auditStatus === 'TBC'">待初审</span> <span v-if="scope.row.auditStatus === 'TBC'">待初审</span>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
> >
<el-table-column type="index" width="120" label="序号"></el-table-column> <el-table-column type="index" width="120" label="序号"></el-table-column>
<el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column> <el-table-column show-overflow-tooltip label="版权方名称" prop="name"></el-table-column>
<el-table-column show-overflow-tooltip label="视频分类" prop="assetTypeNames"></el-table-column> <el-table-column show-overflow-tooltip label="视频分类" prop="videoContentCatNames"></el-table-column>
<el-table-column label="创建时间" prop="createTime"></el-table-column> <el-table-column label="创建时间" prop="createTime"></el-table-column>
<el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column> <el-table-column label="版权方有效期" prop="expireDateEnd"></el-table-column>
<el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column> <el-table-column show-overflow-tooltip label="备注" prop="remarks"></el-table-column>
...@@ -63,25 +63,25 @@ ...@@ -63,25 +63,25 @@
<i class="icon-table icon-del"></i> <i class="icon-table icon-del"></i>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- <el-tooltip content="禁用" placement="top"> <!-- <el-tooltip content="禁用" placement="top">
<el-button <el-button
circle circle
:disabled="scope.row.status == 2 || scope.row.statusName == '待审核' " :disabled="scope.row.status == 2 || scope.row.statusName == '待审核' "
@click="handleOperate(scope.row,'disable')"> @click="handleOperate(scope.row,'disable')">
<i class="icon-table icon-disable"></i> <i class="icon-table icon-disable"></i>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip content="激活" placement="top"> <el-tooltip content="激活" placement="top">
<el-button <el-button
circle circle
:disabled="scope.row.status == 1" :disabled="scope.row.status == 1"
@click="handleOperate(scope.row,'enable')"> @click="handleOperate(scope.row,'enable')">
<i class="icon-table icon-enable"></i> <i class="icon-table icon-enable"></i>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip content="审核详情" placement="top"> <el-tooltip content="审核详情" placement="top">
<el-button <el-button
circle circle
@click="handleOperate(scope.row,'examine')"> @click="handleOperate(scope.row,'examine')">
<i class="icon-table icon-detail"></i> <i class="icon-table icon-detail"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment