diff --git a/src/views/manage/UserGroupList.vue b/src/views/manage/UserGroupList.vue index f1e5447f..01f02801 100644 --- a/src/views/manage/UserGroupList.vue +++ b/src/views/manage/UserGroupList.vue @@ -60,7 +60,7 @@ @@ -121,8 +121,8 @@ // 表格数据 tableData: [], copyUserGroupShow:false, - copyRules:{ name: [{ required: true, message: "请输入名称", trigger: "blur" }]}, - copyForm:{name:'',id:''}, + copyRules:{ audienceName: [{ required: true, message: "请输入名称", trigger: "blur" }]}, + copyForm:{audienceName:'',audienceId:''}, } }, mounted() { @@ -330,13 +330,13 @@ }, copyDialog(row){ this.copyUserGroupShow = true; - this.copyForm.id = row.id; - this.copyForm.name = row.name; + this.copyForm.audienceId = row.id; + this.copyForm.audienceName = row.name; }, copy(){ this.$refs.copyForm.validate((valid) => { if (valid) { - usergroupApi.copy(this.copyForm).then((res) => { + apiAudience.copy(this.copyForm).then((res) => { if (res.status == 200) { this.$message({ type: "success", message: "复制受众成功" ,offset:50}); this.loadData(this.page,this.query);