wupengfei
5 天以前 05f8a54cbcc8ae34da3ae6fe2081e0ca6f82174e
src/views/ProtocolManage/EditTemplate.vue
@@ -185,7 +185,7 @@
  }
);
const { dialogProps, handleEdit, handleAdd, editForm } = useFormDialog({
const { dialogProps, handleEdit, handleAdd, editForm, dialogState } = useFormDialog({
  onConfirm: handleAddOrEdit,
  defaultFormParams: {
    id: '',
@@ -199,6 +199,7 @@
    templateEditData: '',
    enterpriseId: '',
  },
  closeAfterConfirm: false,
});
async function openDialog(row?: API.GetEnterpriseContractTemplatesQueryResultItem) {
@@ -251,8 +252,11 @@
    if (res) {
      Message.successMessage('操作成功');
      getList();
      dialogState.dialogVisible = false;
    }
  } catch (error) {}
  } catch (error) {
    dialogState.dialogVisible = true;
  }
}
function handleDownload(row: API.GetEnterpriseContractTemplatesQueryResultItem) {