| | |
| | | <template>
|
| | | <div class="app-container">
|
| | | <el-form :model="queryParams" ref="queryForm" :inline="true">
|
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
| | | <el-form-item label="字典名称" prop="dictType">
|
| | | <el-select v-model="queryParams.dictType" size="small">
|
| | | <el-option
|
| | |
| | | </el-select>
|
| | | </el-form-item>
|
| | | <el-form-item>
|
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | |
| | | v-hasPermi="['system:dict:export']"
|
| | | >导出</el-button>
|
| | | </el-col>
|
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
| | | </el-row>
|
| | |
|
| | | <el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange">
|
| | |
| | | />
|
| | |
|
| | | <!-- 添加或修改参数配置对话框 -->
|
| | | <el-dialog :title="title" :visible.sync="open" width="500px">
|
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
| | | <el-form-item label="字典类型">
|
| | | <el-input v-model="form.dictType" :disabled="true" />
|
| | |
| | | single: true,
|
| | | // 非多个禁用
|
| | | multiple: true,
|
| | | // 显示搜索条件
|
| | | showSearch: true,
|
| | | // 总条数
|
| | | total: 0,
|
| | | // 字典表格数据
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|