|
@@ -423,7 +423,7 @@ export default {
|
|
classifynameArr: [],
|
|
classifynameArr: [],
|
|
title: '',
|
|
title: '',
|
|
abstract: '',
|
|
abstract: '',
|
|
- author: ['Investment Research Team'],
|
|
|
|
|
|
+ author: [],
|
|
frequency: '日度',
|
|
frequency: '日度',
|
|
create_time: http.dateFormatter(new Date(), false),
|
|
create_time: http.dateFormatter(new Date(), false),
|
|
content: '',
|
|
content: '',
|
|
@@ -612,18 +612,17 @@ export default {
|
|
return JSON.parse(i).v||0
|
|
return JSON.parse(i).v||0
|
|
})
|
|
})
|
|
this.checkClassifyNameArr(2,classify)
|
|
this.checkClassifyNameArr(2,classify)
|
|
- // console.log(this.aeForm.classifynameArr,'this.aeForm.classifynameArr');
|
|
|
|
|
|
+
|
|
if (this.aeForm.add_type == 1) {
|
|
if (this.aeForm.add_type == 1) {
|
|
if (this.aeForm.classifynameArr.length == 3) {
|
|
if (this.aeForm.classifynameArr.length == 3) {
|
|
this.aeForm.title = JSON.parse(this.aeForm.classifynameArr[2]).l;
|
|
this.aeForm.title = JSON.parse(this.aeForm.classifynameArr[2]).l;
|
|
}else{
|
|
}else{
|
|
this.aeForm.title = ''
|
|
this.aeForm.title = ''
|
|
}
|
|
}
|
|
- return false;
|
|
|
|
}
|
|
}
|
|
- if (this.aeForm.classifynameArr.length == 0) {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ if (!this.aeForm.classifynameArr.length) return
|
|
|
|
+
|
|
let params = {
|
|
let params = {
|
|
ClassifyIdFirst: JSON.parse(this.aeForm.classifynameArr[1]).v,
|
|
ClassifyIdFirst: JSON.parse(this.aeForm.classifynameArr[1]).v,
|
|
};
|
|
};
|
|
@@ -641,29 +640,36 @@ export default {
|
|
this.$message.error(this.$t('ReportManage.ReportList.no_reports_msg'));
|
|
this.$message.error(this.$t('ReportManage.ReportList.no_reports_msg'));
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- this.aeForm = {
|
|
|
|
- add_type: 2,
|
|
|
|
- classify_name: 1,
|
|
|
|
- classifynameArr:[
|
|
|
|
- JSON.stringify({
|
|
|
|
- l: res.Data.ClassifyNameRoot,
|
|
|
|
- v: parseInt(res.Data.ClassifyIdRoot),
|
|
|
|
- }),
|
|
|
|
- JSON.stringify({
|
|
|
|
- l: res.Data.ClassifyNameFirst,
|
|
|
|
- v: parseInt(res.Data.ClassifyIdFirst),
|
|
|
|
- }),
|
|
|
|
- JSON.stringify({
|
|
|
|
- l: res.Data.ClassifyNameSecond,
|
|
|
|
- v: parseInt(res.Data.ClassifyIdSecond),
|
|
|
|
- })],
|
|
|
|
- title: res.Data.Title,
|
|
|
|
- abstract: res.Data.Abstract,
|
|
|
|
- author: res.Data.Author ? res.Data.Author.split(',') : '',
|
|
|
|
- frequency: res.Data.Frequency,
|
|
|
|
- create_time: res.Data.CreateTime,
|
|
|
|
- content: res.Data.Content,
|
|
|
|
- overview:res.Data.Overview||''
|
|
|
|
|
|
+
|
|
|
|
+ if(this.aeForm.add_type == 1) {
|
|
|
|
+ this.aeForm.author = res.Data.Author ? res.Data.Author.split(',') : ['']
|
|
|
|
+ }else {
|
|
|
|
+
|
|
|
|
+ this.aeForm = {
|
|
|
|
+ add_type: 2,
|
|
|
|
+ classify_name: 1,
|
|
|
|
+ classifynameArr:[
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ l: res.Data.ClassifyNameRoot,
|
|
|
|
+ v: parseInt(res.Data.ClassifyIdRoot),
|
|
|
|
+ }),
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ l: res.Data.ClassifyNameFirst,
|
|
|
|
+ v: parseInt(res.Data.ClassifyIdFirst),
|
|
|
|
+ }),
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ l: res.Data.ClassifyNameSecond,
|
|
|
|
+ v: parseInt(res.Data.ClassifyIdSecond),
|
|
|
|
+ })],
|
|
|
|
+ title: res.Data.Title,
|
|
|
|
+ abstract: res.Data.Abstract,
|
|
|
|
+ author: res.Data.Author ? res.Data.Author.split(',') : '',
|
|
|
|
+ frequency: res.Data.Frequency,
|
|
|
|
+ create_time: res.Data.CreateTime,
|
|
|
|
+ content: res.Data.Content,
|
|
|
|
+ overview:res.Data.Overview||''
|
|
|
|
+ }
|
|
|
|
+
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|