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

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

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