|
@@ -10,9 +10,10 @@
|
|
|
<div class="binContainer">
|
|
|
<div class="processTree">
|
|
|
<el-scrollbar>
|
|
|
+ <el-input v-model="list1SearchStr" placeholder="搜索工序名称" />
|
|
|
<el-collapse v-model="activeNames">
|
|
|
<el-collapse-item
|
|
|
- v-for="(pProcess, pIndex) in list1"
|
|
|
+ v-for="(pProcess, pIndex) in showList"
|
|
|
:key="pProcess.workSection"
|
|
|
:name="pIndex"
|
|
|
>
|
|
@@ -317,7 +318,16 @@ const download = () => {};
|
|
|
// 左侧工序树====================
|
|
|
const activeNames = ref([0]);
|
|
|
const list1 = ref([]);
|
|
|
-
|
|
|
+const list1SearchStr = ref("");
|
|
|
+const showList = computed(() => {
|
|
|
+ const array = _.cloneDeep(list1.value);
|
|
|
+ array.forEach((item) => {
|
|
|
+ item.baseOperationList = item.baseOperationList.filter((op) => {
|
|
|
+ return op.operationName.includes(list1SearchStr.value);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ return array;
|
|
|
+});
|
|
|
// 保存中间的工序列表
|
|
|
const saveFlow = async () => {
|
|
|
const { code } = await saveProcessInRoute({
|