|
@@ -4,7 +4,7 @@
|
|
<el-input :placeholder="`请输入业务空间名称`" v-model="roomName"></el-input>
|
|
<el-input :placeholder="`请输入业务空间名称`" v-model="roomName"></el-input>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button size="small" @click="dialogVisible=false">取 消</el-button>
|
|
<el-button size="small" @click="dialogVisible=false">取 消</el-button>
|
|
- <el-button size="small" type="primary" @click="confirm">确 定</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="confirm" :disabled="confirmDisable">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</template>
|
|
</template>
|
|
@@ -16,6 +16,7 @@ export default {
|
|
title: '提示',
|
|
title: '提示',
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
roomName: '',
|
|
roomName: '',
|
|
|
|
+ confirmDisable: true
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -23,6 +24,7 @@ export default {
|
|
showDialog(val) {
|
|
showDialog(val) {
|
|
this.roomName = val;
|
|
this.roomName = val;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
|
+ this.confirmDisable = false;
|
|
},
|
|
},
|
|
// 确认
|
|
// 确认
|
|
confirm() {
|
|
confirm() {
|
|
@@ -30,6 +32,7 @@ export default {
|
|
this.$message.warning("请填写空间名称");
|
|
this.$message.warning("请填写空间名称");
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.confirmDisable = true
|
|
this.$emit('createRoom', this.roomName);
|
|
this.$emit('createRoom', this.roomName);
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
}
|
|
}
|