@ -143,9 +143,9 @@ export default {
] ,
] ,
/ / 操 作 列
/ / 操 作 列
tableActions : [
tableActions : [
{ text : '查看' , icon : 'el-icon-view' , handler : this . handleView , permissions : [ 'system:notice:edit' ] } ,
{ text : '查看' , icon : 'el-icon-view' , handler : this . handleView , } ,
{ text : '修改' , icon : 'el-icon-edit' , handler : this . handleUpdate , permissions : [ 'system:notice:edit' ] , type : 'hidden' } ,
{ text : '修改' , icon : 'el-icon-edit' , handler : this . handleUpdate , } ,
{ text : '删除' , icon : 'el-icon-delete' , handler : this . handleDelete , permissions : [ 'system:notice:remove' ] , type : 'hidden' }
{ text : '删除' , icon : 'el-icon-delete' , handler : this . handleDelete , }
] ,
] ,
/ / 文 件 上 传 配 置 项
/ / 文 件 上 传 配 置 项
fileData : [
fileData : [
@ -218,7 +218,21 @@ export default {
expanded : false ,
expanded : false ,
childrenList : [ ] ,
childrenList : [ ] ,
fileCode : 'rew_excellent_category_10' ,
fileCode : 'rew_excellent_category_10' ,
}
} ,
{
name : '盖章后的申报表' ,
status : '' ,
expanded : false ,
childrenList : [ ] ,
fileCode : 'rew_excellent_category_11' ,
} ,
{
name : '综述材料' ,
status : '' ,
expanded : false ,
childrenList : [ ] ,
fileCode : 'rew_excellent_category_12' ,
} ,
] ,
] ,
/ / 遮 罩 层
/ / 遮 罩 层
@ -376,16 +390,13 @@ export default {
this . form . isReward = response . data . isReward ;
this . form . isReward = response . data . isReward ;
this . editOpen = true ;
this . editOpen = true ;
this . title = "修改奖项" ;
this . title = "修改奖项" ;
} ) ;
this . fileData . forEach ( ( item ) => {
this . getFileList ( row . applyId )
item . childrenList = [ ]
} ,
} )
getFileList ( applyId ) {
if ( response . code === 200 ) {
listFile ( applyId ) . then ( ( res ) => {
response . data . fileRelationVOList . forEach ( ( item ) => {
if ( res . code === 200 ) {
res . data . forEach ( ( item ) => {
let index = this . fileData . findIndex ( i => i . fileCode === item . fileCode ) ;
let index = this . fileData . findIndex ( i => i . fileCode === item . fileCode ) ;
if ( index !== - 1 ) {
if ( index !== - 1 ) {
this . fileData [ index ] . childrenList = [ ]
this . fileData [ index ] . childrenList . push ( {
this . fileData [ index ] . childrenList . push ( {
name : item . fileName ,
name : item . fileName ,
url : item . filePath ,
url : item . filePath ,
@ -397,7 +408,7 @@ export default {
} ) ;
} ) ;
}
}
} )
} ) ;
} ,
} ,
/** 提交按钮 */
/** 提交按钮 */
submitForm : function ( ) {
submitForm : function ( ) {