| | |
| | | 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 |
| | | } |
| | |
| | | } |
| | | 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({ |
| | |
| | | } |
| | | emit("getList") |
| | | reset(); |
| | | showEditor.value=false |
| | | myEditor.value.clear(); |
| | | lawRef.value.clearValidate(); |
| | | dialogVisible.value = false; |