@@ -581,9 +582,15 @@ export default {
},
methods: {
syncRoute() {
- syncRoute(this.app_name).then((res) => {
- this.getInterfaceList('one');
- this.$Message.success(res.msg);
+ this.$Modal.warning({
+ title: '立即同步',
+ content: '您确认立即同步路由权限?',
+ onOk: () => {
+ syncRoute(this.app_name).then((res) => {
+ this.getInterfaceList('one');
+ this.$Message.success(res.msg);
+ });
+ },
});
},
debugging() {
@@ -616,6 +623,9 @@ export default {
if (res.data.length) {
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 (res.data[0].children && res.data[0].children.length) {
this.onClick(res.data[0].children[0]);
}
@@ -960,12 +970,14 @@ export default {
margin-left: 10px;
}
.card-tree {
+ background: #fff;
height: 72px;
box-sizing: border-box;
overflow-x: scroll; /* 设置溢出滚动 */
white-space: nowrap;
overflow-y: hidden;
/* 隐藏滚动条 */
+ border-radius: 4px;
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */
}
@@ -977,15 +989,23 @@ export default {
display: flex;
.main-btn {
display:flex;
+ position: sticky;
+ padding: 15px 15px 0 15px;
+ width: 100%;
+ background: #fff;
+ top: 0px;
+ background-color: rgba(255, 255, 255, 0.6);
+ backdrop-filter: blur(4px);
}
.card-tree{
- width: 270px;
+ width: 290px;
height: calc(100vh - 115px);
overflow-y: scroll;
}
>>> .tree {
.tree-list{
margin-left:10px;
+ padding: 0 15px;
}
.vtl-caret{
diff --git a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
index 16de791c8..3471d0104 100644
--- a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
+++ b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
@@ -45,7 +45,12 @@
用于生成模块名称
-
+
用于生成CRUD指定的表名,不需要携带表前缀;对于生成过的表将不能在进行生成;或者可以删除对应的文件重新生成!对应系统中重要的数据表将不允许生成!
@@ -269,6 +274,9 @@ export default {
this.addRow();
}
},
+ initTableName() {
+ this.tableField = [];
+ },
addRow() {
if (!this.foundation.tableName) return this.$Message.warning('请先填写表名');
if (!this.tableField.length) {