diff --git a/template/admin/src/main.js b/template/admin/src/main.js
index 4b926af22..eab308837 100644
--- a/template/admin/src/main.js
+++ b/template/admin/src/main.js
@@ -204,6 +204,15 @@ new Vue({
}
});
}
+
+ if (to.name == 'product_productAdd') {
+ let route = to.matched[1].path.split(':')[0];
+ this.$store.state.menus.oneLvRoutes.map((e) => {
+ if (route.indexOf(e.path) != -1) {
+ to.meta.title = `${e.title} ${to.params.id ? 'ID:' + to.params.id : ''}`;
+ }
+ });
+ }
},
},
});
diff --git a/template/admin/src/pages/product/productAdd/index.vue b/template/admin/src/pages/product/productAdd/index.vue
index 4ef6f32cd..5d34c2cbb 100644
--- a/template/admin/src/pages/product/productAdd/index.vue
+++ b/template/admin/src/pages/product/productAdd/index.vue
@@ -1832,6 +1832,10 @@ export default {
return this.isMobile ? undefined : 15;
},
},
+ beforeRouteUpdate(to, from, next) {
+ this.bus.$emit('onTagsViewRefreshRouterView', this.$route.path);
+ next();
+ },
created() {
this.columns = this.columns2.slice(0, 8);
this.getToken();
diff --git a/template/admin/src/pages/setting/systemMenus/components/menusFrom.vue b/template/admin/src/pages/setting/systemMenus/components/menusFrom.vue
index dbdeacd7c..8718657be 100644
--- a/template/admin/src/pages/setting/systemMenus/components/menusFrom.vue
+++ b/template/admin/src/pages/setting/systemMenus/components/menusFrom.vue
@@ -39,7 +39,7 @@
-
+
+
-
+
{{ $routeProStr }}
@@ -80,7 +80,7 @@
-
+
@@ -306,6 +306,12 @@ export default {
this.ruleModal = false;
}
},
+ changeUnique(val) {
+ console.log(val.target.value);
+ let value = this.$routeProStr + val.target.value;
+ if (value.slice(0, 1) === '/') value = value.replace('/', '');
+ this.formValidate.unique_auth = value.replaceAll('/', '-');
+ },
visible(type) {
if (!type) {
this.authType = true;
diff --git a/template/admin/src/pages/setting/systemMenus/index.vue b/template/admin/src/pages/setting/systemMenus/index.vue
index ac61135b8..98b193af7 100644
--- a/template/admin/src/pages/setting/systemMenus/index.vue
+++ b/template/admin/src/pages/setting/systemMenus/index.vue
@@ -57,8 +57,8 @@
@on-change="onchangeIsShow(row)"
size="large"
>
- 显示
- 隐藏
+ 开启
+ 关闭
@@ -554,6 +554,9 @@ export default {
width: 200px;
overflow-y: scroll;
max-height: 600px;
+ /deep/ .el-tree-node__children .el-tree-node .el-tree-node__content {
+ padding-left: 14px !important;
+ }
}
}
diff --git a/template/admin/src/pages/system/backendRouting/index.vue b/template/admin/src/pages/system/backendRouting/index.vue
index 1bc485ada..674cbc80b 100644
--- a/template/admin/src/pages/system/backendRouting/index.vue
+++ b/template/admin/src/pages/system/backendRouting/index.vue
@@ -31,10 +31,10 @@
- {{
+ {{
slotProps.model.name
}}
{{ slotProps.model.method == 'delete' ? 'DEL' : slotProps.model.method || '' }}{{ slotProps.model.method }}
@@ -241,7 +241,7 @@
插入
插入
@@ -625,10 +626,17 @@ export default {
res.data[0].expand = false;
this.treeData = new Tree(res.data);
this.$nextTick((e) => {
- if (disk_type) document.querySelectorAll('.vtl-icon-caret-right')[0].click();
+ if (disk_type) {
+ if (res.data[0].children[0].children.length) {
+ document.querySelectorAll('.vtl-icon-caret-right')[0].click();
+ document.querySelectorAll('.vtl-icon-caret-right')[1].click();
+ } else {
+ document.querySelectorAll('.vtl-icon-caret-right')[0].click();
+ }
+ }
});
if (res.data[0].children && res.data[0].children.length) {
- this.onClick(res.data[0].children[0]);
+ this.onClick(res.data[0]?.children[0]?.children[0]);
}
}
})
@@ -668,6 +676,7 @@ export default {
} else if (!this.formValidate.path) {
return this.$Message.warning('请输入路由地址');
}
+ console.log(await this.$refs.xTable.getTableData());
this.formValidate.request = await this.$refs.xTable.getTableData().tableData;
this.formValidate.response = await this.$refs.resTable.getTableData().tableData;
this.formValidate.error_code = await this.$refs.codeTable.getTableData().tableData;
@@ -1015,7 +1024,8 @@ export default {
.req-method {
display:block;
padding: 0px 2px;
- font-size: 12px;
+ font-size: 13px;
+ line-height: 13px;
margin-right: 5px;
border-radius: 4px;
@@ -1031,7 +1041,7 @@ export default {
padding: 3px 7px 3px 0;
}
.node{
- padding:7px 2px 7px 0px;
+ padding:4px 2px 4px 0px;
}
.open {
// background-color: #fff1ef;
@@ -1064,8 +1074,8 @@ export default {
justify-content: center;
align-items: center;
border-radius: 50%;
- width: 20px;
- height: 20px;
+ width: 18px;
+ height: 18px;
}
>>> .vtl-node-content:hover .add:hover {
@@ -1134,12 +1144,17 @@ export default {
width: 100% !important;
}
>>> .vtl-tree-margin{
- margin-left: 5px;
+ margin-left: 15px;
}
>>> .ivu-btn-icon-only.ivu-btn-small {
width: 28px;
}
-
+ >>> .tree-node > span{
+ font-size: 14px
+ }
+ >>> .tree-node.node > span{
+ font-size: 13px
+ }
.nothing {
display: flex;
align-items: center;