yaowanxin
7 天以前 64cd24b079ec15ea5c9be7360060e7b34eb3d8bd
src/views/personnelManagement/dimission/index.vue
@@ -51,6 +51,7 @@
      ></PIMTable>
    </div>
    <form-dia ref="formDia" @close="handleQuery"></form-dia>
    <files-dia ref="filesDia"></files-dia>
  </div>
</template>
@@ -61,6 +62,7 @@
import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
import {ElMessageBox} from "element-plus";
import dayjs from "dayjs";
import FilesDia from "./filesDia.vue";
const data = reactive({
  searchForm: {
@@ -127,11 +129,6 @@
    width:100
  },
  {
    label: "身份证号",
    prop: "identityCard",
    width:200
  },
  {
    label: "年龄",
    prop: "age",
  },
@@ -150,10 +147,17 @@
    prop: "emergencyContactPhone",
    width:150
  },
  // {
  //   label: "合同年限",
  //   prop: "contractTerm",
  // },
  {
    label: "离职日期",
    prop: "createTime",
    width: 120,
    formatData: (params) => {
      if (params) {
        return dayjs(params).format("YYYY-MM-DD");
      }
      return "-";
    }
  },
  {
    label: "合同开始日期",
    prop: "contractStartTime",
@@ -168,12 +172,20 @@
    dataType: "action",
    label: "操作",
    align: "center",
    width: 120,
    operation: [
      {
        name: "编辑",
        type: "text",
        clickFun: (row) => {
          openForm("edit", row);
        },
      },
      {
        name: "附件",
        type: "text",
        clickFun: (row) => {
          openFilesFormDia(row);
        },
      },
    ],
@@ -188,6 +200,7 @@
  total: 0,
});
const formDia = ref()
const filesDia = ref()
const { proxy } = getCurrentInstance()
@@ -205,6 +218,13 @@
  }
  getList();
};
// 打开附件弹框
const openFilesFormDia = (row) => {
  console.log(row)
  nextTick(() => {
    filesDia.value?.openDialog( row,'合同')
  })
};
// 查询列表
/** 搜索按钮操作 */
const handleQuery = () => {