|
|
@@ -59,6 +59,7 @@ export default {
|
|
|
tableHeader: ["平台名称", "平台账号", "是否认证", "粉丝数", "操作"],
|
|
|
tableData: [],
|
|
|
editData: {},
|
|
|
+ accountId: "",
|
|
|
// dictList: [],
|
|
|
// mediaPlatName: [],
|
|
|
};
|
|
|
@@ -90,12 +91,15 @@ export default {
|
|
|
//this.addDataList(account, fansNum, flag, editData);
|
|
|
let data = {
|
|
|
id: editData["id"],
|
|
|
- authorization : flag === "是" ? true : false,
|
|
|
+ authorization: flag === "是" ? true : false,
|
|
|
fansCount: fansNum,
|
|
|
- accountCode: account
|
|
|
+ accountCode: account,
|
|
|
};
|
|
|
this.updateMediaAccountInfo(data).then(() => {
|
|
|
- this.selectMediaAccountPage();
|
|
|
+ let req = {
|
|
|
+ accountId: this.accountId,
|
|
|
+ };
|
|
|
+ this.selectMediaAccountPage(req);
|
|
|
});
|
|
|
},
|
|
|
toggleModal: function (i) {
|
|
|
@@ -192,10 +196,11 @@ export default {
|
|
|
// },
|
|
|
//
|
|
|
// 获取列表数据 接口
|
|
|
- selectMediaAccountPage: function () {
|
|
|
+ selectMediaAccountPage: function (data) {
|
|
|
this.$http({
|
|
|
method: "post",
|
|
|
url: "/sys/mediaAccount/selectMediaAccountPage",
|
|
|
+ data,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
@@ -234,16 +239,16 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- // let userId = localStorage.getItem("userId");
|
|
|
- // if (userId) {
|
|
|
- // console.log('用这个');
|
|
|
- // this.userId = userId;
|
|
|
- // } else {
|
|
|
- // console.log('用你写死的');
|
|
|
- // this.userId = '之前的';
|
|
|
- // }
|
|
|
- // console.log(userId);
|
|
|
- this.selectMediaAccountPage();
|
|
|
+ let userId = localStorage.getItem("userId");
|
|
|
+ if (userId) {
|
|
|
+ this.accountId = userId;
|
|
|
+ } else {
|
|
|
+ this.accountId = "";
|
|
|
+ }
|
|
|
+ let data = {
|
|
|
+ accountId: this.accountId,
|
|
|
+ };
|
|
|
+ this.selectMediaAccountPage(data);
|
|
|
|
|
|
// this.selectSysDataDictList()
|
|
|
// .then(() => {
|