|
1 | 1 | <template>
|
2 | 2 |
|
3 | 3 | <div class="warpper">
|
4 | | - <el-form :inline="true" :model="searchForm" class="demo-form-inline"> |
5 | | - <el-form-item label="名称"> |
6 | | - <el-input v-model="searchForm.name" @keyup.enter.native="search" placeholder="请输入名称"> |
7 | | - </el-input> |
8 | | - </el-form-item> |
9 | | - <el-form-item label="状态"> |
10 | | - <el-select v-model="searchForm.status" placeholder="请选择状态"> |
11 | | - <el-option :value='true' label='是'></el-option> |
12 | | - <el-option :value='false' label='否'></el-option> |
13 | | - </el-select> |
14 | | - </el-form-item> |
15 | | - <el-form-item> |
16 | | - <el-button @click="find()" plain>查询</el-button> |
17 | | - <el-button type="info" @click="findReset()" plain>重置</el-button> |
18 | | - </el-form-item> |
19 | | - </el-form> |
20 | 4 | <div class="toolbar">
|
| 5 | + <el-form :inline="true" :model="searchForm" class="demo-form-inline"> |
| 6 | + <el-form-item label="名称"> |
| 7 | + <el-input v-model="searchForm.name" @keyup.enter.native="search" placeholder="请输入名称"> |
| 8 | + </el-input> |
| 9 | + </el-form-item> |
| 10 | + <el-form-item label="状态"> |
| 11 | + <el-select v-model="searchForm.status" placeholder="请选择状态"> |
| 12 | + <el-option :value='true' label='是'></el-option> |
| 13 | + <el-option :value='false' label='否'></el-option> |
| 14 | + </el-select> |
| 15 | + </el-form-item> |
| 16 | + <el-form-item> |
| 17 | + <el-button @click="find()" plain>查询</el-button> |
| 18 | + <el-button type="info" @click="findReset()" plain>重置</el-button> |
| 19 | + </el-form-item> |
| 20 | + </el-form> |
21 | 21 | <el-button type="primary" plain @click="add">添加</el-button>
|
22 | 22 | </div>
|
23 | 23 | <div class="table">
|
|
63 | 63 | </el-row>
|
64 | 64 | <el-row :gutter="20">
|
65 | 65 | <el-col :span="12">
|
66 | | - <el-select v-model="formData.status" placeholder="请选择状态"> |
67 | | - <el-option :value='true' label='是'></el-option> |
68 | | - <el-option :value='false' label='否'></el-option> |
69 | | - </el-select> |
| 66 | + <el-form-item label="状态"> |
| 67 | + <el-select v-model="formData.status" placeholder="请选择状态"> |
| 68 | + <el-option :value='true' label='是'></el-option> |
| 69 | + <el-option :value='false' label='否'></el-option> |
| 70 | + </el-select> |
| 71 | + </el-form-item> |
70 | 72 | </el-col>
|
71 | 73 | </el-row>
|
72 | 74 | </el-form>
|
73 | 75 | <div slot="footer" class="dialog-footer">
|
74 | 76 | <el-button @click="dialogFormVisible = false">取 消</el-button>
|
75 | | - <el-button type="primary" @click="save()">{{ cmdTitle }}</el-button> |
| 77 | + <el-button type="primary" @click="save('ruleForm')">{{ cmdTitle }}</el-button> |
76 | 78 | </div>
|
77 | 79 | </el-dialog>
|
78 | 80 | </div>
|
|
0 commit comments