huangbin преди 4 години
родител
ревизия
ef7f751cd7
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      src/views/information/spot-contract/components/add/index.vue
  2. 1 1
      src/views/information/spot-contract/components/setup.ts

+ 2 - 2
src/views/information/spot-contract/components/add/index.vue

@@ -75,7 +75,7 @@
                   <a-select-option :value="item.userid"
                                    v-for="item in customList"
                                    :key="item.userid">
-                    {{item.customername}}
+                    {{item.nickname}}
                   </a-select-option>
                 </a-select>
               </a-form-item>
@@ -103,7 +103,7 @@
                   <a-select-option :value="item.userid"
                                    v-for="item in customList"
                                    :key="item.userid">
-                    {{item.customername}}
+                    {{item.nickname}}
                   </a-select-option>
                 </a-select>
               </a-form-item>

+ 1 - 1
src/views/information/spot-contract/components/setup.ts

@@ -284,7 +284,7 @@ export function handleContract(formState: UnwrapRef<FormState>) {
     function queryCustomList() {
         QueryCustomInfo(3)
             .then((res) => {
-                customList.value = res
+                customList.value = res.filter(e => e.status === 4)
                 console.log('客户资料', customList);
             })
             .catch((err) => {