zhouwx
2025-11-13 5287077531b0c45031842b1e5ec3f3b9314ba234
src/views/work/qualityManage/performanceAppraisal/components/editDialog.vue
@@ -11,7 +11,7 @@
      <el-form :model="state.form" size="default" ref="busRef" :rules="state.rules"  label-position="top" >
        <el-row :gutter="24">
          <el-col :span="24">
            <el-form-item label="企业名称:" prop="companyId" v-if="state.isAdmin">
            <el-form-item label="单位名称:" prop="companyId" v-if="state.isAdmin">
              <el-select v-model="state.form.companyId" placeholder="请选择" filterable clearable style="width: 100%" :disabled="title == '查看' || title == '编辑' || !state.isAdmin" @change="selectValueCom">
                <el-option
                    v-for="item in state.companyList"
@@ -109,13 +109,14 @@
                  <el-table-column label="责任部门" prop="deptId" align="center" >
                    <template #default="{row,$index}">
                      <div v-for="(i,index) in row.analyses" :key="index">
                        <el-form-item :prop="'types.' + '[' + $index + '].' +'analyses.' + '[' + index + ']' + '.deptId'">
                        <el-form-item :prop="'types.' + '[' + $index + '].' +'analyses.' + '[' + index + ']' + '.deptId'" style="margin-bottom: 10px">
                          <el-select
                              clearable
                              :disabled="title === '查看'"
                              v-model="i.deptId"
                              placeholder="请选择部门"
                              style="width: 240px;margin-bottom: 5px"
                              class="select-same-as-textarea"
                              style="width: 240px;margin-top: 5px"
                          >
                            <el-option
                                v-for="item in state.deptList"
@@ -590,5 +591,17 @@
    flex-direction: column;
    align-items: flex-start;
  }
  /* 同步高度 */
  ::v-deep .select-same-as-textarea {
    height: 90px;
  }
  /* 确保选择器内部区域高度匹配 */
  ::v-deep .select-same-as-textarea .el-input__inner {
    height: 90px;
    line-height: 1.5; /* 保持文字垂直居中 */
    padding-top: 8px; /* 调整文字位置 */
  }
}
</style>