|
|
@@ -1,161 +1,202 @@
|
|
|
<template>
|
|
|
<div class="table-wrapper">
|
|
|
<bs-table v-bind="tableOptions"> </bs-table>
|
|
|
+
|
|
|
+ <HistoryJCProjectModal ref="historyJCProjectModalRef"/>
|
|
|
+ <HistoryJDStateModal ref="historyJDStateModalRef"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="jsx">
|
|
|
-import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
|
|
|
-import { h, onMounted, ref } from 'vue';
|
|
|
-import { message } from 'ant-design-vue';
|
|
|
-import { BorderOuterOutlined, SearchOutlined, PlusSquareOutlined } from '@ant-design/icons-vue';
|
|
|
-import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
|
|
|
+ import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
|
|
|
+ import { h, onMounted, ref } from 'vue';
|
|
|
+ import { message } from 'ant-design-vue';
|
|
|
+ import { BorderOuterOutlined, SearchOutlined, PlusSquareOutlined } from '@ant-design/icons-vue';
|
|
|
+ import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
|
|
|
+ import HistoryJCProjectModal from './HistoryJCProject.vue';
|
|
|
+ import HistoryJDStateModal from './HistoryJDState.vue';
|
|
|
|
|
|
-const handleEdit = (row) => {};
|
|
|
+ const historyJCProjectModalRef = ref(null);
|
|
|
+ const historyJDStateModalRef = ref(null);
|
|
|
|
|
|
-const {
|
|
|
- tableOptions,
|
|
|
- setTablePropsValue: setValue,
|
|
|
- getTablePropsValue: getValue,
|
|
|
- fetchTableData,
|
|
|
-} = useBsTable({
|
|
|
- tableOptions: {
|
|
|
- gridOptions: {
|
|
|
- loading: false,
|
|
|
- headerAlign: "center",
|
|
|
- columns: [
|
|
|
- {
|
|
|
- title: "姓名",
|
|
|
- field: "name",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "性别",
|
|
|
- field: "name1",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "年龄",
|
|
|
- field: "name2",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "联系电话",
|
|
|
- field: "name3",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "部门",
|
|
|
- field: "name4",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "职务",
|
|
|
- field: "name5",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "工作",
|
|
|
- field: "name6",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "职务权重",
|
|
|
- field: "name7",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "邮箱",
|
|
|
- field: "name8",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "上级",
|
|
|
- field: "name9",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "下级",
|
|
|
- field: "name10",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "爱好",
|
|
|
- field: "name11",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "家庭情况",
|
|
|
- field: "name12",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
- {
|
|
|
- title: "家庭地址",
|
|
|
- field: "name13",
|
|
|
- width: '150px'
|
|
|
- },
|
|
|
+ const handleEdit = (row) => {};
|
|
|
+
|
|
|
+ const {
|
|
|
+ tableOptions,
|
|
|
+ setTablePropsValue: setValue,
|
|
|
+ getTablePropsValue: getValue,
|
|
|
+ fetchTableData,
|
|
|
+ } = useBsTable({
|
|
|
+ tableOptions: {
|
|
|
+ data: [
|
|
|
{
|
|
|
- title: "备注",
|
|
|
- field: "name14",
|
|
|
- width: '150px'
|
|
|
+ name: '韩晓辉',
|
|
|
},
|
|
|
- {
|
|
|
- // fixed: 'right',
|
|
|
- cellRender: {
|
|
|
- name: 'CellOption',
|
|
|
- extraProps: {
|
|
|
- buttons: [
|
|
|
- {
|
|
|
- title: '编辑',
|
|
|
- code: 'edit',
|
|
|
- display: ({ row }) => {
|
|
|
- return DISPLAY_STATE.VISIBLE;
|
|
|
- },
|
|
|
- disabled({ row }) {
|
|
|
- return false;
|
|
|
- },
|
|
|
- onClick({ row }) {},
|
|
|
- extraProps: {},
|
|
|
- },
|
|
|
- {
|
|
|
- title: '删除',
|
|
|
- code: 'delete',
|
|
|
- display: ({ row }) => {
|
|
|
- return DISPLAY_STATE.VISIBLE;
|
|
|
+ ],
|
|
|
+ gridOptions: {
|
|
|
+ loading: false,
|
|
|
+ headerAlign: 'center',
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ title: '姓名',
|
|
|
+ field: 'name',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '历史决策项目',
|
|
|
+ field: 'name111',
|
|
|
+ width: '150px',
|
|
|
+ slots: {
|
|
|
+ default: ({ row }) => {
|
|
|
+ return (
|
|
|
+ <a-button type='link' onClick={() => {}}>
|
|
|
+ 查看项目
|
|
|
+ </a-button>
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '历史接待情况',
|
|
|
+ field: 'name222',
|
|
|
+ width: '150px',
|
|
|
+ slots: {
|
|
|
+ default: ({ row }) => {
|
|
|
+ return (
|
|
|
+ <a-button type='link' onClick={() => {}}>
|
|
|
+ 查看项目
|
|
|
+ </a-button>
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '性别',
|
|
|
+ field: 'name1',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '年龄',
|
|
|
+ field: 'name2',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '联系电话',
|
|
|
+ field: 'name3',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '部门',
|
|
|
+ field: 'name4',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '职务',
|
|
|
+ field: 'name5',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工作',
|
|
|
+ field: 'name6',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '职务权重',
|
|
|
+ field: 'name7',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '邮箱',
|
|
|
+ field: 'name8',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '上级',
|
|
|
+ field: 'name9',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '下级',
|
|
|
+ field: 'name10',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '爱好',
|
|
|
+ field: 'name11',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '家庭情况',
|
|
|
+ field: 'name12',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '家庭地址',
|
|
|
+ field: 'name13',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ field: 'name14',
|
|
|
+ width: '150px',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // fixed: 'right',
|
|
|
+ cellRender: {
|
|
|
+ name: 'CellOption',
|
|
|
+ extraProps: {
|
|
|
+ buttons: [
|
|
|
+ {
|
|
|
+ title: '编辑',
|
|
|
+ code: 'edit',
|
|
|
+ display: ({ row }) => {
|
|
|
+ return DISPLAY_STATE.VISIBLE;
|
|
|
+ },
|
|
|
+ disabled({ row }) {
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ onClick({ row }) {},
|
|
|
+ extraProps: {},
|
|
|
},
|
|
|
- disabled({ row }) {
|
|
|
- return false;
|
|
|
+ {
|
|
|
+ title: '删除',
|
|
|
+ code: 'delete',
|
|
|
+ display: ({ row }) => {
|
|
|
+ return DISPLAY_STATE.VISIBLE;
|
|
|
+ },
|
|
|
+ disabled({ row }) {
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ onClick({ row }) {},
|
|
|
+ extraProps: {},
|
|
|
},
|
|
|
- onClick({ row }) {},
|
|
|
- extraProps: {},
|
|
|
- },
|
|
|
- ],
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- },
|
|
|
- ],
|
|
|
- data: [], // 模拟数据源
|
|
|
- },
|
|
|
- searchConfig: {
|
|
|
- enable: false,
|
|
|
- },
|
|
|
- pagerConfig: {
|
|
|
- enable: false,
|
|
|
- },
|
|
|
- toolbarConfig: {
|
|
|
- enable: false,
|
|
|
- displayToolbar: DISPLAY_STATE.HIDDEN,
|
|
|
- leftButtons: [],
|
|
|
+ ],
|
|
|
+ data: [], // 模拟数据源
|
|
|
+ },
|
|
|
+ searchConfig: {
|
|
|
+ enable: false,
|
|
|
+ },
|
|
|
+ pagerConfig: {
|
|
|
+ enable: false,
|
|
|
+ },
|
|
|
+ toolbarConfig: {
|
|
|
+ enable: false,
|
|
|
+ displayToolbar: DISPLAY_STATE.HIDDEN,
|
|
|
+ leftButtons: [],
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
-});
|
|
|
+ });
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-.table-wrapper {
|
|
|
- width: 100%;
|
|
|
- :deep(.vxe-grid--table-container) {
|
|
|
- padding: 0;
|
|
|
+ .table-wrapper {
|
|
|
+ width: 100%;
|
|
|
+ :deep(.vxe-grid--table-container) {
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
</style>
|