yaowanxin
7 天以前 64cd24b079ec15ea5c9be7360060e7b34eb3d8bd
src/views/personnelManagement/onboarding/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 FormDia from "@/views/personnelManagement/onboarding/components/formDiaXJHT.vue"; // 新疆食品公司用的表单
import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
import {ElMessageBox} from "element-plus";
import FilesDia from "./filesDia.vue";
import dayjs from "dayjs";
const data = reactive({
@@ -165,12 +167,20 @@
    label: "操作",
    align: "center",
    fixed: 'right',
    width: 120,
    operation: [
      {
        name: "编辑",
        type: "text",
        clickFun: (row) => {
          openForm("edit", row);
        },
      },
      {
        name: "附件",
        type: "text",
        clickFun: (row) => {
          openFilesFormDia(row);
        },
      },
    ],
@@ -185,6 +195,7 @@
  total: 0,
});
const formDia = ref()
const filesDia = ref()
const { proxy } = getCurrentInstance()
const handleDateChange = (value,type) => {
@@ -201,6 +212,13 @@
  }
  getList();
};
// 打开附件弹框
const openFilesFormDia = (row) => {
  console.log(row)
  nextTick(() => {
    filesDia.value?.openDialog( row,'合同')
  })
};
// 查询列表
/** 搜索按钮操作 */
const handleQuery = () => {