|
|
|
|
@ -1,26 +1,21 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<a-modal title="职位选择" width="1200px" :visible="isModalVisible" @ok="confirmModal" @cancel="cancelModal" :footer="null">
|
|
|
|
|
|
|
|
|
|
<div class="f40">
|
|
|
|
|
<a-input-search placeholder="搜索职位" enter-button="搜索" allow-clear @search="onSearch" style="width:300px;margin-bottom: 20px;"/>
|
|
|
|
|
<!-- @search="onSearch" -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a-table :columns="tableColumns" :loading="isspinning" :pagination="false" :data-source="tableData" size="small">
|
|
|
|
|
<span slot="cz" slot-scope="text, record">
|
|
|
|
|
|
|
|
|
|
<a href="javascript:;" style="color: #1890ff;" @click="selectedJob(record)">选择</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</a-table>
|
|
|
|
|
<div class="pagecontainer f40" style="justify-content: start;">
|
|
|
|
|
<a-pagination :current="+formvalue.pageNum" :default-current="1" :defaultPageSize="8" :total="formvalue.total" @change="pageChange" />
|
|
|
|
|
<div class="ant-pagination-options-quick-jumper">
|
|
|
|
|
跳至
|
|
|
|
|
<input ref="pageinput" type="text" @keyup.enter="inputpageChange" @blur="inputpageChange" />页
|
|
|
|
|
</div>
|
|
|
|
|
<a-modal title="职位选择" width="800px" :visible="isModalVisible" @ok="confirmModal" @cancel="cancelModal" :footer="null">
|
|
|
|
|
<div class="f40">
|
|
|
|
|
<a-input-search placeholder="搜索职位" enter-button="搜索" allow-clear @search="onSearch" style="width:300px;margin-bottom: 20px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
<a-table :columns="tableColumns" :loading="isspinning" :pagination="false" :data-source="tableData" size="small">
|
|
|
|
|
<span slot="cz" slot-scope="text, record">
|
|
|
|
|
<a href="javascript:;" style="color: #1890ff;" @click="selectedJob(record)">选择</a>
|
|
|
|
|
</span>
|
|
|
|
|
</a-table>
|
|
|
|
|
<div class="pagecontainer f40" style="justify-content: start;">
|
|
|
|
|
<a-pagination :current="+formvalue.pageNum" :default-current="1" :defaultPageSize="8" :total="formvalue.total" @change="pageChange" />
|
|
|
|
|
<div class="ant-pagination-options-quick-jumper">
|
|
|
|
|
跳至
|
|
|
|
|
<input ref="pageinput" type="text" @keyup.enter="inputpageChange" @blur="inputpageChange" />页
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -61,21 +56,21 @@ export default {
|
|
|
|
|
dataIndex: "agencyName",
|
|
|
|
|
key: "agencyName",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
width:200,
|
|
|
|
|
width:140,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "服务费",
|
|
|
|
|
dataIndex: "servetype",
|
|
|
|
|
key: "servetype",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
width:180,
|
|
|
|
|
width:100,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "员工薪资",
|
|
|
|
|
dataIndex: "jobpricemonth",
|
|
|
|
|
key: "jobpricemonth",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
width:180,
|
|
|
|
|
width:100,
|
|
|
|
|
customRender: (text, row, index) => {
|
|
|
|
|
// console.log(row);
|
|
|
|
|
// console.log(row.salaryClassify);
|
|
|
|
|
@ -146,14 +141,17 @@ export default {
|
|
|
|
|
openModal() {
|
|
|
|
|
this.isModalVisible = true;
|
|
|
|
|
// 可在此处加载或更新表格数据
|
|
|
|
|
// this.$emit('update:isModalVisible', true);
|
|
|
|
|
},
|
|
|
|
|
confirmModal() {
|
|
|
|
|
this.isModalVisible = false;
|
|
|
|
|
// 处理确认逻辑,如保存更改等
|
|
|
|
|
// this.$emit('update:isModalVisible', false);
|
|
|
|
|
},
|
|
|
|
|
cancelModal() {
|
|
|
|
|
this.isModalVisible = false;
|
|
|
|
|
// 清理或重置状态
|
|
|
|
|
this.$emit('update:isModalVisible', false);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取工作列表
|
|
|
|
|
|