Commit 35ea2c39 authored by 罗林杰's avatar 罗林杰

修改bug

parent b1b85f3b
......@@ -2,10 +2,10 @@
<div class="app-container">
<div class="mb12 font-small-bold" style="font-size: 16px">资源限额模版列表</div>
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="限额模版名称" prop="quotaName">
<el-form-item label="模版名称" prop="quotaName">
<el-input
v-model="queryParams.quotaName"
placeholder="请输入限额模版名称"
placeholder="请输入模版名称"
clearable
:maxlength="255"
size="small"
......@@ -80,7 +80,7 @@
<div style="padding:5px 10px">
<el-table v-loading="loading" border :data="resQuotaTemplateList">
<el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="限额模版名称" width="140px" prop="quotaName" :show-overflow-tooltip="true">
<el-table-column label="模版名称" width="140px" prop="quotaName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.quotaName || '-' }}
</template>
......@@ -164,8 +164,8 @@
<!-- 添加或修改资源限额模版配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" label-width="auto" :model="form" :rules="rules" size="small">
<el-form-item label="限额模版名称" prop="quotaName">
<el-input v-model.trim="form.quotaName" show-word-limit :maxlength="255" placeholder="请输入限额模版名称" />
<el-form-item label="模版名称" prop="quotaName">
<el-input v-model.trim="form.quotaName" show-word-limit :maxlength="255" placeholder="请输入模版名称" />
</el-form-item>
<el-form-item label="cpu限额" prop="quotaCpuSum">
<el-input v-model.trim="form.quotaCpuSum" controls-position="right" :min="0" placeholder="请输入cpu限额" />
......@@ -282,7 +282,7 @@ export default {
// 表单校验
rules: {
quotaName: [
{ required: true, message: '限额模版名称不能为空', trigger: 'blur' }
{ required: true, message: '模版名称不能为空', trigger: 'blur' }
],
quotaCpuSum: [
{ required: true, message: 'cpu限额不能为空', trigger: 'blur' }
......
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