Commit dda05e7d authored by shangtx's avatar shangtx

feat(年工时基准表): 调整列表样式

parent 1f6b94fd
...@@ -199,6 +199,11 @@ ...@@ -199,6 +199,11 @@
padding-top: 6px !important; padding-top: 6px !important;
} }
.ant-table-middle > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-thead > tr > th {
padding-bottom: 6px !important;
padding-top: 6px !important;
}
.ant-table-middle > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th { .ant-table-middle > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th {
padding-bottom: 6px !important; padding-bottom: 6px !important;
padding-top: 6px !important; padding-top: 6px !important;
...@@ -219,6 +224,10 @@ ...@@ -219,6 +224,10 @@
padding-top: 6px !important; padding-top: 6px !important;
} }
.ant-table-middle > .ant-table-title, .ant-table-middle > .ant-table-content > .ant-table-scroll > .ant-table-footer {
padding: 12px 8px;
}
//列表页样式调整 //列表页样式调整
.ant-advanced-search-form { .ant-advanced-search-form {
margin-bottom: 5px !important; margin-bottom: 5px !important;
......
...@@ -81,7 +81,6 @@ export default { ...@@ -81,7 +81,6 @@ export default {
methods: { methods: {
loadData() { loadData() {
getAnnualConsume(this.year).then(({ data }) => { getAnnualConsume(this.year).then(({ data }) => {
console.info(data);
const dv = new DataSet.View().source(data[1]); const dv = new DataSet.View().source(data[1]);
this.standard = data[0]; this.standard = data[0];
dv.transform({ dv.transform({
...@@ -97,8 +96,7 @@ export default { ...@@ -97,8 +96,7 @@ export default {
itemFormatter(text) { itemFormatter(text) {
return this.legendMap[text]; return this.legendMap[text];
}, },
yearChange(value) { yearChange() {
console.info("year", value);
this.loadData(); this.loadData();
}, },
}, },
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<div> <div>
<a-table <a-table
size="middle" size="middle"
:scroll="{ y: webHeight }"
@change="sortChange" @change="sortChange"
:columns="reactiveColumns" :columns="reactiveColumns"
:dataSource="dataSource" :dataSource="dataSource"
...@@ -186,6 +187,7 @@ export default { ...@@ -186,6 +187,7 @@ export default {
restDays: [], restDays: [],
standardConsume: 8, standardConsume: 8,
projectOptions: [], projectOptions: [],
webHeight: 0,
}; };
}, },
computed: { computed: {
...@@ -310,6 +312,7 @@ export default { ...@@ -310,6 +312,7 @@ export default {
}, },
}, },
mounted() { mounted() {
this.webHeight = document.documentElement.clientHeight - 250;
getSelectableProjects().then(({ data }) => { getSelectableProjects().then(({ data }) => {
if (data && data.length) { if (data && data.length) {
this.projectOptions = data.map((d) => ({ this.projectOptions = data.map((d) => ({
......
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