|
|
@@ -76,9 +76,11 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
inputValue: "",
|
|
|
+ exportInputValue: "",
|
|
|
areaList: [],
|
|
|
platesList: [],
|
|
|
areaValue: "",
|
|
|
+ exportAreaValue: "",
|
|
|
plateValue: "",
|
|
|
tableData: [],
|
|
|
dictList: [],
|
|
|
@@ -87,6 +89,7 @@ export default {
|
|
|
pageSize: 20,
|
|
|
onlineUrl: env_url, //'http://8.140.188.129:8080'线上 //http://8.136.230.133:8080 //测试
|
|
|
platformId: "",
|
|
|
+ exportPlateValue: ""
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -193,11 +196,11 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
- console.log(res, 2222);
|
|
|
this.tableData = res.data.data;
|
|
|
this.sum = res.data.count;
|
|
|
- } else {
|
|
|
- console.log("message", res.data.data);
|
|
|
+ this.exportAreaValue = this.areaValue;
|
|
|
+ this.exportPlateValue = this.platformId;
|
|
|
+ this.exportInputValue = this.inputValue;
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -234,8 +237,6 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
this.areaList = res.data.data;
|
|
|
- } else {
|
|
|
- console.log(res);
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -257,7 +258,6 @@ export default {
|
|
|
this.getMediaList(dictCode, id);
|
|
|
resolve();
|
|
|
} else {
|
|
|
- console.log(res);
|
|
|
reject();
|
|
|
}
|
|
|
})
|
|
|
@@ -280,9 +280,6 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
this.platesList = res.data.data;
|
|
|
- console.log(this.platesList, "aa");
|
|
|
- } else {
|
|
|
- console.log(res);
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -299,11 +296,9 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
- console.log(res);
|
|
|
resolve();
|
|
|
} else {
|
|
|
alert("编辑失败,请重试");
|
|
|
- console.log(res);
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -314,13 +309,12 @@ export default {
|
|
|
},
|
|
|
// 导出 接口
|
|
|
exportTem: function () {
|
|
|
- let url = this.onlineUrl + "/sys/mediaAccount/export";
|
|
|
+ let url = this.onlineUrl + "/sys/mediaAccount/export?" + "&queryParams=" + this.exportInputValue + "&localArea=" + this.exportAreaValue + "&platformId=" + this.exportPlateValue;
|
|
|
window.open(url);
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
this.selectSysDataDictList();
|
|
|
- console.log(this.onlineUrl, 'onlineUrl');
|
|
|
this.getAreaList();
|
|
|
let req = {
|
|
|
page: this.currentPage,
|