|
@@ -25,9 +25,12 @@
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
<a-button type="primary" icon="search" @click="handleQueryList">查询</a-button>
|
|
<a-button type="primary" icon="search" @click="handleQueryList">查询</a-button>
|
|
<a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button">重置</a-button>
|
|
<a-button type="primary" @click="handleResetForm" icon="reload" class="middle-button">重置</a-button>
|
|
- <a-button type="primary" @click="handleUploadPerson">
|
|
|
|
|
|
+ <a-button type="primary" @click="handleUploadPerson" class="middle-button">
|
|
上传人群包
|
|
上传人群包
|
|
</a-button>
|
|
</a-button>
|
|
|
|
+ <a-button type="primary" @click="handleUpdatePerson" v-if="realShow" :loading="realLoading">
|
|
|
|
+ 更新人群
|
|
|
|
+ </a-button>
|
|
|
|
|
|
</span>
|
|
</span>
|
|
|
|
|
|
@@ -243,7 +246,7 @@ import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
import selectTable from '@/views/modules/Statistics/components/selectPagination.vue';
|
|
import selectTable from '@/views/modules/Statistics/components/selectPagination.vue';
|
|
import AppMarketService from './crowd-control-service';
|
|
import AppMarketService from './crowd-control-service';
|
|
import BMF from 'browser-md5-file';
|
|
import BMF from 'browser-md5-file';
|
|
-
|
|
|
|
|
|
+import { mapGetters } from 'vuex';
|
|
let COS = require('cos-js-sdk-v5');
|
|
let COS = require('cos-js-sdk-v5');
|
|
let cos = new COS({
|
|
let cos = new COS({
|
|
SecretId: 'AKIDE6IpMi8fJQRCg1iuWzFajjRs43kbbets',
|
|
SecretId: 'AKIDE6IpMi8fJQRCg1iuWzFajjRs43kbbets',
|
|
@@ -394,6 +397,8 @@ export default {
|
|
this.handleAcountRelax(this.relaxStatus ,this.acountRelaxDetail)
|
|
this.handleAcountRelax(this.relaxStatus ,this.acountRelaxDetail)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ realShow: false,
|
|
|
|
+ realLoading: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -407,9 +412,18 @@ export default {
|
|
this.form = this.$form.createForm(this);
|
|
this.form = this.$form.createForm(this);
|
|
},
|
|
},
|
|
mounted() {
|
|
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.handleGetTableList({});
|
|
this.handleGetTableList({});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ ...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
handleAgian(val) {
|
|
handleAgian(val) {
|
|
let params = {};
|
|
let params = {};
|
|
params.id = val.id;
|
|
params.id = val.id;
|
|
@@ -726,6 +740,22 @@ export default {
|
|
handleUploadPerson() {
|
|
handleUploadPerson() {
|
|
this.personVisible = true;
|
|
this.personVisible = true;
|
|
},
|
|
},
|
|
|
|
+ handleUpdatePerson() {
|
|
|
|
+ if(this.realShow) {
|
|
|
|
+ this.realLoading = true;
|
|
|
|
+ getAction('/kuaishou/batch/syncUserPopulationList',{ userId:this.userInfo().id, type:0}).then(res => {
|
|
|
|
+ if(res.success) {
|
|
|
|
+ this.realLoading = false;
|
|
|
|
+ this.$message.success('更新成功');
|
|
|
|
+ this.handleResetForm();
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.realLoading = false;
|
|
|
|
+ this.$message.error('更新失败');
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleOk() {
|
|
handleOk() {
|
|
this.$refs.ruleForm.validate(valid => {
|
|
this.$refs.ruleForm.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|