1
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="content-view">
|
||||
<div class="table-head-tool">
|
||||
<Button type="primary" @click="showAddWarp">新增简历</Button>
|
||||
<Form ref="formInline" :model="gridOption.param.seachOption" inline :label-width="80">
|
||||
<FormItem :label-width="20" class="flex">
|
||||
<Select v-model="gridOption.param.seachOption.key" style="width: 120px"
|
||||
@@ -29,13 +28,20 @@
|
||||
@changePage="query"></tables>
|
||||
</div>
|
||||
<editModal ref="editModal" :columns="editColumns" :rules="gridOption.rules"></editModal>
|
||||
|
||||
<!-- 详情组件 -->
|
||||
<ResumeInfoDetail ref="resumeDetail" @on-close="handleDetailClose" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import resumeInfoServer from '@/api/profile/resume_info_server.js'
|
||||
import ResumeInfoDetail from './resume_info_detail.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ResumeInfoDetail
|
||||
},
|
||||
data() {
|
||||
let rules = {}
|
||||
rules["sn_code"] = [{ required: true, message: '请填写设备SN码', trigger: 'blur' }]
|
||||
@@ -90,10 +96,17 @@ export default {
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 200,
|
||||
width: 250,
|
||||
type: 'template',
|
||||
render: (h, params) => {
|
||||
let btns = [
|
||||
{
|
||||
title: '查看',
|
||||
type: 'info',
|
||||
click: () => {
|
||||
this.showDetail(params.row)
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '编辑',
|
||||
type: 'primary',
|
||||
@@ -168,6 +181,19 @@ export default {
|
||||
platform: null
|
||||
}
|
||||
this.query(1)
|
||||
},
|
||||
showDetail(row) {
|
||||
// 优先使用 resumeId,如果没有则使用 id
|
||||
const resumeId = row.resumeId || row.id
|
||||
if (resumeId) {
|
||||
this.$refs.resumeDetail.show(resumeId)
|
||||
} else {
|
||||
this.$Message.warning('简历ID不存在')
|
||||
}
|
||||
},
|
||||
handleDetailClose() {
|
||||
// 详情关闭后的回调,可以在这里刷新列表
|
||||
// this.query(this.gridOption.param.pageOption.page)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user