spring
8 天以前 af7fa041da9f063ca49f1f1126ec01616f14cd85
src/views/personnelManagement/contractManagement/index.vue
@@ -65,7 +65,7 @@
        </div>
      </template>
    </el-dialog>
    <files-dia ref="filesDia"></files-dia>
    <files-dia ref="filesDia" @close="filesClose"></files-dia>
  </div>
</template>
@@ -78,7 +78,7 @@
import dayjs from "dayjs";
import PIMTable from "@/components/PIMTable/PIMTable.vue";
import { getToken } from "@/utils/auth.js";
import FilesDia from "./filesDia.vue";
import FilesDia from "./components/filesDia.vue";
const data = reactive({
  searchForm: {
    staffName: "",
@@ -250,18 +250,23 @@
  page.size = obj.limit;
  getList();
};
const getList = () => {
const getList = async () => {
  tableLoading.value = true;
  const params = { ...searchForm.value, ...page };
  params.entryDate = undefined
  staffOnJobListPage(params).then(res => {
    tableLoading.value = false;
    tableData.value = res.data.records
    page.total = res.data.total;
  }).catch(err => {
    tableLoading.value = false;
  })
  let res = await staffOnJobListPage(params)
  tableData.value = res.data.records
  page.total = res.data.total;
  tableLoading.value = false;
};
const filesClose = ()=>{
  getList()
}
// 表格选择数据
const handleSelectionChange = (selection) => {
  selectedRows.value = selection;