Browse Source

JLHWEB: 1、修复弹簧名称显示

JohnnyChan 2 days ago
parent
commit
14568a5787

+ 3 - 3
JLHWEB/src/views/quote/bednetQuote/hooks/index.tsx

@@ -171,7 +171,7 @@ export const useHooks = (t?: any, props?: any) => {
     console.log("rModelSetSpring data, item :>> ", data, item);
     if (item) {
       data.springid = item.springid;
-      data.springname = item.name;
+      data.springname = item.springname;
 
       setMxSpringQtyWidthAndLength(data);
     }
@@ -184,7 +184,7 @@ export const useHooks = (t?: any, props?: any) => {
     console.log("rModelSetSpring data, item :>> ", data, item);
     if (item) {
       data.springid = item.springid;
-      data.springname = item.name;
+      data.springname = item.springname;
     }
   };
 
@@ -320,7 +320,7 @@ export const useHooks = (t?: any, props?: any) => {
   const rModelSetHardAroundSpring = (data: any, item: any) => {
     if (item) {
       data.hard_around_springid = item.springid;
-      data.hard_around_springname = item.name;
+      data.hard_around_springname = item.springname;
     }
   };
 

+ 13 - 0
JLHWEB/src/views/system/selector/spring/index.vue

@@ -187,6 +187,19 @@ const columns: any = [
         }
       }
     }
+    // },
+    // {
+    //   field: "createby",
+    //   search: {
+    //     el: "checkbox",
+    //     key: "arg_newspring",
+    //     defaultValue: 1,
+    //     props: {
+    //       onChange: (val: any) => {
+    //         initParams.value.arg_newspring = val;
+    //       }
+    //     }
+    //   }
   }
 ];
 

+ 2 - 2
JLHWEB/src/views/system/selector/spring/select.vue

@@ -23,7 +23,7 @@
     <el-option
       v-for="item in options"
       :key="item.springid"
-      :label="item.name"
+      :label="item.springname"
       :value="item"
       class="lj-select__table pl-10 pr-10"
       :class="{
@@ -35,7 +35,7 @@
       </template>
       <template v-else>
         <div class="table-tr">
-          <div style="width: 270px" class="table-td pr-4 text-ellipsis-one" :title="item.name">{{ item.name }}</div>
+          <div style="width: 270px" class="table-td pr-4 text-ellipsis-one" :title="item.springname">{{ item.springname }}</div>
         </div>
       </template>
     </el-option>