|  | @@ -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-attribute/component/createDialog.vue';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  interface Parameter {
 |  |  interface Parameter {
 | 
											
										
											
												
													
														|  | @@ -75,6 +76,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);
 | 
											
										
											
												
													
														|  | @@ -111,6 +113,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) {
 | 
											
										
											
												
													
														|  | @@ -119,9 +125,6 @@ async function singleDelete(row: any) {
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -async function handleDownload() {
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  const gridEvents = {
 |  |  const gridEvents = {
 | 
											
												
													
														|  |    custom ({ type }: any) {
 |  |    custom ({ type }: any) {
 | 
											
												
													
														|  |      // console.log(`点击 ${type}`)
 |  |      // console.log(`点击 ${type}`)
 | 
											
										
											
												
													
														|  | @@ -137,40 +140,15 @@ 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>
 | 
											
												
													
														|  | -      <el-button circle class="toolbar-btn" @click="handleRefresh">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-button circle class="toolbar-btn mr-3" @click="handleRefresh">
 | 
											
												
													
														|  |          <el-icon>
 |  |          <el-icon>
 | 
											
												
													
														|  |            <Refresh />
 |  |            <Refresh />
 | 
											
												
													
														|  |          </el-icon>
 |  |          </el-icon>
 | 
											
												
													
														|  |        </el-button>
 |  |        </el-button>
 | 
											
												
													
														|  | -      <el-popconfirm
 |  | 
 | 
											
												
													
														|  | -          :icon="InfoFilled"
 |  | 
 | 
											
												
													
														|  | -          icon-color="#626AEF"
 |  | 
 | 
											
												
													
														|  | -          title="是否确认导出当前时间内所有数据项?"
 |  | 
 | 
											
												
													
														|  | -          width="220"
 |  | 
 | 
											
												
													
														|  | -          @confirm="handleDownload"
 |  | 
 | 
											
												
													
														|  | -      >
 |  | 
 | 
											
												
													
														|  | -        <template #reference>
 |  | 
 | 
											
												
													
														|  | -          <el-button circle class="mr-3 toolbar-btn">
 |  | 
 | 
											
												
													
														|  | -            <el-icon>
 |  | 
 | 
											
												
													
														|  | -              <Download />
 |  | 
 | 
											
												
													
														|  | -            </el-icon>
 |  | 
 | 
											
												
													
														|  | -          </el-button>
 |  | 
 | 
											
												
													
														|  | -        </template>
 |  | 
 | 
											
												
													
														|  | -        <template #actions="{ confirm, cancel }">
 |  | 
 | 
											
												
													
														|  | -          <el-button size="small" @click="cancel">No!</el-button>
 |  | 
 | 
											
												
													
														|  | -          <el-button
 |  | 
 | 
											
												
													
														|  | -              size="small"
 |  | 
 | 
											
												
													
														|  | -              type="danger"
 |  | 
 | 
											
												
													
														|  | -              @click="confirm"
 |  | 
 | 
											
												
													
														|  | -          >
 |  | 
 | 
											
												
													
														|  | -            Yes?
 |  | 
 | 
											
												
													
														|  | -          </el-button>
 |  | 
 | 
											
												
													
														|  | -        </template>
 |  | 
 | 
											
												
													
														|  | -      </el-popconfirm>
 |  | 
 | 
											
												
													
														|  |      </template>
 |  |      </template>
 | 
											
												
													
														|  |      <template #pager>
 |  |      <template #pager>
 | 
											
												
													
														|  |        <vxe-pager
 |  |        <vxe-pager
 | 
											
										
											
												
													
														|  | @@ -188,6 +166,7 @@ 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>
 |