|
|
@@ -3,9 +3,9 @@
|
|
|
<div class="inventory_current"
|
|
|
:loading="loading">
|
|
|
<Filter @search="search">
|
|
|
- <BtnList :btnList="commonBtn" />
|
|
|
+ <BtnList :btnList="firstBtn" />
|
|
|
</Filter>
|
|
|
- <contextMenu :contextMenuList="forDataBtn">
|
|
|
+ <contextMenu :contextMenuList="secondBtn">
|
|
|
<a-table :columns="columns"
|
|
|
class="topTable hiddenFirstCol"
|
|
|
:pagination="false"
|
|
|
@@ -15,7 +15,7 @@
|
|
|
:data-source="tableList">
|
|
|
<!-- 额外的展开行 -->
|
|
|
<template #expandedRowRender="{ }">
|
|
|
- <BtnList :btnList="forDataBtn" />
|
|
|
+ <BtnList :btnList="secondBtn" />
|
|
|
</template>
|
|
|
<!-- <template #userinfotype="{ text }">
|
|
|
<a>{{ text === '2' ? '企业' : '个人'}}</a>
|
|
|
@@ -46,7 +46,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
import Filter from '../../components/filterTable/index.vue';
|
|
|
import Add from '../../components/add/index.vue';
|
|
|
|
|
|
@@ -67,7 +67,8 @@ export default defineComponent({
|
|
|
// 表格事件
|
|
|
const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<Ermcp3AreaStockApply>({});
|
|
|
// 表格操作按钮列表
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('inventory_applyrecord', false);
|
|
|
+ const [firstBtn, secondBtn] = _getBtnList('inventory_applyrecord', false).value;
|
|
|
+
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
|
|
|
@@ -90,8 +91,8 @@ export default defineComponent({
|
|
|
expandedRowKeys,
|
|
|
selectedRow,
|
|
|
Rowclick,
|
|
|
- commonBtn,
|
|
|
- forDataBtn,
|
|
|
+ firstBtn,
|
|
|
+ secondBtn,
|
|
|
loading,
|
|
|
tableList,
|
|
|
search,
|