Browse Source

feat: 优化

cuiyalong 6 months ago
parent
commit
545103439e

+ 6 - 5
entbase-pc/src/views/ent/components/dataExportUserList.vue

@@ -138,11 +138,13 @@ export default {
           userId: val.user_id,
           userId: val.user_id,
           limitId: val.limit_id
           limitId: val.limit_id
         }
         }
+        const value = val[type]
+        const noValue = this.emptyValue(value) || value === ''
         if (type === 'total_limit') {
         if (type === 'total_limit') {
           payload.reqType = 'maxNums'
           payload.reqType = 'maxNums'
-          payload.maxNums = Number(val[type])
+          payload.maxNums = noValue ? Number(value) : ''
         } else if (type === 'daily_limit') {
         } else if (type === 'daily_limit') {
-          payload.limitNum = Number(val[type])
+          payload.limitNum = noValue ? Number(value) : ''
         }
         }
         setLimit_recordpersonListInter(payload).then(res => {
         setLimit_recordpersonListInter(payload).then(res => {
           if (res.data.status == 1) {
           if (res.data.status == 1) {
@@ -163,9 +165,8 @@ export default {
     },
     },
     // 获取当前点击页数据
     // 获取当前点击页数据
     getPageData (page) {
     getPageData (page) {
-      if (this.currentIndex == 0) {
-        this.sj_getDataList()
-      }
+      this.pageobj.current = page
+      this.record_getDataList()
     },
     },
     onSizeChange (size) {
     onSizeChange (size) {
       this.pageobj.pageSize = size
       this.pageobj.pageSize = size

+ 3 - 5
entbase-pc/src/views/ent/manageMent.vue

@@ -97,11 +97,9 @@ import { ENT_DATA_PACK_KEY } from '@/assets/js/constant.js'
         buyProductList().then(res => {
         buyProductList().then(res => {
           if (res.error_code === 0) {
           if (res.error_code === 0) {
             this.productList = res.data
             this.productList = res.data
-            if (JSON.stringify(this.selectData) === '{}') {
-              this.selectData = res.data[0]
-              this.getUsePersonList(res.data[0].wait_empower_id)
-            } else {
-              this.getUsePersonList(this.selectData.wait_empower_id)
+            if (Array.isArray(this.productList) && this.productList.length > 0) {
+              const index = 0
+              this.selectProduct(res.data[index], index)
             }
             }
           } else {
           } else {
             this.$message(res.error_msg)
             this.$message(res.error_msg)