From c60ce7e35c2c4e2f4c8b2aa24aab839a931f3a62 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期四, 11 八月 2022 15:11:14 +0800 Subject: [PATCH] 对接 --- src/views/contingencyManagement/contingency/component/openAdd.vue | 21 ++++----------------- 1 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/views/contingencyManagement/contingency/component/openAdd.vue b/src/views/contingencyManagement/contingency/component/openAdd.vue index cf1f71c..d5495f2 100644 --- a/src/views/contingencyManagement/contingency/component/openAdd.vue +++ b/src/views/contingencyManagement/contingency/component/openAdd.vue @@ -163,12 +163,7 @@ principalPhone: '', // 负责人手机 telephoneNumber: '', // 固定电话 teamDesc: '', //队伍描述 - fileList: [ - { - fileUrl: 'url', - fileName: 'name', - } - ], + fileList: [], memberList: [] }); const titles = ref(); @@ -351,6 +346,7 @@ if (!formEl) return; await formEl.validate((valid, fields) => { if (valid) { + ruleForm.value.fileList=[] isShowDialog.value = false; contingencyApi() .editEmergencyTeam(ruleForm.value) @@ -385,12 +381,7 @@ principalPhone: '', // 负责人手机 telephoneNumber: '', // 固定电话 teamDesc: '', //队伍描述 - fileList: [ - { - fileUrl: 'url', - fileName: 'name', - } - ], + fileList: [], memberList: [] }; } @@ -400,6 +391,7 @@ if (!formEl) return; formEl.resetFields(); tableData.value=[] + ruleForm.value = {} }; // 定义表格数据 const tableData = ref([]); @@ -416,7 +408,6 @@ }else { addRef.value.openDialog('新建应急队伍人员','',teamId.value); } - }; // 请求列表数据 const listApi = async () => { @@ -430,10 +421,6 @@ // 新增后刷新 const onMyAdd = (e: object) => { listApi(); - // console.log(e) - // item.value = e - // tableData.value.push(item.value) - // console.log(tableData) }; // 打开修改弹窗 const onEdit = (val: string, row: object) => { -- Gitblit v1.9.2