Commit e14f5cdd authored by 王亚晖's avatar 王亚晖
parents 3946336c 7be83717
<template>
<el-scrollbar>
<div class="ams-el-menu">
<!-- <div class="menu-search">
<div class="menu-search">
<el-select placement="bottom" v-model="searchValue" clearable filterable remote reserve-keyword
:placeholder="'请输入关键字搜索...'" :remote-method="remoteMethod" @change="selectChange" :loading="loading">
<template #prefix><i class="el-icon-search"></i></template>
<el-option v-for="item in menus" :key="item.menuId" :label="item.menuName" :value="item.menuName" />
<el-option v-for="item in menus.childs" :key="item.menuId" :label="item.menuName" :value="item.menuName" />
</el-select>
</div> -->
</div>
<el-menu unique-opened :collapse-transition='false' :collapse='$store.state.iscollapse' router :default-active="defaultActive" active-text-color="#409EFF" background-color="#32363f" text-color="#fff">
<!-- 一级菜单 -->
......
......@@ -146,7 +146,6 @@
function getImgUrl(item) {
item = item.replaceAll("N",'<img style="width: 20px; height: 20px" src="/imgs/status/status_off.png" />')
item = item.replaceAll("N",'<img style="width: 20px; height: 20px" src="/imgs/status/status_run.png" />')
console.log(item)
return item;
}
......
<template>
<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-input v-model="form.name" />
</el-form-item>
......@@ -55,6 +55,9 @@ import { ElMessage } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import http from '../../api/http'
var h=window.innerHeight - 165;
const form = reactive({
planId: '',
name: '',
......@@ -140,14 +143,12 @@ function get() {
width: calc(100%-1px);
height: 100%;
overflow: hidden;
}
.card-form {
width: 100%;
height: 300px;
// text-align: center;
padding-left: 35%;
}
</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