yz
2021-03-09 dfdfdc803d02980c9113ca89a3e917f8e43bcb38
src/views/user/Informationinput.vue
@@ -80,25 +80,25 @@
                编辑
              </span>
            </template>
          </el-table-column>
          <el-table-column label="照片" width="60">
            <template slot-scope="scope">
              <!--              <img :src="scope.row.imagePath">-->
              <el-image
                v-if="scope.row.imagePath && scope.row.imagePath != ''"
                style="width: 30px; height: 30px"
                :src="scope.row.imagePath"
                fit="cover"
              />
          </el-table-column>-->
          <!--          <el-table-column label="照片" width="60">-->
          <!--            <template slot-scope="scope">-->
          <!--              &lt;!&ndash;              <img :src="scope.row.imagePath">&ndash;&gt;-->
          <!--              <el-image-->
          <!--                v-if="scope.row.imagePath && scope.row.imagePath != ''"-->
          <!--                style="width: 30px; height: 30px"-->
          <!--                :src="scope.row.imagePath"-->
          <!--                fit="cover"-->
          <!--              />-->
              <el-image
                v-else
                style="width: 30px; height: 30px"
                :src="defaultImg"
                fit="cover"
              />
            </template>
          </el-table-column>
          <!--              <el-image-->
          <!--                v-else-->
          <!--                style="width: 30px; height: 30px"-->
          <!--                :src="defaultImg"-->
          <!--                fit="cover"-->
          <!--              />-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="50" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="50" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
@@ -625,14 +625,14 @@
        <el-row>
          <el-col span="24">
            <el-form-item label="员工模板下载" prop="region">
              <a href="http://120.24.23.155:8000/员工信息.xls" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a>
              <a :href="downloadEmpExcel" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a>
              <span style="margin-left: 100px;">点击下载</span>
            </el-form-item>
            <el-form-item label="导入员工">
              <el-upload
                ref="upload"
                class="upload-demo"
                action="http://120.24.23.155:8301/hr/empBaseInfo/importEmp"
                :action="uploadEmpExcel"
                accept=".xls, .xlsx, .excel"
                :headers="headers()"
                :on-success="importHandleAvatarSuccess"
@@ -2163,6 +2163,8 @@
  components: { Treeselect, Pagination },
  data() {
    return {
      downloadEmpExcel: pages.downloadEmpExcel,
      uploadEmpExcel: pages.uploadEmpExcel,
      defaultImg: require('../../assets/avatar/20180414165936.jpg'),
      baseicInformationForm: {},
      dialogShowDryg: false,