Commit 2a825f89 by linjinhong

fix:修复打包错误

parent dcb5cae7
...@@ -51,12 +51,17 @@ export default defineComponent({ ...@@ -51,12 +51,17 @@ export default defineComponent({
type: Boolean, type: Boolean,
default: true, default: true,
}, },
otherAttrs: {
type: Object,
default: () => ({}),
},
}, },
emits: ['update:modelValue', 'checkbox-change', 'getCheckboxRecords'], emits: ['update:modelValue', 'checkbox-change', 'getCheckboxRecords'],
setup(props, { emit, attrs }) { setup(props, { emit, attrs }) {
const tableRef = ref<VxeTableInstance | null>(null) const tableRef = ref<VxeTableInstance | null>(null)
const tableData = ref<Record<string, unknown>[]>([]) const tableData = ref<Record<string, unknown>[]>([])
const tableColumns = ref<TableColumn[]>([]) const tableColumns = ref<TableColumn[]>([])
const editConfig = computed(() => { const editConfig = computed(() => {
return { return {
trigger: 'dblclick', trigger: 'dblclick',
...@@ -139,10 +144,21 @@ export default defineComponent({ ...@@ -139,10 +144,21 @@ export default defineComponent({
{...this.attrs} {...this.attrs}
> >
{this.isShowCheckBox && ( {this.isShowCheckBox && (
<vxe-column type="checkbox" width="50" align="center"></vxe-column> <vxe-column
type="checkbox"
width="50"
align="center"
{...this.otherAttrs}
></vxe-column>
)} )}
<vxe-column align="center" type="seq" width="50" title="序号" /> <vxe-column
align="center"
type="seq"
width="50"
title="序号"
{...this.otherAttrs}
/>
{this.tableColumns.map((item: TableColumn, index: number) => ( {this.tableColumns.map((item: TableColumn, index: number) => (
<vxe-column <vxe-column
key={index} key={index}
......
...@@ -85,8 +85,8 @@ export interface ProductList { ...@@ -85,8 +85,8 @@ export interface ProductList {
templatePrice?: number templatePrice?: number
variantImage?: string variantImage?: string
craftPrice?: number craftPrice?: number
craftCode: string craftCode?: string
platform: string platform?: string
imageAry?: string imageAry?: string
designImages?: string designImages?: string
categoryId?: number categoryId?: number
......
...@@ -43,6 +43,9 @@ ...@@ -43,6 +43,9 @@
align="center" align="center"
border="full" border="full"
@getCheckboxRecords="handleCheckboxRecords" @getCheckboxRecords="handleCheckboxRecords"
:otherAttrs="{
fixed: 'left',
}"
></CustomizeTable> ></CustomizeTable>
</div> </div>
</div> </div>
...@@ -232,6 +235,7 @@ async function getList(data?: { ...@@ -232,6 +235,7 @@ async function getList(data?: {
{ {
prop: 'zoneName', prop: 'zoneName',
label: '分区', label: '分区',
attrs: { 'min-width': '100px', fixed: 'left' },
}, },
] ]
const newConfig = [] const newConfig = []
...@@ -243,6 +247,7 @@ async function getList(data?: { ...@@ -243,6 +247,7 @@ async function getList(data?: {
label: key, label: key,
attrs: { attrs: {
'edit-render': {}, 'edit-render': {},
'min-width': '300px',
}, },
render: { render: {
edit: ({ edit: ({
......
...@@ -1159,7 +1159,7 @@ ...@@ -1159,7 +1159,7 @@
> >
<template <template
#top_right #top_right
v-if="['ZPZY', 'CXZY', 'THZY'].includes(cardItem.craftCode)" v-if="['ZPZY', 'CXZY', 'THZY'].includes(cardItem.craftCode as string)"
> >
<img <img
:src="`/images/pic/${cardItem.craftCode}.png`" :src="`/images/pic/${cardItem.craftCode}.png`"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment