mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
查看样式修改
This commit is contained in:
@@ -154,11 +154,17 @@
|
|||||||
>
|
>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
<stu-score-detail v-model:Svisible="Svisible" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import StuScoreDetail from "../../components/drawers/StuScoreDetail";
|
||||||
import { reactive, toRefs } from "vue";
|
import { reactive, toRefs } from "vue";
|
||||||
export default {
|
export default {
|
||||||
name: "ProjectScore",
|
name: "ProjectScore",
|
||||||
|
components:{
|
||||||
|
StuScoreDetail,
|
||||||
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tabledataStu: [
|
tabledataStu: [
|
||||||
@@ -170,7 +176,7 @@ export default {
|
|||||||
group: "好好学习",
|
group: "好好学习",
|
||||||
diploma: "0",
|
diploma: "0",
|
||||||
operation: "查看",
|
operation: "查看",
|
||||||
putin: "手动加入",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
@@ -180,7 +186,7 @@ export default {
|
|||||||
group: "天天向上",
|
group: "天天向上",
|
||||||
diploma: "0",
|
diploma: "0",
|
||||||
operation: "查看",
|
operation: "查看",
|
||||||
putin: "手动加入",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
@@ -190,7 +196,7 @@ export default {
|
|||||||
group: "好好学习",
|
group: "好好学习",
|
||||||
diploma: "0",
|
diploma: "0",
|
||||||
operation: "查看",
|
operation: "查看",
|
||||||
putin: "手动加入",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 4,
|
key: 4,
|
||||||
@@ -200,7 +206,7 @@ export default {
|
|||||||
group: "天天向上",
|
group: "天天向上",
|
||||||
diploma: "0",
|
diploma: "0",
|
||||||
operation: "查看",
|
operation: "查看",
|
||||||
putin: "手动加入",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -317,10 +323,36 @@ export default {
|
|||||||
todayvalue: "1",
|
todayvalue: "1",
|
||||||
tableDataTotal: 30,
|
tableDataTotal: 30,
|
||||||
stuValue: false,
|
stuValue: false,
|
||||||
|
Svisible:false,
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
const getTableData = () => {
|
||||||
|
let datas = state.tabledataStu;
|
||||||
|
datas.map((value) => {
|
||||||
|
{
|
||||||
|
//单层项目
|
||||||
|
value.operation = (
|
||||||
|
<div class="operation">
|
||||||
|
<div
|
||||||
|
class="jc"
|
||||||
|
onClick={() => {
|
||||||
|
state.Svisible = true;
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
state.tabledataStu = datas;
|
||||||
|
};
|
||||||
|
getTableData();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -328,6 +360,7 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.contentscore {
|
.contentscore {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
margin-bottom: 100px;
|
||||||
.ant-tabs-tab-btn {
|
.ant-tabs-tab-btn {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -389,6 +422,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-table-tbody{
|
||||||
|
.operation{
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.scorelist {
|
.scorelist {
|
||||||
padding-left: 20%;
|
padding-left: 20%;
|
||||||
|
|||||||
340
src/components/drawers/StuScoreDetail.vue
Normal file
340
src/components/drawers/StuScoreDetail.vue
Normal file
@@ -0,0 +1,340 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
:visible="Svisible"
|
||||||
|
class="drawerStyle StuScore"
|
||||||
|
placement="right"
|
||||||
|
width="70%"
|
||||||
|
@after-visible-change="afterVisibleChange"
|
||||||
|
>
|
||||||
|
<div class="drawerMain">
|
||||||
|
<div class="header">
|
||||||
|
<div class="headerTitle">学员获取详情</div>
|
||||||
|
<img
|
||||||
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
|
src="../../assets/images/basicinfo/close.png"
|
||||||
|
@click="closeDrawer"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="main">
|
||||||
|
|
||||||
|
<div class="tableBox" style="margin-top: 20px; margin-bottom: 100px">
|
||||||
|
<a-table
|
||||||
|
style="border: 1px solid #f2f6fe"
|
||||||
|
:columns="tablecolumns"
|
||||||
|
:data-source="tabledata"
|
||||||
|
:loading="tableDataTotal === -1 ? true : false"
|
||||||
|
|
||||||
|
:scroll="{ x: 900, y: 560 }"
|
||||||
|
@expand="expandTable"
|
||||||
|
:pagination="false"
|
||||||
|
|
||||||
|
/>
|
||||||
|
<div class="pa">
|
||||||
|
<a-pagination
|
||||||
|
showSizeChanger="true"
|
||||||
|
showQuickJumper="true"
|
||||||
|
hideOnSinglePage="true"
|
||||||
|
:pageSize="pageSize"
|
||||||
|
:current="currentPage"
|
||||||
|
:total="tableDataTotal"
|
||||||
|
class="pagination"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="btnn">
|
||||||
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
|
<button class="btn2" @click="closeDrawer">确定</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { toRefs, reactive } from "vue";
|
||||||
|
export default {
|
||||||
|
name: "StuScoreDetail",
|
||||||
|
props: {
|
||||||
|
Svisible: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
setup(props, ctx) {
|
||||||
|
const state = reactive({
|
||||||
|
name: null,
|
||||||
|
|
||||||
|
pageSize: 10,
|
||||||
|
currentPage: 1,
|
||||||
|
tableDataTotal: 100,
|
||||||
|
selectedRowKeys: [],
|
||||||
|
|
||||||
|
tabledata: [
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
time: "2019-12-12 12:12",
|
||||||
|
score: "12",
|
||||||
|
type: "完成任务",
|
||||||
|
from: "【在线】如何成为产品经理",
|
||||||
|
|
||||||
|
},
|
||||||
|
],
|
||||||
|
tablecolumns: [
|
||||||
|
{
|
||||||
|
title: "获取时间",
|
||||||
|
dataIndex: "time",
|
||||||
|
key: "time",
|
||||||
|
width: 40,
|
||||||
|
align: "left",
|
||||||
|
className: "h head",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "积分",
|
||||||
|
dataIndex: "score",
|
||||||
|
key: "score",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
|
className: "h",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "类型",
|
||||||
|
dataIndex: "type",
|
||||||
|
key: "type",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
|
className: "h",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "来源",
|
||||||
|
dataIndex: "from",
|
||||||
|
key: "from",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
|
className: "h",
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
});
|
||||||
|
const closeDrawer = () => {
|
||||||
|
ctx.emit("update:Svisible", false);
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
...toRefs(state),
|
||||||
|
closeDrawer,
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" >
|
||||||
|
.StuScore{
|
||||||
|
.drawerMain {
|
||||||
|
min-width: 600px;
|
||||||
|
margin: 0px 32px 0px 32px;
|
||||||
|
overflow-x: scroll;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
height: 73px;
|
||||||
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
// background-color: red;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
.headerTitle {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 25px;
|
||||||
|
// margin-left: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
// background-color: #bfa;
|
||||||
|
// overflow-y: auto;
|
||||||
|
.endtime {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.tableBox {
|
||||||
|
.ant-table-selection-column {
|
||||||
|
padding: 0px !important;
|
||||||
|
// padding-left: 45px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-table-thead > tr > th {
|
||||||
|
background-color: rgba(239, 244, 252, 1) !important;
|
||||||
|
color: rgba(0, 0, 0, 0.8500);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-table-cell {
|
||||||
|
color: rgba(0, 0, 0, 0.6500);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-table-selection-column {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
th.h {
|
||||||
|
background-color: #eff4fc !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ant-table-tbody
|
||||||
|
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||||
|
> td {
|
||||||
|
|
||||||
|
background: #f6f9fd;
|
||||||
|
}
|
||||||
|
.ant-table-tbody > tr > td {
|
||||||
|
border-bottom: 1px solid rgba(240, 244, 254, 1);
|
||||||
|
padding: 16px 16px;
|
||||||
|
.operation {
|
||||||
|
color: rgba(56, 125, 247, 1);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pa {
|
||||||
|
// left: 0;
|
||||||
|
margin-top: 15px;
|
||||||
|
width: 100%;
|
||||||
|
// height: 20px;
|
||||||
|
// background-color: red;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
// position: absolute;
|
||||||
|
// bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnn {
|
||||||
|
height: 72px;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||||
|
|
||||||
|
.btn1 {
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
border: 1px solid #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #4ea6ff;
|
||||||
|
background-color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn2 {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
background: #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 0;
|
||||||
|
margin-left: 15px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user