diff --git a/src/views/laboratory/alarm/event/addEventDialog.vue b/src/views/laboratory/alarm/event/addEventDialog.vue index f42266e..5ab2ef0 100644 --- a/src/views/laboratory/alarm/event/addEventDialog.vue +++ b/src/views/laboratory/alarm/event/addEventDialog.vue @@ -73,7 +73,7 @@ pageType.value = pageTypeParam // 页面类型 form.value.createUserId = user.id// 创建人id form.value.createUser = user.name // 创建人名字 - if (pageTypeParam === 'edit') { // 编辑时初始化数据 + if (pageTypeParam === 'edit' || pageTypeParam === 'detail') { // 编辑时初始化数据 form.value.deviceType = row.deviceType // 设备类型(字典code) form.value.eventDesc = row.eventDesc // 事件描述 form.value.eventName = row.eventName // 事件名称 @@ -170,6 +170,8 @@ v-model="form.firstLevelAlarm" :placeholder="pageType === 'detail' ? '' : '一级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -177,6 +179,8 @@ v-model="form.secondLevelAlarm" :placeholder="pageType === 'detail' ? '' : '二级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -184,6 +188,8 @@ v-model="form.thirdLevelAlarm" :placeholder="pageType === 'detail' ? '' : '三级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> diff --git a/src/views/laboratory/alarm/event/addEventDialog.vue b/src/views/laboratory/alarm/event/addEventDialog.vue index f42266e..5ab2ef0 100644 --- a/src/views/laboratory/alarm/event/addEventDialog.vue +++ b/src/views/laboratory/alarm/event/addEventDialog.vue @@ -73,7 +73,7 @@ pageType.value = pageTypeParam // 页面类型 form.value.createUserId = user.id// 创建人id form.value.createUser = user.name // 创建人名字 - if (pageTypeParam === 'edit') { // 编辑时初始化数据 + if (pageTypeParam === 'edit' || pageTypeParam === 'detail') { // 编辑时初始化数据 form.value.deviceType = row.deviceType // 设备类型(字典code) form.value.eventDesc = row.eventDesc // 事件描述 form.value.eventName = row.eventName // 事件名称 @@ -170,6 +170,8 @@ v-model="form.firstLevelAlarm" :placeholder="pageType === 'detail' ? '' : '一级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -177,6 +179,8 @@ v-model="form.secondLevelAlarm" :placeholder="pageType === 'detail' ? '' : '二级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -184,6 +188,8 @@ v-model="form.thirdLevelAlarm" :placeholder="pageType === 'detail' ? '' : '三级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> diff --git a/src/views/laboratory/alarm/record/list.vue b/src/views/laboratory/alarm/record/list.vue index 60bfcf0..d612b84 100644 --- a/src/views/laboratory/alarm/record/list.vue +++ b/src/views/laboratory/alarm/record/list.vue @@ -11,7 +11,7 @@ const loadingTable = ref(false) const alarmStatusMap = [ // 报警状态 { - value: '', + value: 'null', name: '全部', }, { @@ -82,47 +82,6 @@ }).catch(() => { loadingTable.value = false }) - list.value = [{ - alarmLevel: 'test1', // 报警等级 - alarmStatus: 'test1', // 报警状态(字典code) - alarmStatusName: '未确认', // 报警状态(字典value) - alarmTime: 'test1', // 报警时间 - alarmValue: 'test1', // 报警数值 - createTime: 'test1', // 创建时间 - deptId: 'test1', // 负责部门id - deptName: 'test1', // 负责部门 - deviceId: 'test1', // 设备表id - deviceName: 'test1', // 设备名称 - deviceNo: 'test1', // 设备编号 - eventName: 'test1', // 事件名称 - id: 'test11', // 主键id - locationId: 'test1', // 安装地点id - locationName: 'test1', // 安装地点 - updateTime: 'test1', // 更新时间 - userId: 'test1', // 负责人id - userName: 'test1', // 负责人 - }, - { - alarmLevel: 'test2', // 报警等级 - alarmStatus: 'test2', // 报警状态(字典code) - alarmStatusName: '已确认', // 报警状态(字典value) - alarmTime: 'test2', // 报警时间 - alarmValue: 'test2', // 报警数值 - createTime: 'test2', // 创建时间 - deptId: 'test2', // 负责部门id - deptName: 'test2', // 负责部门 - deviceId: 'test2', // 设备表id - deviceName: 'test2', // 设备名称 - deviceNo: 'test2', // 设备编号 - eventName: 'test2', // 事件名称 - id: 'test22', // 主键id - locationId: 'test2', // 安装地点id - locationName: 'test2', // 安装地点 - updateTime: 'test2', // 更新时间 - userId: 'test2', // 负责人id - userName: 'test2', // 负责人 - }, - ] } // 清除条件 const clearList = () => { diff --git a/src/views/laboratory/alarm/event/addEventDialog.vue b/src/views/laboratory/alarm/event/addEventDialog.vue index f42266e..5ab2ef0 100644 --- a/src/views/laboratory/alarm/event/addEventDialog.vue +++ b/src/views/laboratory/alarm/event/addEventDialog.vue @@ -73,7 +73,7 @@ pageType.value = pageTypeParam // 页面类型 form.value.createUserId = user.id// 创建人id form.value.createUser = user.name // 创建人名字 - if (pageTypeParam === 'edit') { // 编辑时初始化数据 + if (pageTypeParam === 'edit' || pageTypeParam === 'detail') { // 编辑时初始化数据 form.value.deviceType = row.deviceType // 设备类型(字典code) form.value.eventDesc = row.eventDesc // 事件描述 form.value.eventName = row.eventName // 事件名称 @@ -170,6 +170,8 @@ v-model="form.firstLevelAlarm" :placeholder="pageType === 'detail' ? '' : '一级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -177,6 +179,8 @@ v-model="form.secondLevelAlarm" :placeholder="pageType === 'detail' ? '' : '二级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -184,6 +188,8 @@ v-model="form.thirdLevelAlarm" :placeholder="pageType === 'detail' ? '' : '三级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> diff --git a/src/views/laboratory/alarm/record/list.vue b/src/views/laboratory/alarm/record/list.vue index 60bfcf0..d612b84 100644 --- a/src/views/laboratory/alarm/record/list.vue +++ b/src/views/laboratory/alarm/record/list.vue @@ -11,7 +11,7 @@ const loadingTable = ref(false) const alarmStatusMap = [ // 报警状态 { - value: '', + value: 'null', name: '全部', }, { @@ -82,47 +82,6 @@ }).catch(() => { loadingTable.value = false }) - list.value = [{ - alarmLevel: 'test1', // 报警等级 - alarmStatus: 'test1', // 报警状态(字典code) - alarmStatusName: '未确认', // 报警状态(字典value) - alarmTime: 'test1', // 报警时间 - alarmValue: 'test1', // 报警数值 - createTime: 'test1', // 创建时间 - deptId: 'test1', // 负责部门id - deptName: 'test1', // 负责部门 - deviceId: 'test1', // 设备表id - deviceName: 'test1', // 设备名称 - deviceNo: 'test1', // 设备编号 - eventName: 'test1', // 事件名称 - id: 'test11', // 主键id - locationId: 'test1', // 安装地点id - locationName: 'test1', // 安装地点 - updateTime: 'test1', // 更新时间 - userId: 'test1', // 负责人id - userName: 'test1', // 负责人 - }, - { - alarmLevel: 'test2', // 报警等级 - alarmStatus: 'test2', // 报警状态(字典code) - alarmStatusName: '已确认', // 报警状态(字典value) - alarmTime: 'test2', // 报警时间 - alarmValue: 'test2', // 报警数值 - createTime: 'test2', // 创建时间 - deptId: 'test2', // 负责部门id - deptName: 'test2', // 负责部门 - deviceId: 'test2', // 设备表id - deviceName: 'test2', // 设备名称 - deviceNo: 'test2', // 设备编号 - eventName: 'test2', // 事件名称 - id: 'test22', // 主键id - locationId: 'test2', // 安装地点id - locationName: 'test2', // 安装地点 - updateTime: 'test2', // 更新时间 - userId: 'test2', // 负责人id - userName: 'test2', // 负责人 - }, - ] } // 清除条件 const clearList = () => { diff --git a/src/views/laboratory/data/list.vue b/src/views/laboratory/data/list.vue index 8d2b88a..1d24ed1 100644 --- a/src/views/laboratory/data/list.vue +++ b/src/views/laboratory/data/list.vue @@ -39,6 +39,7 @@ { text: '安装地点', value: 'locationName', align: 'center' }, { text: '温度(℃)', value: 'temperature', align: 'center' }, { text: '湿度(%)', value: 'humidity', align: 'center' }, + // { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.temperatureHumidityList, @@ -51,13 +52,15 @@ { text: '设备名称', value: 'deviceName', align: 'center' }, { text: '负责部门', value: 'deptName', align: 'center' }, { text: '负责人', value: 'userName', align: 'center' }, - { text: 'A相电压', value: 'voltageA', align: 'center' }, - { text: 'B相电压', value: 'voltageB', align: 'center' }, - { text: 'C相电压', value: 'voltageC', align: 'center' }, - { text: 'A相电流', value: 'currentA', align: 'center' }, - { text: 'B相电流', value: 'currentB', align: 'center' }, - { text: 'C相电流', value: 'currentC', align: 'center' }, - { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + { text: '电压', value: 'voltageA', align: 'center' }, + // { text: 'A相电压', value: 'voltageA', align: 'center' }, + // { text: 'B相电压', value: 'voltageB', align: 'center' }, + // { text: 'C相电压', value: 'voltageC', align: 'center' }, + // { text: 'A相电流', value: 'currentA', align: 'center' }, + // { text: 'B相电流', value: 'currentB', align: 'center' }, + // { text: 'C相电流', value: 'currentC', align: 'center' }, + // { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.electricQuantityList, @@ -73,6 +76,7 @@ { text: '安装地点', value: 'locationName', align: 'center' }, { text: '氧气浓度(ppm)', value: 'oxygenDensity', align: 'center' }, { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + // { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.oxygenList, diff --git a/src/views/laboratory/alarm/event/addEventDialog.vue b/src/views/laboratory/alarm/event/addEventDialog.vue index f42266e..5ab2ef0 100644 --- a/src/views/laboratory/alarm/event/addEventDialog.vue +++ b/src/views/laboratory/alarm/event/addEventDialog.vue @@ -73,7 +73,7 @@ pageType.value = pageTypeParam // 页面类型 form.value.createUserId = user.id// 创建人id form.value.createUser = user.name // 创建人名字 - if (pageTypeParam === 'edit') { // 编辑时初始化数据 + if (pageTypeParam === 'edit' || pageTypeParam === 'detail') { // 编辑时初始化数据 form.value.deviceType = row.deviceType // 设备类型(字典code) form.value.eventDesc = row.eventDesc // 事件描述 form.value.eventName = row.eventName // 事件名称 @@ -170,6 +170,8 @@ v-model="form.firstLevelAlarm" :placeholder="pageType === 'detail' ? '' : '一级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -177,6 +179,8 @@ v-model="form.secondLevelAlarm" :placeholder="pageType === 'detail' ? '' : '二级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> @@ -184,6 +188,8 @@ v-model="form.thirdLevelAlarm" :placeholder="pageType === 'detail' ? '' : '三级报警(%)'" :disabled="pageType === 'detail'" + :min="0" + :max="100" /> diff --git a/src/views/laboratory/alarm/record/list.vue b/src/views/laboratory/alarm/record/list.vue index 60bfcf0..d612b84 100644 --- a/src/views/laboratory/alarm/record/list.vue +++ b/src/views/laboratory/alarm/record/list.vue @@ -11,7 +11,7 @@ const loadingTable = ref(false) const alarmStatusMap = [ // 报警状态 { - value: '', + value: 'null', name: '全部', }, { @@ -82,47 +82,6 @@ }).catch(() => { loadingTable.value = false }) - list.value = [{ - alarmLevel: 'test1', // 报警等级 - alarmStatus: 'test1', // 报警状态(字典code) - alarmStatusName: '未确认', // 报警状态(字典value) - alarmTime: 'test1', // 报警时间 - alarmValue: 'test1', // 报警数值 - createTime: 'test1', // 创建时间 - deptId: 'test1', // 负责部门id - deptName: 'test1', // 负责部门 - deviceId: 'test1', // 设备表id - deviceName: 'test1', // 设备名称 - deviceNo: 'test1', // 设备编号 - eventName: 'test1', // 事件名称 - id: 'test11', // 主键id - locationId: 'test1', // 安装地点id - locationName: 'test1', // 安装地点 - updateTime: 'test1', // 更新时间 - userId: 'test1', // 负责人id - userName: 'test1', // 负责人 - }, - { - alarmLevel: 'test2', // 报警等级 - alarmStatus: 'test2', // 报警状态(字典code) - alarmStatusName: '已确认', // 报警状态(字典value) - alarmTime: 'test2', // 报警时间 - alarmValue: 'test2', // 报警数值 - createTime: 'test2', // 创建时间 - deptId: 'test2', // 负责部门id - deptName: 'test2', // 负责部门 - deviceId: 'test2', // 设备表id - deviceName: 'test2', // 设备名称 - deviceNo: 'test2', // 设备编号 - eventName: 'test2', // 事件名称 - id: 'test22', // 主键id - locationId: 'test2', // 安装地点id - locationName: 'test2', // 安装地点 - updateTime: 'test2', // 更新时间 - userId: 'test2', // 负责人id - userName: 'test2', // 负责人 - }, - ] } // 清除条件 const clearList = () => { diff --git a/src/views/laboratory/data/list.vue b/src/views/laboratory/data/list.vue index 8d2b88a..1d24ed1 100644 --- a/src/views/laboratory/data/list.vue +++ b/src/views/laboratory/data/list.vue @@ -39,6 +39,7 @@ { text: '安装地点', value: 'locationName', align: 'center' }, { text: '温度(℃)', value: 'temperature', align: 'center' }, { text: '湿度(%)', value: 'humidity', align: 'center' }, + // { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.temperatureHumidityList, @@ -51,13 +52,15 @@ { text: '设备名称', value: 'deviceName', align: 'center' }, { text: '负责部门', value: 'deptName', align: 'center' }, { text: '负责人', value: 'userName', align: 'center' }, - { text: 'A相电压', value: 'voltageA', align: 'center' }, - { text: 'B相电压', value: 'voltageB', align: 'center' }, - { text: 'C相电压', value: 'voltageC', align: 'center' }, - { text: 'A相电流', value: 'currentA', align: 'center' }, - { text: 'B相电流', value: 'currentB', align: 'center' }, - { text: 'C相电流', value: 'currentC', align: 'center' }, - { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + { text: '电压', value: 'voltageA', align: 'center' }, + // { text: 'A相电压', value: 'voltageA', align: 'center' }, + // { text: 'B相电压', value: 'voltageB', align: 'center' }, + // { text: 'C相电压', value: 'voltageC', align: 'center' }, + // { text: 'A相电流', value: 'currentA', align: 'center' }, + // { text: 'B相电流', value: 'currentB', align: 'center' }, + // { text: 'C相电流', value: 'currentC', align: 'center' }, + // { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.electricQuantityList, @@ -73,6 +76,7 @@ { text: '安装地点', value: 'locationName', align: 'center' }, { text: '氧气浓度(ppm)', value: 'oxygenDensity', align: 'center' }, { text: '电量(%)', value: 'electricQuantity', align: 'center' }, + // { text: '状态', value: 'deviceStatusName', align: 'center', styleFilter: (row: ISmokeList) => { return `${row.deviceStatus}` === '0' ? 'color: red' : `${row.deviceStatus}` === '1' ? 'color: #00a846' : '' } }, { text: '上传时间', value: 'uploadTime', align: 'center', width: '180' }, ]), list: listMap.oxygenList, diff --git a/src/views/laboratory/equipment/config/addElectricQuantity.vue b/src/views/laboratory/equipment/config/addElectricQuantity.vue index 6fc749a..bec37cb 100644 --- a/src/views/laboratory/equipment/config/addElectricQuantity.vue +++ b/src/views/laboratory/equipment/config/addElectricQuantity.vue @@ -1,4 +1,4 @@ - +