|
@@ -1,25 +1,33 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-row :gutter="15" v-for="(item) in (columnList.length/col | 1)" :key="item+'q'">
|
|
|
- <template v-for="fieldIndex in 3" v-if="columnList[getFileProperty(item,fieldIndex)]" >
|
|
|
- <el-col :key="fieldIndex+'a'"><div>{{columnList[getFileProperty(item,fieldIndex)].name}}:</div></el-col>
|
|
|
- <el-col :key="fieldIndex+'b'">
|
|
|
- <div v-html="$commonJS.getColumnData(projectMessage,columnList[getFileProperty(item,fieldIndex)])"></div>
|
|
|
- </el-col>
|
|
|
- </template>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="15" v-if="projectMessage.systemFileList && projectMessage.systemFileList.length>0">
|
|
|
- <el-col>附件:</el-col>
|
|
|
- <el-col class="value">
|
|
|
- <div v-for="file in projectMessage.systemFileList" :key="file.guid" class="cursor_pointer file">
|
|
|
- {{ file.originalName }}
|
|
|
- <div class="btns">
|
|
|
- <el-button type="text" @click="review(file)">预览</el-button>
|
|
|
- <el-button type="text" @click="downLoad(file)">下载</el-button>
|
|
|
+ <template v-if="taskType == 5">
|
|
|
+ <div>
|
|
|
+ <taskMessageVue :taskId="taskId" :taskMessage="belongingTask" :taskType="taskType"></taskMessageVue>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <el-row :gutter="15" v-for="(item) in (columnList.length/col | 1)" :key="item+'q'">
|
|
|
+ <template v-for="fieldIndex in 3" v-if="columnList[getFileProperty(item,fieldIndex)]" >
|
|
|
+ <el-col :key="fieldIndex+'a'"><div>{{columnList[getFileProperty(item,fieldIndex)].name}}:</div></el-col>
|
|
|
+ <el-col :key="fieldIndex+'b'">
|
|
|
+ <div v-html="$commonJS.getColumnData(projectMessage,columnList[getFileProperty(item,fieldIndex)])"></div>
|
|
|
+ </el-col>
|
|
|
+ </template>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="15" v-if="projectMessage.systemFileList && projectMessage.systemFileList.length>0">
|
|
|
+ <el-col>附件:</el-col>
|
|
|
+ <el-col class="value">
|
|
|
+ <div v-for="file in projectMessage.systemFileList" :key="file.guid" class="cursor_pointer file">
|
|
|
+ {{ file.originalName }}
|
|
|
+ <div class="btns">
|
|
|
+ <el-button type="text" @click="review(file)">预览</el-button>
|
|
|
+ <el-button type="text" @click="downLoad(file)">下载</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </template>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -56,14 +64,19 @@ const defaultColumnList = [
|
|
|
projectType:[1,2,3]
|
|
|
},
|
|
|
{
|
|
|
+ name:'发明点',
|
|
|
+ field:'inventionPoint',
|
|
|
+ projectType:[4]
|
|
|
+ },
|
|
|
+ {
|
|
|
name:'创建人',
|
|
|
field:'createName',
|
|
|
- projectType:[1,2,3]
|
|
|
+ projectType:[1,2,3,4]
|
|
|
},
|
|
|
{
|
|
|
name:'创建时间',
|
|
|
field:'createTime',
|
|
|
- projectType:[1,2,3]
|
|
|
+ projectType:[1,2,3,4]
|
|
|
},
|
|
|
{
|
|
|
name:'备注',
|
|
@@ -73,8 +86,11 @@ const defaultColumnList = [
|
|
|
|
|
|
]
|
|
|
import mixins from './mixins/index'
|
|
|
+import taskMessageVue from './taskMessage.vue';
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ taskMessageVue
|
|
|
+ },
|
|
|
mixins:[mixins],
|
|
|
props: {
|
|
|
allMessage:{
|
|
@@ -86,7 +102,8 @@ export default {
|
|
|
return {
|
|
|
columnList:[],
|
|
|
col:3,
|
|
|
- projectMessage:{}
|
|
|
+ projectMessage:{},
|
|
|
+ belongingTask:{},
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -103,15 +120,39 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init(){
|
|
|
+ if(this.taskType == 5){
|
|
|
+ this.getBelongingTask()
|
|
|
+ return
|
|
|
+ }
|
|
|
await this.getColumnData()
|
|
|
this.getProjectMessage()
|
|
|
},
|
|
|
+ //获取任务信息
|
|
|
+ getBelongingTask(){
|
|
|
+ if(!this.taskMessage.assoTaskId){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ current:1,
|
|
|
+ size:10,
|
|
|
+ searchQuery: `id=${this.taskMessage.assoTaskId}`,//检索条件
|
|
|
+ orderDTOList:[],//排序信息
|
|
|
+ }
|
|
|
+ this.$api.queryProjectTask(params).then(response => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ if(response.data.data && response.data.data.length>0){
|
|
|
+ this.belongingTask = response.data.data[0]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取栏位信息
|
|
|
async getColumnData(){
|
|
|
if(!this.taskMessage.projectType){
|
|
|
return
|
|
|
}
|
|
|
- if(!this.allMessage){
|
|
|
+ if(!this.allMessage || this.taskMessage.projectType == 4){
|
|
|
this.columnList = defaultColumnList.filter(item=>{
|
|
|
return item.projectType.indexOf(Number(this.taskMessage.projectType)) != -1
|
|
|
})
|
|
@@ -164,6 +205,17 @@ export default {
|
|
|
}).catch(error => {
|
|
|
})
|
|
|
break;
|
|
|
+ case 4://查询查新检索项目信息
|
|
|
+ params.searchQuery = `projectId=${this.taskMessage.projectId}`
|
|
|
+ this.$api.queryNoveltyProject(params).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ if(response.data.data && response.data.data.length>0){
|
|
|
+ this.projectMessage = response.data.data[0]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ })
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
},
|