|
@@ -119,14 +119,29 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <h3 class="toolbar">
|
|
|
+ <span class="title">已申报项目</span>
|
|
|
+ <div class="tool">
|
|
|
+ <el-button type="text" size="mini" @click="$router.push('/project/project-declare')">查看更多</el-button>
|
|
|
+ </div>
|
|
|
+ </h3>
|
|
|
+ <el-table v-loading="loading" :data="declareList" border>
|
|
|
+ <el-table-column label="申报年度" prop="projectYear"></el-table-column>
|
|
|
+ <el-table-column label="项目起止时间" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.projectStartDate}} - {{scope.row.projectEndDate}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目名称" prop="projectName" align="center"/>
|
|
|
+ </el-table>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {getIndexDataApi} from "@/api/common/common.js"
|
|
|
- import {yearListApi} from "@/api/enterprise/project/project"
|
|
|
+ import {yearListApi,listProjectApi} from "@/api/enterprise/project/project"
|
|
|
export default {
|
|
|
name: "Index",
|
|
|
computed: {
|
|
@@ -144,16 +159,21 @@ export default {
|
|
|
version: "1.0.0",
|
|
|
info: {},
|
|
|
list: [],
|
|
|
+ declareList: [],
|
|
|
total: 0,
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- },
|
|
|
+ },
|
|
|
+ params: {
|
|
|
+ reportState: '4'
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getData()
|
|
|
this.getList()
|
|
|
+ this.getDeclareList()
|
|
|
},
|
|
|
methods: {
|
|
|
goTarget(href) {
|
|
@@ -179,6 +199,14 @@ export default {
|
|
|
//编辑
|
|
|
handleEdit(row) {
|
|
|
this.$router.push({name: 'editProject', query: {id: row.id, entId: row.entId, type: 'update', activeName: '1', source: 'add'}})
|
|
|
+ },
|
|
|
+ getDeclareList() {
|
|
|
+ this.loading = true;
|
|
|
+ listProjectApi(this.params).then(response => {
|
|
|
+ this.declareList = response.data.records;
|
|
|
+ this.total = response.data.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
}
|
|
|
};
|