From 4c8aae44c1f1c6561e5dea51c6c15fe5800ba320 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期一, 24 六月 2024 18:38:08 +0800 Subject: [PATCH] 修改了直播模块 --- ruoyi-ui/src/components/comp-room.vue | 12 ++++++------ ruoyi-ui/src/components/comp-device-select.vue | 4 ++-- ruoyi-ui/src/views/meeting/webcast.vue | 4 ++-- ruoyi-ui/src/views/meeting/Home.vue | 14 +++++++------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ruoyi-ui/src/components/comp-device-select.vue b/ruoyi-ui/src/components/comp-device-select.vue index e9adf3a..867f14c 100644 --- a/ruoyi-ui/src/components/comp-device-select.vue +++ b/ruoyi-ui/src/components/comp-device-select.vue @@ -5,7 +5,7 @@ --> <template> <div class="select-container"> - <span class="label">{{ deviceType }}</span> + <span class="label">{{ deviceType=='camera'? '鎽勫儚澶�':'楹﹀厠椋�' }}</span> <el-select class="select" v-model="activeDeviceId" @@ -79,7 +79,7 @@ display: inline-block; padding: 0 20px; width: 120px; - height: 40px; + height: 36px; text-align: left; line-height: 40px; border-top: 1px solid #DCDFE6; diff --git a/ruoyi-ui/src/components/comp-room.vue b/ruoyi-ui/src/components/comp-room.vue index de8c180..5eb10d2 100644 --- a/ruoyi-ui/src/components/comp-room.vue +++ b/ruoyi-ui/src/components/comp-room.vue @@ -6,13 +6,13 @@ <template> <div class="rtc-container"> <!-- 杩涙埧鎿嶄綔鍖哄煙 --> - <p v-if="isHostMode" class="label">{{ $t('Operation') }}</p> + <p v-if="isHostMode" class="label">{{ $t('浼氳鎿嶄綔') }}</p> <div class="control-container"> <div class="rtc-control-container"> <el-button class="button" type="primary" - size="small" :disabled="isJoining || isJoined" @click="handleJoinRoom">{{ $t('Join Room') }}</el-button> + size="small" :disabled="isJoining || isJoined" @click="handleJoinRoom">{{ $t('鍔犲叆鎴块棿') }}</el-button> <el-button v-if="isHostMode" class="button" @@ -24,7 +24,7 @@ type="primary" size="small" @click="handleUnpublish">{{ $t('Unpublish') }}</el-button> <el-button class="button" - type="primary" size="small" @click="handleLeave">{{ $t('Leave Room') }}</el-button> + type="primary" size="small" @click="handleLeave">{{ $t('绂诲紑鎴块棿') }}</el-button> </div> <div v-if="isHostMode" class="screen-share-control-container"> <el-button @@ -32,10 +32,10 @@ type="primary" size="small" :disabled="isShareJoined && isSharePublished" - @click="handleStartScreenShare">{{ $t('Start Screen Share') }}</el-button> + @click="handleStartScreenShare">{{ $t('鍏变韩灞忓箷') }}</el-button> <el-button class="button" - type="primary" size="small" @click="handleStopScreenShare">{{ $t('Stop Screen Share') }}</el-button> + type="primary" size="small" @click="handleStopScreenShare">{{ $t('缁撴潫灞忓箷鍏变韩') }}</el-button> </div> </div> @@ -63,7 +63,7 @@ <div class="info-container" :class="$isMobile && 'info-container-mobile'"> <!-- Log 灞曠ず鍖哄煙 --> - <div v-if="isHostMode" class="log-container" ref="logContainer"> + <div v-if="isHostMode" class="log-container" ref="logContainer"> <p class="log-label">Log:</p> <div v-for="(item, index) in logList" :key="index"> <span class="log-state" v-if="item.type === 'success'">馃煩 </span> diff --git a/ruoyi-ui/src/views/meeting/Home.vue b/ruoyi-ui/src/views/meeting/Home.vue index 1925dc6..467ac69 100644 --- a/ruoyi-ui/src/views/meeting/Home.vue +++ b/ruoyi-ui/src/views/meeting/Home.vue @@ -6,22 +6,22 @@ <template> <div id="app1"> <!-- 澶撮儴鏍� --> - 1222222222222222222 - <comp-nav></comp-nav> + <!-- 1222222222222222222 --> + <!-- <comp-nav></comp-nav> --> <div class="content" :class="$isMobile && 'content-mobile'"> <!-- quick demo 浣跨敤鎸囧紩 --> - <comp-guidance></comp-guidance> + <!-- <comp-guidance></comp-guidance> --> <!-- sdkAppId銆乻ecretKey銆乽serId銆乺oomId 鍙傛暟杈撳叆鍖哄煙 --> - <p class="label">{{ $t('Params') }}</p> + <p class="label">{{ $t('鍩烘湰淇℃伅') }}</p> <div class="param-container" :class="$isMobile && 'param-container-mobile'"> <comp-info-input label="sdkAppId" type="number" @change="handleValueChange($event, 'sdkAppId')"></comp-info-input> <comp-info-input label="secretKey" @change="handleValueChange($event, 'secretKey')"></comp-info-input> <comp-info-input - label="userId" @change="handleValueChange($event, 'userId')"></comp-info-input> + label="鐢ㄦ埛鍚�" @change="handleValueChange($event, 'userId')"></comp-info-input> <comp-info-input - label="roomId" type="number" @change="handleValueChange($event, 'roomId')"></comp-info-input> + label="鎴块棿鍙�" type="number" @change="handleValueChange($event, 'roomId')"></comp-info-input> </div> <div class='alert'> <el-alert @@ -32,7 +32,7 @@ </el-alert> </div> <!-- 璁惧閫夋嫨鍖哄煙 --> - <p class="label">{{ $t('Device Select') }}</p> + <p class="label">{{ $t('浼氳璁剧疆') }}</p> <div class="param-container" :class="$isMobile && 'param-container-mobile'"> <comp-device-select deviceType="camera" @change="handleValueChange($event, 'cameraId')"></comp-device-select> diff --git a/ruoyi-ui/src/views/meeting/webcast.vue b/ruoyi-ui/src/views/meeting/webcast.vue index d6a7d2b..88e7dd3 100644 --- a/ruoyi-ui/src/views/meeting/webcast.vue +++ b/ruoyi-ui/src/views/meeting/webcast.vue @@ -91,11 +91,11 @@ value-format="yyyy-MM-dd HH:mm:ss"> </el-date-picker> </el-form-item> - <el-form-item label="缁撴潫鏃堕棿" prop="endTime"> +<!-- <el-form-item label="缁撴潫鏃堕棿" prop="endTime"> <el-date-picker v-model="formDat.endTime" type="datetime" placeholder="閫夋嫨寮�濮嬫椂闂�" value-format="yyyy-MM-dd HH:mm:ss"> </el-date-picker> - </el-form-item> + </el-form-item> --> <!-- <el-form-item label="寮�濮嬫椂闂�" prop="startTime"> <el-date-picker v-model="formDat.startTime" type="datetime" placeholder="閫夋嫨寮�濮嬫椂闂�" -- Gitblit v1.9.1