| | |
| | | </el-select>
|
| | | </el-form-item>
|
| | | <el-form-item>
|
| | | <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button type="primary" 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>
|
| | |
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | type="primary"
|
| | | plain
|
| | | icon="el-icon-plus"
|
| | | size="mini"
|
| | | @click="handleAdd"
|
| | |
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item v-if="form.menuType != 'M'" label="权限标识">
|
| | | <el-input v-model="form.perms" placeholder="请权限标识" maxlength="50" />
|
| | | <el-input v-model="form.perms" placeholder="请输入权限标识" maxlength="100" />
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | <el-col :span="12">
|
| | |
| | | :key="dict.dictValue"
|
| | | :label="dict.dictValue"
|
| | | >{{dict.dictLabel}}</el-radio>
|
| | | </el-radio-group>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item v-if="form.menuType == 'C'" label="是否缓存">
|
| | | <el-radio-group v-model="form.isCache">
|
| | | <el-radio label="0">缓存</el-radio>
|
| | | <el-radio label="1">不缓存</el-radio>
|
| | | </el-radio-group>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | |
| | | menuType: "M",
|
| | | orderNum: undefined,
|
| | | isFrame: "1",
|
| | | isCache: "0",
|
| | | visible: "0",
|
| | | status: "0"
|
| | | };
|
| | |
| | | if (valid) {
|
| | | if (this.form.menuId != undefined) {
|
| | | updateMenu(this.form).then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | }
|
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | });
|
| | | } else {
|
| | | addMenu(this.form).then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | }
|
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("删除成功");
|
| | | }).catch(function() {});
|
| | | }).catch(() => {});
|
| | | }
|
| | | }
|
| | | };
|