Ver Fonte

左中右,把右去掉,中改成右

theo há 3 anos atrás
pai
commit
f1202fe1bd

+ 1 - 1
backendEle/src/utils/region.js

@@ -26,7 +26,7 @@ const initRegion = function (vueObj) {
 
     // code转汉字大对象
 // 汉字转code大对象
-    const rootCode = '86'
+    const rootCode = '234'
     vueObj.$set(store.state.regionInfo.CodeToText, '', '全部')
 
 // 计算省

+ 2 - 3
backendEle/src/views/user/user-add-opt.vue

@@ -63,8 +63,7 @@
               </template>
               <el-radio-group v-model="form.location">
                 <el-radio-button :label="1">左区</el-radio-button>
-                <el-radio-button :label="2">中区</el-radio-button>
-                <el-radio-button :label="3">右区</el-radio-button>
+                <el-radio-button :label="2">右区</el-radio-button>
               </el-radio-group>
             </el-form-item>
             <el-form-item>
@@ -112,7 +111,7 @@
               <el-cascader
                   size="large"
                   :options="regionData"
-                  v-model="form.areaSelected" @change="handleGetSubCom">
+                  v-model="form.areaSelected">
               </el-cascader>
             </el-form-item>
             <el-collapse style="margin-bottom: 20px;">

+ 2 - 2
frontendApi/modules/v1/controllers/UserController.php

@@ -428,10 +428,10 @@ class UserController extends BaseController {
         if($user){
             $userInfo['REAL_NAME'] = $user['REAL_NAME'];
             $allChildUser = UserNetwork::getFirstFloorChildren($userId);
-            $isLocation = [1 => '左-', 2 => '中-', 3 => '右-'];
+            $isLocation = [1 => 'Left-', 2 => 'Right-'];
             if($allChildUser) {
                 foreach ($allChildUser as $child) {
-                    $isLocation[$child['RELATIVE_LOCATION']].= '';
+                    $isLocation[$child['RELATIVE_LOCATION']].= 'Filled';
                 }
             }
             $userInfo['isLocation'] = '('.implode(',',$isLocation).')';