yz3456
2024-07-29 fae5df1d3f1ae875ac546cacfb4744b2e8230ca2
ruoyi-ui/src/views/meeting/webcast.vue
@@ -58,7 +58,7 @@
    <el-row :gutter="0" v-loading="loading">
      <el-col :span="4" v-for="(item,i) in webcastList">
        <div class="module" @click="toLook">
        <div class="module" @click="toLook(item.id)">
          <div class="video">
            66666666
          </div>
@@ -107,6 +107,16 @@
          <el-input v-model="formDat.meetingTitle" placeholder="请输入会议标题" clearable :style="{width: '100%'}">
          </el-input>
        </el-form-item> -->
        <el-form-item label="房间号" prop="roomId">
          <el-input v-model="formDat.roomId" type="number" :min="1" placeholder="请输入房间号" clearable :style="{width: '100%'}">
          </el-input>
        </el-form-item>
        <el-form-item label="最多人数" prop="maxPerson">
          <el-input v-model="formDat.maxPerson" placeholder="请输入最多人数" clearable :style="{width: '100%'}">
          </el-input>
        </el-form-item>
        <el-form-item label="会议标题" prop="title">
          <el-input v-model="formDat.title" placeholder="请输入会议标题" clearable :style="{width: '100%'}">
@@ -199,7 +209,9 @@
          applyPerson: undefined,
          contactPerson: undefined,
          contactPhone: undefined,
          createTime: undefined
          createTime: undefined,
          roomId:undefined,
          maxPerson:undefined
        },
      }
@@ -227,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;
@@ -244,7 +256,14 @@
              // }
              this.getList();
            });
          }else{
            this.$message.error("新增失败,房间号不能是负数");
            this.open = false;
            Object.keys(this.formDat).forEach(key => {
              this.formDat[key] = '';
            });
          }
        });
      },
@@ -256,15 +275,15 @@
        this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
        listWebcast(this.queryParams).then(response => {
            this.webcastList = response.data.data;
            // console.log(this.webcastList,'webcastListwebcastListwebcastList')
            console.log(this.webcastList,'webcastListwebcastListwebcastList')
            this.total = response.data.total;
            this.loading = false;
          }
        );
      },
      toLook() {
        this.$router.push('/meeting/webcast/Home/')
      toLook(id) {
        this.$router.push('/meeting/webcast/Home/' + id)
      }
    }