Explorar el Código

质检工具修改

yusheng hace 11 meses
padre
commit
995220fffc
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      src/views/inspectionWork/components/toolList.vue

+ 5 - 4
src/views/inspectionWork/components/toolList.vue

@@ -56,6 +56,7 @@
         <ele-modal width="60%" :visible.sync="fileShow" :close-on-click-modal="false" custom-class="ele-dialog-form"
             append-to-body :maxable="true" :resizable="true">
             <ele-pro-table ref="table" :columns="columns" :datasource="datasource" tool-class="ele-toolbar-form"
+            height="500px"
                 :needPage="false" row-key="id" :selection.sync="selection" :toolbar="false">
             </ele-pro-table>
             <template v-slot:footer>
@@ -168,10 +169,10 @@ export default {
             this.datasource = sList;
         },
         addUserToolList() {
-            if (this.selection.some((item) => 
-                this.useList.some((i) => i.code == item.code))) {
-                return this.$message.error('选择的物品已经存在列表了');
-            }
+            // if (this.selection.some((item) => 
+            //     this.useList.some((i) => i.code == item.code))) {
+            //     return this.$message.error('选择的物品已经存在列表了');
+            // }
             
             this.$emit(
                 'success',