From fae5df1d3f1ae875ac546cacfb4744b2e8230ca2 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期一, 29 七月 2024 11:07:24 +0800 Subject: [PATCH] 修改了bug --- ruoyi-ui/src/views/meeting/webcast.vue | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/meeting/webcast.vue b/ruoyi-ui/src/views/meeting/webcast.vue index 0946aff..0ddabd1 100644 --- a/ruoyi-ui/src/views/meeting/webcast.vue +++ b/ruoyi-ui/src/views/meeting/webcast.vue @@ -109,7 +109,12 @@ </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> + + <el-form-item label="鏈�澶氫汉鏁�" prop="maxPerson"> + <el-input v-model="formDat.maxPerson" placeholder="璇疯緭鍏ユ渶澶氫汉鏁�" clearable :style="{width: '100%'}"> </el-input> </el-form-item> @@ -205,7 +210,8 @@ contactPerson: undefined, contactPhone: undefined, createTime: undefined, - roomId:undefined + roomId:undefined, + maxPerson:undefined }, } @@ -233,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; @@ -250,7 +256,14 @@ // } this.getList(); }); + }else{ + this.$message.error("鏂板澶辫触锛屾埧闂村彿涓嶈兘鏄礋鏁�"); + this.open = false; + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); } + }); }, -- Gitblit v1.9.1