Selaa lähdekoodia

fix:选择微电子车间上传工艺文件

luoxiao 2 viikkoa sitten
vanhempi
commit
d9ccb014f1
1 muutettua tiedostoa jossa 8 lisäystä ja 5 poistoa
  1. 8 5
      src/views/pro-operation/craft-file/index.vue

+ 8 - 5
src/views/pro-operation/craft-file/index.vue

@@ -3,7 +3,7 @@
     <el-input
       ref="inputRef"
       class="keyInput"
-      v-model="keyWord"
+      v-model="keyword"
       placeholder="请输入文件名称或文件编码,按回车键查询"
       clearable="true"
       @keyup.enter="getDatas"
@@ -18,7 +18,7 @@
       <el-table-column prop="craftCode" label="文档编码" align="center" />
       <el-table-column prop="craftDeptId" label="发布部门" align="center">
         <template #default="{ row }">
-          {{ row.addType == "1" ? "模块车间" : "微电子车间" }}
+          {{ row.craftDeptId == "1" ? "模块电路车间" : "微电子车间" }}
         </template>
       </el-table-column>
       <el-table-column prop="publisherName" label="发布人" align="center" />
@@ -133,19 +133,22 @@ const pageObj = ref({
   pageNo: 1,
   total: 0,
 });
+
+const keyword = ref("");
 //数据列表获取
 const getDatas = async () => {
+  // 1 模块电路车间 2 微电子车间
+  let deptId = 2;
   const { data } = await getData({
     pageNo: pageObj.value.pageNo,
     pageSize: pageObj.value.pageSize,
-    keyWord: keyWord.value,
+    keyword: keyword.value,
+    craftDeptId: deptId,
   });
   fileDatas.value = data.records;
   pageObj.value.total = data.totalCount;
 };
 
-const keyWord = ref("");
-
 const PDFDrawerViewRef = ref(null);
 const toShowPDF = (row) => {
   let url = import.meta.env.VITE_PDM_FILE_URL + row.fileConvertPath;