Commit 6894527c authored by xulili's avatar xulili
parents dafbf4c5 82dd868f
...@@ -66,7 +66,7 @@ const httpServer = (opts, data, file, timeout) => { ...@@ -66,7 +66,7 @@ const httpServer = (opts, data, file, timeout) => {
let httpDefaultOpts = { let httpDefaultOpts = {
method: opts.method, method: opts.method,
url: baseUrl + opts.url, url: baseUrl + opts.url,
timeout: timeout ? timeout : 20000, timeout: timeout ? timeout : 10800000,
params: Object.assign(Public, data), params: Object.assign(Public, data),
data: data, data: data,
headers: opts.headers || {}, headers: opts.headers || {},
......
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
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="updateLog">
<el-input <el-input
type="textarea" type="textarea"
v-model="formItem.updateContent" v-model="formItem.updateLog"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-upload <el-upload
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl:'http://192.168.110.67/mall/file/upload/allType', uploadUrl:'http://111.203.232.175:8088/mall/file/upload/allType',
formVisible: false, formVisible: false,
headers:{Authorization: localStorage.getItem('backToken')}, headers:{Authorization: localStorage.getItem('backToken')},
formItem: {}, formItem: {},
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
versionInfo: [ versionInfo: [
{ required: true, message: "请输入版本信息", trigger: "blur" }, { required: true, message: "请输入版本信息", trigger: "blur" },
], ],
updateContent: [ updateLog: [
{ required: true, message: "请输入更新内容", trigger: "blur" }, { required: true, message: "请输入更新内容", trigger: "blur" },
], ],
}, },
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
let param = { let param = {
appVersion: this.formItem.appVersion, appVersion: this.formItem.appVersion,
versionInfo: this.formItem.versionInfo, versionInfo: this.formItem.versionInfo,
updateContent: this.formItem.updateContent, updateLog: this.formItem.updateLog,
apkUrl: this.formItem.apkUrl, apkUrl: this.formItem.apkUrl,
} }
_this _this
......
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
// 查询 // 查询
onSearch() { onSearch() {
this.page._index = 1; this.page._index = 1;
this.requestForm = JSON.parse(JSON.stringify(this.form))
this.getTableData(); this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
...@@ -119,8 +120,8 @@ export default { ...@@ -119,8 +120,8 @@ export default {
let param = { let param = {
_index: this.page._index, _index: this.page._index,
_size: this.page._size, _size: this.page._size,
startDate: this.form.dateRange.length ? this.form.dateRange[0] : "", startDate: this.requestForm.dateRange.length ? this.requestForm.dateRange[0] : "",
endDate: this.form.dateRange.length ? this.form.dateRange[1] : "", endDate: this.requestForm.dateRange.length ? this.requestForm.dateRange[1] : "",
}; };
vm.$https( vm.$https(
{ {
......
...@@ -94,6 +94,7 @@ export default { ...@@ -94,6 +94,7 @@ export default {
// 查询 // 查询
onSearch() { onSearch() {
this.page._index = 1 this.page._index = 1
this.requestForm = JSON.parse(JSON.stringify(this.form))
this.getTableData() this.getTableData()
}, },
// 获得数据接口 // 获得数据接口
...@@ -102,8 +103,8 @@ export default { ...@@ -102,8 +103,8 @@ export default {
let param = { let param = {
_index: this.page._index, _index: this.page._index,
_size: this.page._size, _size: this.page._size,
areaId: this.form.areaId.length ? this.form.areaId[this.form.areaId.length - 1] : '', areaId: this.requestForm.areaId.length ? this.requestForm.areaId[this.requestForm.areaId.length - 1] : '',
organId: this.form.orgId organId: this.requestForm.orgId
}; };
vm.$https( vm.$https(
{ {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</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">
<div>{{ item.username }}</div> <div>{{ item.name }}</div>
<div>{{ item.createTime }}</div> <div>{{ item.createTime }}</div>
</div> </div>
</div> </div>
......
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
// 查询 // 查询
onSearch() { onSearch() {
this.page._index = 1; this.page._index = 1;
this.requestForm = JSON.parse(JSON.stringify(this.form))
this.getTableData(); this.getTableData();
}, },
// 获得数据接口 // 获得数据接口
...@@ -146,11 +147,11 @@ export default { ...@@ -146,11 +147,11 @@ export default {
let param = { let param = {
_index: this.page._index, _index: this.page._index,
_size: this.page._size, _size: this.page._size,
areaId: this.form.areaId.length areaId: this.requestForm.areaId.length
? this.form.areaId[this.form.areaId.length - 1] ? this.requestForm.areaId[this.requestForm.areaId.length - 1]
: "", : "",
organId: this.form.orgId, organId: this.requestForm.orgId,
status: this.form.status, status: this.requestForm.status,
}; };
vm.$https( vm.$https(
{ {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="title">app目录界面设置</div> <div class="title">app目录界面设置</div>
<div class="btn-group"> <div class="btn-group">
<el-upload <el-upload
action="http://192.168.110.67/mall/file/image/upload" action="http://111.203.232.175:8088/mall/file/image/upload"
:on-success="uploadPageImg" :on-success="uploadPageImg"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:headers ="headers" :headers ="headers"
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<div class="title">app运行画面设置</div> <div class="title">app运行画面设置</div>
<div class="btn-group"> <div class="btn-group">
<el-upload <el-upload
action="http://192.168.110.67/mall/file/image/upload" action="http://111.203.232.175:8088/mall/file/image/upload"
:on-success="uploadRunImg" :on-success="uploadRunImg"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:headers ="headers" :headers ="headers"
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}, },
on: { on: {
click: function () { click: function () {
console.log(vm);
if (this.$el[0].parentNode.className.indexOf("top") > 0) { if (this.$el[0].parentNode.className.indexOf("top") > 0) {
vm.radioPage = this.realIndex; vm.radioPage = this.realIndex;
} }
...@@ -237,8 +237,8 @@ export default { ...@@ -237,8 +237,8 @@ export default {
}, },
// 修改当前项 // 修改当前项
submitForm() { submitForm() {
vm.radioPage && this.updateCurrent(this.pageList[vm.radioPage].id, "tAppDirPic/update"); this.updateCurrent(this.pageList[vm.radioPage].id, "tAppDirPic/update");
vm.radioRun && this.updateCurrent(this.runList[vm.radioRun].id, "tAppRunPic/update"); this.updateCurrent(this.runList[vm.radioRun].id, "tAppRunPic/update");
}, },
updateCurrent(id, url) { updateCurrent(id, url) {
let vm = this; let vm = this;
......
...@@ -132,7 +132,6 @@ ...@@ -132,7 +132,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
......
...@@ -111,7 +111,6 @@ ...@@ -111,7 +111,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
......
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
......
<template> <template>
<div> <div>
<!-- accept="application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
<!-- :show-file-list="false" -->
<!-- :file-list="fileList" -->
<!-- action="http://192.168.110.67/mall/file/video/content/upload" -->
<el-upload <el-upload
ref="upload" ref="upload"
:multiple="true" :multiple="true"
...@@ -90,10 +86,10 @@ export default { ...@@ -90,10 +86,10 @@ export default {
</script> </script>
<style> <style>
.fileUpload { .el-upload .fileUpload {
width: 148px; width: 148px;
height: 148px; height: 148px;
line-height: 148px; line-height: 148px!important;
margin: 0 auto; margin: 0 auto;
border: 1px dashed #c0ccda; border: 1px dashed #c0ccda;
font-size: 24px; font-size: 24px;
......
<template> <template>
<div> <div>
<!-- accept="application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
<!-- :show-file-list="false" -->
<!-- :file-list="fileList" -->
<!-- action="http://192.168.110.67/mall/file/video/content/upload" -->
<el-upload <el-upload
ref="upload" ref="upload"
:multiple="true" :multiple="true"
...@@ -90,10 +86,10 @@ export default { ...@@ -90,10 +86,10 @@ export default {
</script> </script>
<style> <style>
.fileUpload { .el-upload .fileUpload {
width: 148px; width: 148px;
height: 148px; height: 148px;
line-height: 148px; line-height: 148px!important;
margin: 0 auto; margin: 0 auto;
border: 1px dashed #c0ccda; border: 1px dashed #c0ccda;
font-size: 24px; font-size: 24px;
......
<template> <template>
<div> <div>
<!-- accept="application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
<!-- :show-file-list="false" -->
<!-- :file-list="fileList" -->
<!-- action="http://192.168.110.67/mall/file/video/content/upload" -->
<el-upload <el-upload
ref="upload" ref="upload"
:multiple="true" :multiple="true"
...@@ -101,10 +98,10 @@ export default { ...@@ -101,10 +98,10 @@ export default {
</script> </script>
<style> <style>
.fileUpload { .el-upload .fileUpload {
width: 148px; width: 148px;
height: 148px; height: 148px;
line-height: 148px; line-height: 148px!important;
margin: 0 auto; margin: 0 auto;
border: 1px dashed #c0ccda; border: 1px dashed #c0ccda;
font-size: 24px; font-size: 24px;
......
<template> <template>
<div> <div>
<el-upload <el-upload
action="http://192.168.110.67/mall/file/image/upload" action="http://111.203.232.175:8088/mall/file/image/upload"
list-type="picture-card" list-type="picture-card"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
:on-remove="handleRemove" :on-remove="handleRemove"
......
<template> <template>
<div> <div>
<el-upload <el-upload
action="http://192.168.110.67/mall/file/image/upload" action="http://111.203.232.175:8088/mall/file/image/upload"
list-type="picture-card" list-type="picture-card"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
:on-remove="handleRemove" :on-remove="handleRemove"
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
v-model="ruleForm.videoContentCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
@change="clearVideo"
> >
<el-option <el-option
v-for="item in copyrightOwner" v-for="item in copyrightOwner"
...@@ -86,6 +87,7 @@ ...@@ -86,6 +87,7 @@
<el-select <el-select
placeholder="请选择视频分类" placeholder="请选择视频分类"
v-model="ruleForm.videoContentCatId" v-model="ruleForm.videoContentCatId"
@change="clearVideo"
> >
<el-option <el-option
v-for="item in videoContentCat" v-for="item in videoContentCat"
...@@ -95,8 +97,9 @@ ...@@ -95,8 +97,9 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="请选择视频" prop="videoContentId"> <el-form-item label="请选择视频" prop="videoContentId" class="w100">
<el-select <el-select
@focus="getVideoData"
placeholder="请选择视频" placeholder="请选择视频"
v-model="ruleForm.videoContentId" v-model="ruleForm.videoContentId"
> >
...@@ -109,10 +112,14 @@ ...@@ -109,10 +112,14 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item></el-form-item> <el-form-item></el-form-item>
<el-form-item label="导览音频" class="w50" prop="audioIdList" required> <el-form-item label="导览音频" prop="audioIdList" required>
<div style="color:red;">(可上传汉语、蒙语、藏语、维吾尔语、英语五种语言音频资料,命名方式为展板名称+语言)</div>
<upload-audio :fileList="ruleForm.audioList" @audioList="audioList"></upload-audio> <upload-audio :fileList="ruleForm.audioList" @audioList="audioList"></upload-audio>
</el-form-item> </el-form-item>
<el-form-item label="参考资料" prop="datumIdList" required> <el-form-item label="参考资料" prop="datumIdList" required>
<div style="color:red;">
(可支持word、excel、PDF、ppt、视频类型文件及图片上传)
</div>
<upload-datum :fileList="ruleForm.datumList" @datumList="datumList"></upload-datum> <upload-datum :fileList="ruleForm.datumList" @datumList="datumList"></upload-datum>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -163,6 +170,7 @@ export default { ...@@ -163,6 +170,7 @@ export default {
boardCopyrightOwnerId:"", boardCopyrightOwnerId:"",
videoContentCopyrightOwnerId: "", videoContentCopyrightOwnerId: "",
videoContentCatId: "", videoContentCatId: "",
videoContentId:"",
audioIdList: [], audioIdList: [],
datumIdList: [], datumIdList: [],
datumList:[], datumList:[],
...@@ -205,7 +213,7 @@ export default { ...@@ -205,7 +213,7 @@ export default {
this.getVideoContentCopyrightData(); this.getVideoContentCopyrightData();
this.getExhibitionBoardCatId(); this.getExhibitionBoardCatId();
this.getBoardCopyrightOwnerId(); this.getBoardCopyrightOwnerId();
this.getVideoData(); // this.getVideoData();
if (this.$route.query.type === "Update") { if (this.$route.query.type === "Update") {
this.getInfo(this.$route.query.id); this.getInfo(this.$route.query.id);
} }
...@@ -366,19 +374,33 @@ export default { ...@@ -366,19 +374,33 @@ export default {
}).catch(function(err) { }).catch(function(err) {
console.log(err); console.log(err);
}); });
},
// 视频版权方或视频分类发生变化时,重置视频的值
clearVideo(){
this.ruleForm.videoContentId = ''
}, },
// 获取视频列表 // 获取视频列表
getVideoData() { getVideoData() {
const param = {
videoContentCatId:this.ruleForm.videoContentCatId,
videoContentCopyrightOwnerId:this.ruleForm.videoContentCopyrightOwnerId
}
if((this.ruleForm.videoContentCatId.length>0)&&(this.ruleForm.videoContentCopyrightOwnerId.length>0)){
let vm = this; let vm = this;
vm.$https({ vm.$https({
url: "videoContent/getList", url: "videoContent/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}).then(res => { },
param).then(res => {
this.videoContentId = res.data.data; this.videoContentId = res.data.data;
}).catch(function(err) { }).catch(function(err) {
console.log(err); console.log(err);
}); });
}else{
this.videoContentId = []
}
}, },
// 关闭 // 关闭
close() { close() {
......
...@@ -485,6 +485,7 @@ export default { ...@@ -485,6 +485,7 @@ export default {
} else { } else {
this.checkedThing = false; this.checkedThing = false;
} }
this.getTableParam()
}, },
// //
getSelectDep2(exhibitionBoardCatIdList) { getSelectDep2(exhibitionBoardCatIdList) {
...@@ -493,11 +494,19 @@ export default { ...@@ -493,11 +494,19 @@ export default {
} else { } else {
this.checkedThing2 = false; this.checkedThing2 = false;
} }
this.getTableParam()
},
// 筛选展板备选清单选项条件
getTableParam(){
const param = { const param = {
boardCopyrightOwnerIdList: this.ruleForm.copyrightOwnerIdList, boardCopyrightOwnerIdList: this.ruleForm.copyrightOwnerIdList,
exhibitionBoardCatIdList: this.ruleForm.exhibitionBoardCatIdList exhibitionBoardCatIdList: this.ruleForm.exhibitionBoardCatIdList
}; };
if((param.boardCopyrightOwnerIdList.length>0)&&(param.exhibitionBoardCatIdList.length>0)){
this.getTableData(param); this.getTableData(param);
}else{
this.tableData = []
}
}, },
// 根据展板类别,版权方获取展板备选清单 // 根据展板类别,版权方获取展板备选清单
getTableData(param, type) { getTableData(param, type) {
......
...@@ -148,19 +148,6 @@ ...@@ -148,19 +148,6 @@
<i class="icon-table icon-disable"></i> <i class="icon-table icon-disable"></i>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- <el-button
type="text"
style="padding:0"
:disabled="scope.$index == 0"
@click="moveUpward(scope.row, scope.$index)"
>上移</el-button>
<el-button
type="text"
style="padding:0"
:disabled="(scope.$index + 1) == tableData.length"
@click="moveDown(scope.row, scope.$index)"
>下移</el-button> -->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -71,8 +71,6 @@ ...@@ -71,8 +71,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
small
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
......
...@@ -112,8 +112,6 @@ ...@@ -112,8 +112,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
small
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
...@@ -513,10 +511,47 @@ export default { ...@@ -513,10 +511,47 @@ export default {
console.log(err); console.log(err);
}); });
}, },
// 删除 // 根据视频内容id查询被引用的展板
handleDelete(row) { getUseBoard(id){
this
.$https({
method: "get",
url: "videoContent/getExhibitionBoardById/" + id,
authType: this.backToken
})
.then(
res => {
if(res.data.resultCode === "200"){
// console.log(res.data.data,'wwwww')
let data = res.data.data
if(data){
data = '当前视频已被展板(' + res.data.data + ')所使用,'
}else{
data = '当前视频无引用展板,'
}
console.log(data)
this.openDel(id,data)
}else{
this.$message({ type: "error", message: res.data.message });
}
},
error => {
this.$message({
type: "fail",
message: "删除失败!" + error.response.data
});
}
);
},
//
// 删除弹出确认窗口
openDel(id,data){
// alert(data)
const dataMsg = data
let _this = this; let _this = this;
this.$confirm("此操作将永久删除, 是否继续?", "提示", { this.$confirm(dataMsg + "此操作将永久删除, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
...@@ -525,7 +560,7 @@ export default { ...@@ -525,7 +560,7 @@ export default {
_this _this
.$https({ .$https({
method: "delete", method: "delete",
url: "videoContent/delete/" + row.id, url: "videoContent/delete/" + id,
authType: this.backToken authType: this.backToken
}) })
.then( .then(
...@@ -548,6 +583,10 @@ export default { ...@@ -548,6 +583,10 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
// 删除
handleDelete(row) {
this.getUseBoard(row.id)
},
// 批量操作 // 批量操作
handleSelectionChange(selection) { handleSelectionChange(selection) {
......
...@@ -74,8 +74,6 @@ ...@@ -74,8 +74,6 @@
</div> </div>
<div class="partyt-pagination"> <div class="partyt-pagination">
<el-pagination <el-pagination
small
background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :current-page="page.currentPage"
:page-size="page.pageSize" :page-size="page.pageSize"
......
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
} }
return str; return str;
}, },
// 批量删除 // 汇出
multipleRemit() { multipleRemit() {
let _this = this; let _this = this;
let str = _this.getMultipleSelect(); let str = _this.getMultipleSelect();
...@@ -306,10 +306,11 @@ export default { ...@@ -306,10 +306,11 @@ export default {
console.log(str); console.log(str);
_this.$https({ _this.$https({
url: "asset/download", url: "asset/download",
method: "get", method: "post",
authType: this.backToken authType: this.backToken
}, },
{idList:str} // {idList:str}
_this.$qs.stringify({idList:str})
) )
.then( .then(
res => { res => {
...@@ -329,8 +330,6 @@ export default { ...@@ -329,8 +330,6 @@ export default {
downloadElement.click() // 点击下载 downloadElement.click() // 点击下载
document.body.removeChild(downloadElement) // 下载完成移除元素 document.body.removeChild(downloadElement) // 下载完成移除元素
window.URL.revokeObjectURL(href) // 释放blob对象 window.URL.revokeObjectURL(href) // 释放blob对象
}, },
error => {} error => {}
); );
......
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