受众复制,空名称问题

This commit is contained in:
daihh
2023-03-01 17:00:47 +08:00
parent 294cda0097
commit 34f16c6c0a

View File

@@ -60,11 +60,7 @@
<el-dialog title="复制受众" :visible.sync="copyUserGroupShow" :close-on-click-modal="false" width="500px" custom-class="g-dialog">
<el-form ref="copyForm" :rules="copyRules" :model="copyForm" label-width="100px">
<el-form-item label="受众名称:" prop="name">
<el-input
v-model="copyForm.audienceName"
placeholder="请输入受众名称"
maxlength="50"
></el-input>
<el-input v-model="copyForm.audienceName" placeholder="请输入受众名称" maxlength="50"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
@@ -335,6 +331,9 @@
this.copyForm.audienceName = row.name;
},
copy(){
if(!this.copyForm.audienceName){
return;
}
this.$refs.copyForm.validate((valid) => {
if (valid) {
apiAudience.copy(this.copyForm).then((res) => {