Commit d2dfc160 authored by moonby's avatar moonby

电动阀UI调整

parent e7e20471
<template> <template>
<el-card class="card-contianer"> <el-card class="card-contianer">
<el-form :model="form" label-width="auto" style="max-width: 600px;height: 100%"> <el-form class="card-form" :model="form" label-width="auto" :style="{minHeight:h+'px',maxWidth:400+'px'}">
<el-form-item label="自检计划名称"> <el-form-item label="自检计划名称">
<el-input v-model="form.name" /> <el-input v-model="form.name" />
</el-form-item> </el-form-item>
...@@ -55,6 +55,9 @@ import { ElMessage } from 'element-plus' ...@@ -55,6 +55,9 @@ import { ElMessage } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import http from '../../api/http' import http from '../../api/http'
var h=window.innerHeight - 165;
const form = reactive({ const form = reactive({
planId: '', planId: '',
name: '', name: '',
...@@ -141,13 +144,11 @@ function get() { ...@@ -141,13 +144,11 @@ function get() {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }
.card-form { .card-form {
width: 100%; width: 100%;
height: 300px; // text-align: center;
padding-left: 35%;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment