|
@@ -60,6 +60,10 @@ async function getReportDetail(){
|
|
|
reportData.value=res.Data
|
|
|
reportBaseInfoData.addType=res.Data.AddType
|
|
|
reportBaseInfoData.classifyName=[
|
|
|
+ {
|
|
|
+ id:res.Data.ClassifyIdRoot,
|
|
|
+ text:res.Data.ClassifyNameRoot
|
|
|
+ },
|
|
|
{
|
|
|
id:res.Data.ClassifyIdFirst,
|
|
|
text:res.Data.ClassifyNameFirst
|
|
@@ -96,10 +100,10 @@ async function handleReportBaseInfoChange(e){
|
|
|
reportBaseInfoData=e
|
|
|
|
|
|
// 继承报告 覆盖一次
|
|
|
- if(e.addType===2&&e.classifyName.length===2){
|
|
|
+ if(e.addType===2&&e.classifyName.length===3){
|
|
|
const res=await apiReportEn.reportDetailByClassifyId({
|
|
|
- ClassifyIdFirst:e.classifyName[0].id,
|
|
|
- ClassifyIdSecond:e.classifyName[1].id
|
|
|
+ ClassifyIdFirst:e.classifyName[1].id,
|
|
|
+ ClassifyIdSecond:e.classifyName[2].id
|
|
|
})
|
|
|
if(res.Ret===200){
|
|
|
if(res.Data===null){
|
|
@@ -222,10 +226,10 @@ async function handleReportOpt(e){
|
|
|
$('#editor .fr-element').find('img.fr-uploading').length&&$('#editor .fr-element').find('img.fr-uploading').remove()
|
|
|
const params={
|
|
|
AddType:reportBaseInfoData.addType,
|
|
|
- ClassifyIdFirst:reportBaseInfoData.classifyName[0]?.id,
|
|
|
- ClassifyNameFirst:reportBaseInfoData.classifyName[0]?.text,
|
|
|
- ClassifyIdSecond:reportBaseInfoData.classifyName[1]?.id,
|
|
|
- ClassifyNameSecond:reportBaseInfoData.classifyName[1]?.text,
|
|
|
+ ClassifyIdFirst:reportBaseInfoData.classifyName[1]?.id,
|
|
|
+ ClassifyNameFirst:reportBaseInfoData.classifyName[1]?.text,
|
|
|
+ ClassifyIdSecond:reportBaseInfoData.classifyName[2]?.id,
|
|
|
+ ClassifyNameSecond:reportBaseInfoData.classifyName[2]?.text,
|
|
|
Title:reportBaseInfoData.title,
|
|
|
Abstract:reportBaseInfoData.abstract,
|
|
|
Author:reportBaseInfoData.author.join(','),
|
|
@@ -237,7 +241,7 @@ async function handleReportOpt(e){
|
|
|
Overview:temOverviewData.value
|
|
|
}
|
|
|
|
|
|
- if(reportBaseInfoData.classifyName.length!=2){
|
|
|
+ if(reportBaseInfoData.classifyName.length!=3){
|
|
|
showToast('请选择分类')
|
|
|
return
|
|
|
}
|