Merge remote-tracking branch 'origin/master'

This commit is contained in:
2025-01-17 09:35:58 +08:00
2 changed files with 16 additions and 6 deletions

View File

@@ -649,6 +649,7 @@ const updateErrorState = (index: number, hasError: boolean) => {
const emit = defineEmits<{ const emit = defineEmits<{
(e: 'quitClicked'): void; (e: 'quitClicked'): void;
(e: 'submitClicked'): void;
}>(); }>();
const handleCancel=() => { const handleCancel=() => {
@@ -703,7 +704,7 @@ const handleSubmit = async () => {
operateType:'0' // '0'为预检测、1为正式检测 operateType:'0' // '0'为预检测、1为正式检测
}) })
active.value++; active.value++;
console.log("handleSubmitactive",active.value); emit('submitClicked'); // 触发事件
// 初始化 loadingStates 为 true // 初始化 loadingStates 为 true
// loadingStates.value = new Array(name.value.length).fill(true); // loadingStates.value = new Array(name.value.length).fill(true);

View File

@@ -142,14 +142,14 @@
</el-dropdown> </el-dropdown>
</div> --> </div> -->
<!-- <el-button <el-button
type='primary' type='primary'
link link
:icon='Download' :icon='Download'
@click="openDrawer('报告下载', scope.row)" @click="openDrawer('报告下载', scope.row)"
v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && scope.row.reportState === 1' v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && scope.row.reportState === 1'
>报告下载 >报告下载
</el-button> --> </el-button>
<el-button <el-button
type='primary' type='primary'
@@ -225,7 +225,7 @@
:dialogTitle="dialogTitle" :dialogTitle="dialogTitle"
@update:visible="dialogFormVisible = $event" @update:visible="dialogFormVisible = $event"
/> --> /> -->
<TestPopup ref='testPopup' @quitClicked='handleQuitClicked'></TestPopup> <TestPopup ref='testPopup' @quitClicked='handleQuitClicked' ></TestPopup>
<reportPopup <reportPopup
:visible='reportDialogVisible' :visible='reportDialogVisible'
@@ -245,7 +245,7 @@
></matchPopup> ></matchPopup>
<!--系数校准--> <!--系数校准-->
<ChannelsTest ref='channelsTest' :webMsgSend='webMsgSend' @quitClicked='handleQuitClicked'></ChannelsTest> <ChannelsTest ref='channelsTest' :webMsgSend='webMsgSend' @quitClicked='handleQuitClicked' @submitClicked = 'handleSubmitClicked'></ChannelsTest>
</div> </div>
</template> </template>
@@ -1138,11 +1138,20 @@ onBeforeMount(async () => {
}) })
const handleQuitClicked = () => { const handleQuitClicked = () => {
console.log('handleQuitClicked') //console.log('handleQuitClicked')
dataSocket.socketServe.closeWs() dataSocket.socketServe.closeWs()
emit('batchGenerateClicked') // 触发事件 emit('batchGenerateClicked') // 触发事件
} }
const handleSubmitClicked =() =>{
//console.log('handleSubmitClicked')
if(!dataSocket.socketServe.connected){
ElMessage.error('webSocket连接中断请退出重新进行系数校准')
return
}
}
defineExpose({ changeActiveTabs }) defineExpose({ changeActiveTabs })
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>