diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 858329a..4466e0e 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -53,6 +53,7 @@ export default defineComponent({ type: Array as PropType, default: () => [] }, + stripe: propTypes.bool.def(true), searchTableSelectionsList:[],//回显列表 }, emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort'], @@ -307,7 +308,7 @@ export default defineComponent({ onSelection-change={selectionChange} onSort-change={sortChange} {...unref(getBindValue)} - stripe + stripe={unref(getProps).stripe} > {{ default: () => rnderTableColumn(), diff --git a/src/views/eam/report/itemWarning/index.vue b/src/views/eam/report/itemWarning/index.vue index 5e28bd5..c445592 100644 --- a/src/views/eam/report/itemWarning/index.vue +++ b/src/views/eam/report/itemWarning/index.vue @@ -10,7 +10,7 @@ - @@ -253,6 +253,22 @@ templateUrl: '', templateTitle: '物料导入模版.xlsx' }) + + function tableRowClassName({row, rowIndex}) { + console.log(row.classification); + if (row.classification =='A') { + return { + background: 'red !important' + }; + } + if (row.classification =='B') { + return { + background: 'yellow !important' + }; + } + return ''; + } + // 导入成功之后 const importSuccess = () => { @@ -274,9 +290,31 @@ }) diff --git a/src/views/eam/report/itemWarning/itemWarning.data.ts b/src/views/eam/report/itemWarning/itemWarning.data.ts index 334f1d2..f5c4bcd 100644 --- a/src/views/eam/report/itemWarning/itemWarning.data.ts +++ b/src/views/eam/report/itemWarning/itemWarning.data.ts @@ -27,7 +27,6 @@ export const Item = useCrudSchemas(reactive([ isSearch: true, table: { width: 180, - fixed: 'left' }, }, { @@ -187,13 +186,12 @@ export const Item = useCrudSchemas(reactive([ width: 180 }, }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } - } + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // } + // } ]))