Commit 51bfe549 authored by 张伯涛's avatar 张伯涛

样式问题调整

parent b076f056
...@@ -403,7 +403,7 @@ ...@@ -403,7 +403,7 @@
} }
const created = () => { const created = () => {
mainHeight.value = window.innerHeight - 110; mainHeight.value = window.innerHeight - 100;
mainWidth.value = iscollapse.value mainWidth.value = iscollapse.value
? window.innerWidth - 63 ? window.innerWidth - 63
: window.innerWidth - 200; : window.innerWidth - 200;
......
...@@ -409,6 +409,7 @@ onMounted(() => { ...@@ -409,6 +409,7 @@ onMounted(() => {
<el-table v-loading="loading" :data="tableData" style="width: 60%;font-size: 12px;color: #181818;" <el-table v-loading="loading" :data="tableData" style="width: 60%;font-size: 12px;color: #181818;"
height="calc(100vh - 160px)" height="calc(100vh - 160px)"
:default-sort = "{prop: 'recordDate', order: 'descending'}"
:header-cell-style="{ color: '#225475', backgroundColor: '#B8CFEE', 'text-align': 'center', height: '40px', padding: '0px', border: '1px solid #99bbe8' }" :header-cell-style="{ color: '#225475', backgroundColor: '#B8CFEE', 'text-align': 'center', height: '40px', padding: '0px', border: '1px solid #99bbe8' }"
:cell-style="{ 'text-align': 'center', padding: '0px' }" :row-style="{ height: '40px', padding: '0px' }" border :cell-style="{ 'text-align': 'center', padding: '0px' }" :row-style="{ height: '40px', padding: '0px' }" border
stripe> stripe>
...@@ -425,7 +426,7 @@ onMounted(() => { ...@@ -425,7 +426,7 @@ onMounted(() => {
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="record" label="用度" /> <el-table-column prop="record" label="用度" />
<el-table-column prop="recordDate" label="用度日期" /> <el-table-column prop="recordDate" sortable label="用度日期" />
<el-table-column fixed="right" label="操作"width="120"> <el-table-column fixed="right" label="操作"width="120">
<template #default="scope"> <template #default="scope">
<el-button link type="primary" size="small" @click="handleEdit(scope.row)"> <el-button link type="primary" size="small" @click="handleEdit(scope.row)">
...@@ -521,11 +522,11 @@ onMounted(() => { ...@@ -521,11 +522,11 @@ onMounted(() => {
<style scoped lang="less"> <style scoped lang="less">
.contentBlock { .contentBlock {
position: absolute; //position: absolute;
top: 0; //top: 0;
left: 0; //left: 0;
right: 0; //right: 0;
bottom: 0; //bottom: 0;
background-color: #ffffff; background-color: #ffffff;
overflow: auto; overflow: auto;
overflow-x: hidden; overflow-x: hidden;
......
...@@ -536,7 +536,7 @@ export default defineComponent({ ...@@ -536,7 +536,7 @@ export default defineComponent({
}; };
const created = () => { const created = () => {
mainHeight.value = window.innerHeight - 110; mainHeight.value = window.innerHeight - 100;
mainWidth.value = iscollapse.value mainWidth.value = iscollapse.value
? window.innerWidth - 63 ? window.innerWidth - 63
: window.innerWidth - 200; : window.innerWidth - 200;
......
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