|
@@ -123,7 +123,7 @@ const getExcutingMachines = () => {
|
|
|
|
|
|
// 如果上面选择的项目改变了 要重新调这两个接口
|
|
|
// todo
|
|
|
-
|
|
|
+const ConfigDataAndDeviceRef = ref();
|
|
|
const testingMachines = ref<any[]>([]); // 所有routeData里面的测试仪器
|
|
|
const getExcutingGlobalMachines = async () => {
|
|
|
let res = await searchExcutingInstrumentConfig(
|
|
@@ -147,7 +147,12 @@ const getExcutingGlobalData = async () => {
|
|
|
|
|
|
// 配置这次执行的工程相关的数据和仪器
|
|
|
const configDrawerVisible = ref(false);
|
|
|
-
|
|
|
+const onClickGlobalConfig = () => {
|
|
|
+ configDrawerVisible.value = true;
|
|
|
+ nextTick(() => {
|
|
|
+ ConfigDataAndDeviceRef.value && ConfigDataAndDeviceRef.value.openDrawer();
|
|
|
+ });
|
|
|
+};
|
|
|
// 开始测试相关
|
|
|
const isTesting = ref(false);
|
|
|
const currentTestingProject = ref<any>();
|
|
@@ -495,7 +500,7 @@ const checkStartEnable = (): boolean => {
|
|
|
|
|
|
<div class="content-C">
|
|
|
<div class="left">
|
|
|
- <div class="test-btn progress" @click="configDrawerVisible = true">
|
|
|
+ <div class="test-btn progress" @click="onClickGlobalConfig">
|
|
|
<svg-icon icon-class="project-config" />
|
|
|
全局配置
|
|
|
</div>
|
|
@@ -587,6 +592,7 @@ const checkStartEnable = (): boolean => {
|
|
|
direction="ltr"
|
|
|
>
|
|
|
<ConfigDataAndDevice
|
|
|
+ ref="ConfigDataAndDeviceRef"
|
|
|
v-model:devices-data="testingMachines"
|
|
|
v-model:data-list="excutingGlobalData"
|
|
|
@close="configDrawerVisible = false"
|