中建四局-进度管理:优化部分接口
This commit is contained in:
parent
48caef1a3d
commit
791cf27b46
@ -4,7 +4,7 @@
|
|||||||
<div class="left list">
|
<div class="left list">
|
||||||
<div class="list-item" v-for="(item, key) in leftList" :key="key">
|
<div class="list-item" v-for="(item, key) in leftList" :key="key">
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<img :src="item.image">
|
<img :src="item.image" />
|
||||||
</div>
|
</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<div class="number">{{ item.value }}</div>
|
<div class="number">{{ item.value }}</div>
|
||||||
@ -46,9 +46,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
// 左边的列表
|
// 左边的列表
|
||||||
leftList: {
|
leftList: {
|
||||||
'PM2.5': { label: 'PM2.5', value: 68, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm25.png'), },
|
'PM2.5': { label: 'PM2.5', value: 68, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm25.png') },
|
||||||
PM10: { label: 'PM10', value: 36, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm10.png') },
|
'PM10': { label: 'PM10', value: 36, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm10.png') },
|
||||||
噪音: { label: '噪音', value: 13, unit: '%dB', image: require('../assets/images/command-center/icon-noise.png') }
|
'噪音': { label: '噪音', value: 13, unit: '%dB', image: require('../assets/images/command-center/icon-noise.png') }
|
||||||
},
|
},
|
||||||
// 右边的列表
|
// 右边的列表
|
||||||
rightList: {
|
rightList: {
|
||||||
@ -77,7 +77,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {}
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -50,12 +50,15 @@ export default {
|
|||||||
/** 查询待办事项列表 */
|
/** 查询待办事项列表 */
|
||||||
getList() {
|
getList() {
|
||||||
if (this.activeTab == 0) {
|
if (this.activeTab == 0) {
|
||||||
listProgressOfTheTask({ projectSn: this.projectSn, isNoStart: true }).then(res => {
|
listProgressOfTheTask({ projectSn: this.projectSn, state: 1 }).then(res => {
|
||||||
console.log('查询待办事项列表: ', res);
|
console.log('查询待办事项列表: ', res);
|
||||||
this.todoList = res.result;
|
this.todoList = res.result;
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
listProgressOfTheTask({ projectSn: this.projectSn, state: 0 }).then(res => {
|
||||||
|
console.log('查询未来提醒列表: ', res);
|
||||||
|
this.todoList = res.result;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** tab点击事件 */
|
/** tab点击事件 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user