Browse Source

chore: 🙅‍增加频繁点击按钮限制

喵你个旺呀 1 year ago
parent
commit
d501a77b52

+ 1 - 1
Admin.NET/Admin.NET.Web.Entry/wwwroot/template/editDialog.vue.vm

@@ -162,7 +162,7 @@ defineExpose({ openDialog });
 			<template #footer>
 				<span class="dialog-footer">
 					<el-button @@click="() => state.showDialog = false">取 消</el-button>
-					<el-button @@click="submit" type="primary">确 定</el-button>
+					<el-button @@click="submit" type="primary" v-reclick="1000">确 定</el-button>
 				</span>
 			</template>
 		</el-dialog>

+ 1 - 1
Admin.NET/Admin.NET.Web.Entry/wwwroot/template/index.vue.vm

@@ -207,7 +207,7 @@ handleQuery();
           <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10">
             <el-form-item @(Model.QueryWhetherList.Count > 0 ? "" : "label-width=\"0px\"")>
               <el-button-group style="display: flex; align-items: center;">
-                <el-button type="primary"  icon="ele-Search" @@click="handleQuery" v-auth="'@(Model.LowerClassName):page'"> @(Model.QueryWhetherList.Count > 0 ? "查询" : "刷新") </el-button>
+                <el-button type="primary"  icon="ele-Search" @@click="handleQuery" v-auth="'@(Model.LowerClassName):page'" v-reclick="1000"> @(Model.QueryWhetherList.Count > 0 ? "查询" : "刷新") </el-button>
                 @if (Model.QueryWhetherList.Count > 0) {
                 @:<el-button icon="ele-Refresh" @@click="() => state.tableQueryParams = {}"> 重置 </el-button>
                 @if (Model.HasLikeQuery) {

+ 1 - 1
Web/src/views/system/stressTest/component/editStressTest.vue

@@ -108,7 +108,7 @@
 			<template #footer>
 				<span class="dialog-footer" v-loading="state.loading">
 					<el-button @click="() => state.isShowDialog = false">取 消</el-button>
-					<el-button type="primary" @click="submit">确 定</el-button>
+					<el-button type="primary" @click="submit" v-reclick="1000">确 定</el-button>
 				</span>
 			</template>
 		</el-dialog>

+ 1 - 1
Web/src/views/system/stressTest/index.vue

@@ -17,7 +17,7 @@
 							<el-input v-model="state.keywords" size="small" placeholder="关键字" clearable />
 						</el-col>
 						<el-col :xs="24" :sm="6" :md="6" :lg="6" :xl="6" class="mb10">
-							<el-button size="small" icon="ele-Search" @click="queryTreeNode()" />
+							<el-button size="small" icon="ele-Search" v-reclick="1000" @click="queryTreeNode()" />
 						</el-col>
 					</el-row>
 					<el-tree