loulijun2021
2022-07-04 991a63234bba49da5a22d0f64ae15837d3253829
src/views/zzmx/gxdy.vue
@@ -147,7 +147,7 @@
          >
            <template slot-scope="{row}">
              <div class="operationClass">
                <el-button type="text" @click="edit('edit',row)">修改</el-button>
                <el-button type="text" @click="edit('edit',row)">编辑</el-button>
                <el-button type="text" @click="del(row)">删除</el-button>
              </div>
            </template>
@@ -169,7 +169,7 @@
    <!--新增修改对话框-->
    <el-dialog
      :title="operation==='add'?'新增':'修改'"
      :title="operation==='add'?'新增':'编辑'"
      :visible.sync="dialogVisible"
      width="50%"
      :close-on-click-modal="false"
@@ -232,6 +232,7 @@
      :visible.sync="workDialogVisible"
      width="50%"
      top="15vh"
      :fullscreen="isFullscreen"
      :close-on-click-modal="false"
      class="workDialogVisible"
      @closed="workHandleClose"
@@ -278,6 +279,7 @@
          :data="workDialogForm.workTreeArr"
          show-checkbox
          node-key="code"
          style="height: 300px;"
          default-expand-all
          :props="workTreeDefaultProps"
          @check="checkBoxClick"
@@ -299,6 +301,7 @@
      :visible.sync="defectDialogVisible"
      width="50%"
      top="15vh"
      :fullscreen="isFullscreen"
      :close-on-click-modal="false"
      class="defectDialogVisible"
      @closed="defectHandleClose"
@@ -319,7 +322,7 @@
          :data="defectTree"
          show-checkbox
          node-key="code"
          style="height: 400px;"
          style="height: 500px;"
          default-expand-all
          :props="workTreeDefaultProps"
        />
@@ -371,6 +374,7 @@
      }
    }
    return {
      isFullscreen: false,
      mainHeight: 0,
      tableHeight: 0,
      form: {
@@ -390,8 +394,8 @@
      ],
      steptypeArr: [
        { code: 'Z', name: '自制' },
        { code: 'W', name: '外协' },
        { code: 'Z;W', name: '自制;外协' }
        { code: 'W', name: '外协' }
        // { code: 'Z;W', name: '自制;外协' }
      ],
      total: 10,
      tableData: [],
@@ -564,6 +568,10 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        if (window.innerHeight < 800) {
          this.tableHeight = this.tableHeight - 50
        }
      })
    },
    /* 关联工作站模块*/