From f03e224440454f4324516826a85afe6fda06651d Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期二, 09 八月 2022 14:04:34 +0800
Subject: [PATCH] 对接
---
src/views/accidentManagementSystem/accidentReport/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/accidentManagementSystem/accidentReport/index.vue b/src/views/accidentManagementSystem/accidentReport/index.vue
index 5c19570..6694d4b 100644
--- a/src/views/accidentManagementSystem/accidentReport/index.vue
+++ b/src/views/accidentManagementSystem/accidentReport/index.vue
@@ -138,16 +138,19 @@
},
setup() {
const activeName = ref('first')
+ const statusDisabledFlag = ref('first')//控制弹窗中的事件状态是否可以修改
const handleClick = (tab: TabsPaneContext, event: Event) => {
- console.log(tab.props.name)
if(tab.props.name=='first'){
listQuery.searchParams.status=1
+ statusDisabledFlag.value = 'first'
listApi()
}else if(tab.props.name=='second'){
listQuery.searchParams.status=2
+ statusDisabledFlag.value = 'second'
listApi()
}
}
+
const editableTabs = ref([
{
title: '处理中',
@@ -210,7 +213,7 @@
// 打开新建用户弹窗
const addRef = ref();
const onOpenAdd = () => {
- addRef.value.openDialog('新建事故报告',false);
+ addRef.value.openDialog('新建事故报告','',false,statusDisabledFlag);
};
// 新增后刷新
const onMyAdd = (e: boolean) => {
@@ -223,9 +226,9 @@
// 打开修改用户弹窗
const onEdit = (val: string, row: object) => {
if (val == '详情') {
- addRef.value.openDialog('查看事故报告',row,true);
+ addRef.value.openDialog('查看事故报告',row,true,statusDisabledFlag);
} else {
- addRef.value.openDialog('修改事故报告',row,false);
+ addRef.value.openDialog('修改事故报告',row,false,statusDisabledFlag);
}
};
// 上传
--
Gitblit v1.9.2