|  | @@ -16,6 +16,7 @@ import DataTableSlot from './DataTableSlot.vue';
 | 
											
												
													
														|  |  import EditDrawer from './EditDrawer.vue';
 |  |  import EditDrawer from './EditDrawer.vue';
 | 
											
												
													
														|  |  import NoticeDialog from '/src/views/product-manage/product-list/component/NoticeDialog.vue';
 |  |  import NoticeDialog from '/src/views/product-manage/product-list/component/NoticeDialog.vue';
 | 
											
												
													
														|  |  import * as api from '../api';
 |  |  import * as api from '../api';
 | 
											
												
													
														|  | 
 |  | +import CreateDialog from '/@/views/sku-manage/product-category/component/CreateDialog.vue';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  interface Parameter {
 |  |  interface Parameter {
 | 
											
										
											
												
													
														|  | @@ -67,6 +68,7 @@ const gridOptions: any = reactive({
 | 
											
												
													
														|  |  });
 |  |  });
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const editOpen = ref(false);
 |  |  const editOpen = ref(false);
 | 
											
												
													
														|  | 
 |  | +const createOpen = ref(false);
 | 
											
												
													
														|  |  const rowData = ref({});
 |  |  const rowData = ref({});
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const dialogVisible = ref(false);
 |  |  const dialogVisible = ref(false);
 | 
											
										
											
												
													
														|  | @@ -97,6 +99,10 @@ function handleEdit(row: any) {
 | 
											
												
													
														|  |    rowData.value = row;
 |  |    rowData.value = row;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +function handleCreate() {
 | 
											
												
													
														|  | 
 |  | +	createOpen.value = true;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  async function singleDelete(row: any) {
 |  |  async function singleDelete(row: any) {
 | 
											
												
													
														|  |    const res = await useResponse(api.deleteRow, row);
 |  |    const res = await useResponse(api.deleteRow, row);
 | 
											
												
													
														|  |    if (res.code === 2000) {
 |  |    if (res.code === 2000) {
 | 
											
										
											
												
													
														|  | @@ -123,7 +129,7 @@ defineExpose({ fetchList });
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  |    <vxe-grid ref="gridRef" v-bind="gridOptions" v-on="gridEvents">
 |  |    <vxe-grid ref="gridRef" v-bind="gridOptions" v-on="gridEvents">
 | 
											
												
													
														|  |      <template #toolbar_buttons>
 |  |      <template #toolbar_buttons>
 | 
											
												
													
														|  | -      <PermissionButton type="primary" :icon="Plus" plain round>新 增</PermissionButton>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <PermissionButton type="primary" :icon="Plus" plain round @click="handleCreate">新 增</PermissionButton>
 | 
											
												
													
														|  |      </template>
 |  |      </template>
 | 
											
												
													
														|  |      <!-- 工具栏右侧 -->
 |  |      <!-- 工具栏右侧 -->
 | 
											
												
													
														|  |      <template #toolbar_tools>
 |  |      <template #toolbar_tools>
 | 
											
										
											
												
													
														|  | @@ -174,6 +180,8 @@ defineExpose({ fetchList });
 | 
											
												
													
														|  |    </vxe-grid>
 |  |    </vxe-grid>
 | 
											
												
													
														|  |    <EditDrawer v-if="editOpen" v-model="editOpen" :row-data="rowData" @refresh="handleRefresh" />
 |  |    <EditDrawer v-if="editOpen" v-model="editOpen" :row-data="rowData" @refresh="handleRefresh" />
 | 
											
												
													
														|  |    <NoticeDialog v-if="dialogVisible" v-model="dialogVisible" :row-data="rowData" />
 |  |    <NoticeDialog v-if="dialogVisible" v-model="dialogVisible" :row-data="rowData" />
 | 
											
												
													
														|  | 
 |  | +	<CreateDialog v-if="createOpen" v-model="createOpen" @refresh="fetchList" />
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <style scoped>
 |  |  <style scoped>
 |