From 2e76881491ddf4d15881c9112fffc7caebd55650 Mon Sep 17 00:00:00 2001 From: zhaojiale <631455805@qq.com> Date: 星期四, 04 八月 2022 16:37:02 +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