数据总览

This commit is contained in:
shijingjing
2022-12-26 11:27:49 +08:00
parent e5fbbb2bb9
commit 23a2782ed7
3 changed files with 4 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ export default {
], ],
current: 0, current: 0,
data: {}, data: {},
dataArray: ['新增居民档案','新增网格员','新增走访记录','新增矛盾调解','新增宣发记录'], dataArray: ['新增居民档案','居民档案更新','新增网格员','新增走访记录','新增矛盾调解','新增宣发记录'],
beginDate: '2022-12-19' beginDate: '2022-12-19'
} }
}, },
@@ -58,12 +58,12 @@ export default {
getData() { getData() {
this.$http.post(`/app/appwxcpopenstatistics/statistics`,null, { this.$http.post(`/app/appwxcpopenstatistics/statistics`,null, {
params: { params: {
beginDate: '2022-12-19', beginDate: this.beginDate,
type: this.current==0? '1':'2' type: this.current==0? '1':'2'
} }
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
console.log(res); this.data = res.data
} }
}) })
} }

View File

@@ -14,8 +14,6 @@
<div :class="index == tabIndex ? 'tab-item active' : 'tab-item'" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)">{{ item.text }}<span></span></div> <div :class="index == tabIndex ? 'tab-item active' : 'tab-item'" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)">{{ item.text }}<span></span></div>
</div> </div>
<component ref='list' :is="tabList[tabIndex].component" :areaId="areaId" class="component" /> <component ref='list' :is="tabList[tabIndex].component" :areaId="areaId" class="component" />
<button @click="toOverData">按钮</button>
</div> </div>
</template> </template>

View File

@@ -28,7 +28,7 @@ export default {
], ],
current: 0, current: 0,
data: {}, data: {},
dataArray: ['新增居民档案','新增网格员','新增走访记录','新增矛盾调解','新增宣发记录'], dataArray: ['新增居民档案','居民档案更新','新增网格员','新增走访记录','新增矛盾调解','新增宣发记录'],
} }
}, },
created() { created() {