Commit e14f5cdd authored by 王亚晖's avatar 王亚晖
parents 3946336c 7be83717
<template> <template>
<el-scrollbar> <el-scrollbar>
<div class="ams-el-menu"> <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 <el-select placement="bottom" v-model="searchValue" clearable filterable remote reserve-keyword
:placeholder="'请输入关键字搜索...'" :remote-method="remoteMethod" @change="selectChange" :loading="loading"> :placeholder="'请输入关键字搜索...'" :remote-method="remoteMethod" @change="selectChange" :loading="loading">
<template #prefix><i class="el-icon-search"></i></template> <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> </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"> <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 @@ ...@@ -146,7 +146,6 @@
function getImgUrl(item) { 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_off.png" />')
item = item.replaceAll("N",'<img style="width: 20px; height: 20px" src="/imgs/status/status_run.png" />') item = item.replaceAll("N",'<img style="width: 20px; height: 20px" src="/imgs/status/status_run.png" />')
console.log(item)
return item; return item;
} }
......
<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