Commit dda05e7d authored by shangtx's avatar shangtx

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

parent 1f6b94fd
......@@ -199,6 +199,11 @@
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 {
padding-bottom: 6px !important;
padding-top: 6px !important;
......@@ -219,6 +224,10 @@
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 {
margin-bottom: 5px !important;
......
......@@ -81,7 +81,6 @@ export default {
methods: {
loadData() {
getAnnualConsume(this.year).then(({ data }) => {
console.info(data);
const dv = new DataSet.View().source(data[1]);
this.standard = data[0];
dv.transform({
......@@ -97,8 +96,7 @@ export default {
itemFormatter(text) {
return this.legendMap[text];
},
yearChange(value) {
console.info("year", value);
yearChange() {
this.loadData();
},
},
......
......@@ -56,6 +56,7 @@
<div>
<a-table
size="middle"
:scroll="{ y: webHeight }"
@change="sortChange"
:columns="reactiveColumns"
:dataSource="dataSource"
......@@ -186,6 +187,7 @@ export default {
restDays: [],
standardConsume: 8,
projectOptions: [],
webHeight: 0,
};
},
computed: {
......@@ -310,6 +312,7 @@ export default {
},
},
mounted() {
this.webHeight = document.documentElement.clientHeight - 250;
getSelectableProjects().then(({ data }) => {
if (data && data.length) {
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