kevin_zhangl 3 лет назад
Родитель
Сommit
74a2584972

+ 4 - 1
backendApi/modules/v1/controllers/SiteController.php

@@ -67,8 +67,10 @@ class SiteController extends BaseController
     public function actionBaseInfo(){
         // 会员级别
         $decLevels = Cache::getDecLevelConfig();
-        // 
+        // 管理星
         $empLevels = Cache::getEmpLevelConfig();
+        // 皇冠星级
+        $crownLevels = Cache::getStarCrownLevelConfig();
         // 注册类型
         $regTypes = RegType::getTypes();
         // 类型
@@ -104,6 +106,7 @@ class SiteController extends BaseController
         return [
             'decLevels' => $decLevels,
             'empLevels' => $empLevels,
+            'crownLevels' => $crownLevels,
             'regTypes' => $regTypes,
             'dealTypes' => $dealTypes,
             'systems' => $systems,

+ 6 - 0
backendEle/src/components/FilterUser.vue

@@ -172,6 +172,12 @@ export default {
           valueField: 'ID',
           values: baseInfo.empLevels()
         },
+        crownLevel: {
+          placeholder: 'Select Crown Level', // 请选择聘级
+          labelField: 'LEVEL_NAME',
+          valueField: 'ID',
+          values: baseInfo.crownLevels()
+        },
         decRole: {
           placeholder: 'Select Stockist Level',
           labelField: 'ROLE_NAME',

+ 3 - 0
backendEle/src/utils/baseInfo.js

@@ -25,6 +25,9 @@ const baseInfo = {
   empLevels () {
     return this.get('empLevels')
   },
+  crownLevels () {
+    return this.get('crownLevels')
+  },
   regTypes () {
     return this.get('regTypes')
   },

+ 2 - 1
backendEle/src/utils/vuexStore.js

@@ -13,6 +13,7 @@ const moduleBaseInfo = {
   state: {
     decLevels: null,
     empLevels: null,
+    crownLevels: null,
     adminRoles: null,
     menu: null,
     daysDiff: null,
@@ -38,4 +39,4 @@ export default new Vuex.Store({
     baseInfo: moduleBaseInfo,
     regionInfo: moduleRegionInfo,
   }
-})
+})