|
|
@@ -21,11 +21,15 @@
|
|
|
<a-button @click="search">查询</a-button>
|
|
|
<a-button @click="reset">重置</a-button>
|
|
|
<a-button @click="add">新增</a-button>
|
|
|
+ <!-- 新增弹窗 -->
|
|
|
+ <AddCustom />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref, SetupContext, unref } from 'vue';
|
|
|
+import { defineComponent, ref, SetupContext } from 'vue';
|
|
|
+import AddCustom from '../addCustom/index.vue';
|
|
|
+import { openModal } from '@/setup/controlModal/index';
|
|
|
|
|
|
// 搜索
|
|
|
function handleSearch(context: SetupContext) {
|
|
|
@@ -60,9 +64,13 @@ function handleSearch(context: SetupContext) {
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'filter-custom-table',
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ AddCustom,
|
|
|
+ },
|
|
|
setup(props, context) {
|
|
|
+ const { openAction } = openModal('addCustomInfo');
|
|
|
function add() {
|
|
|
+ openAction();
|
|
|
context.emit('add');
|
|
|
}
|
|
|
return {
|