|
|
@@ -104,7 +104,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="icon" v-if="activeName==1" label="图标" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <svg-icon :icon-class="scope.row.icon" />
|
|
|
+ <svg-icon v-if="scope.row.icon" :icon-class="scope.row.icon" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="icon" v-if="activeName==0" label="图标" align="center" width="100">
|
|
|
@@ -479,7 +479,6 @@ export default {
|
|
|
methods: {
|
|
|
//上传成功回调
|
|
|
inputHandler(list){
|
|
|
- console.log(list);
|
|
|
this.form.icon=list
|
|
|
},
|
|
|
//切换tab栏刷新数据
|
|
|
@@ -494,7 +493,6 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listMenu(this.queryParams).then((response) => {
|
|
|
- console.log(response.data);
|
|
|
// filter((item)=>item.item.platformType==this.activeName)
|
|
|
this.menuList = this.handleTree(
|
|
|
response.data.filter((item) => item.platformType == this.activeName)
|
|
|
@@ -519,6 +517,7 @@ export default {
|
|
|
this.menuOptions = [];
|
|
|
const menu = { id: 0, menuName: "主类目", children: [] };
|
|
|
menu.children = this.handleTree(response.data, "id");
|
|
|
+ console.log(menu,'menu')
|
|
|
this.menuOptions.push(menu);
|
|
|
});
|
|
|
},
|
|
|
@@ -578,7 +577,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
this.getTreeselect();
|
|
|
- getMenu(Number(row.id)).then((response) => {
|
|
|
+ getMenu(row.id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
this.form.platformType = this.activeName;
|
|
|
this.open = true;
|