lijinlong
吕天方 4 months ago
parent 60db50f594
commit d946acd5fa

@ -2519,12 +2519,14 @@
.promoteProject-bottom {
margin-top: 16px;
display: flex;
justify-content: space-between;
// justify-content: space-between;
align-items: center;
width: 85%;
.promoteProject-bottom-left {
font-family: AlibabaPuHuiTiR;
font-size: 14px;
color: #666666;
width: 67%;
display: flex;
.span-two {
font-family: AlibabaPuHuiTiM;
@ -2576,7 +2578,7 @@
cursor: pointer;
}
.project-trace-table-gray {
color: #ccc;
color: #747474;
}
}
}

@ -44,10 +44,10 @@
<my-pagination
id="L-pagination"
:total="total"
:page="pagination.current"
:limit="pagination.size"
:page="pagination.pageNum"
:limit="pagination.pageSize"
@pagination="getPagination"
:current-page.sync="pagination.current"
:current-page.sync="pagination.pageNum"
></my-pagination>
</section>
</div>
@ -64,8 +64,8 @@ export default {
deptId: this.$store.state.user.deptId,
total:0,
pagination: {
current:1,
size:10,
pageNum:1,
pageSize:10,
orderChange:1,
},
loading:false,
@ -101,15 +101,15 @@ export default {
},
//
getPagination(pages) {
this.pagination.current = pages.page;
this.pagination.size = pages.limit;
this.pagination.pageNum = pages.page;
this.pagination.pageSize = pages.limit;
this.getList();
},
//
handleQuery() {
this.pagination = {
current: 1,
size: 10
pageNum: 1,
pageSize: 10
}
this.pagination = { ...this.pagination,...this.formInline };
this.getList();
@ -118,8 +118,8 @@ export default {
resetQuery(formName){
this.$refs[formName].resetFields();
this.pagination = {
current: 1,
size: 10
pageNum: 1,
pageSize: 10
}
this.getList();
},

@ -56,7 +56,7 @@
</div>
<div class="promoteProject-bottom-right">
申报时间
<span class="span-three">{{ formatYear(item.createTime) }}</span>
<span class="span-three">{{ formatYear(item) }}</span>
</div>
</div>
</div>
@ -110,7 +110,7 @@
</div>
<div class="promoteProject-bottom-right">
申报时间
<span class="span-three">{{ formatYear(item.createTime) }}</span>
<span class="span-three">{{ formatYear(item) }}</span>
</div>
</div>
<div class="promoteProject-position" :class="(item.status == 0 || item.status == 1 || item.status == 2 || item.status == 3) ? 'orange' : (item.status == 6) ? 'green' : (item.status == 7 || item.status == 8 || item.status == 9 || item.status == 10) ? 'red' : ''">
@ -394,13 +394,10 @@ export default {
}
},
formatYear(time){
const year = time.slice(0, 4);
let date = new Date();
const currentYear = date.getFullYear(); //(4)
if(Number(year) < Number(currentYear)) {
return year;
if(time.fileJson) {
return this.parseTime(time.createTime, '{y}-{m}-{d}')
} else {
return this.parseTime(time, '{y}-{m}-{d}')
return time.projectYear
}
},
formatDate(dateString,id) {

@ -24,7 +24,7 @@
</div>
<div class="promoteProject-bottom-right">
申报时间
<span class="span-three">{{ formatYear(item.createTime) }}</span>
<span class="span-three">{{ formatYear(item) }}</span>
</div>
</div>
</div>
@ -48,7 +48,7 @@
</div>
<div class="promoteProject-bottom-right">
申报时间
<span class="span-three">{{ formatYear(item.createTime) }}</span>
<span class="span-three">{{ formatYear(item) }}</span>
</div>
</div>
<div class="promoteProject-position" :class="(item.status == 0 || item.status == 1 || item.status == 2 || item.status == 3) ? 'orange' : (item.status == 6) ? 'green' : (item.status == 7 || item.status == 8 || item.status == 9 || item.status == 10) ? 'red' : ''">
@ -362,13 +362,10 @@ export default {
}
},
formatYear(time){
const year = time.slice(0, 4);
let date = new Date();
const currentYear = date.getFullYear(); //(4)
if(Number(year) < Number(currentYear)) {
return year;
if(time.fileJson) {
return this.parseTime(time.createTime, '{y}-{m}-{d}')
} else {
return this.parseTime(time, '{y}-{m}-{d}')
return time.projectYear
}
},
formatDate(dateString,id) {

Loading…
Cancel
Save