mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
受众复制,空名称问题
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user