|
@@ -100,6 +100,7 @@
|
|
|
</template>
|
|
|
<template v-if="column.key === 'operation'">
|
|
|
<div class="table-operation">
|
|
|
+ <a-button type="link" size="small" @click='onDetail(record)' functioncode="T01020201">查看</a-button>
|
|
|
<a-button type="link" size="small" @click='onEdit(record)' functioncode="T01020203">编辑</a-button>
|
|
|
<a-button type="link" size="small" @click="onDel(record)" functioncode="T01020204">删除</a-button>
|
|
|
<a-button type="link" size="small" @click="onRecommendJob(record)" functioncode="T01030207">推荐求职人员</a-button>
|
|
@@ -113,16 +114,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {reactive, ref, computed, defineComponent, createVNode} from 'vue';
|
|
|
-import {DownOutlined, UpOutlined} from '@ant-design/icons-vue';
|
|
|
-import type {FormInstance} from 'ant-design-vue';
|
|
|
+import {computed, createVNode, defineComponent, reactive, ref} from 'vue';
|
|
|
+import {DownOutlined, ExclamationCircleOutlined, UpOutlined} from '@ant-design/icons-vue';
|
|
|
+import type {FormInstance, TableColumnsType, TableProps} from 'ant-design-vue';
|
|
|
import {Modal, SelectProps} from 'ant-design-vue';
|
|
|
-import type {TableColumnsType, TableProps} from 'ant-design-vue';
|
|
|
-import {getList, del} from '@/api/companyService/post';
|
|
|
+import {del, getList} from '@/api/companyService/post';
|
|
|
import BExportExcel from "@/components/basic/excel/exportExcel/exportExcel.vue";
|
|
|
import BImportExcel from '@/components/basic/excel/importExcel/importExcel.vue';
|
|
|
import {getPaginationTotalTitle} from "@/utils/common";
|
|
|
-import {ExclamationCircleOutlined} from '@ant-design/icons-vue';
|
|
|
import dayjs from 'dayjs';
|
|
|
import {useRoute} from 'vue-router';
|
|
|
import {useTabsViewStore} from "@/store/modules/tabsView";
|
|
@@ -215,7 +214,7 @@ export default defineComponent({
|
|
|
{title: '联系人', dataIndex: 'userName', key: 'userName', align: "center"},
|
|
|
{title: '联系电话', dataIndex: 'userMobile', key: 'userMobile', width: 200, align: "center"},
|
|
|
{title: '推荐数量', dataIndex: 'recommendNum',key: 'recommendNum',width: 100, align: "center"},
|
|
|
- {title: '操作', key: 'operation', fixed: 'right', width: 200, align: "center"},
|
|
|
+ {title: '操作', key: 'operation', fixed: 'right', width: 240, align: "center"},
|
|
|
];
|
|
|
const pagination = computed(() => ({
|
|
|
total: formState.total,
|
|
@@ -241,6 +240,9 @@ export default defineComponent({
|
|
|
const onEdit = (item: any) => {
|
|
|
tabsViewStore.addTabByPath('/companyService/post/edit', {id: item.postID});
|
|
|
};
|
|
|
+ const onDetail = (item: any) => {
|
|
|
+ tabsViewStore.addTabByPath('/companyService/post/detail', {id: item.postID});
|
|
|
+ };
|
|
|
|
|
|
const onRecommendJob = (item) =>{
|
|
|
recommendRef.value.show(item.professionID,item.professionName,item.postID,item.companyName,0,'推荐求职人员');
|
|
@@ -330,7 +332,8 @@ export default defineComponent({
|
|
|
onRecommendInfo,
|
|
|
expand,
|
|
|
postStatusList,
|
|
|
- companyList
|
|
|
+ companyList,
|
|
|
+ onDetail
|
|
|
};
|
|
|
},
|
|
|
created() {
|