1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<template>
<div class="from-table font-line-space" style="max-height:75vh;overflow:auto;">
<a-spin :spinning="loading" style="width:100%;height:100%;">
<thesis-info v-model="conclusionData" />
</a-spin>
</div>
</template>
<script>
import thesisInfo from '@/views/conclusion/components/thesis/thesisInfo'
export default {
name: "thesisView",
components: {
thesisInfo
},
props: {
value: {
type: String,
default: () => {
return null;
},
},
},
data () {
return {
conclusionData: {
projNo: null,
projName: null,
appPersonName: null,
appUnitName: null,
telephone: null,
planCategory: null,
startDate: null,
endDate: null,
promotionContent: null,
promotionTarget: null,
selfEvaluation: null,
achievingResults: null,
thesisList: [],
researchersList: [],
//拔款
grant: [],
//其它途径筹资
finance: [],
//主要支出项目
spending: [],
balance: null,
researchContent: null,
workPlan: null,
extensionReport: null,
fileList: [],
catalogList: [],
},
loading: true,
};
},
created () {
this.getConclusionByProjId()
},
computed: {
},
methods: {
getConclusionByProjId () {
if (!!this.value) {
this.$api.conclusion.getConclusionByProjId({ id: this.value }).then(({ data = {} }) => {
if (data) {
this.conclusionData = data
this.loading = false
} else {
this.$emit('close', 'error')
}
}).catch(() => {
this.$message.error('500 Internal Server Error!');
this.$emit('close', 'error')
})
} else {
this.$message.error('500 Internal Server Error!');
this.$emit('close', 'error')
}
},
},
};
</script>
<style scoped lang="less">
.file-layout {
height: 100%;
width: 100%;
.file-box {
line-height: 28px;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 8px;
> div:nth-child(1) {
max-width: 90%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.visually-hidden {
display: none !important;
}
}
.inner_from {
.ant-row-flex:last-child .ant-col {
border-bottom: 0;
}
.ant-row-flex .ant-col:first-child {
border-left: 0;
}
.ant-row-flex {
border-right: 0;
}
}
.special-middle {
.font_s {
margin: 0 6px;
}
}
</style>