|
@@ -33,10 +33,10 @@
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<div class="con">
|
|
|
- <el-button type="primary" icon="el-icon-plus" style="margin-left: 30px;">新增</el-button>
|
|
|
- <el-button type="success" icon="el-icon-edit-outline">修改</el-button>
|
|
|
- <el-button type="danger" plain icon="el-icon-close">删除</el-button>
|
|
|
- <el-button type="warning" icon="el-icon-upload2">导出</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" style="margin-left: 30px;" @click="add">新增</el-button>
|
|
|
+ <el-button type="success" icon="el-icon-edit-outline" @click="amend">修改</el-button>
|
|
|
+ <el-button type="danger" plain icon="el-icon-close" @click="delet">删除</el-button>
|
|
|
+ <el-button type="warning" icon="el-icon-upload2" @click="derive">导出</el-button>
|
|
|
</div>
|
|
|
<!-- 右侧栏 -->
|
|
|
<div class="con cons">
|
|
@@ -104,14 +104,10 @@
|
|
|
<el-table-column prop="num" label=" 状态" v-if="showColumn.wantnumber">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="tag-group">
|
|
|
- <el-tag class="site"
|
|
|
- v-for="items in item"
|
|
|
- :key="item.label"
|
|
|
- :type="item.type"
|
|
|
- effect="dark">
|
|
|
- {{ items.label }}
|
|
|
- </el-tag>
|
|
|
- </div>
|
|
|
+ <el-tag class="site" v-for="items in item" :key="item.label" :type="item.type" effect="dark">
|
|
|
+ {{ items.label }}
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="type" label="备注" v-if="showColumn.wanttype"></el-table-column>
|
|
@@ -119,9 +115,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="num" label="操作" width="300" v-if="showColumn.post">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button class="el-icon-edit-outline" size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
- <el-button class="el-icon-s-operation" size="mini" type="success" @click="handleEdit(scope.$index, scope.row)">列表</el-button>
|
|
|
- <el-button class="el-icon-close" size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
+ <el-button class="el-icon-edit-outline" size="mini" type="primary"
|
|
|
+ @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
+ <el-button class="el-icon-s-operation" size="mini" type="success"
|
|
|
+ @click="handleEdit(scope.$index, scope.row)">列表</el-button>
|
|
|
+ <el-button class="el-icon-close" size="mini" type="danger"
|
|
|
+ @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -206,15 +205,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 切换后列表 -->
|
|
|
+ <Dialog :showdWorker="showDialog" :Text="dialogText" @closes="showDialog=false" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import Dialog from "../components/Dialog.vue";
|
|
|
import planHeader from "../recruitmentManagement/recruitmentPlan/components/planHeader.vue";
|
|
|
import planCon from "../recruitmentManagement/recruitmentPlan/components/planCon.vue";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ showDialog: false,
|
|
|
+ dialogText: '',
|
|
|
currentPage1: 5,
|
|
|
currentPage2: 5,
|
|
|
currentPage3: 5,
|
|
@@ -330,8 +333,8 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
item: [
|
|
|
- { type: '', label: '正常' }
|
|
|
- ],
|
|
|
+ { type: '', label: '正常' }
|
|
|
+ ],
|
|
|
multipleSelection: [],
|
|
|
showColumn: {
|
|
|
inviteid: true,
|
|
@@ -343,7 +346,7 @@ export default {
|
|
|
planwant: true,
|
|
|
wantnumber: true,
|
|
|
post: true,
|
|
|
- time:true,
|
|
|
+ time: true,
|
|
|
},
|
|
|
}
|
|
|
},
|
|
@@ -381,6 +384,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ add() {
|
|
|
+ this.showDialog = true
|
|
|
+ this.dialogText = '只能由操作员新增招聘人员!'
|
|
|
+ },
|
|
|
+ amend() {
|
|
|
+ this.showDialog = true
|
|
|
+ this.dialogText = '只能修改由操作员新增的招聘人员!'
|
|
|
+ },
|
|
|
+ delet() {
|
|
|
+ this.showDialog = true
|
|
|
+ this.dialogText = '请至少选择一条记录!'
|
|
|
+ },
|
|
|
+ derive() {
|
|
|
+ this.showDialog = true
|
|
|
+ this.dialogText = '确定导出所有类型吗?'
|
|
|
+ },
|
|
|
handleEdit(index, row) {
|
|
|
console.log(index, row);
|
|
|
},
|
|
@@ -423,6 +442,7 @@ export default {
|
|
|
},
|
|
|
name: "contract",
|
|
|
components: {
|
|
|
+ Dialog,
|
|
|
planHeader,
|
|
|
planCon,
|
|
|
},
|
|
@@ -575,10 +595,12 @@ export default {
|
|
|
.date {
|
|
|
width: 280px;
|
|
|
}
|
|
|
+
|
|
|
.types {
|
|
|
height: 28px;
|
|
|
line-height: 27px;
|
|
|
}
|
|
|
+
|
|
|
.site {
|
|
|
height: 28px;
|
|
|
line-height: 27px;
|