From 298d18ee58418f2da579e2ed72f58fbab87c9efe Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 09 Jan 2024 10:46:49 +0800
Subject: [PATCH] 研发工具---内容管理,等页面整改
---
src/views/tool/code.vue | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/views/tool/code.vue b/src/views/tool/code.vue
index 694309b..bde1845 100644
--- a/src/views/tool/code.vue
+++ b/src/views/tool/code.vue
@@ -9,12 +9,14 @@
<el-button type="danger" size="small" icon="el-icon-delete" v-if="permission.code_delete" plain
@click="handleDelete">删 除
</el-button>
+
<el-button type="primary" size="small" plain icon="el-icon-refresh" @click="handleBuild">代码生成
</el-button>
</template>
- <template slot-scope="scope" slot="menu">
- <el-button type="text" size="small" icon="el-icon-document-copy" v-if="permission.code_edit"
- class="none-border" @click.stop="handleCopy(scope.row)">复制
+
+ <template slot-scope="{row, size}" slot="menu">
+ <el-button type="text" :size="size" icon="el-icon-document-copy" v-if="permission.code_edit"
+ class="none-border" @click.stop="handleCopy(row)">复制
</el-button>
</template>
</avue-crud>
@@ -41,17 +43,19 @@
total: 0
},
option: {
+ labelWidth: 120,
+ searchLabelWidth: 96,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 280,
+
height: 'auto',
calcHeight: 30,
dialogWidth: 900,
tip: false,
- searchShow: true,
- searchMenuSpan: 6,
border: true,
index: true,
selection: true,
- labelWidth: 120,
- menuWidth: 280,
viewBtn: true,
dialogClickModal: false,
tabs: true,
@@ -59,6 +63,8 @@
{
label: "模块名",
prop: "codeName",
+ searchLabelWidth: 80,
+ searchSpan: 4,
search: true,
display: false,
},
@@ -72,12 +78,16 @@
{
label: "表名",
prop: "tableName",
+ searchLabelWidth: 66,
+ searchSpan: 4,
search: true,
display: false,
},
{
label: "服务名",
prop: "serviceName",
+ searchLabelWidth: 80,
+ searchSpan: 4,
search: true,
display: false,
},
--
Gitblit v1.9.3