From 7786e561f165ae3045cc070063cbeaebba6f1ff0 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 20 十一月 2025 17:27:52 +0800
Subject: [PATCH] 修改
---
src/views/safetyReview/law/components/lawDialog.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/safetyReview/law/components/lawDialog.vue b/src/views/safetyReview/law/components/lawDialog.vue
index dcc4a2e..83b65f1 100644
--- a/src/views/safetyReview/law/components/lawDialog.vue
+++ b/src/views/safetyReview/law/components/lawDialog.vue
@@ -142,7 +142,7 @@
e.preventDefault();
const file = {
fileUrl: e.target.href,
- fileName: e.target.download
+ fileName: e.target.innerHTML
}
axios.get( file.fileUrl,{
headers:
@@ -181,11 +181,13 @@
return;
}
if(title.value === '新增'){
+ state.form.pubDate = state.form.pubDate.concat(" 00:00:00")
+ state.form.pubDate = state.form.pubDate.substring(0,19)
const param = {
content: state.form.content,
lawType: state.form.lawType,
pubAgency: state.form.pubAgency,
- pubDate: state.form.pubDate.concat(" 00:00:00"),
+ pubDate: state.form.pubDate,
subTitle: state.form.subTitle,
title: state.form.title
}
@@ -200,11 +202,13 @@
}
emit("getList")
reset();
+ showEditor.value=false
myEditor.value.clear();
lawRef.value.clearValidate();
dialogVisible.value = false;
}else if(title.value === '编辑') {
state.form.pubDate = state.form.pubDate.concat(" 00:00:00")
+ state.form.pubDate = state.form.pubDate.substring(0,19)
const res = await editLaw(state.form)
if(res.code === 200){
ElMessage({
@@ -216,6 +220,7 @@
}
emit("getList")
reset();
+ showEditor.value=false
myEditor.value.clear();
lawRef.value.clearValidate();
dialogVisible.value = false;
--
Gitblit v1.9.2