|
|
@@ -166,6 +166,7 @@
|
|
|
是否外链
|
|
|
</span>
|
|
|
<el-radio-group v-model="form.isFrame">
|
|
|
+ debugger
|
|
|
<el-radio label="0">是</el-radio>
|
|
|
<el-radio label="1">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
@@ -392,6 +393,7 @@ export default {
|
|
|
handleAdd(row) {
|
|
|
this.reset();
|
|
|
this.getTreeselect();
|
|
|
+ debugger
|
|
|
if (row != null && row.menuId) {
|
|
|
this.form.parentId = row.menuId;
|
|
|
} else {
|
|
|
@@ -412,7 +414,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
this.getTreeselect();
|
|
|
- getMenu(row.menuId).then(response => {
|
|
|
+ getMenu(Number(row.id)).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改菜单";
|
|
|
@@ -422,7 +424,7 @@ export default {
|
|
|
submitForm: function() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- if (this.form.menuId != undefined) {
|
|
|
+ if (this.form.id != undefined) {
|
|
|
updateMenu(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
@@ -441,7 +443,7 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
this.$modal.confirm('是否确认删除名称为"' + row.menuName + '"的数据项?').then(function() {
|
|
|
- return delMenu(row.menuId);
|
|
|
+ return delMenu(row.id);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|