浏览代码

添加弹框 条件判断

bding 6 月之前
父节点
当前提交
20590401f9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/roadshow_manage/compononts/addParticipateDia.vue

+ 2 - 2
src/views/roadshow_manage/compononts/addParticipateDia.vue

@@ -1,7 +1,7 @@
 <template>
   <el-dialog title="提交参会名单" :visible.sync="isAddParticipateShow" width="500px" append-to-body @close="closeDlg">
     <div class="partic-dialog-container">
-      <div>
+      <div v-if="isType !== '查看'">
         <el-input style="width: 392px; margin-bottom: 20px" v-model="roadShowTheme" placeholder="请输入路演主题名称"></el-input>
       </div>
       <template v-if="isType !== '查看'">
@@ -169,7 +169,7 @@ export default {
     confirmPerson() {
       //校验
       const useId = this.dynamicItem.map((i) => i.id).filter((i) => i);
-      if (!this.roadShowTheme) return this.$message.error("请输入路演主题名称");
+      if (!this.roadShowTheme && this.isType !== '查看') return this.$message.error("请输入路演主题名称");
       if (!useId.length) return this.$message.error("请输入姓名");
       roadshowInterence
         .addMeetingUser({