单风机:计算量显示优化

节点:密码修改为密码框
This commit is contained in:
高云鹏 2024-11-21 15:52:55 +08:00
parent 93699326bb
commit 229805f40b
3 changed files with 17 additions and 9 deletions

View File

@ -1008,6 +1008,7 @@ const createRealTimeData = async () => {
{ type138: [], type140: [], type199: [] },
]
modelList.forEach((item: any) => {
const realVal = realData[item.attributeCode.toLowerCase()]
let val = getCutDecimalsValue(realVal)
if (enumStore.keys.includes(item.attributeCode)) {
@ -1113,7 +1114,7 @@ const realTimeForSubSystem = reactive<any>({
})
const curSubSystem = ref('type1')
const subSystemDataList = computed(() => {
const type = dialogradioactiveName.value === 138 ? 'type138' : 'type140'
const type = dialogradioactiveName.value === 138 ? 'type138' : dialogradioactiveName.value === 140 ? 'type140' : 'type199'
return realTimeForSubSystem[curSubSystem.value][type]
})
@ -1373,7 +1374,6 @@ const sendManualCommand = (type: 1 | 0) => {
const getAlarmList = () => {
const start = dayjs().subtract(3, 'day').startOf('day').toDate().getTime()
const end = dayjs().endOf('day').toDate().getTime()
console.log(route.query.name)
getAlarmListReq({
startTime: start,

View File

@ -39,8 +39,6 @@ const props = withDefaults(defineProps<{ visible: boolean; type: string; type138
})
const showData = computed(() => {
console.log(props);
let data = props.type === '138' ? props.type138 : props.type === '140' ? props.type140 : props.type199
return data.slice((pageSetting.current - 1) * pageSetting.pageSize, pageSetting.current * pageSetting.pageSize)
})
@ -60,11 +58,13 @@ watch(
() => props.type,
() => {
pageSetting.current = 1
pageSetting.total = props.type === '138' ? props.type138.length : props.type140.length
pageSetting.total =
props.type === '138' ? props.type138.length : (pageSetting.total = props.type === '140' ? props.type140.length : props.type199.length)
}
)
onMounted(() => {
pageSetting.total = props.type === '138' ? props.type138.length : props.type140.length
pageSetting.total =
props.type === '138' ? props.type138.length : (pageSetting.total = props.type === '140' ? props.type140.length : props.type199.length)
})
</script>

View File

@ -21,6 +21,14 @@
:disabled="props.disabled"
class="formInput"
></el-input>
<el-input
v-if="itemChild.data.type === 'password'"
type="password"
show-password
v-model="formData[itemChild.key] as string"
:disabled="props.disabled"
class="formInput"
></el-input>
<el-input-number
v-else-if="itemChild.data.type === 'number'"
v-model="formData[itemChild.key] as number"
@ -967,7 +975,7 @@ const formColumnList: formColumnType[] = [
key: 'ftpPassword',
data: {
label: 'FTP密码',
type: 'input',
type: 'password',
value: '',
showKey: 'ftpMode',
showValue: '1',
@ -1085,7 +1093,7 @@ const formColumnList: formColumnType[] = [
key: 'ftpPassword',
data: {
label: 'FTP密码',
type: 'input',
type: 'password',
value: '',
showKey: 'ftpMode',
showValue: '1',
@ -1105,7 +1113,7 @@ const formColumnList: formColumnType[] = [
key: 'adsPassword',
data: {
label: 'ADS密码',
type: 'input',
type: 'password',
value: '',
showKey: 'ftpMode',
showValue: '1',