licp
2024-04-07 a7054ba2bb5c59902fa3ef8b37064a94e1524cc6
src/components/view/b2-standard.vue
@@ -60,6 +60,10 @@
   .product_table .el-table {
      height: 100%;
   }
  .sort{
    width: 80% !important;
    overflow: hidden;
  }
</style>
<style>
   .standard .el-tree-node__content {
@@ -74,7 +78,7 @@
   .standard .has-gutter .el-table__cell .cell {
      line-height: 38px;
      background-color: #fafafa;
      background-color: #f8f8f8;
   }
   .standard .has-gutter .el-table__cell {
@@ -107,8 +111,8 @@
            @node-collapse="nodeClose" v-loading="treeLoad" :expand-on-click-node="false"
            :default-expanded-keys="expandedKeys">
            <div class="custom-tree-node" slot-scope="{ node, data }">
               <el-row>
                  <el-col :span="21">
               <el-row style="width: 100%;">
                  <el-col :span="21" :class="{sort:node.level>3}">
                     <span><i
                           :class="`node_i ${data.children != undefined ? 'el-icon-folder-opened' : 'el-icon-tickets'}`"></i>
                        {{ data.code }} {{ data.label }}</span>
@@ -155,9 +159,11 @@
            </el-table>
         </el-row>
         <el-row class="product_table" v-loading="tableLoad2">
            <el-table :data="productList" ref="productTable" style="width: 100%;" height="100%" tooltip-effect="dark" stripe :fit="true" border
               @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" @select="upProductSelect">
               <el-table-column type="selection" width="65"></el-table-column>
            <el-table :data="productList" ref="productTable" style="width: 100%;" height="100%" tooltip-effect="dark" stripe
               :fit="true" border @selection-change="handleSelectionChange" :row-class-name="tableRowClassName"
               @select="upProductSelect">
               <el-table-column type="selection" width="65">
               </el-table-column>
               <el-table-column prop="inspectionItem" label="检验项" min-width="140" show-overflow-tooltip></el-table-column>
               <!-- <el-table-column prop="inspectionItemClassify" label="检验项类型" width="120" show-overflow-tooltip></el-table-column> -->
               <el-table-column prop="inspectionItemSubclass" label="检验项子项" min-width="140"
@@ -174,8 +180,8 @@
               <el-table-column prop="tell" label="要求描述" min-width="220px">
                  <template slot-scope="scope">
                     <el-input size="small" placeholder="要求描述" v-model="scope.row.tell" clearable
                        @change="(value)=>upStandardProductListOfTell(value,scope.row.id)" v-if="upStandardProduct" type="textarea"
                        :autosize="{ minRows: 1, maxRows: 3}"></el-input>
                        @change="(value)=>upStandardProductListOfTell(value,scope.row.id)" v-if="upStandardProduct"
                        type="textarea" :autosize="{ minRows: 1, maxRows: 3}"></el-input>
                     <span v-else>{{scope.row.ask}}</span>
                  </template>
               </el-table-column>