|
|
@@ -91,7 +91,7 @@
|
|
|
<el-radio-button label="0">全年</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
<el-radio-group
|
|
|
- v-show="!editFlag && item.i == 20010"
|
|
|
+ v-show="!editFlag && (item.i == 20008 || item.i == 20010)"
|
|
|
v-model="item.searchType"
|
|
|
size="mini"
|
|
|
@change="refresh(item, index)">
|
|
|
@@ -443,7 +443,7 @@
|
|
|
searchType: (() => {
|
|
|
if (item.id == 20006 || item.id == 20007) {
|
|
|
return '0'
|
|
|
- } else if (item.id == 20010) {
|
|
|
+ } else if (item.id == 20008 || item.id == 20010) {
|
|
|
return 'week'
|
|
|
} else if (item.id == 20009) {
|
|
|
return new Date().getMonth() + 1
|
|
|
@@ -467,7 +467,7 @@
|
|
|
if (this.layout[i].i == 20006 || this.layout[i].i == 20007) {
|
|
|
this.drawGoalChart(this.layout[i].i, i)
|
|
|
} else if (this.layout[i].i == 20008) {
|
|
|
- this.drawCheckChart(this.layout[i].i, i)
|
|
|
+ this.drawCheckChart(this.layout[i].i, i, 'week')
|
|
|
} else if (this.layout[i].i == 20009) {
|
|
|
this.getTable(this.layout[i].i, i)
|
|
|
} else if (this.layout[i].i == 20010) {
|
|
|
@@ -589,9 +589,9 @@
|
|
|
chartBar.setOption(option)
|
|
|
this.charts[i] = chartBar
|
|
|
},
|
|
|
- async drawCheckChart(id, i) {
|
|
|
+ async drawCheckChart(id, i, searchType) {
|
|
|
const chartBar = echarts.init(document.getElementById(id))
|
|
|
- const [err, res] = await to(indexApi.getHomeDataReportData({ id }))
|
|
|
+ const [err, res] = await to(indexApi.getHomeDataReportData({ id, Params: { searchType } }))
|
|
|
if (err) return
|
|
|
console.log(res, 'res')
|
|
|
const option = {
|
|
|
@@ -1046,7 +1046,6 @@
|
|
|
},
|
|
|
async getSupervisionList() {
|
|
|
const { data } = await taskApi.getTaskList({ operateType: '1', pageNum: 1, pageSize: 10 })
|
|
|
- debugger
|
|
|
this.supervisionList = data.list
|
|
|
},
|
|
|
},
|