diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index f85db68..bff4cff 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -213,6 +213,11 @@ export const columnList = [ key: 'status', scopedSlots: { customRender: 'status' } }, + { + title: '投运时间', + dataIndex: 'operation_date', + key: 'operation_date' + }, { title: '场站运行模式', dataIndex: 'work_mode', @@ -225,10 +230,11 @@ export const columnList = [ key: 'policy_id', scopedSlots: { customRender: 'policy_id' } }, - { title: '操作', dataIndex: 'operate', + fixed: 'right', + key: 'operate', scopedSlots: { customRender: 'action' } } @@ -668,21 +674,9 @@ export const stationOptions = [ label: '场站运行模式', value: undefined, key: 'work_mode', - type: 'select', - list: [ - { - label: '最优经济化', - value: '1' - }, - { - label: '支撑电网稳定', - value: '2' - }, - { - label: '自定义', - value: '3' - } - ] + type: 'slot', + slotName: 'work_mode', + list: [] }, { // 0:未启用,1:启用 @@ -690,7 +684,7 @@ export const stationOptions = [ label: '场站运行策略', value: undefined, key: 'policy_id', - type: 'select', + type: 'unshow', list: [ { label: '削峰套利', diff --git a/web/src/components/ComTable.vue b/web/src/components/ComTable.vue index 4695466..9d2e69a 100644 --- a/web/src/components/ComTable.vue +++ b/web/src/components/ComTable.vue @@ -163,8 +163,6 @@ onMounted(async () => { data.realTableData = [...props.tableData] await nextTick() - // console.log(props.tableH, 'props.tableH'); - console.log(comtable.value.offsetHeight,'comtable.value.offsetHeight'); scroll.value = { y: comtable.value.offsetHeight - 56 } @@ -387,11 +385,15 @@ defineExpose({ ...toRefs(data), loading, mountedScroll, scroll: data.scroll }) background: #082e4a !important; } + :deep(.ant-table.ant-table-has-fix-left.ant-table-middle.ant-table-bordered){ + border-radius: 20px !important; + + } :deep(.ant-table-body) { color:#fff; background: $table-bg !important; - border: 1px solid $table-border; - border-radius: 0px 0px 20px 20px; + // border: 1px solid $table-border; + border-radius: 20px!important; .ant-table-cell { background: var(--theme-bg) !important; } @@ -424,6 +426,8 @@ defineExpose({ ...toRefs(data), loading, mountedScroll, scroll: data.scroll }) } :deep(.ant-table-wrapper .ant-table) { + border: 1px solid $table-border!important; + background-color: transparent !important; } diff --git a/web/src/components/DetailInfo.vue b/web/src/components/DetailInfo.vue index f53fa8f..0ab790a 100644 --- a/web/src/components/DetailInfo.vue +++ b/web/src/components/DetailInfo.vue @@ -455,7 +455,6 @@ function confirm() { resolve(true) }) .catch((error) => { - console.log('error', error) resolve(false) }) } diff --git a/web/src/components/EditCom.vue b/web/src/components/EditCom.vue index 5d4a05a..402e758 100644 --- a/web/src/components/EditCom.vue +++ b/web/src/components/EditCom.vue @@ -8,6 +8,24 @@ :ref="'detailInfo' + index" :disabled="disabled" > + +