Commit 78a5d931 authored by qzhxx's avatar qzhxx

视频管理

parents e6d6d4b0 3c00a481
...@@ -3,7 +3,8 @@ let getAreas = function(){ ...@@ -3,7 +3,8 @@ let getAreas = function(){
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
httpServer({ httpServer({
method: 'get', method: 'get',
url: 'organ/getAreaTree' url: 'organ/getAreaTree',
authType: "back"
}).then(res=>{ }).then(res=>{
if(res.status != 200){ if(res.status != 200){
resolve([]) resolve([])
......
...@@ -160,7 +160,6 @@ export default { ...@@ -160,7 +160,6 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/dialog.less";
.version-add { .version-add {
.el-upload-dragger { .el-upload-dragger {
height: 120px; height: 120px;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</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="close()">确定</el-button> <el-button size="mini" type="primary" @click="close()">关 闭</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
...@@ -58,7 +58,6 @@ export default { ...@@ -58,7 +58,6 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/dialog.less";
.version-detail { .version-detail {
.input-item { .input-item {
font-size: 16px; font-size: 16px;
......
...@@ -37,12 +37,11 @@ ...@@ -37,12 +37,11 @@
height="100%" height="100%"
:data="tableData" :data="tableData"
> >
<el-table-column <el-table-column type="index" width="120" label="序号" align="center">
type="index" <template slot-scope="scope">
width="120" <span>{{ (page._index - 1) * 10 + scope.$index + 1 }}</span>
label="序号" </template>
align="center" </el-table-column>
></el-table-column>
<el-table-column <el-table-column
label="app版本号" label="app版本号"
prop="appVersion" prop="appVersion"
...@@ -53,8 +52,16 @@ ...@@ -53,8 +52,16 @@
<span>{{ scope.row.isCurrent ? "是" : "否" }}</span> <span>{{ scope.row.isCurrent ? "是" : "否" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="上传时间" prop="createTime"></el-table-column> <el-table-column
<el-table-column align="center" label="操作者" prop="userName"></el-table-column> align="center"
label="上传时间"
prop="createTime"
></el-table-column>
<el-table-column
align="center"
label="操作者"
prop="userName"
></el-table-column>
<el-table-column align="center" label="操作" header-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">
...@@ -64,7 +71,7 @@ ...@@ -64,7 +71,7 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip content="启用" placement="top"> <el-tooltip content="启用" placement="top">
<el-button circle @click="ableBtn(scope.row)"> <el-button circle :disabled="!!scope.row.isCurrent" @click="ableBtn(scope.row)">
<i class="icon-table icon-enable"></i> <i class="icon-table icon-enable"></i>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
...@@ -73,31 +80,22 @@ ...@@ -73,31 +80,22 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="partyt-pagination"> <party-pagination :page="page" @changePage="handleCurrentChange" />
<el-pagination
background
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-size="page.pageSize"
layout="prev, pager, next, jumper"
:total="page.total"
></el-pagination>
</div>
</div> </div>
<add-dialog ref="addDialog" @refreshFn="onSearch" /> <add-dialog ref="addDialog" @refreshFn="onSearch" />
<detail-dialog ref="detailDialog" /> <detail-dialog ref="detailDialog" />
</div> </div>
</template> </template>
<script> <script>
import { partyPagination, partyTable } from "@/components/index"; import { partyPagination } from "@/components/index";
import { addDialog, detailDialog } from "./components/index"; import { addDialog, detailDialog } from "./components/index";
export default { export default {
data() { data() {
return { return {
page: { page: {
currentPage: 1, _index: 1,
pageSize: 10, _size: 10,
total: 0 total: 0,
}, },
form: { form: {
dateRange: [], dateRange: [],
...@@ -112,15 +110,15 @@ export default { ...@@ -112,15 +110,15 @@ export default {
methods: { methods: {
// 查询 // 查询
onSearch() { onSearch() {
this.page.currentPage = 1; this.page._index = 1;
this.getTableData(); this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
getTableData() { getTableData() {
let vm = this let vm = this;
let param = { let param = {
_index: this.page.currentPage, _index: this.page._index,
_size: this.page.pageSize, _size: this.page._size,
startDate: this.form.dateRange.length ? this.form.dateRange[0] : "", startDate: this.form.dateRange.length ? this.form.dateRange[0] : "",
endDate: this.form.dateRange.length ? this.form.dateRange[1] : "", endDate: this.form.dateRange.length ? this.form.dateRange[1] : "",
}; };
...@@ -134,15 +132,15 @@ export default { ...@@ -134,15 +132,15 @@ 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;
} 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);
}); });
}, },
// 新增弹框打开 // 新增弹框打开
...@@ -171,7 +169,7 @@ export default { ...@@ -171,7 +169,7 @@ export default {
}, },
// 启用 // 启用
updateVersion(row) { updateVersion(row) {
let vm = this let vm = this;
let param = { let param = {
id: row.id, id: row.id,
isCurrent: 1, isCurrent: 1,
...@@ -186,14 +184,14 @@ export default { ...@@ -186,14 +184,14 @@ export default {
) )
.then((res) => { .then((res) => {
if (res.data.resultCode === "200") { if (res.data.resultCode === "200") {
this.$message.success("操作成功") this.$message.success("操作成功");
this.onSearch() this.onSearch();
} 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);
}); });
}, },
// 重置 // 重置
...@@ -201,12 +199,12 @@ export default { ...@@ -201,12 +199,12 @@ export default {
this.form = { this.form = {
dateRange: [], dateRange: [],
}; };
this.onSearch() this.onSearch();
}, },
// 分页 // 分页
handleCurrentChange(val) { handleCurrentChange(val) {
this.page.currentPage = val this.page._index = val;
this.getTableData() this.getTableData();
}, },
}, },
}; };
......
...@@ -135,5 +135,4 @@ export default { ...@@ -135,5 +135,4 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/dialog.less";
</style> </style>
\ No newline at end of file
...@@ -38,24 +38,14 @@ ...@@ -38,24 +38,14 @@
<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>
<party-table :feildList="feildList" :list="tableData"/> <party-table :currentPage="page._index" :feildList="feildList" :list="tableData"/>
<div class="partyt-pagination" style="margin: 0 20px"> <party-pagination :page="page" @changePage="handleCurrentChange"/>
<el-pagination
background
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-size="page.pageSize"
layout="prev, pager, next, jumper"
:total="page.total"
></el-pagination>
</div>
</div> </div>
<custom-dialog ref="formItem" @refreshFn="onSearch" /> <custom-dialog ref="formItem" @refreshFn="onSearch" />
</div> </div>
</template> </template>
<script> <script>
import { partyPagination } from "@/components/index"; import { partyPagination,partyTable} 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";
...@@ -64,8 +54,8 @@ export default { ...@@ -64,8 +54,8 @@ export default {
data() { data() {
return { return {
page: { page: {
currentPage: 1, _index: 1,
pageSize: 10, _size: 10,
total: 0 total: 0
}, },
feildList: [ feildList: [
...@@ -103,15 +93,15 @@ export default { ...@@ -103,15 +93,15 @@ export default {
}, },
// 查询 // 查询
onSearch() { onSearch() {
this.page.currentPage = 1 this.page._index = 1
this.getTableData() this.getTableData()
}, },
// 获得数据接口 // 获得数据接口
getTableData() { getTableData() {
let vm = this; let vm = this;
let param = { let param = {
_index: this.page.currentPage, _index: this.page._index,
_size: this.page.pageSize, _size: this.page._size,
areaId: this.form.areaId.length ? this.form.areaId[this.form.areaId.length - 1] : '', areaId: this.form.areaId.length ? this.form.areaId[this.form.areaId.length - 1] : '',
organId: this.form.orgId organId: this.form.orgId
}; };
...@@ -150,13 +140,12 @@ export default { ...@@ -150,13 +140,12 @@ export default {
}, },
// 分页 // 分页
handleCurrentChange(val) { handleCurrentChange(val) {
this.page.currentPage = val; this.page._index = val;
this.getTableData(); this.getTableData();
}, },
}, },
}; };
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/table.less"; // @import "~@/style/table.less";
@import "~@/style/pagination.less";
</style> </style>
\ No newline at end of file
...@@ -44,10 +44,13 @@ ...@@ -44,10 +44,13 @@
v-for="(item, index) in tableData" v-for="(item, index) in tableData"
:key="index" :key="index"
> >
<h5 class="title">{{ item.name }}</h5> <h5 class="title">{{ item.boardName }}</h5>
<p>{{ item.content }}</p> <p>{{ item.content||'暂无内容' }}</p>
<div class="img-box" v-if="item.images.length"> <div class="img-box" v-if="item.images.length">
<img v-for="(j, idx) in item.images" :src="j" :key="idx" alt="" /> <a target="_blank" v-for="(j, idx) in item.images" :key="idx" :href="j.url">
<img :src="j.cover" alt="" />
</a>
<!-- <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="img-box" v-if="!item.images.length">暂无数据</div>
<div class="author"> <div class="author">
...@@ -56,27 +59,20 @@ ...@@ -56,27 +59,20 @@
</div> </div>
</div> </div>
</div> </div>
<div class="partyt-pagination" style="margin: 0 20px" v-show="tableData.length"> <party-pagination v-show="tableData.length" :page="page" @changePage="handleCurrentChange"/>
<el-pagination
background
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-size="page.pageSize"
layout="prev, pager, next, jumper"
:total="page.total"
></el-pagination>
</div>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
import { partyPagination} from "@/components/index";
export default { export default {
components: { partyPagination },
data() { data() {
return { return {
filterText: "", filterText: "",
page: { page: {
currentPage: 1, _index: 1,
pageSize: 10, _size: 10,
total: 0, total: 0,
}, },
treeData: [], treeData: [],
...@@ -101,7 +97,7 @@ export default { ...@@ -101,7 +97,7 @@ export default {
methods: { methods: {
// 查询 // 查询
onSearch() { onSearch() {
this.page.currentPage = 1; this.page._index = 1;
this.getTableData(); this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
...@@ -109,8 +105,8 @@ export default { ...@@ -109,8 +105,8 @@ export default {
let vm = this; let vm = this;
vm.tableData = []; vm.tableData = [];
let param = { let param = {
_index: this.page.currentPage, _index: this.page._index,
_size: this.page.pageSize, _size: this.page._size,
orgId: this.selectAreaId, orgId: this.selectAreaId,
}; };
vm.$https( vm.$https(
...@@ -133,14 +129,20 @@ export default { ...@@ -133,14 +129,20 @@ export default {
vm.tableData.forEach((item) => { vm.tableData.forEach((item) => {
item.images = item.images ? item.images.split(",") : []; item.images = item.images ? item.images.split(",") : [];
item.images.forEach((result, index) => { item.images.forEach((result, index) => {
item.images[index] = {
url:result
}
if (/\.(MP4|mp4)/.test(result)) { if (/\.(MP4|mp4)/.test(result)) {
item.images[index] = require("@/assets/video-icon.png"); item.images[index].cover = 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].cover = require("@/assets/audio-icon.png");
} else if(/\.(jpg|png|jpeg|bmp|gif)/.test(result)) {
item.images[index].cover = result;
} else{
item.images[index].cover = 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);
...@@ -181,14 +183,13 @@ export default { ...@@ -181,14 +183,13 @@ export default {
}, },
// 分页 // 分页
handleCurrentChange(val) { handleCurrentChange(val) {
this.page.currentPage = val; this.page._index = val;
this.getTableData(); this.getTableData();
}, },
}, },
}; };
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/pagination.less";
.interactive-wrapper { .interactive-wrapper {
display: flex; display: flex;
.tree-box { .tree-box {
......
...@@ -52,43 +52,43 @@ ...@@ -52,43 +52,43 @@
height="100%" height="100%"
:data="tableData" :data="tableData"
> >
<el-table-column type="index" width="120" label="序号" align="center">
<template slot-scope="scope">
<span>{{ (page._index - 1) * 10 + scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
type="index"
width="120"
label="序号"
align="center" align="center"
label="mac地址"
prop="mac"
></el-table-column>
<el-table-column
align="center"
label="所属单位"
prop="organName"
></el-table-column> ></el-table-column>
<el-table-column align="center" label="mac地址" prop="mac"></el-table-column>
<el-table-column align="center" label="所属单位" prop="organName"></el-table-column>
<el-table-column align="center" label="机顶盒状态" prop="status"> <el-table-column align="center" label="机顶盒状态" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{statusOptions[scope.row.status-1].label}}</span> <span>{{ statusOptions[scope.row.status - 1].label }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="partyt-pagination" style="margin: 0 20px"> <party-pagination :page="page" @changePage="handleCurrentChange" />
<el-pagination
background
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-size="page.pageSize"
layout="prev, pager, next, jumper"
:total="page.total"
></el-pagination>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { partyPagination } from "@/components/index";
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 },
data() { data() {
return { return {
page: { page: {
currentPage: 1, _index: 1,
pageSize: 10, _size: 10,
total: 0, total: 0,
}, },
orgOptions: [], // 单位信息 orgOptions: [], // 单位信息
...@@ -137,15 +137,15 @@ export default { ...@@ -137,15 +137,15 @@ export default {
}, },
// 查询 // 查询
onSearch() { onSearch() {
this.page.currentPage = 1; this.page._index = 1;
this.getTableData(); this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
getTableData() { getTableData() {
let vm = this; let vm = this;
let param = { let param = {
_index: this.page.currentPage, _index: this.page._index,
_size: this.page.pageSize, _size: this.page._size,
areaId: this.form.areaId.length areaId: this.form.areaId.length
? this.form.areaId[this.form.areaId.length - 1] ? this.form.areaId[this.form.areaId.length - 1]
: "", : "",
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
}, },
// 分页 // 分页
handleCurrentChange(val) { handleCurrentChange(val) {
this.page.currentPage = val; this.page._index = val;
this.getTableData(); this.getTableData();
}, },
}, },
...@@ -192,5 +192,4 @@ export default { ...@@ -192,5 +192,4 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
@import "~@/style/table.less"; @import "~@/style/table.less";
@import "~@/style/pagination.less";
</style> </style>
\ No newline at end of file
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
</div> </div>
</div> </div>
<div class="btn-group footer-btn"> <div class="btn-group footer-btn">
<el-button size="mini" @click="close">取 消</el-button> <el-button @click="close">取 消</el-button>
<el-button size="mini" type="primary" @click="submitForm('editform')" <el-button type="primary" @click="submitForm('editform')"
>确定</el-button >确定</el-button
> >
</div> </div>
...@@ -234,8 +234,8 @@ export default { ...@@ -234,8 +234,8 @@ export default {
}, },
// 修改当前项 // 修改当前项
submitForm() { submitForm() {
this.updateCurrent(this.pageList[vm.radioPage].id, "tAppDirPic/update"); vm.radioPage && this.updateCurrent(this.pageList[vm.radioPage].id, "tAppDirPic/update");
this.updateCurrent(this.runList[vm.radioRun].id, "tAppRunPic/update"); vm.radioRun && this.updateCurrent(this.runList[vm.radioRun].id, "tAppRunPic/update");
}, },
updateCurrent(id, url) { updateCurrent(id, url) {
let vm = this; let vm = this;
...@@ -406,7 +406,7 @@ export default { ...@@ -406,7 +406,7 @@ export default {
padding-top: 20px; padding-top: 20px;
border-top: 1px solid #eee; border-top: 1px solid #eee;
.el-button { .el-button {
padding: 0 20px; width: 160px;
} }
} }
} }
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
> >
<i class="el-icon-plus fileUpload"></i> <i class="el-icon-plus fileUpload"></i>
</el-upload> </el-upload>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
return item.id; return item.id;
}) })
this.$emit('audioList', newArray) this.$emit('audioList', newArray)
} else { } else {
_this.$message.error(resData.msg || resData.message); _this.$message.error(resData.msg || resData.message);
} }
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
_this.$message.error(err.msg || err.message); _this.$message.error(err.msg || err.message);
}); });
}, },
uploadFile(file) { uploadFile(file) {
this.filedata.append('file', file.file) this.filedata.append('file', file.file)
...@@ -96,4 +96,4 @@ export default { ...@@ -96,4 +96,4 @@ export default {
font-size: 24px; font-size: 24px;
font: #ccc; font: #ccc;
} }
</style> </style>
\ No newline at end of file
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
> >
<i class="el-icon-plus fileUpload"></i> <i class="el-icon-plus fileUpload"></i>
</el-upload> </el-upload>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
return item.id; return item.id;
}) })
this.$emit('datumList', newArray) this.$emit('datumList', newArray)
} else { } else {
_this.$message.error(resData.msg || resData.message); _this.$message.error(resData.msg || resData.message);
} }
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
_this.$message.error(err.msg || err.message); _this.$message.error(err.msg || err.message);
}); });
}, },
uploadFile(file) { uploadFile(file) {
this.filedata.append('file', file.file) this.filedata.append('file', file.file)
...@@ -96,4 +96,4 @@ export default { ...@@ -96,4 +96,4 @@ export default {
font-size: 24px; font-size: 24px;
font: #ccc; font: #ccc;
} }
</style> </style>
\ No newline at end of file
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
> >
<i class="el-icon-plus fileUpload"></i> <i class="el-icon-plus fileUpload"></i>
</el-upload> </el-upload>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
return item.id; return item.id;
}) })
this.$emit('videoList', newArray) this.$emit('videoList', newArray)
} else { } else {
_this.$message.error(resData.msg || resData.message); _this.$message.error(resData.msg || resData.message);
} }
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
_this.$message.error(err.msg || err.message); _this.$message.error(err.msg || err.message);
}); });
}, },
uploadFile(file) { uploadFile(file) {
this.filedata.append('file', file.file) this.filedata.append('file', file.file)
...@@ -136,4 +136,4 @@ export default { ...@@ -136,4 +136,4 @@ export default {
font-size: 24px; font-size: 24px;
font: #ccc; font: #ccc;
} }
</style> </style>
\ No newline at end of file
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
methods: { methods: {
// 图片上传成功的返回值 // 图片上传成功的返回值
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
console.log(res) console.log(res)
console.log(res.data.url) console.log(res.data.url)
this.$emit('imgUrl', res.data.url) this.$emit('imgUrl', res.data.url)
...@@ -51,4 +51,4 @@ export default { ...@@ -51,4 +51,4 @@ export default {
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<el-form-item label="请选择视频版权方" class="w50"> <el-form-item label="请选择视频版权方" class="w50">
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getVideoContentCopyrightData"
v-model="ruleForm.videoContentCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
placeholder="请选择视频" placeholder="请选择视频"
@focus="getVideoData" @focus="getVideoData"
v-model="ruleForm.videoContentId" v-model="ruleForm.videoContentId"
> >
<el-option <el-option
v-for="item in videoContentId" v-for="item in videoContentId"
:label="item.name" :label="item.name"
...@@ -114,12 +114,11 @@ ...@@ -114,12 +114,11 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="w50" prop="audioUrlList"></el-form-item> <el-form-item class="w50" prop="audioIdList"></el-form-item>
<el-form-item label="导览音频" class="w50"> <el-form-item label="导览音频" class="w50">
<!-- <upload-img @imgUrl="imgUrl"></upload-img> -->
<upload-audio @audioList="audioList"></upload-audio> <upload-audio @audioList="audioList"></upload-audio>
</el-form-item> </el-form-item>
<el-form-item label="参考资料" class prop="materialUrlList"> <el-form-item label="参考资料" class prop="datumIdList">
<upload-datum @datumList="datumList"></upload-datum> <upload-datum @datumList="datumList"></upload-datum>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -163,7 +162,6 @@ export default { ...@@ -163,7 +162,6 @@ export default {
boardCopyrightOwnerId:[], boardCopyrightOwnerId:[],
exhibitionBoardCatId:[], exhibitionBoardCatId:[],
videoContentId:[], videoContentId:[],
type: this.$route.query.type,
dialogVisible: false, dialogVisible: false,
formLabelWidth: "100px", formLabelWidth: "100px",
form: { form: {
...@@ -176,7 +174,8 @@ export default { ...@@ -176,7 +174,8 @@ export default {
boardCopyrightOwnerId:"", boardCopyrightOwnerId:"",
videoContentCopyrightOwnerId: "", videoContentCopyrightOwnerId: "",
videoContentCatId: "", videoContentCatId: "",
videoUrlList: [] audioIdList: [],
datumIdList: []
}, },
videoContentCat: [ videoContentCat: [
{ {
...@@ -225,13 +224,12 @@ export default { ...@@ -225,13 +224,12 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
audioList(list){ audioList(list){
this.ruleForm.audioUrlList = list; this.ruleForm.audioIdList = list;
}, },
datumList(list){ datumList(list){
console.log(list,"122212fefe") this.ruleForm.datumIdList = list;
this.ruleForm.materialUrlList = list; },
},
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist) { videoCopyright(idlist) {
this.ruleForm.videoContentCopyrightOwnerId = idlist; this.ruleForm.videoContentCopyrightOwnerId = idlist;
...@@ -245,11 +243,7 @@ export default { ...@@ -245,11 +243,7 @@ export default {
qrcodeUrl(url){ qrcodeUrl(url){
this.ruleForm.qrcodeUrl = url this.ruleForm.qrcodeUrl = url
}, },
// 视频列表地址 getVideoContentCat(data) {
videoList(list) {
this.ruleForm.videoUrlList = list;
},
getVideoContentCat(data) {
console.log(data); console.log(data);
console.log(this.ruleForm.videoContentCatId); console.log(this.ruleForm.videoContentCatId);
}, },
...@@ -257,7 +251,7 @@ export default { ...@@ -257,7 +251,7 @@ export default {
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.getVideoContentCatData(); this.getVideoContentCatData();
this.getAssetCopyrightData(); this.getVideoContentCopyrightData();
this.getExhibitionBoardCatId(); this.getExhibitionBoardCatId();
this.getBoardCopyrightOwnerId(); this.getBoardCopyrightOwnerId();
this.getVideoData(); this.getVideoData();
...@@ -273,8 +267,7 @@ export default { ...@@ -273,8 +267,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;
// this.ruleForm = data; // this.ruleForm = data;
console.log(this.ruleForm) console.log(this.ruleForm)
...@@ -285,24 +278,17 @@ export default { ...@@ -285,24 +278,17 @@ export default {
boardCopyrightOwnerId:data.boardCopyrightOwnerId, boardCopyrightOwnerId:data.boardCopyrightOwnerId,
cover:data.cover, cover:data.cover,
exhibitionBoardCatId:data.exhibitionBoardCatId, exhibitionBoardCatId:data.exhibitionBoardCatId,
guideAudioUrl:data.guideAudioUrl,
id:data.id, id:data.id,
name:data.name, name:data.name,
qrcodeUrl:data.qrcodeUrl, qrcodeUrl:data.qrcodeUrl,
refMaterialUrl:data.refMaterialUrl,
remarks:data.remarks, remarks:data.remarks,
audioUrlList:data.audioUrlList, audioIdList:data.audioIdList,
materialUrlList:data.materialUrlList datumIdList:data.datumIdList
// videoUrlList:data.videoUrlList
// 字段对不上
} }
}).catch(function(err) {
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 新建视频分类 // 新建视频分类
addVideoClass() { addVideoClass() {
this.dialogVisible = true; this.dialogVisible = true;
...@@ -310,8 +296,8 @@ export default { ...@@ -310,8 +296,8 @@ export default {
// 弹窗保存 // 弹窗保存
save(formName) { save(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
this.ruleForm.expireDateEnd = this.value1[1];
this.ruleForm.expireDateStart = this.value1[0]; this.ruleForm.expireDateStart = this.value1[0];
this.ruleForm.expireDateEnd = this.value1[1];
if (valid) { if (valid) {
this.$https( this.$https(
{ {
...@@ -323,18 +309,16 @@ export default { ...@@ -323,18 +309,16 @@ export default {
authType: this.backToken authType: this.backToken
}, },
this.classForm this.classForm
) ).then(res => {
.then(res => {
this.$message({ type: "success", message: "新增分类成功!" }); this.$message({ type: "success", message: "新增分类成功!" });
this.dialogVisible = false; this.dialogVisible = false;
}) }).catch(function(err) {
.catch(function(err) {
this.$message({ this.$message({
type: "fail", type: "fail",
message: "新增失败!" + err.response.data.msg message: "新增失败!" + err.response.data.msg
}); });
console.log(err); console.log(err);
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -344,24 +328,21 @@ export default { ...@@ -344,24 +328,21 @@ export default {
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
console.log(this.ruleForm)
if (valid) { if (valid) {
this.$https( this.$https(
{ {
url: "/exhibitionBoard/save", url: "exhibitionBoard/save",
method: "post", method: "post",
authType: this.backToken authType: this.backToken
}, },
// this.ruleForm // this.ruleForm
this.$qs.stringify(this.ruleForm) this.$qs.stringify(this.ruleForm)
) ).then(res => {
.then(res => {
this.$message({ type: "success", message: "新增成功!" }); this.$message({ type: "success", message: "新增成功!" });
history.go(-1); history.go(-1);
}) }).catch(function(err) {
.catch(function(err) {
console.log(err); console.log(err);
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -379,15 +360,12 @@ export default { ...@@ -379,15 +360,12 @@ export default {
authType: this.backToken authType: this.backToken
}, },
this.$qs.stringify(this.ruleForm) this.$qs.stringify(this.ruleForm)
// this.ruleForm ).then(res => {
)
.then(res => {
this.$message({ type: "success", message: "修改成功!" }); this.$message({ type: "success", message: "修改成功!" });
history.go(-1); history.go(-1);
}) }).catch(function(err) {
.catch(function(err) {
console.log(err); console.log(err);
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -399,7 +377,7 @@ export default { ...@@ -399,7 +377,7 @@ export default {
history.go(-1); history.go(-1);
}, },
// 获取视频版权方 // 获取视频版权方
getAssetCopyrightData() { getVideoContentCopyrightData() {
let vm = this; let vm = this;
vm.$https( vm.$https(
{ {
...@@ -410,8 +388,7 @@ export default { ...@@ -410,8 +388,7 @@ export default {
{ copyrightOwnerType: "VIDEO_CONTENT" } { copyrightOwnerType: "VIDEO_CONTENT" }
) )
.then(res => { .then(res => {
let data = res.data.data; this.copyrightOwner = res.data.data;
this.copyrightOwner = data;
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -420,22 +397,17 @@ export default { ...@@ -420,22 +397,17 @@ export default {
// 获取展板版权方 // 获取展板版权方
getBoardCopyrightOwnerId() { getBoardCopyrightOwnerId() {
let vm = this; let vm = this;
vm.$https( vm.$https({
{
url: "copyrightOwner/getList", url: "copyrightOwner/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}, },
{ copyrightOwnerType: "EXHIBITION_BOARD" } { copyrightOwnerType: "EXHIBITION_BOARD" }
) ).then(res => {
.then(res => { this.boardCopyrightOwnerId = res.data.data;
let data = res.data.data; }).catch(function(err) {
this.boardCopyrightOwnerId = data;
console.log(this.boardCopyrightOwnerId)
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
//获取展板分类 //获取展板分类
getExhibitionBoardCatId(){ getExhibitionBoardCatId(){
...@@ -444,14 +416,11 @@ export default { ...@@ -444,14 +416,11 @@ export default {
url: "exhibitionBoardCat/getList", url: "exhibitionBoardCat/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}) }).then(res => {
.then(res => { this.exhibitionBoardCatId = res.data.data;
let data = res.data.data; }).catch(function(err) {
this.exhibitionBoardCatId = data;
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 获取视频分类列表 // 获取视频分类列表
getVideoContentCatData() { getVideoContentCatData() {
...@@ -460,14 +429,11 @@ export default { ...@@ -460,14 +429,11 @@ export default {
url: "videoContentCat/getList", url: "videoContentCat/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}) }).then(res => {
.then(res => { this.videoContentCat = res.data.data;
let data = res.data.data; }).catch(function(err) {
this.videoContentCat = data;
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 获取视频列表 // 获取视频列表
getVideoData() { getVideoData() {
...@@ -476,16 +442,12 @@ export default { ...@@ -476,16 +442,12 @@ export default {
url: "videoContent/getList", url: "videoContent/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}) }).then(res => {
.then(res => { this.videoContentId = res.data.data;
let data = res.data.data; }).catch(function(err) {
this.videoContentId = data;
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
close() { close() {
history.go(-1); history.go(-1);
}, },
......
...@@ -203,7 +203,12 @@ export default { ...@@ -203,7 +203,12 @@ export default {
id: "", id: "",
activeNames: ["1", "2", "3"], activeNames: ["1", "2", "3"],
keyMap: keyMap, keyMap: keyMap,
contentData: {}, contentData: {
imagesList:[],
dirList:[],
videoList:[],
audioList:[]
},
reviewData: {}, reviewData: {},
}; };
}, },
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
<el-form-item class="selectH100" label="请选择预设视频分类"> <el-form-item class="selectH100" label="请选择预设视频分类">
<el-select <el-select
placeholder="请选择预设视频分类" placeholder="请选择预设视频分类"
@focus="getAssetTypeData" @focus="getVideoContentCatData"
multiple multiple
v-model="ruleForm.videoContentCatIdListList" v-model="ruleForm.videoContentCatIdList"
@change="getSelectDep" @change="getSelectDep"
> >
<el-checkbox :style="selfstyle" v-model="checkedThing" @change="selectAllThing">全选</el-checkbox> <el-checkbox :style="selfstyle" v-model="checkedThing" @change="selectAllThing">全选</el-checkbox>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<el-form-item label="请选择视频版权方" prop="videoContentCopyrightOwnerId"> <el-form-item label="请选择视频版权方" prop="videoContentCopyrightOwnerId">
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getVideoContentCopyrightData"
v-model="ruleForm.videoContentCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
...@@ -67,9 +67,9 @@ ...@@ -67,9 +67,9 @@
<el-form-item label="请选择视频分类" prop="videoContentCatIdList"> <el-form-item label="请选择视频分类" prop="videoContentCatIdList">
<el-select <el-select
placeholder="请选择预设视频分类" placeholder="请选择预设视频分类"
@focus="getAssetTypeData" @focus="getVideoContentCatData"
v-model="ruleForm.videoContentCatIdList" v-model="ruleForm.videoContentCatId"
@change="getAssetType" @change="getVideoContentCat"
> >
<el-option <el-option
v-for="item in videoContentCat" v-for="item in videoContentCat"
...@@ -149,7 +149,7 @@ import uploadDatum from '@/page/content/components/uploadVue/uploadDatum' ...@@ -149,7 +149,7 @@ import uploadDatum from '@/page/content/components/uploadVue/uploadDatum'
import mulDisplay from '@/page/content/components/mulClassify/mulDisplay' import mulDisplay from '@/page/content/components/mulClassify/mulDisplay'
import addCopyright from '@/page/content/components/dialog/addCopyright' import addCopyright from '@/page/content/components/dialog/addCopyright'
export default { export default {
components:{ components:{
uploadImg, uploadImg,
uploadFile, uploadFile,
uploadDatum, uploadDatum,
...@@ -171,8 +171,9 @@ export default { ...@@ -171,8 +171,9 @@ export default {
name: "", name: "",
videoContentCopyrightOwnerId:"", videoContentCopyrightOwnerId:"",
videoContentCatIdList: "", videoContentCatIdList: "",
videoContentCatId: "",
thumbnail:"", thumbnail:"",
videoUrlList:[] videoFileIdList:[]
}, },
videoContentCat: [ videoContentCat: [
{ {
...@@ -232,18 +233,18 @@ export default { ...@@ -232,18 +233,18 @@ export default {
}, },
// 视频列表地址 // 视频列表地址
videoList(list){ videoList(list){
this.ruleForm.videoUrlList = list this.ruleForm.videoFileIdList = list
}, },
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.getVideoContentCopyrightData()
} }
}, },
getAssetType(data){ getVideoContentCat(data){
console.log(data) console.log(data)
console.log(this.ruleForm.videoContentCatIdList) console.log(this.ruleForm.videoContentCatId)
}, },
// 获取版权方详情 // 获取版权方详情
getInfo(id) { getInfo(id) {
...@@ -255,20 +256,18 @@ export default { ...@@ -255,20 +256,18 @@ export default {
authType: this.backToken authType: this.backToken
} }
// param // param
) ).then(res => {
.then(res => {
let data = res.data.data; let data = res.data.data;
// 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.videoContentCopyrightOwnerId = data.videoContentCopyrightOwnerId this.ruleForm.videoContentCopyrightOwnerId = data.videoContentCopyrightOwnerId
this.ruleForm.videoContentCatIdList = data.videoContentCatIdList this.ruleForm.videoContentCatId = data.videoContentCatId
this.ruleForm.thumbnail = data.thumbnail this.ruleForm.thumbnail = data.thumbnail
this.ruleForm.videoUrlList = data.videoUrlList this.ruleForm.videoFileIdList = data.videoFileIdList
}) }).catch(function(err) {
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 新建展板分类 // 新建展板分类
addVideoCopyright(){ addVideoCopyright(){
...@@ -293,20 +292,16 @@ export default { ...@@ -293,20 +292,16 @@ export default {
// }, // },
authType: this.backToken authType: this.backToken
}, },
this.$qs.stringify(this.classForm) this.classForm
// this.classForm ).then(res => {
)
.then(res => {
this.$message({ type: "success", message: "新增分类成功!" }); this.$message({ type: "success", message: "新增分类成功!" });
this.dialogVisible = false; this.dialogVisible = false;
}) }).catch(function(err) {
.catch(function(err) {
this.$message({ this.$message({
type: "fail", type: "fail",
message: "新增失败!" + err.response.data.msg message: "新增失败!" + err.response.data.msg
}); });
console.log(err); });
});
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -324,33 +319,20 @@ export default { ...@@ -324,33 +319,20 @@ export default {
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
// this.ruleForm.videoContentCopyrightOwnerId = ["1373225989501456385"]
// this.ruleForm.videoContentCatIdListList = []
// this.ruleForm.videoUrlList = [
// "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4"
// ]
if (valid) { if (valid) {
this.$https( this.$https(
{ {
url: "/videoContent/save", url: "videoContent/save",
method: "post", method: "post",
authType: this.backToken authType: this.backToken
}, },
// this.ruleForm
this.$qs.stringify(this.ruleForm) this.$qs.stringify(this.ruleForm)
) ).then(res => {
.then(res => { this.$message({ type: "success", message: "新增成功!" });
if(res.data.resultCode === "200"){ history.go(-1);
this.$message({ type: "success", message: "新增视频申请已提交,待审核!" }); }).catch(function(err) {
history.go(-1);
}else{
this.$message({ type: "error", message: res.data.message });
}
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -360,7 +342,6 @@ export default { ...@@ -360,7 +342,6 @@ export default {
// 修改版权方 // 修改版权方
updateForm(formName) { updateForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$https( this.$https(
{ {
...@@ -369,19 +350,12 @@ export default { ...@@ -369,19 +350,12 @@ export default {
authType: this.backToken authType: this.backToken
}, },
this.$qs.stringify(this.ruleForm) this.$qs.stringify(this.ruleForm)
// this.ruleForm ).then(res => {
) this.$message({ type: "success", message: "修改成功!" });
.then(res => { history.go(-1);
if(res.data.resultCode === "200"){ }).catch(function(err) {
this.$message({ type: "success", message: "修改视频申请已提交,待审核!" });
history.go(-1);
}else{
this.$message({ type: "error", message: res.data.message });
}
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");
return false; return false;
...@@ -392,9 +366,8 @@ export default { ...@@ -392,9 +366,8 @@ export default {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
history.go(-1); history.go(-1);
}, },
// 获取展板分类列表 getVideoContentCopyrightData() {
getAssetCopyrightData(){ let vm = this;
let vm = this;
vm.$https({ vm.$https({
url: "copyrightOwner/getList", url: "copyrightOwner/getList",
method: "get", method: "get",
...@@ -410,37 +383,30 @@ export default { ...@@ -410,37 +383,30 @@ export default {
}); });
}, },
// 获取视频分类列表 // 获取视频分类列表
getAssetTypeData() { getVideoContentCatData() {
let vm = this; let vm = this;
vm.$https({ vm.$https({
url: "videoContentCat/getList", url: "videoContentCat/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}) }).then(res => {
.then(res => { this.videoContentCat = res.data.data;
let data = res.data.data; }).catch(function(err) {
this.videoContentCat = data;
})
.catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
getSelectDep(videoContentCatIdListList) { getSelectDep(videoContentCatIdList) {
if (videoContentCatIdListList.length === this.videoContentCat.length) { this.checkedThing = videoContentCatIdList.length === this.videoContentCat.length;
this.checkedThing = true;
} else {
this.checkedThing = false;
}
}, },
selectAllThing() { selectAllThing() {
// debugger // debugger
this.ruleForm.videoContentCatIdListList = []; this.ruleForm.videoContentCatIdList = [];
if (this.checkedThing) { if (this.checkedThing) {
this.videoContentCat.map(item => { this.videoContentCat.map(item => {
this.ruleForm.videoContentCatIdListList.push(item.id); this.ruleForm.videoContentCatIdList.push(item.id);
}); });
} else { } else {
this.ruleForm.videoContentCatIdListList = []; this.ruleForm.videoContentCatIdList = [];
} }
} }
} }
......
...@@ -215,8 +215,7 @@ ...@@ -215,8 +215,7 @@
</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="close">确定</el-button> <el-button size="mini" type="primary" @click="close">关 闭</el-button>
<el-button size="mini" @click="close">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -584,7 +583,7 @@ export default { ...@@ -584,7 +583,7 @@ export default {
}) })
.then( .then(
res => { res => {
if (res.data.status == 201 || res.data.status == 200) { if (res.data.status === 201 || res.data.status === 200) {
this.$message({ this.$message({
type: "success", type: "success",
message: "删除成功!" message: "删除成功!"
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
</ul> </ul>
</div> </div>
<div id="area2"></div> <div id="area2"></div>
<div id="area3">></div> <div id="area3"></div>
<div id="area4"></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -42,9 +43,6 @@ export default { ...@@ -42,9 +43,6 @@ export default {
}, },
mounted() { mounted() {
this.getList(); this.getList();
this.$nextTick((v) => {
this.initScroll();
});
}, },
methods: { methods: {
initScroll() { initScroll() {
...@@ -53,8 +51,10 @@ export default { ...@@ -53,8 +51,10 @@ export default {
this.con1 = document.getElementById("area1"); this.con1 = document.getElementById("area1");
let con2 = document.getElementById("area2"); let con2 = document.getElementById("area2");
let con3 = document.getElementById("area3"); let con3 = document.getElementById("area3");
let con4 = document.getElementById("area4");
con2.innerHTML = this.con1.innerHTML; con2.innerHTML = this.con1.innerHTML;
con3.innerHTML = this.con1.innerHTML; con3.innerHTML = this.con1.innerHTML;
con4.innerHTML = this.con1.innerHTML;
this.timer = setInterval(_this.scrollUp, _this.speed); this.timer = setInterval(_this.scrollUp, _this.speed);
}, },
scrollUp() { scrollUp() {
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
} }
}, },
getList() { getList() {
let _this = this;
let requestparams = {}; let requestparams = {};
requestparams._index = 1; requestparams._index = 1;
requestparams._size = 10; requestparams._size = 10;
...@@ -80,6 +81,9 @@ export default { ...@@ -80,6 +81,9 @@ export default {
if (res.status == 200) { if (res.status == 200) {
if (res.data.resultCode == 200) { if (res.data.resultCode == 200) {
this.list = res.data.data.records; this.list = res.data.data.records;
this.$nextTick(()=>{
_this.initScroll();
})
} else { } else {
this.list = []; this.list = [];
} }
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
} }
}, },
components:{demand, interaction , areas, top10, mapDiv, borderNums}, components:{demand, interact , areas, top10, mapDiv, borderNums},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -46,13 +46,13 @@ ...@@ -46,13 +46,13 @@
</div> </div>
</template> </template>
<script> <script>
import { loginOut } from "@/config/loginOut.js";
export default { export default {
data() { data() {
var validatePass = (rule, value, callback) => { var validatePass = (rule, value, callback) => {
if (value === "") { if (value === "") {
callback(new Error("请输入密码")); callback(new Error("请输入密码"));
} else { } else {
this.$refs.ruleForm.validateField("password");
callback(); callback();
} }
}; };
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
}, },
handleSubmit() { handleSubmit() {
let _this = this; let _this = this;
this.$refs.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
let requestParams = {}; let requestParams = {};
requestParams.oldPassWord = _this.form.oldPassWord; requestParams.oldPassWord = _this.form.oldPassWord;
...@@ -105,8 +105,9 @@ export default { ...@@ -105,8 +105,9 @@ export default {
{ {
method: "put", method: "put",
url: "tUser/editPwd", url: "tUser/editPwd",
authType: this.backToken,
}, },
requestParams _this.$qs.stringify(requestParams)
) )
.then((res) => { .then((res) => {
if (res.status != 200) { if (res.status != 200) {
...@@ -117,7 +118,7 @@ export default { ...@@ -117,7 +118,7 @@ export default {
type: "success", type: "success",
message: res.data.message, message: res.data.message,
}); });
_this.redirectLogin() _this.redirectLogin();
} else { } else {
_this.$message.error(res.data.message); _this.$message.error(res.data.message);
} }
...@@ -132,10 +133,10 @@ export default { ...@@ -132,10 +133,10 @@ export default {
} }
}); });
}, },
redirectLogin(){ redirectLogin() {
this.$router.push('./login') loginOut();
this.$router.push("./login");
} },
}, },
}; };
</script> </script>
......
@party-red:#9B1E23; @party-red: #9B1E23;
@page-bg-white:#F9F9F9; @page-bg-white: #F9F9F9;
@party-white:#FFFFFF; @party-white: #FFFFFF;
@font-color:#333333; @font-color: #333333;
@party-pink:pink; @party-pink: pink;
@party-border-color:#EEEEEE; @party-border-color: #EEEEEE;
@party-black:#000000; @party-black: #000000;
@party-bg-gray:#F8F8F8; @party-bg-gray: #F8F8F8;
@party-btn-color:#AC9374; @party-btn-color: #AC9374;
@party-table-header-color:#FDFBF8; @party-table-header-color: #FDFBF8;
@party-page-border-color:#DDDDDD; @party-page-border-color: #DDDDDD;
@party-check-bg-color:#F5F5F5; @party-check-bg-color: #F5F5F5;
.f14{ font-size: 14px; }
.f16{ font-size: 14px; } .f14 {
.f18{ font-size: 18px; } font-size: 14px;
.f24{ font-size: 24px; }
.f0{font-size: 0px;}
.inline-block{
display: inline-block;
}
.height100{
height: 100%;
} }
@media screen and (max-width:1600px){
.search-container{ .f16 {
.el-input{ font-size: 14px;
width: 180px; }
}
.btn-group{ .f18 {
.el-button{ font-size: 18px;
width: 80px; }
}
} .f24 {
font-size: 24px;
}
.f0 {
font-size: 0px;
}
.inline-block {
display: inline-block;
}
.height100 {
height: 100%;
}
@media screen and (max-width:1600px) {
.search-container {
.el-input {
width: 180px;
} }
.page-tips{ .btn-group {
width: 365px; .el-button {
width: 80px;
}
} }
}
.page-tips {
width: 365px;
}
} }
@media (min-width:1601px) and (max-width:1800px){
.search-container{ @media (min-width:1601px) and (max-width:1800px) {
.el-input{ .search-container {
width: 220px; .el-input {
} width: 220px;
.btn-group{
.el-button{
width: 96px;
}
}
} }
.page-tips{
width: 460px; .btn-group {
.el-button {
width: 96px;
}
} }
}
.page-tips {
width: 460px;
}
} }
@media (min-width:1801px){
.search-container{ @media (min-width:1801px) {
.el-input{ .search-container {
width: 280px; .el-input {
} width: 280px;
.btn-group{
.el-button{
width: 128px;
}
}
} }
.page-tips{
width: 480px; .btn-group {
.el-button {
width: 128px;
}
} }
}
.page-tips {
width: 480px;
}
} }
.search-container{
background:@party-white; .search-container {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.10); background: @party-white;
border-radius: 8px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10);
margin-bottom: 20px; border-radius: 8px;
padding: 20px 24px; margin-bottom: 20px;
height: 80px; padding: 20px 24px;
display: flex; height: 80px;
justify-content: space-between; display: flex;
.el-form{ justify-content: space-between;
margin-bottom: 0;
.el-input{ .el-form {
.el-input__inner{ margin-bottom: 0;
border-radius: 22px;
background-color:@party-bg-gray; .el-input {
border-color: @party-border-color; .el-input__inner {
} border-radius: 22px;
} background-color: @party-bg-gray;
.el-range-editor.el-input__inner{ border-color: @party-border-color;
width: 280px; }
border-radius: 22px;
background-color: @party-bg-gray;
.el-range-separator{
width: 20px;
padding: 0 2px;
}
.el-range-input{
background-color: @party-bg-gray;
}
}
.el-input__icon{
width: 40px;
font-size: 20px;
color: @party-btn-color;
}
.btn-group{
padding-left: 15px;
.el-button{
height: 40px;
}
}
} }
.page-tip{
display: flex; .el-range-editor.el-input__inner {
font-size: 14px; width: 280px;
color: @font-color; border-radius: 22px;
.page-tip-title{ background-color: @party-bg-gray;
font-weight: bold;
padding-right: 10px; .el-range-separator {
} width: 20px;
padding: 0 2px;
}
.el-range-input {
background-color: @party-bg-gray;
}
} }
}
.table-content{ .el-input__icon {
height: calc(100% - 100px); width: 40px;
background:@party-white; font-size: 20px;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 10%); color: @party-btn-color;
border-radius: 8px;
padding: 20px 40px 0 40px;
.btn-group{
text-align: right;
margin-bottom: 12px;
.el-button{
min-width: 128px;
}
}
}
.btn-group{
.el-button{
height: 36px;
padding: 0;
border-radius: 28px;
span {
font-size: 16px;
}
} }
.el-button--primary{
background-color: @party-btn-color; .btn-group {
border-color: @party-btn-color; padding-left: 15px;
color:@party-white ;
.el-button {
height: 40px;
}
} }
.el-button--default{ }
background: rgba(172,147,116,0.10);
border: 1px solid @party-btn-color; .page-tip {
color:@party-btn-color; display: flex;
font-size: 14px;
color: @font-color;
.page-tip-title {
font-weight: bold;
padding-right: 10px;
} }
}
} }
// 系统form 表单样式
.party-form{ .table-content {
.el-input__icon{ height: calc(100% - 100px);
width: 40px; background: @party-white;
font-size: 20px; box-shadow: 0 4px 8px 0 rgba(0,0,0,.3);
color: @party-btn-color; border-radius: 8px;
padding: 20px 40px 0 40px;
.btn-group {
text-align: right;
margin-bottom: 12px;
.el-button {
min-width: 128px;
} }
.el-range-separator{ }
width: 20px; }
padding: 0 2px;
.btn-group {
.el-button {
height: 36px;
padding: 0;
border-radius: 28px;
span {
font-size: 16px;
} }
.el-input{ }
width: 280px;
.el-input__inner{ .el-button--primary {
border-radius: 22px; background-color: @party-btn-color;
background-color: @party-bg-gray; border-color: @party-btn-color;
border: 1px solid @party-border-color; color: @party-white ;
} }
.el-button--default {
background: rgba(172, 147, 116, 0.10);
border: 1px solid @party-btn-color;
color: @party-btn-color;
}
}
// 系统form 表单样式
.party-form {
.el-input__icon {
width: 40px;
font-size: 20px;
color: @party-btn-color;
}
.el-date-editor {
.el-range-separator {
width: 20px;
padding: 0 2px;
} }
.el-textarea .el-textarea__inner{ }
background-color: @party-bg-gray; .el-input {
border-radius: 8px; width: 280px;
.el-input__inner {
border-radius: 22px;
background-color: @party-bg-gray;
border: 1px solid @party-border-color;
} }
.el-range-editor.el-input__inner{ }
width: 280px;
border-radius: 22px; .el-textarea .el-textarea__inner {
background-color: @party-bg-gray;
border-radius: 8px;
}
.el-range-editor.el-input__inner {
width: 280px;
border-radius: 22px;
}
.mt16 {
margin-top: 16px;
}
.el-radio-group {
.el-radio__inner {
width: 24px;
height: 24px;
border-color: @party-border-color;
} }
.mt16{
margin-top: 16px; .el-radio__label {
font-size: 16px;
} }
.el-radio-group{
.el-radio__inner{ .el-radio.is-checked {
width: 24px; .el-radio__input.is-checked {
height: 24px; .el-radio__inner {
border-color: @party-border-color; background-color: transparent;
border-color: @party-border-color;
&:after {
width: 10px;
height: 10px;
background-color: @party-btn-color;
}
} }
.el-radio__label{ }
font-size: 16px;
.el-radio__label {
color: @font-color;
}
}
}
.el-checkbox-group {
.el-checkbox {
margin-right: 25px;
.el-checkbox__inner {
width: 22px;
height: 22px;
&:hover {
border-color: @party-border-color;
} }
.el-radio.is-checked{ }
.el-radio__input.is-checked{
.el-radio__inner{ .el-checkbox__label {
background-color: transparent; color: @font-color
border-color: @party-border-color; }
&:after{
width: 10px; &+.el-checkbox {
height: 10px; margin-left: 0;
background-color: @party-btn-color; }
}
} &.is-checked {
} .el-checkbox__inner {
.el-radio__label{ border-color: @party-border-color;
color: @font-color; background-color: @party-check-bg-color;
}
&:after {
border: 2px solid #AC9374;
border-left: 0;
border-top: 0;
height: 11px;
left: 7px;
width: 5px;
}
} }
} .el-checkbox__label {
.el-checkbox-group{ color: @font-color
.el-checkbox{
margin-right: 25px;
.el-checkbox__inner{
width: 22px;
height: 22px;
&:hover{
border-color: @party-border-color;
}
}
.el-checkbox__label{
color: @font-color
}
& +.el-checkbox{
margin-left: 0;
}
&.is-checked{
.el-checkbox__inner{
border-color: @party-border-color;
background-color: @party-check-bg-color;
&:after{
border: 2px solid #AC9374;
border-left:0;
border-top: 0;
height: 11px;
left:7px;
width: 5px;
}
}
.el-checkbox__label{
color: @font-color
}
}
} }
}
} }
}
} }
// 适用于修改密码 app 界面定义样式 // 适用于修改密码 app 界面定义样式
.page-form-box{ .page-form-box {
background: @party-white; background: @party-white;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.10); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10);
border-radius: 8px; border-radius: 8px;
height: 100%; height: 100%;
.page-form-box-header{
height: 64px; .page-form-box-header {
line-height: 64px; height: 64px;
text-align: center; line-height: 64px;
border-bottom: 1px solid @party-border-color; text-align: center;
font-size: 20px; border-bottom: 1px solid @party-border-color;
color: @font-color; font-size: 20px;
text-align: center; color: @font-color;
font-weight: bold; text-align: center;
} font-weight: bold;
.page-form-box-content{ }
height: calc(100% - 148px);
padding: 20px; .page-form-box-content {
} height: calc(100% - 148px);
.page-form-box-footer{ padding: 20px;
height: 84px; }
line-height: 84px;
text-align: center; .page-form-box-footer {
border-top: 1px solid @party-border-color; height: 84px;
.el-button{ line-height: 84px;
width: 160px; text-align: center;
height: 40px; border-top: 1px solid @party-border-color;
}
.el-button {
width: 160px;
height: 40px;
} }
}
} }
.imgSize{ .imgSize {
width: 160px; width: 160px;
height: 100px; height: 100px;
} }
.iconImg{
height: 32px; .iconImg {
width: 32px; height: 32px;
margin-right: 8px; width: 32px;
margin-right: 8px;
} }
.w50{
width: 50%; .w50 {
width: 50%;
} }
.w100{
width:100%; .w100 {
width: 100%;
} }
.selectH100{
height:100px; .selectH100 {
overflow: auto; height: 100px;
overflow: auto;
} }
// 内容、审核详情页 // 内容、审核详情页
.info { .info {
height: 100%; height: 100%;
width: 100%;
overflow: hidden;
.info-header {
font-size: 20px;
padding: 20px;
height: 68px;
width: 100%; width: 100%;
overflow: hidden; vertical-align: middle;
.info-header { text-align: center;
font-size: 20px;
padding: 20px; border-bottom: 2px solid #eee;
height: 68px; }
width: 100%;
vertical-align: middle; .info-wrapper {
text-align: center; height: 100%;
width: 640px;
border-bottom: 2px solid #eee; margin: 0 auto;
} background: #fff;
.info-wrapper {
height: 100%; .pageTips {
width: 640px; height: 72px;
margin: 0 auto; padding: 16px;
background: #fff; background: #F7F5F2;
.pageTips{ border-radius: 8px;
height: 72px; margin: 10px 0;
padding:16px;
background: #F7F5F2;
border-radius: 8px;
margin:10px 0;
}
.el-collapse-item__header.is-active {
border-bottom-color: #eeeeee;
}
}
.info-container {
width: 100%;
height: calc(100% - 156px);
overflow-y: auto;
overflow-x: hidden;
}
.info-footer {
height: 88px;
border-top: 2px solid #eee;
padding: 20px;
text-align: center;
.el-button{
width: 160px;
height: 40px;
} }
.el-collapse-item__header.is-active {
border-bottom-color: #eeeeee;
}
}
.info-container {
width: 100%;
height: calc(100% - 156px);
overflow-y: auto;
overflow-x: hidden;
}
.info-footer {
height: 88px;
border-top: 2px solid #eee;
padding: 20px;
text-align: center;
.el-button {
width: 160px;
height: 40px;
} }
} }
// 适用于统计详情样式
.overview-detail{
.ecahrts-panel-box{
height: calc(50% + 20px);
}
.rank-panel-box{
height: calc(50% - 40px);
margin-top: 20px;
}
.ecahrts-panel-box,
.rank-panel-box{
background:@party-white;
box-shadow: 0 4px 8px 0 rgba(221,221,221,0.40);
border-radius: 8px;
}
.panel-box-header{
height: 64px;
line-height: 64px;
border-bottom: 1px solid @party-border-color;
padding: 0 24px;
.title{
font-weight: bold;
font-size: 20px;
}
.tip{
float: right;
color: @font-color;
.tip-title{
font-weight: bold;
padding-right: 10px;
}
}
.el-range-editor.el-input__inner{
width: 280px;
border-radius: 22px;
background-color: @party-bg-gray;
margin-left: 40px;
padding-left:15px;
.el-range-input{
background-color: @party-bg-gray;
}
.el-range-separator{
width: 20px;
padding: 0 2px;
}
.el-icon-date{
color: @party-btn-color;
font-size: 18px;
}
}
}
.panel-box-content{
height: calc(100% - 64px);
overflow: hidden;
}
.rank-box{
width: 50%;
&.left{
padding-right: 10px;
}
&.right{
padding-left: 10px;
}
}
}
.party-icon-20{
display:inline-block;
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-size: cover;
}
.party-icon-24{
display:inline-block;
width: 24px;
height: 24px;
background-repeat: no-repeat;
background-size: cover;
}
.icon-add{
background-image: url("~@/assets/icons/add.png");
}
.icon-import{
background-image: url("~@/assets/icons/import.png");
}
.icon-detail{
background-image: url("~@/assets/icons/detail.png");
}
.icon-edit{
background-image: url("~@/assets/icons/edit.png");
}
.icon-reset{
background-image: url("~@/assets/icons/reset.png");
}
.icon-enable{
background-image: url("~@/assets/icons/enable.png");
}
.icon-disable{
background-image: url("~@/assets/icons/disable.png");
}
.icon-del{
background-image: url("~@/assets/icons/del.png");
}
.icon-org{
display: inline-block;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-size: cover;
background-image: url("~@/assets/icons/org.png");
margin-right: 8px;
} }
// 组织树结构样式
.org-tree{ // 适用于统计详情样式
// expand 三角icon .overview-detail {
.el-tree-node__expand-icon{ .ecahrts-panel-box {
position: absolute; height: calc(50% + 20px);
right: 10px; }
top: 14px;
color: #000000; .rank-panel-box {
font-size: 16px; height: calc(50% - 40px);
&.is-leaf{ margin-top: 20px;
color: transparent; }
}
.ecahrts-panel-box,
.rank-panel-box {
background: @party-white;
box-shadow: 0 4px 8px 0 rgba(221, 221, 221, 0.40);
border-radius: 8px;
}
.panel-box-header {
height: 64px;
line-height: 64px;
border-bottom: 1px solid @party-border-color;
padding: 0 24px;
.title {
font-weight: bold;
font-size: 20px;
} }
.el-tree-node{
background-color: @party-white; .tip {
&.is-current{ float: right;
>.el-tree-node__content{ color: @font-color;
.custom-tree-node{
background-color: @party-border-color; .tip-title {
} font-weight: bold;
} padding-right: 10px;
}
}
} }
.el-tree-node__content{
height: auto; .el-range-editor.el-input__inner {
position: relative; width: 280px;
background-color: transparent !important; border-radius: 22px;
&:hover{ background-color: @party-bg-gray;
background-color: transparent; margin-left: 40px;
} padding-left: 15px;
.el-range-input {
background-color: @party-bg-gray;
}
.el-range-separator {
width: 20px;
padding: 0 2px;
}
.el-icon-date {
color: @party-btn-color;
font-size: 18px;
}
} }
div[class*="tree-node-level"]{ }
width: 100%;
color: @font-color; .panel-box-content {
border-radius: 5px; height: calc(100% - 64px);
overflow: hidden;
}
.rank-box {
width: 50%;
&.left {
padding-right: 10px;
} }
.tree-node-level1,
.tree-node-level2{ &.right {
span{ padding-left: 10px;
font-size: 16px;
}
} }
.tree-node-level3{ }
span{ }
font-size: 14px;
} .party-icon-20 {
display: inline-block;
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-size: cover;
}
.party-icon-24 {
display: inline-block;
width: 24px;
height: 24px;
background-repeat: no-repeat;
background-size: cover;
}
.icon-add {
background-image: url("~@/assets/icons/add.png");
}
.icon-import {
background-image: url("~@/assets/icons/import.png");
}
.icon-detail {
background-image: url("~@/assets/icons/detail.png");
}
.icon-edit {
background-image: url("~@/assets/icons/edit.png");
}
.icon-reset {
background-image: url("~@/assets/icons/reset.png");
}
.icon-enable {
background-image: url("~@/assets/icons/enable.png");
}
.icon-disable {
background-image: url("~@/assets/icons/disable.png");
}
.icon-del {
background-image: url("~@/assets/icons/del.png");
}
.icon-org {
display: inline-block;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-size: cover;
background-image: url("~@/assets/icons/org.png");
margin-right: 8px;
}
// 组织树结构样式
.org-tree {
// expand 三角icon
.el-tree-node__expand-icon {
position: absolute;
right: 10px;
top: 14px;
color: #000000;
font-size: 16px;
&.is-leaf {
color: transparent;
} }
.tree-node-level1{ }
height: 56px;
line-height: 56px; .el-tree-node {
border-bottom: 1px solid @party-border-color; background-color: @party-white;
padding-left: 5px;
&.is-current {
>.el-tree-node__content {
.custom-tree-node {
background-color: @party-border-color;
}
}
} }
.tree-node-level2, }
.tree-node-level3{
height: 40px; .el-tree-node__content {
line-height: 40px; height: auto;
margin: 5px 0; position: relative;
border-radius: 20px; background-color: transparent !important;
padding-left: 10px;
&:hover {
background-color: transparent;
} }
.tree-node-level2:hover{ }
background-color: @party-table-header-color;
div[class*="tree-node-level"] {
width: 100%;
color: @font-color;
border-radius: 5px;
}
.tree-node-level1,
.tree-node-level2 {
span {
font-size: 16px;
} }
.tree-node-level3:hover{
background-color: @party-border-color; }
.tree-node-level3 {
span {
font-size: 14px;
} }
}
.tree-node-level1 {
height: 56px;
line-height: 56px;
border-bottom: 1px solid @party-border-color;
padding-left: 5px;
}
.tree-node-level2,
.tree-node-level3 {
height: 40px;
line-height: 40px;
margin: 5px 0;
border-radius: 20px;
padding-left: 10px;
}
.tree-node-level2:hover {
background-color: @party-table-header-color;
}
.tree-node-level3:hover {
background-color: @party-border-color;
}
} }
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
} }
.el-pager{ .el-pager{
padding-left: 20px; padding-left: 20px;
li:hover {
color: @party-btn-color;
}
li.number{ li.number{
width: 40px; width: 40px;
height: 40px; height: 40px;
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
.el-button{ .el-button{
border: none; border: none;
padding: 0; padding: 0;
&.is-circle{
padding: 0;
background-color: transparent;
}
} }
} }
.icon-table{ .icon-table{
......
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