|
|
@@ -113,14 +113,16 @@ export default {
|
|
|
// 点击编辑
|
|
|
edit(index, newCount) {
|
|
|
let id = this.tableData[index]['id'];
|
|
|
- this.updateGroupInfo(id, newCount).then(() => {
|
|
|
+ let publishPlatformId = this.optionList[index]['id'];
|
|
|
+ this.updateGroupInfo(id, newCount, publishPlatformId).then(() => {
|
|
|
this.selectMediaPublishList();
|
|
|
})
|
|
|
},
|
|
|
// 点击删除
|
|
|
deleteData(index) {
|
|
|
let id = this.tableData[index]['id'];
|
|
|
- this.deleteGroupInfo(id).then(() => {
|
|
|
+ let publishPlatformId = this.optionList[index]['id'];
|
|
|
+ this.deleteGroupInfo(id, publishPlatformId).then(() => {
|
|
|
this.selectMediaPublishList();
|
|
|
})
|
|
|
},
|
|
|
@@ -134,7 +136,7 @@ export default {
|
|
|
slectPlatForm: function (e) {
|
|
|
let index = e.target.options.selectedIndex;
|
|
|
this.selectedplateForm = this.optionList[index];
|
|
|
- let id = this.optionList[0]['id'];
|
|
|
+ let id = this.optionList[index]['id'];
|
|
|
let req = { id };
|
|
|
this.selectMediaPublishList(req);
|
|
|
},
|
|
|
@@ -194,7 +196,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 编辑,接口
|
|
|
- updateGroupInfo: function (id, publishCount) {
|
|
|
+ updateGroupInfo: function (id, publishCount, publishPlatformId) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$http({
|
|
|
method: "post",
|
|
|
@@ -202,6 +204,7 @@ export default {
|
|
|
data: {
|
|
|
id,
|
|
|
publishCount,
|
|
|
+ publishPlatformId
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
@@ -221,13 +224,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 删除 接口
|
|
|
- deleteGroupInfo: function (id) {
|
|
|
+ deleteGroupInfo: function (id, publishPlatformId) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$http({
|
|
|
method: "post",
|
|
|
url: "/sys/group/deleteGroupInfo",
|
|
|
data: {
|
|
|
id,
|
|
|
+ publishPlatformId
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|