瀏覽代碼

修改绑定工序搜索逻辑。(按照胡老师的逻辑)

jiaxiaoqiang 5 月之前
父節點
當前提交
c3532b7969
共有 1 個文件被更改,包括 18 次插入14 次删除
  1. 18 14
      src/views/base/craftManagement/route/bindProcess.vue

+ 18 - 14
src/views/base/craftManagement/route/bindProcess.vue

@@ -10,18 +10,18 @@
     <div class="binContainer">
       <div class="processTree">
         <el-scrollbar>
-          <el-select
-            v-model="list1SearchGroupDictKey"
-            placeholder="搜索工序类型"
-            clearable
-            filterable
-          >
-            <el-option
-              v-for="dict in dictsArray"
-              :label="dict.dictLabel"
-              :value="dict.dictValue"
-            />
-          </el-select>
+          <!--          <el-select-->
+          <!--            v-model="list1SearchGroupDictKey"-->
+          <!--            placeholder="搜索工序类型"-->
+          <!--            clearable-->
+          <!--            filterable-->
+          <!--          >-->
+          <!--            <el-option-->
+          <!--              v-for="dict in dictsArray"-->
+          <!--              :label="dict.dictLabel"-->
+          <!--              :value="dict.dictValue"-->
+          <!--            />-->
+          <!--          </el-select>-->
           <el-input
             v-model="list1SearchStr"
             placeholder="搜索工序名称"
@@ -35,7 +35,7 @@
             >
               <template #title>
                 <div class="title2">
-                  {{ getNameByDictType(pProcess.workSection) }}
+                  {{ pProcess.workSectionStr }}
                 </div>
               </template>
               <div class="treeChild">
@@ -420,7 +420,11 @@ const cancelInfo = () => {
   });
 };
 const loadTreeData = () => {
-  processTreeList(list1SearchGroupDictKey.value).then((res) => {
+  // processTreeList(list1SearchGroupDictKey.value).then((res) => {
+  //   list1.value = res.data ?? [];
+  //   filterDicts();
+  // });
+  processTreeList().then((res) => {
     list1.value = res.data ?? [];
     filterDicts();
   });