diff --git a/src/views/modules/analysis/user/gridopening.vue b/src/views/modules/analysis/user/gridopening.vue
index 08ef278c..a2e3ffcf 100644
--- a/src/views/modules/analysis/user/gridopening.vue
+++ b/src/views/modules/analysis/user/gridopening.vue
@@ -39,6 +39,10 @@
{{ $t('export') }}
+
+ 总计
+
-
-
@@ -120,7 +124,7 @@
width="70px"
header-align="center"
align="center">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
@@ -174,7 +255,9 @@ export default {
onLine: {
id: '',
onLineState: ''
- }
+ },
+ totalList: [],
+ totalVisible: false
}
},
created () {
@@ -269,14 +352,25 @@ export default {
this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1]
},
- // getListCategory () {
- // this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => {
- // if (res.code !== 0) {
- // return this.$message.error(res.msg)
- // }
- // this.categorys = res.data
- // }).catch(() => { })
- // },
+ // 获取总计
+ getAllCount () {
+ this.$http.get(`/analysis/user/pageGridDataToal`, {
+ params: {
+ order: this.order,
+ orderField: this.orderField,
+ page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,
+ limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null,
+ ...this.dataForm
+ }
+ }).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.totalList = []
+ this.totalList.push(res.data)
+ this.totalVisible = true
+ }).catch(() => { })
+ },
modifyOnLine (row) {
this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), {
confirmButtonText: this.$t('confirm'),