系数校准
This commit is contained in:
@@ -236,7 +236,7 @@
|
||||
@update:visible="matchDialogVisible = $event"
|
||||
></matchPopup>
|
||||
|
||||
<!--系数校准-->>
|
||||
<!--系数校准-->
|
||||
<ChannelsTest ref="channelsTest"></ChannelsTest>
|
||||
</div>
|
||||
</template>
|
||||
@@ -302,7 +302,7 @@ const operationMinWidth = ref(200);
|
||||
const selectionShow = ref(true);
|
||||
const channelsTest = ref()
|
||||
const testPopup = ref()
|
||||
|
||||
const channelsSelection = ref<Device.ResPqDev[]>([])
|
||||
const props = defineProps({
|
||||
id: {
|
||||
type: String,
|
||||
@@ -369,7 +369,6 @@ const checkResult: Dict[] = [
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
//查询条件
|
||||
const form: any = ref({
|
||||
activeTabs: 0, //功能选择
|
||||
@@ -394,9 +393,11 @@ const searchForm = ref({
|
||||
// ProTable 实例
|
||||
const proTable = ref<ProTableInstance>();
|
||||
|
||||
const boundPqDevList=ref<Device.ReqPqDevParams[]>([])//根据检测计划id查询出所有已绑定的设备
|
||||
|
||||
const getTableList = async (params: any) => {
|
||||
// 调用 ProTable 的 clearSelection 方法清空选择
|
||||
if (proTable.value) {
|
||||
proTable.value.clearSelection();
|
||||
}
|
||||
if(props.id){
|
||||
const checkStateList = ref<any>()
|
||||
if(form.value.checkStatus != null){
|
||||
@@ -414,8 +415,6 @@ const getTableList = async (params: any) => {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 表格配置项
|
||||
const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
||||
{ type: 'selection', fixed: 'left', width: 70, isShow:selectionShow },
|
||||
@@ -543,7 +542,8 @@ const resetSearchForm = () => {
|
||||
let testType = "test";//检测还是复检
|
||||
|
||||
const handleSelectionChange = (selection: any[]) => {
|
||||
|
||||
channelsSelection.value = selection
|
||||
console.log(selection);
|
||||
devNum = selection.length;
|
||||
devChannelsNum = 0;
|
||||
for (let i = 0; i < selection.length; i++) {
|
||||
@@ -806,7 +806,8 @@ const handleTest = async (val:string) => {
|
||||
|
||||
if(val==='系数校准')
|
||||
{
|
||||
channelsTest.value?.open()
|
||||
|
||||
channelsTest.value?.open(channelsSelection.value)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -892,6 +893,7 @@ const openDrawer = (title: string, row: any) => {
|
||||
watch(
|
||||
() => props.id,
|
||||
(newId) => {
|
||||
|
||||
// 调用获取数据的方法
|
||||
handleSearch();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user