From ecbcc17087ff2909d3749e08d86c81d3c32291a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E4=BD=B3=E9=91=AB?= Date: Thu, 20 Oct 2022 16:53:21 +0800 Subject: [PATCH] =?UTF-8?q?style:=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2,?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=BF=94=E5=9B=9E=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/StuAdd.vue | 18 ++++++++++++++++-- src/views/projectcenter/TaskPage.vue | 21 ++++++++++----------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/src/components/drawers/StuAdd.vue b/src/components/drawers/StuAdd.vue index 2c44005f..e092a019 100644 --- a/src/components/drawers/StuAdd.vue +++ b/src/components/drawers/StuAdd.vue @@ -18,7 +18,7 @@
- +
@@ -60,7 +60,7 @@ :data-source="tabledata" :loading="tableDataTotal === -1 ? true : false" expandRowByClick="true" - :scroll="{ x: 560, y: 560 }" + :scroll="{ x: 540, y: 560 }" @expand="expandTable" :pagination="false" :row-selection="{ @@ -201,6 +201,7 @@ export default { pageSize: 10, currentPage: 1, tableDataTotal: 50, + stuaddTab: "1", organizeList: [ { id: 1, @@ -392,6 +393,10 @@ export default { width: 40, align: "center", className: "h", + sorter: { + compare: (a, b) => a.time - b.time, + multiple: 3, + }, }, { title: "人数", @@ -421,8 +426,13 @@ export default { }); const closeDrawer = () => { ctx.emit("update:Stuvisible", false); + state.stuaddTab = "1"; }; + const stuaddChange = (e) => { + state.stuaddTab = e; + } + const afterVisibleChange = (bool) => { console.log("state", bool); }; @@ -432,6 +442,7 @@ export default { afterVisibleChange, closeDrawer, // change, + stuaddChange, }; }, }; @@ -439,6 +450,9 @@ export default {