微调
This commit is contained in:
@@ -23,8 +23,9 @@
|
||||
|
||||
</ProTable>
|
||||
</div>
|
||||
<ComparisonPopup :refresh-table='proTable?.getTableList' ref='comparisonPopup' />
|
||||
<TestScriptPopup :refresh-table='proTable?.getTableList' ref='testScriptPopup' />
|
||||
<ComparisonPopup ref='comparisonPopup' />
|
||||
<ValueTypePopup ref='valueTypePopup' />
|
||||
<TestScriptPopup ref='testScriptPopup' />
|
||||
|
||||
</template>
|
||||
|
||||
@@ -37,6 +38,7 @@ import { CirclePlus, Delete, EditPen, Share } from '@element-plus/icons-vue'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import ComparisonPopup from './components/comparisonPopup.vue'
|
||||
import TestScriptPopup from './components/testScriptPopup.vue'
|
||||
import ValueTypePopup from './components/valueTypePopup.vue'
|
||||
import {
|
||||
getPqScriptList,updatePqScript,deletePqScript,
|
||||
} from '@/api/device/testScript/index'
|
||||
@@ -44,6 +46,7 @@ import { computed, reactive, ref } from 'vue'
|
||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||
const comparisonPopup = ref()
|
||||
const testScriptPopup = ref()
|
||||
const valueTypePopup = ref()
|
||||
const modeStore = useModeStore();
|
||||
const dictStore = useDictStore()
|
||||
|
||||
@@ -114,7 +117,12 @@ const openDialog = (titleType: string, row: Partial<TestScript.ResTestScript> =
|
||||
if(modeStore.currentMode == '比对式'){
|
||||
comparisonPopup.value?.open(titleType, row,modeStore.currentMode,)
|
||||
}else{
|
||||
testScriptPopup.value?.open(titleType, row,modeStore.currentMode)
|
||||
if(titleType == 'add'){
|
||||
valueTypePopup.value?.open(titleType, row,modeStore.currentMode)
|
||||
}else{
|
||||
testScriptPopup.value?.open(titleType, row,modeStore.currentMode,'')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user