Explorar o código

页面数据更新

yuwenjun1997 %!s(int64=2) %!d(string=hai) anos
pai
achega
ae0c169b2e
Modificáronse 44 ficheiros con 233 adicións e 44 borrados
  1. 3 0
      src/views/admin/audit/club/index.vue
  2. 4 0
      src/views/admin/audit/club/list.vue
  3. 3 0
      src/views/admin/audit/device/index.vue
  4. 4 0
      src/views/admin/audit/material/article/index.vue
  5. 4 0
      src/views/admin/audit/material/file/index.vue
  6. 4 0
      src/views/admin/audit/material/image/index.vue
  7. 3 0
      src/views/admin/audit/material/index.vue
  8. 4 0
      src/views/admin/audit/material/package/index.vue
  9. 4 0
      src/views/admin/audit/material/video/index.vue
  10. 3 0
      src/views/admin/audit/personnel/index.vue
  11. 4 0
      src/views/admin/audit/personnel/operate/index.vue
  12. 4 0
      src/views/admin/audit/personnel/training/index.vue
  13. 12 4
      src/views/admin/logistics-licensed/club/device/index.vue
  14. 4 0
      src/views/admin/logistics-licensed/components/club-list.vue
  15. 3 0
      src/views/admin/logistics-licensed/components/supplier-list.vue
  16. 10 3
      src/views/admin/logistics-licensed/licensed-record.vue
  17. 3 0
      src/views/admin/member/index.vue
  18. 29 13
      src/views/admin/member/record.vue
  19. 4 0
      src/views/admin/member/service.vue
  20. 3 0
      src/views/admin/settings/accounts/index.vue
  21. 4 0
      src/views/admin/settings/auth-card/index.vue
  22. 3 0
      src/views/admin/settings/menus/components/table-list.vue
  23. 3 0
      src/views/admin/settings/roles/index.vue
  24. 5 0
      src/views/admin/supplier/club/device/index.vue
  25. 13 7
      src/views/admin/supplier/club/index.vue
  26. 3 0
      src/views/admin/supplier/index.vue
  27. 4 0
      src/views/common/helper/document/index.vue
  28. 4 1
      src/views/common/helper/video/index.vue
  29. 10 4
      src/views/normal/activity/video/index.vue
  30. 5 0
      src/views/normal/audit/club/components/club-list.vue
  31. 5 0
      src/views/normal/audit/club/components/device-list.vue
  32. 3 0
      src/views/normal/club/cate/index.vue
  33. 13 5
      src/views/normal/club/device/index.vue
  34. 14 7
      src/views/normal/club/index.vue
  35. 4 0
      src/views/normal/club/logistics-licensed.vue
  36. 3 0
      src/views/normal/docs/index.vue
  37. 3 0
      src/views/normal/feedback/index.vue
  38. 3 0
      src/views/normal/personal/index.vue
  39. 3 0
      src/views/normal/personnel/operate/index.vue
  40. 3 0
      src/views/normal/personnel/training/index.vue
  41. 3 0
      src/views/normal/settings/accounts/index.vue
  42. 4 0
      src/views/normal/settings/auth-card/index.vue
  43. 3 0
      src/views/normal/settings/roles/index.vue
  44. 3 0
      src/views/normal/user/index.vue

+ 3 - 0
src/views/admin/audit/club/index.vue

@@ -110,6 +110,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 过滤列表
     handleFilter() {},

+ 4 - 0
src/views/admin/audit/club/list.vue

@@ -151,6 +151,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 获取授权列表
     async getList() {

+ 3 - 0
src/views/admin/audit/device/index.vue

@@ -110,6 +110,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 过滤列表
     handleFilter() {},

+ 4 - 0
src/views/admin/audit/material/article/index.vue

@@ -107,6 +107,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 按钮组点击事件
     onClick(row, type) {

+ 4 - 0
src/views/admin/audit/material/file/index.vue

@@ -155,6 +155,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 按钮组点击事件
     onClick(row, type) {

+ 4 - 0
src/views/admin/audit/material/image/index.vue

@@ -99,6 +99,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 按钮组点击事件
     onClick(row, type) {

+ 3 - 0
src/views/admin/audit/material/index.vue

@@ -118,6 +118,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     goAuditList(row, type) {
       const url = `material/${type}-list?authUserId=${row.authUserId}`

+ 4 - 0
src/views/admin/audit/material/package/index.vue

@@ -154,6 +154,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 按钮组点击事件
     onClick(row, type) {

+ 4 - 0
src/views/admin/audit/material/video/index.vue

@@ -155,6 +155,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.authUserId
+    this.getList()
+  },
   methods: {
     // 按钮组点击事件
     onClick(row, type) {

+ 3 - 0
src/views/admin/audit/personnel/index.vue

@@ -109,6 +109,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     goAuditList(row, type) {
       const url = `personnel/${type}/doctor-list?authUserId=${row.authUserId}`

+ 4 - 0
src/views/admin/audit/personnel/operate/index.vue

@@ -129,6 +129,10 @@ export default {
     this.listQuery.authUserId = parseInt(this.$route.query.authUserId)
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = parseInt(this.$route.query.authUserId)
+    this.getList()
+  },
   methods: {
     // 获取列表
     getList() {

+ 4 - 0
src/views/admin/audit/personnel/training/index.vue

@@ -131,6 +131,10 @@ export default {
     this.listQuery.authUserId = parseInt(this.$route.query.authUserId)
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = parseInt(this.$route.query.authUserId)
+    this.getList()
+  },
   methods: {
     // 获取列表
     getList() {

+ 12 - 4
src/views/admin/logistics-licensed/club/device/index.vue

@@ -86,13 +86,21 @@ export default {
     ...mapGetters(['userIdentity'])
   },
   created() {
-    this.listQuery.authId = this.$route.query.authId
-    // 保存机构id,用于设备管理
-    setStorage('device-setting-authId', this.listQuery.authId)
-    this.getList()
+    this.initPage()
+  },
+
+  activated() {
+    this.initPage()
   },
 
   methods: {
+    initPage() {
+      this.listQuery.authId = this.$route.query.authId
+      // 保存机构id,用于设备管理
+      setStorage('device-setting-authId', this.listQuery.authId)
+      this.getList()
+    },
+
     // 获取列表信息
     getList() {
       getProdList(this.listQuery)

+ 4 - 0
src/views/admin/logistics-licensed/components/club-list.vue

@@ -182,6 +182,10 @@ export default {
     this.listQuery.authUserId = this.$route.query.id
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.$route.query.id
+    this.getList()
+  },
   methods: {
     // 获取授权列表
     getList() {

+ 3 - 0
src/views/admin/logistics-licensed/components/supplier-list.vue

@@ -127,6 +127,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 获取列表数据
     getList() {

+ 10 - 3
src/views/admin/logistics-licensed/licensed-record.vue

@@ -108,11 +108,18 @@ export default {
     }
   },
   created() {
-    this.authId = this.$route.query.id
-    this.fetchCompanyList()
-    this.fetchLogisticsDetails()
+    this.initPage()
+  },
+  activated() {
+    this.initPage()
   },
   methods: {
+    initPage() {
+      this.authId = this.$route.query.id
+      this.fetchCompanyList()
+      this.fetchLogisticsDetails()
+    },
+
     async fetchLogisticsDetails() {
       try {
         const res = await logisticsDetails({ authId: this.authId })

+ 3 - 0
src/views/admin/member/index.vue

@@ -109,6 +109,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 29 - 13
src/views/admin/member/record.vue

@@ -2,11 +2,21 @@
   <div class="app-container">
     <!-- 供应商基本信息 -->
     <div class="info">
-      <div class="row"><span>供应商名称:</span><span>{{ supplierInfo.shopName }}</span></div>
-      <div class="row"><span>供应商类型:</span><span>{{ supplierInfo.shopType === 1 ? '品牌方':'代理商' }}</span></div>
-      <div class="row"><span>登录账号:</span><span>{{ supplierInfo.loginAccount || '--' }}</span></div>
-      <div class="row"><span>手机号:</span><span>{{ supplierInfo.mobile }}</span></div>
-      <div class="row"><span>联系人:</span><span>{{ supplierInfo.linkMan }}</span></div>
+      <div class="row">
+        <span>供应商名称:</span><span>{{ supplierInfo.shopName }}</span>
+      </div>
+      <div class="row">
+        <span>供应商类型:</span><span>{{ supplierInfo.shopType === 1 ? '品牌方' : '代理商' }}</span>
+      </div>
+      <div class="row">
+        <span>登录账号:</span><span>{{ supplierInfo.loginAccount || '--' }}</span>
+      </div>
+      <div class="row">
+        <span>手机号:</span><span>{{ supplierInfo.mobile }}</span>
+      </div>
+      <div class="row">
+        <span>联系人:</span><span>{{ supplierInfo.linkMan }}</span>
+      </div>
     </div>
     <el-divider />
     <!-- 搜索区域 -->
@@ -154,12 +164,18 @@ export default {
     }
   },
   created() {
-    this.listQuery.authUserId = this.$route.query.id
-    this.fetchVipRecord()
-    this.fetchConfigureList()
-    this.fetchSupplierInfo()
+    this.initPage()
+  },
+  activated() {
+    this.initPage()
   },
   methods: {
+    initPage() {
+      this.listQuery.authUserId = this.$route.query.id
+      this.fetchVipRecord()
+      this.fetchConfigureList()
+      this.fetchSupplierInfo()
+    },
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1
     },
@@ -187,7 +203,7 @@ export default {
     },
     fetchVipRecord() {
       console.log(this.listQuery)
-      fetchVipRecord(this.listQuery).then(res => {
+      fetchVipRecord(this.listQuery).then((res) => {
         console.log(res)
         this.list = [...this.list, ...res.data.list]
       })
@@ -195,7 +211,7 @@ export default {
     handleShowDemand(row) {
       this.dialogTableVisible = true
       if (row.services) {
-        this.demandList = row.services.split(',').map(item => ({
+        this.demandList = row.services.split(',').map((item) => ({
           demand: item
         }))
       } else {
@@ -204,7 +220,7 @@ export default {
     },
     // 获取套餐列表
     fetchConfigureList() {
-      fetchConfigureList().then(res => {
+      fetchConfigureList().then((res) => {
         this.packageList = res.data.packageList.map((item, index) => {
           item.name = `套餐${index + 1}`
           // item.originalPrice = `${item.originalPrice.toFixed(2)}`
@@ -215,7 +231,7 @@ export default {
     },
     // 获取供应商信息
     fetchSupplierInfo() {
-      getSupplierById({ authUserId: this.listQuery.authUserId }).then(res => {
+      getSupplierById({ authUserId: this.listQuery.authUserId }).then((res) => {
         console.log(res)
         this.supplierInfo = res.data
       })

+ 4 - 0
src/views/admin/member/service.vue

@@ -40,6 +40,10 @@ export default {
     this.authUserId = parseInt(this.$route.query.id)
     this.fetchUserMenusConfigure()
   },
+  activated() {
+    this.authUserId = parseInt(this.$route.query.id)
+    this.fetchUserMenusConfigure()
+  },
   methods: {
     // 修改列表
     updateUserMenusConfigure() {

+ 3 - 0
src/views/admin/settings/accounts/index.vue

@@ -87,6 +87,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 4 - 0
src/views/admin/settings/auth-card/index.vue

@@ -169,6 +169,10 @@ export default {
     this.getList()
     this.fetchSupplierList()
   },
+  activated() {
+    this.getList()
+    this.fetchSupplierList()
+  },
   methods: {
     // 获取授权牌模板列表
     getList() {

+ 3 - 0
src/views/admin/settings/menus/components/table-list.vue

@@ -150,6 +150,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 编辑菜单
     onEditMenu(row, type) {

+ 3 - 0
src/views/admin/settings/roles/index.vue

@@ -63,6 +63,9 @@ export default {
   created() {
     this.fetchRoleList()
   },
+  activated() {
+    this.fetchRoleList()
+  },
   methods: {
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 5 - 0
src/views/admin/supplier/club/device/index.vue

@@ -172,6 +172,11 @@ export default {
     this.getList()
   },
 
+  activated() {
+    this.listQuery.authId = this.$route.query.authId
+    this.getList()
+  },
+
   methods: {
     // 获取列表信息
     getList() {

+ 13 - 7
src/views/admin/supplier/club/index.vue

@@ -157,15 +157,21 @@ export default {
     }
   },
   created() {
-    this.listQuery.authUserId = this.$route.query.id || this.proxyInfo?.authUserId || this.authUserId
-    const type = this.$route.query.type
-    // 如果是通过路由参数传递的type,则需要同步到store
-    if (type) {
-      this.$store.commit('user/SET_SHOP_TYPE', parseInt(type))
-    }
-    this.getList()
+    this.initPage()
+  },
+  activated() {
+    this.initPage()
   },
   methods: {
+    initPage() {
+      this.listQuery.authUserId = this.$route.query.id || this.proxyInfo?.authUserId || this.authUserId
+      const type = this.$route.query.type
+      // 如果是通过路由参数传递的type,则需要同步到store
+      if (type) {
+        this.$store.commit('user/SET_SHOP_TYPE', parseInt(type))
+      }
+      this.getList()
+    },
     // 获取授权列表
     getList() {
       this.listLoading = true

+ 3 - 0
src/views/admin/supplier/index.vue

@@ -145,6 +145,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 获取列表数据
     async getList() {

+ 4 - 0
src/views/common/helper/document/index.vue

@@ -166,6 +166,10 @@ export default {
     this.dialogFormData = this.resetDialogFormData()
     this.getMenuTree()
   },
+  activated() {
+    this.dialogFormData = this.resetDialogFormData()
+    this.getMenuTree()
+  },
   methods: {
     // 初始化dialog formdata
     resetDialogFormData() {

+ 4 - 1
src/views/common/helper/video/index.vue

@@ -154,7 +154,10 @@ export default {
   created() {
     this.dialogFormData = this.resetDialogFormData()
     this.getMenuTree()
-    console.log(this.authUserId)
+  },
+  activated() {
+    this.dialogFormData = this.resetDialogFormData()
+    this.getMenuTree()
   },
   methods: {
     // 初始化dialog formdata

+ 10 - 4
src/views/normal/activity/video/index.vue

@@ -209,12 +209,18 @@ export default {
     ...mapGetters(['proxyInfo'])
   },
   created() {
-    this.getList()
-    this.getClubList()
-    this.fetchActivityStatus()
-    this.fetchAccessTokenFlag()
+    this.initPage()
+  },
+  activated() {
+    this.initPage()
   },
   methods: {
+    initPage() {
+      this.getList()
+      this.getClubList()
+      this.fetchActivityStatus()
+      this.fetchAccessTokenFlag()
+    },
     // 获取活动状态
     async fetchActivityStatus() {
       try {

+ 5 - 0
src/views/normal/audit/club/components/club-list.vue

@@ -130,6 +130,11 @@ export default {
     this.listQuery.shopAuditStatus = this.shopAuditStatus
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.authUserId
+    this.listQuery.shopAuditStatus = this.shopAuditStatus
+    this.getList()
+  },
   methods: {
     // 获取授权列表
     getList() {

+ 5 - 0
src/views/normal/audit/club/components/device-list.vue

@@ -105,6 +105,11 @@ export default {
     this.listQuery.shopAuditStatus = this.shopAuditStatus
     this.getList()
   },
+  activated() {
+    this.listQuery.authId = this.$route.query.authId
+    this.listQuery.shopAuditStatus = this.shopAuditStatus
+    this.getList()
+  },
   methods: {
     // 获取列表信息
     getList() {

+ 3 - 0
src/views/normal/club/cate/index.vue

@@ -133,6 +133,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
 
   methods: {
     // 获取列表信息

+ 13 - 5
src/views/normal/club/device/index.vue

@@ -170,14 +170,22 @@ export default {
     ...mapGetters(['userIdentity'])
   },
   created() {
-    this.listQuery.authId = this.$route.query.id
-    this.authParty = this.$route.query.authParty
-    // 保存机构id,用于设备管理
-    setStorage('device-setting-authId', this.listQuery.authId)
-    this.getList()
+    this.initPage()
+  },
+
+  activated() {
+    this.initPage()
   },
 
   methods: {
+    initPage() {
+      this.listQuery.authId = this.$route.query.id
+      this.authParty = this.$route.query.authParty
+      // 保存机构id,用于设备管理
+      setStorage('device-setting-authId', this.listQuery.authId)
+      this.getList()
+    },
+
     // 机构详情
     onToClubDetail(row) {
       this.dialogClubVisible = false

+ 14 - 7
src/views/normal/club/index.vue

@@ -246,15 +246,22 @@ export default {
     }
   },
   created() {
-    this.listQuery.authUserId = this.authUserId
-    const type = this.$route.query.type
-    // 如果是通过路由参数传递的type,则需要同步到store
-    if (type) {
-      this.$store.commit('user/SET_SHOP_TYPE', parseInt(type))
-    }
-    this.getList()
+    this.initPage()
+  },
+  activated() {
+    this.initPage()
   },
   methods: {
+    initPage() {
+      this.listQuery.authUserId = this.authUserId
+      const type = this.$route.query.type
+      // 如果是通过路由参数传递的type,则需要同步到store
+      if (type) {
+        this.$store.commit('user/SET_SHOP_TYPE', parseInt(type))
+      }
+      this.getList()
+    },
+
     // 明星机构设置
     async onStarChange(row, value) {
       console.log(row)

+ 4 - 0
src/views/normal/club/logistics-licensed.vue

@@ -41,6 +41,10 @@ export default {
     this.authId = this.$route.query.id
     this.fetchLogisticsDetails()
   },
+  activated() {
+    this.authId = this.$route.query.id
+    this.fetchLogisticsDetails()
+  },
   methods: {
     async fetchLogisticsDetails() {
       try {

+ 3 - 0
src/views/normal/docs/index.vue

@@ -219,6 +219,9 @@ export default {
   created() {
     this.init()
   },
+  activated() {
+    this.init()
+  },
   methods: {
     // 排除相同文件夹
     filterSameDir(dirList) {

+ 3 - 0
src/views/normal/feedback/index.vue

@@ -139,6 +139,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 获取列表数据
     getList() {

+ 3 - 0
src/views/normal/personal/index.vue

@@ -181,6 +181,9 @@ export default {
   created() {
     this.fetchSupplierInfo()
   },
+  activated() {
+    this.fetchSupplierInfo()
+  },
   methods: {
     // 获取供应商信息
     fetchSupplierInfo() {

+ 3 - 0
src/views/normal/personnel/operate/index.vue

@@ -124,6 +124,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 获取列表
     getList() {

+ 3 - 0
src/views/normal/personnel/training/index.vue

@@ -124,6 +124,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 获取列表
     getList() {

+ 3 - 0
src/views/normal/settings/accounts/index.vue

@@ -87,6 +87,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 4 - 0
src/views/normal/settings/auth-card/index.vue

@@ -97,6 +97,10 @@ export default {
     this.listQuery.authUserId = this.authUserId
     this.getList()
   },
+  activated() {
+    this.listQuery.authUserId = this.authUserId
+    this.getList()
+  },
   methods: {
     // 一键生效
     async authTempUpdate() {

+ 3 - 0
src/views/normal/settings/roles/index.vue

@@ -63,6 +63,9 @@ export default {
   created() {
     this.fetchRoleList()
   },
+  activated() {
+    this.fetchRoleList()
+  },
   methods: {
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 3 - 0
src/views/normal/user/index.vue

@@ -201,6 +201,9 @@ export default {
   created() {
     this.getList()
   },
+  activated() {
+    this.getList()
+  },
   methods: {
     // 更换机构
     async onChangeClub(row) {