yz3456
2024-07-29 fae5df1d3f1ae875ac546cacfb4744b2e8230ca2
ruoyi-ui/src/views/meeting/webcast.vue
@@ -109,7 +109,7 @@
        </el-form-item> -->
        <el-form-item label="房间号" prop="roomId">
          <el-input v-model="formDat.roomId" placeholder="请输入房间号" clearable :style="{width: '100%'}">
          <el-input v-model="formDat.roomId" type="number" :min="1" placeholder="请输入房间号" clearable :style="{width: '100%'}">
          </el-input>
        </el-form-item>
@@ -239,7 +239,7 @@
      },
      submitDataScope: function() {
        this.$refs["elForm"].validate(valid => {
          if (valid) {
          if (valid && this.formDat.roomId > 0) {
            addWebcast(this.formDat).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
@@ -256,7 +256,14 @@
              // }
              this.getList();
            });
          }else{
            this.$message.error("新增失败,房间号不能是负数");
            this.open = false;
            Object.keys(this.formDat).forEach(key => {
              this.formDat[key] = '';
            });
          }
        });
      },