diff --git a/src/views/laboratory/equipment/list/list.vue b/src/views/laboratory/equipment/list/list.vue index 20f66df..ebfd26a 100644 --- a/src/views/laboratory/equipment/list/list.vue +++ b/src/views/laboratory/equipment/list/list.vue @@ -20,7 +20,7 @@ deptId: '', // 负责部门id(西昌组织下拉选择) deviceName: '', // 设备名称 deviceNo: '', // 设备编号 - deviceStatus: '1', // 在线状态(1在线0离线) + deviceStatus: '', // 在线状态(1在线0离线) userId: '', // 负责人id(西昌组织下人员下拉选择) ids: [], limit: 20, @@ -45,7 +45,7 @@ // -----------------------------------------字典-------------------------------------------------------------- const useDeptList = ref([]) // 所属部门列表 const userList = ref<{ [key: string]: string }[]>([]) // 用户列表 -const deviceStatusList = ref([]) // 在线状态 +const deviceStatusList = ref([]) as any // 在线状态 const deviceStatusMap = ref({}) as any // 在线状态 const deptPid = ref('') @@ -69,7 +69,7 @@ deviceStatusList.value = response.data deviceStatusList.value.unshift({ name: '全部', - value: '', + value: null, }) }) } @@ -105,7 +105,7 @@ deptId: '', // 负责部门id(西昌组织下拉选择) deviceName: '', // 设备名称 deviceNo: '', // 设备编号 - deviceStatus: '1', // 在线状态(1在线0离线) + deviceStatus: '', // 在线状态(1在线0离线) userId: '', // 负责人id(西昌组织下人员下拉选择) limit: 20, offset: 1, diff --git a/src/views/laboratory/equipment/list/list.vue b/src/views/laboratory/equipment/list/list.vue index 20f66df..ebfd26a 100644 --- a/src/views/laboratory/equipment/list/list.vue +++ b/src/views/laboratory/equipment/list/list.vue @@ -20,7 +20,7 @@ deptId: '', // 负责部门id(西昌组织下拉选择) deviceName: '', // 设备名称 deviceNo: '', // 设备编号 - deviceStatus: '1', // 在线状态(1在线0离线) + deviceStatus: '', // 在线状态(1在线0离线) userId: '', // 负责人id(西昌组织下人员下拉选择) ids: [], limit: 20, @@ -45,7 +45,7 @@ // -----------------------------------------字典-------------------------------------------------------------- const useDeptList = ref([]) // 所属部门列表 const userList = ref<{ [key: string]: string }[]>([]) // 用户列表 -const deviceStatusList = ref([]) // 在线状态 +const deviceStatusList = ref([]) as any // 在线状态 const deviceStatusMap = ref({}) as any // 在线状态 const deptPid = ref('') @@ -69,7 +69,7 @@ deviceStatusList.value = response.data deviceStatusList.value.unshift({ name: '全部', - value: '', + value: null, }) }) } @@ -105,7 +105,7 @@ deptId: '', // 负责部门id(西昌组织下拉选择) deviceName: '', // 设备名称 deviceNo: '', // 设备编号 - deviceStatus: '1', // 在线状态(1在线0离线) + deviceStatus: '', // 在线状态(1在线0离线) userId: '', // 负责人id(西昌组织下人员下拉选择) limit: 20, offset: 1, diff --git a/src/views/laboratory/place/addDialog.vue b/src/views/laboratory/place/addDialog.vue index f82b15f..c9abc80 100644 --- a/src/views/laboratory/place/addDialog.vue +++ b/src/views/laboratory/place/addDialog.vue @@ -26,7 +26,7 @@ locationNo: [{ required: true, message: '地点编号不能为空', trigger: 'blur' }], locationName: [{ required: true, message: '地点名称不能为空', trigger: 'blur' }], locationPosition: [{ required: true, message: '地点位置不能为空', trigger: 'blur' }], - locationLab: [{ required: true, message: '地点实验室不能为空', trigger: 'blur' }], + locationLab: [{ required: true, message: '所属实验室不能为空', trigger: 'blur' }], }) // 表单验证规则 const dialogVisible = ref(false) // 弹窗显示 const pageType = ref('') // 页面类型 add新增、edit编辑 @@ -140,10 +140,10 @@ - + ([]) // 所属部门列表 const userList = ref<{ [key: string]: string }[]>([]) // 用户列表 -const deviceStatusList = ref([]) // 在线状态 +const deviceStatusList = ref([]) as any // 在线状态 const deviceStatusMap = ref({}) as any // 在线状态 const deptPid = ref('') @@ -69,7 +69,7 @@ deviceStatusList.value = response.data deviceStatusList.value.unshift({ name: '全部', - value: '', + value: null, }) }) } @@ -105,7 +105,7 @@ deptId: '', // 负责部门id(西昌组织下拉选择) deviceName: '', // 设备名称 deviceNo: '', // 设备编号 - deviceStatus: '1', // 在线状态(1在线0离线) + deviceStatus: '', // 在线状态(1在线0离线) userId: '', // 负责人id(西昌组织下人员下拉选择) limit: 20, offset: 1, diff --git a/src/views/laboratory/place/addDialog.vue b/src/views/laboratory/place/addDialog.vue index f82b15f..c9abc80 100644 --- a/src/views/laboratory/place/addDialog.vue +++ b/src/views/laboratory/place/addDialog.vue @@ -26,7 +26,7 @@ locationNo: [{ required: true, message: '地点编号不能为空', trigger: 'blur' }], locationName: [{ required: true, message: '地点名称不能为空', trigger: 'blur' }], locationPosition: [{ required: true, message: '地点位置不能为空', trigger: 'blur' }], - locationLab: [{ required: true, message: '地点实验室不能为空', trigger: 'blur' }], + locationLab: [{ required: true, message: '所属实验室不能为空', trigger: 'blur' }], }) // 表单验证规则 const dialogVisible = ref(false) // 弹窗显示 const pageType = ref('') // 页面类型 add新增、edit编辑 @@ -140,10 +140,10 @@ - +