From 13c58d78112a8bb63abd288a51165f122fc0965b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 31 一月 2023 10:29:57 +0800
Subject: [PATCH] 1.页面刷新功能优化
---
src/views/sbgl/bybz.vue | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/views/sbgl/bybz.vue b/src/views/sbgl/bybz.vue
index 332571f..c0df70a 100644
--- a/src/views/sbgl/bybz.vue
+++ b/src/views/sbgl/bybz.vue
@@ -159,6 +159,7 @@
</div>
<el-dialog
+ v-el-drag-dialog
:title="operation==='add'?'鏂板':'缂栬緫'"
:visible.sync="dialogVisible"
width="800px"
@@ -328,6 +329,7 @@
<!-- 鍏宠仈璁惧-->
<el-dialog
+ v-el-drag-dialog
title="鍏宠仈璁惧"
:visible.sync="dialogVisibleEqp"
width="800px"
@@ -440,12 +442,14 @@
} from '@/api/sbgl'
import $ from 'jquery'
import { validateCode } from '@/utils/global'
+import elDragDialog from '@/directive/el-drag-dialog'
export default {
name: 'Zzjg',
components: {
Pagination, ImportPicker
},
+ directives: { elDragDialog },
data() {
return {
mainHeight: 0,
@@ -663,6 +667,10 @@
},
// 瀵硅瘽妗嗙‘璁�
dialogVisibleConfirm() {
+ if (this.tableDataDialog.length === 0) {
+ return this.$message.info('璁惧鍏宠仈淇濆吇椤逛俊鎭笉鑳戒负绌猴紒')
+ }
+
this.$refs.dialogForm.validate(valid => {
if (valid) {
this.$store.state.app.buttonIsDisabled = true
--
Gitblit v1.9.3