|
|
@@ -25,9 +25,13 @@
|
|
|
</div>
|
|
|
<div class="selectPlate">
|
|
|
<p>媒体平台</p>
|
|
|
- <select v-model="plateValue">
|
|
|
+ <select v-model="plateValue" @change="platChange($event)">
|
|
|
<option value="">请选择</option>
|
|
|
- <option v-for="(item, index) in platesList" :key="index">
|
|
|
+ <option
|
|
|
+ v-for="(item, index) in platesList"
|
|
|
+ :key="index"
|
|
|
+ :data-index="index"
|
|
|
+ >
|
|
|
{{ item.dictName }}
|
|
|
</option>
|
|
|
</select>
|
|
|
@@ -81,6 +85,7 @@ export default {
|
|
|
sum: 0,
|
|
|
pageSize: 20,
|
|
|
onlineUrl: "http://8.136.230.133:8080",
|
|
|
+ platIndex: 0,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -131,17 +136,28 @@ export default {
|
|
|
};
|
|
|
this.getDealerListRequest(req);
|
|
|
},
|
|
|
- plateOption: function (e) {
|
|
|
- let index = e.target.options.selectedIndex;
|
|
|
- console.log(index);
|
|
|
+ platChange: function (e) {
|
|
|
+ this.platIndex = e.target.options.selectedIndex;
|
|
|
},
|
|
|
submit: function () {
|
|
|
- let req = {
|
|
|
- localArea: this.areaValue,
|
|
|
- platformName: this.plateValue,
|
|
|
- page: this.currentPage,
|
|
|
- rows: this.pageSize,
|
|
|
- };
|
|
|
+ console.log(this.platIndex);
|
|
|
+ let index = this.platIndex;
|
|
|
+ let req = {}
|
|
|
+ if (index > 0) {
|
|
|
+ let platformId = this.platesList[index - 1]["id"];
|
|
|
+ req = {
|
|
|
+ localArea: this.areaValue,
|
|
|
+ platformId,
|
|
|
+ page: this.currentPage,
|
|
|
+ rows: this.pageSize,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ req = {
|
|
|
+ localArea: this.areaValue,
|
|
|
+ page: this.currentPage,
|
|
|
+ rows: this.pageSize,
|
|
|
+ }
|
|
|
+ }
|
|
|
this.getDealerListRequest(req);
|
|
|
},
|
|
|
editData: function (i, isAttesta, fansNum, accountCode) {
|
|
|
@@ -259,6 +275,7 @@ 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);
|
|
|
}
|