|
@@ -28,9 +28,9 @@
|
|
|
<a-button type="primary" @click="handleUploadPerson" class="middle-button">
|
|
|
上传人群包
|
|
|
</a-button>
|
|
|
- <!-- <a-button type="primary" @click="handleUpdatePerson" v-if="realShow" :loading="realLoading">
|
|
|
+ <a-button type="primary" @click="handleUpdatePerson" v-if="realShow" :loading="realLoading">
|
|
|
更新人群
|
|
|
- </a-button> -->
|
|
|
+ </a-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
@@ -412,14 +412,14 @@ export default {
|
|
|
this.form = this.$form.createForm(this);
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.realShow = this.userInfo().realname === '管理员' ? true : false
|
|
|
- // if(!this.realShow) {
|
|
|
- // getAction('/kuaishou/batch/syncUserPopulationList',{ userId:this.userInfo().id, type:1}).then(res => {
|
|
|
- // if(res.success) {
|
|
|
+ this.realShow = this.userInfo().realname === '管理员' ? true : false
|
|
|
+ if(!this.realShow) {
|
|
|
+ getAction('/kuaishou/batch/syncUserPopulationList',{ userId:this.userInfo().id, type:1}).then(res => {
|
|
|
+ if(res.success) {
|
|
|
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
this.handleGetTableList({});
|
|
|
},
|
|
|
methods: {
|
|
@@ -430,9 +430,24 @@ export default {
|
|
|
params.accountIds = [val.accountId];
|
|
|
postAction('/kuaishouPopulationPackage/push' ,params).then(res => {
|
|
|
if(res.success) {
|
|
|
- this.$message.success(res.message);
|
|
|
- this.historyVisible = false;
|
|
|
- this.handleGetTableList({});
|
|
|
+
|
|
|
+ if(!this.realShow) {
|
|
|
+ getAction('/kuaishou/batch/syncUserPopulationList',{ userId:this.userInfo().id, type:1}).then(res => {
|
|
|
+ if(res.success) {
|
|
|
+ this.$message.success(res.message);
|
|
|
+ this.historyVisible = false;
|
|
|
+ this.handleGetTableList({});
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.success(res.message);
|
|
|
+ this.historyVisible = false;
|
|
|
+ this.handleGetTableList({});
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
this.$message.error(res.message);
|
|
@@ -610,13 +625,28 @@ export default {
|
|
|
id: this.tableSelectList.id
|
|
|
};
|
|
|
postAction('/kuaishouPopulationPackage/push', paramsData).then(result => {
|
|
|
- this.pushConfirmLoading = false;
|
|
|
+
|
|
|
if (result.code === 200) {
|
|
|
- this.pushVisible = false;
|
|
|
- this.handleGetTableList({});
|
|
|
- this.$message.success('推送成功')
|
|
|
+
|
|
|
+ if(!this.realShow) {
|
|
|
+ getAction('/kuaishou/batch/syncUserPopulationList',{ userId:this.userInfo().id, type:1}).then(res => {
|
|
|
+ if(res.success) {
|
|
|
+ this.pushConfirmLoading = false;
|
|
|
+ this.pushVisible = false;
|
|
|
+ this.handleGetTableList({});
|
|
|
+ this.$message.success('推送成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.pushConfirmLoading = false;
|
|
|
+ this.pushVisible = false;
|
|
|
+ this.handleGetTableList({});
|
|
|
+ this.$message.success('推送成功')
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
+ this.pushConfirmLoading = false;
|
|
|
this.$message.error(result.message);
|
|
|
}
|
|
|
}).catch(error => {
|