Commit 98276cb3 authored by 胡冲's avatar 胡冲

修改学习内容出现内存满。造成卡顿

parent 7feeaade
...@@ -12,7 +12,7 @@ module.exports = { ...@@ -12,7 +12,7 @@ module.exports = {
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/mall': { '/mall': {
target: "http://111.203.232.175:8088/mall", target: "http://192.168.0.102:8088/mall",
// target: "http://192.168.0.106:8088/mall", // target: "http://192.168.0.106:8088/mall",
// target: "http://192.168.204.66:8088/mall", // target: "http://192.168.204.66:8088/mall",
changeOrigin: true, changeOrigin: true,
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl:'http://111.203.232.175:8088/mall/file/upload/allType', uploadUrl:'http://192.168.0.102:8088/mall/file/upload/allType',
formVisible: false, formVisible: false,
headers:{Authorization: localStorage.getItem('backToken')}, headers:{Authorization: localStorage.getItem('backToken')},
formItem: {}, formItem: {},
......
...@@ -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://111.203.232.175:8088/mall/file/image/upload" action="http://192.168.0.102: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://111.203.232.175:8088/mall/file/image/upload" action="http://192.168.0.102:8088/mall/file/image/upload"
:on-success="uploadRunImg" :on-success="uploadRunImg"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:headers ="headers" :headers ="headers"
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
} }
// console.log(boardList) // console.log(boardList)
vm.formInline.exhibitionBoardList = boardList vm.formInline.exhibitionBoardList = boardList
console.log(1111,vm.formInline.exhibitionBoardList) // console.log(1111,vm.formInline.exhibitionBoardList)
// console.log(this.formInline.exhibitionBoardList[0].videoList); // console.log(this.formInline.exhibitionBoardList[0].videoList);
}) })
.catch(function (err) { .catch(function (err) {
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
history.go(-1); history.go(-1);
}, },
handleChange(val) { handleChange(val) {
console.log(val); // console.log(val);
}, },
}, },
}; };
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-upload <el-upload
accept=".jpg,.jpeg,.png.JPG,.JPEG,.PNG" accept=".jpg,.jpeg,.png.JPG,.JPEG,.PNG"
:class="{disabled:uploadDisabled}" :class="{disabled:uploadDisabled}"
action="http://111.203.232.175:8088/mall/file/image/upload" action="http://192.168.0.102: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"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-upload <el-upload
accept=".jpg,.jpeg,.png,.JPG,.JPEG,.PBG" accept=".jpg,.jpeg,.png,.JPG,.JPEG,.PBG"
:class="{disabled:uploadDisabled}" :class="{disabled:uploadDisabled}"
action="http://111.203.232.175:8088/mall/file/image/upload" action="http://192.168.0.102: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"
......
...@@ -371,7 +371,7 @@ export default { ...@@ -371,7 +371,7 @@ export default {
}; };
this.getTableData(param, "update"); this.getTableData(param, "update");
}, },
setSelctTable() { async setSelctTable() {
if (!this.multipleSelection.length) { if (!this.multipleSelection.length) {
return false; return false;
} }
...@@ -385,6 +385,7 @@ export default { ...@@ -385,6 +385,7 @@ export default {
} }
}); });
}); });
await this.getTableParam1()
}, },
setSelctTable1() { setSelctTable1() {
// console.log(this.multipleSelection1) // console.log(this.multipleSelection1)
...@@ -485,13 +486,15 @@ export default { ...@@ -485,13 +486,15 @@ export default {
}); });
}, },
// 展板多选赋值 // 展板多选赋值
async handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
let newArray = val.map(item => { let newArray = val.map(item => {
return item.id; return item.id;
}); });
this.ruleForm.exhibitionBoardIdList = newArray; this.ruleForm.exhibitionBoardIdList = newArray;
await this.getTableParam1() if(this.type === 'add') {
this.getTableParam1()
}
}, },
// 展板资料多选赋值 // 展板资料多选赋值
handleSelectionChange1(val) { handleSelectionChange1(val) {
...@@ -586,7 +589,6 @@ export default { ...@@ -586,7 +589,6 @@ export default {
} }
this.getTableParam() this.getTableParam()
}, },
//
getSelectDep2(exhibitionBoardCatIdList) { getSelectDep2(exhibitionBoardCatIdList) {
if (exhibitionBoardCatIdList.length === this.assetType2.length) { if (exhibitionBoardCatIdList.length === this.assetType2.length) {
this.checkedThing2 = true; this.checkedThing2 = true;
...@@ -611,15 +613,24 @@ export default { ...@@ -611,15 +613,24 @@ export default {
}, },
// 筛选展板资料备选清单选项条件 // 筛选展板资料备选清单选项条件
getTableParam1(){ getTableParam1(){
if((this.ruleForm.exhibitionBoardIdList.length>0)){ const param = {
let vm = this; boardList:this.ruleForm.exhibitionBoardIdList.toString()
};
if(param.boardList.length>0){
this.getTableData1(param);
}else{
this.tableData1 = []
}
},
getTableData1 () {
let vm = this;
vm.$https( vm.$https(
{ {
url: "asset/getAssetByBoard", url: "asset/getAssetByBoard",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}, },
{ boardList:vm.ruleForm.exhibitionBoardIdList.toString()} { boardList:vm.ruleForm.exhibitionBoardIdList.toString() }
) )
.then(res => { .then(res => {
// alert(1) // alert(1)
...@@ -627,14 +638,14 @@ export default { ...@@ -627,14 +638,14 @@ export default {
// console.log(data) // console.log(data)
vm.tableData1 = data; vm.tableData1 = data;
// 选中表格数据 // 选中表格数据
console.log(this.type) // console.log(this.type)
if(this.type === 'add'){ if(this.type === 'add'){
vm.multipleSelection1 = res.data.data vm.multipleSelection1 = res.data.data
setTimeout(() => { setTimeout(() => {
vm.setSelctTable1(); vm.setSelctTable1();
}, 1000); }, 1000);
}else{ }else{
console.log(this.multipleSelection1) // console.log(this.multipleSelection1)
vm.multipleSelection1 = this.multipleSelection1 vm.multipleSelection1 = this.multipleSelection1
setTimeout(() => { setTimeout(() => {
vm.setSelctTable1(); vm.setSelctTable1();
...@@ -644,12 +655,9 @@ export default { ...@@ -644,12 +655,9 @@ export default {
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
}); });
}else{
this.tableData1 = []
}
}, },
// 根据展板类别,版权方获取展板备选清单 // 根据展板类别,版权方获取展板备选清单
getTableData(param, type) { async getTableData(param, type) {
let vm = this; let vm = this;
vm.$https( vm.$https(
......
This diff is collapsed.
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
axios({ axios({
method: "get", method: "get",
url: 'http://111.203.232.175:8088/mall/asset/downloadCipher', url: 'http://192.168.0.102:8088/mall/asset/downloadCipher',
params: { params: {
// idList:str // idList:str
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
axios({ axios({
method: "get", method: "get",
url: 'http://111.203.232.175:8088/mall/asset/download', url: 'http://192.168.0.102:8088/mall/asset/download',
params: { params: {
// idList: "1382697227765313538" // idList: "1382697227765313538"
idList:str idList:str
......
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