mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:修改调研基础信息
This commit is contained in:
441
src/components/drawers/AddOnline.vue
Normal file
441
src/components/drawers/AddOnline.vue
Normal file
@@ -0,0 +1,441 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="addonlineVisible"
|
||||
class="drawerStyle"
|
||||
width="80%"
|
||||
title="添加在线"
|
||||
placement="right"
|
||||
@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="contentMain">
|
||||
<div class="main_items">
|
||||
<div class="mi_ipts">
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">课程编号:</div>
|
||||
<div class="fi_input">
|
||||
<a-input
|
||||
v-model:value="value1"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入项目名称"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">内容分类:</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 200px"
|
||||
placeholder="请选择"
|
||||
:options="options1"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mi_btns">
|
||||
<div class="btn btn1">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">重置</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_notice">
|
||||
<div class="mntc_left">
|
||||
<div class="notice_icon"></div>
|
||||
<span style="color:rgba(0, 0, 0, .65); margin-right:17px;">已选择 <span style="color:#388BE1;">4</span> 项</span>
|
||||
<span style="color:rgba(0, 0, 0, .65)">列表选项总计:<span>14</span> 条</span>
|
||||
</div>
|
||||
<div class="mntc_right">
|
||||
<span style="color:#387DF7; margin-right:24px;">清空</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_table">
|
||||
<a-table class="ant-table-striped"
|
||||
:row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)"
|
||||
:row-selection="rowSelection"
|
||||
:columns="columns1"
|
||||
:data-source="tableData1"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:pagination="{
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
hideOnSinglePage: true,
|
||||
pageSizeOptions: [],
|
||||
pageSize: pageSize,
|
||||
current: currentPage,
|
||||
total: tableDataTotal,
|
||||
onChange: (page, pageSize) => {
|
||||
currentPage = page;
|
||||
// console.log('page', page)
|
||||
// 加翻页查找代码
|
||||
// this.setState({
|
||||
// currentPage: page,
|
||||
// }, () => {
|
||||
// this.getMilitaryDeployment()
|
||||
// })
|
||||
},
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
const options1 = ref([
|
||||
{
|
||||
value: "value1",
|
||||
label: "请选择状态",
|
||||
},
|
||||
]);
|
||||
const columns1 = [
|
||||
{
|
||||
title: "课程编号",
|
||||
width: '20%',
|
||||
dataIndex: "num",
|
||||
key: "num",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "名称",
|
||||
width: '20%',
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "内容分类",
|
||||
width: '13%',
|
||||
dataIndex: "content",
|
||||
key: "content",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "授课教师",
|
||||
width: '13%',
|
||||
dataIndex: "teacher",
|
||||
key: "teacher",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "创建人",
|
||||
width: '13%',
|
||||
dataIndex: "creator",
|
||||
key: "creator",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "完成时间",
|
||||
width: '20%',
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
align: "center",
|
||||
},
|
||||
]
|
||||
const rowSelection = ref({
|
||||
checkStrictly: false,
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
||||
},
|
||||
onSelect: (record, selected, selectedRows) => {
|
||||
console.log(record, selected, selectedRows);
|
||||
},
|
||||
onSelectAll: (selected, selectedRows, changeRows) => {
|
||||
console.log(selected, selectedRows, changeRows);
|
||||
},
|
||||
});
|
||||
export default {
|
||||
name: "AddOnline",
|
||||
props: {
|
||||
addonlineVisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
tableData1: [
|
||||
{
|
||||
key: "1",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'通用力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
num: 'JDF2022071100001',
|
||||
name:'管理能力课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
num: 'JDF2022071100001',
|
||||
name:'快速换模SMED',
|
||||
content:'通用力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
num: 'JDF2022071100001',
|
||||
name:'巧妙对话人见人夸',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
num: 'JDF2022071100001',
|
||||
name:'管理能力课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "7",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "8",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "9",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
],
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
pageSize: 10,
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:addonlineVisible", false);
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("state", bool);
|
||||
};
|
||||
const showDrawerOnline = () => {
|
||||
state.visible = true;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
showDrawerOnline,
|
||||
closeDrawer,
|
||||
options1,
|
||||
columns1,
|
||||
rowSelection,
|
||||
// change,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.ant-table-striped :deep(.table-striped) td {
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
.drawerStyle {
|
||||
.drawerMain {
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.contentMain {
|
||||
.main_items{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 32px;
|
||||
.mi_ipts{
|
||||
display: flex;
|
||||
.mii_ipt{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
.mi_btns{
|
||||
display: flex;
|
||||
margin-left: 38px;
|
||||
cursor: pointer;
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: 14px;
|
||||
flex-shrink: 0;
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 36px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
.btn1 {
|
||||
background: rgb(64, 158, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/search0.png");
|
||||
}
|
||||
.btnText{
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
}
|
||||
.btn2 {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
||||
}
|
||||
.btnText{
|
||||
color: rgb(64, 158, 255);
|
||||
}
|
||||
}
|
||||
.btn1:hover {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/search1.png");
|
||||
}
|
||||
.btnText {
|
||||
color: #388BE1;
|
||||
}
|
||||
}
|
||||
.btn2:hover {
|
||||
background: rgba(64, 158, 255, 1);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/reset0.png");
|
||||
}
|
||||
.btnText {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.main_notice{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 32px;
|
||||
height: 40px;
|
||||
background-color: #E9F6FE;
|
||||
.mntc_left{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.notice_icon{
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 9px;
|
||||
margin-left: 9px;
|
||||
background-image: url(@/assets/images/coursewareManage/gan.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.mntc_right{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.main_btns{
|
||||
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>
|
||||
@@ -2,7 +2,7 @@
|
||||
<a-drawer
|
||||
:visible="addvoteVisible"
|
||||
class="drawerStyle"
|
||||
width="80%"
|
||||
width="70%"
|
||||
title="添加投票"
|
||||
placement="right"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
|
||||
441
src/components/drawers/EidtOnline.vue
Normal file
441
src/components/drawers/EidtOnline.vue
Normal file
@@ -0,0 +1,441 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="editonlineVisible"
|
||||
class="drawerStyle"
|
||||
width="80%"
|
||||
title="添加在线"
|
||||
placement="right"
|
||||
@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="contentMain">
|
||||
<div class="main_items">
|
||||
<div class="mi_ipts">
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">课程编号:</div>
|
||||
<div class="fi_input">
|
||||
<a-input
|
||||
v-model:value="value1"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入项目名称"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">内容分类:</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 200px"
|
||||
placeholder="请选择"
|
||||
:options="options1"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mi_btns">
|
||||
<div class="btn btn1">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">重置</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_notice">
|
||||
<div class="mntc_left">
|
||||
<div class="notice_icon"></div>
|
||||
<span style="color:rgba(0, 0, 0, .65); margin-right:17px;">已选择 <span style="color:#388BE1;">4</span> 项</span>
|
||||
<span style="color:rgba(0, 0, 0, .65)">列表选项总计:<span>14</span> 条</span>
|
||||
</div>
|
||||
<div class="mntc_right">
|
||||
<span style="color:#387DF7; margin-right:24px;">清空</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_table">
|
||||
<a-table class="ant-table-striped"
|
||||
:row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)"
|
||||
:row-selection="rowSelection"
|
||||
:columns="columns1"
|
||||
:data-source="tableData1"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:pagination="{
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
hideOnSinglePage: true,
|
||||
pageSizeOptions: [],
|
||||
pageSize: pageSize,
|
||||
current: currentPage,
|
||||
total: tableDataTotal,
|
||||
onChange: (page, pageSize) => {
|
||||
currentPage = page;
|
||||
// console.log('page', page)
|
||||
// 加翻页查找代码
|
||||
// this.setState({
|
||||
// currentPage: page,
|
||||
// }, () => {
|
||||
// this.getMilitaryDeployment()
|
||||
// })
|
||||
},
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
const options1 = ref([
|
||||
{
|
||||
value: "value1",
|
||||
label: "请选择状态",
|
||||
},
|
||||
]);
|
||||
const columns1 = [
|
||||
{
|
||||
title: "课程编号",
|
||||
width: '20%',
|
||||
dataIndex: "num",
|
||||
key: "num",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "名称",
|
||||
width: '20%',
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "内容分类",
|
||||
width: '13%',
|
||||
dataIndex: "content",
|
||||
key: "content",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "授课教师",
|
||||
width: '13%',
|
||||
dataIndex: "teacher",
|
||||
key: "teacher",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "创建人",
|
||||
width: '13%',
|
||||
dataIndex: "creator",
|
||||
key: "creator",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "完成时间",
|
||||
width: '20%',
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
align: "center",
|
||||
},
|
||||
]
|
||||
const rowSelection = ref({
|
||||
checkStrictly: false,
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
||||
},
|
||||
onSelect: (record, selected, selectedRows) => {
|
||||
console.log(record, selected, selectedRows);
|
||||
},
|
||||
onSelectAll: (selected, selectedRows, changeRows) => {
|
||||
console.log(selected, selectedRows, changeRows);
|
||||
},
|
||||
});
|
||||
export default {
|
||||
name: "EditOnline",
|
||||
props: {
|
||||
editonlineVisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
tableData1: [
|
||||
{
|
||||
key: "1",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'通用力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
num: 'JDF2022071100001',
|
||||
name:'管理能力课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
num: 'JDF2022071100001',
|
||||
name:'快速换模SMED',
|
||||
content:'通用力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
num: 'JDF2022071100001',
|
||||
name:'巧妙对话人见人夸',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
num: 'JDF2022071100001',
|
||||
name:'管理能力课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "7",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "8",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
{
|
||||
key: "9",
|
||||
num: 'JDF2022071100001',
|
||||
name:'时间管理课程',
|
||||
content:'领导力',
|
||||
teacher:'BOE教师',
|
||||
creator:'管理员',
|
||||
time:'2022-10-31 23:12:00',
|
||||
},
|
||||
],
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
pageSize: 10,
|
||||
});
|
||||
// const closeDrawer = () => {
|
||||
// ctx.emit("update:addonlineVisible", false);
|
||||
// };
|
||||
// const afterVisibleChange = (bool) => {
|
||||
// console.log("state", bool);
|
||||
// };
|
||||
// const showDrawerOnline = () => {
|
||||
// state.visible = true;
|
||||
// };
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
showDrawerOnline,
|
||||
closeDrawer,
|
||||
options1,
|
||||
columns1,
|
||||
rowSelection,
|
||||
// change,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.ant-table-striped :deep(.table-striped) td {
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
.drawerStyle {
|
||||
.drawerMain {
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.contentMain {
|
||||
.main_items{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 32px;
|
||||
.mi_ipts{
|
||||
display: flex;
|
||||
.mii_ipt{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
.mi_btns{
|
||||
display: flex;
|
||||
margin-left: 38px;
|
||||
cursor: pointer;
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: 14px;
|
||||
flex-shrink: 0;
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 36px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
.btn1 {
|
||||
background: rgb(64, 158, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/search0.png");
|
||||
}
|
||||
.btnText{
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
}
|
||||
.btn2 {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
||||
}
|
||||
.btnText{
|
||||
color: rgb(64, 158, 255);
|
||||
}
|
||||
}
|
||||
.btn1:hover {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/search1.png");
|
||||
}
|
||||
.btnText {
|
||||
color: #388BE1;
|
||||
}
|
||||
}
|
||||
.btn2:hover {
|
||||
background: rgba(64, 158, 255, 1);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/reset0.png");
|
||||
}
|
||||
.btnText {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.main_notice{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 32px;
|
||||
height: 40px;
|
||||
background-color: #E9F6FE;
|
||||
.mntc_left{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.notice_icon{
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 9px;
|
||||
margin-left: 9px;
|
||||
background-image: url(@/assets/images/coursewareManage/gan.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.mntc_right{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.main_btns{
|
||||
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>
|
||||
556
src/components/drawers/FaceManage.vue
Normal file
556
src/components/drawers/FaceManage.vue
Normal file
@@ -0,0 +1,556 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="Fvisible"
|
||||
class="drawerStyle"
|
||||
placement="right"
|
||||
width="60%"
|
||||
@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="endtime">起止时间:2022-07-21 14:00 ~ 2022-7-30 14:00</div>
|
||||
<div class="search">
|
||||
<div class="namecon" style="margin-right: 30px">
|
||||
<div class="name">姓名:</div>
|
||||
<a-input
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</div>
|
||||
<div class="namecon" style="margin-right: 50px">
|
||||
<div class="name">任务状态:</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="projectName"
|
||||
style="width: 270px"
|
||||
placeholder="请选择"
|
||||
:options="projectNameList"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btns">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">重置</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnss" style="margin-top: 20px">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">催促学习</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="wz">批量标注完成</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="wz">批量录入成绩</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line">
|
||||
<div class="inline">
|
||||
<div class="left">
|
||||
<div class="img"></div>
|
||||
<div class="text" style="margin-left: 10px">已选择</div>
|
||||
<div class="text2">2</div>
|
||||
<div class="text">项</div>
|
||||
<div class="text3">列表选项总计:</div>
|
||||
<div class="text4">9条</div>
|
||||
</div>
|
||||
<div class="right">清空</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tablecolumns"
|
||||
:data-source="tabledata"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ x: 900, y: 350 }"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
:row-selection="{
|
||||
columnWidth: 30,
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: onSelectChange,
|
||||
}"
|
||||
/>
|
||||
<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">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
export default {
|
||||
name: "FaceManage",
|
||||
props: {
|
||||
Fvisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
name: null,
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
selectedRowKeys: [],
|
||||
projectNameList: [
|
||||
{
|
||||
id: 1,
|
||||
value: "项目一",
|
||||
label: "项目一",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "项目二",
|
||||
label: "项目二",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "项目三",
|
||||
label: "项目三",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: "项目四",
|
||||
label: "项目四",
|
||||
},
|
||||
],
|
||||
tabledata: [
|
||||
{
|
||||
key: 1,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "-",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "-",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "不合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "不合格",
|
||||
state: "完成",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
score: "不合格",
|
||||
state: "完成",
|
||||
},
|
||||
],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在部门",
|
||||
dataIndex: "bum",
|
||||
key: "bum",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "gangw",
|
||||
key: "gangw",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "课程成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
});
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Fvisible", false);
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
closeDrawer,
|
||||
onSelectChange,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss" >
|
||||
.drawerStyle {
|
||||
.ant-drawer-content-wrapper {
|
||||
// max-width: 1000px;
|
||||
.ant-drawer-header {
|
||||
display: none !important;
|
||||
}
|
||||
.ant-drawer-body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20px;
|
||||
|
||||
.namecon {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 10px;
|
||||
// .name {
|
||||
// margin-top: 8px;
|
||||
|
||||
// color: rgba(0, 0, 0, 0.85);
|
||||
// font-size: 14px;
|
||||
// font-weight: 400;
|
||||
// }
|
||||
}
|
||||
.btns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(../../assets/images/courseManage/reset1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #388be1;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnss {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
background-image: url(../../assets/images/coursewareManage/export.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #388be1;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
margin-right: 20px;
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
.line {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background-color: #e9f6fe;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
border: 1px solid #c3e6fc;
|
||||
.inline {
|
||||
width: 95%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
// background-color: #bfa;
|
||||
.left {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.img {
|
||||
width: 14px;
|
||||
height: 15px;
|
||||
background-image: url(../../assets/images/leveladd/gan.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.text {
|
||||
color: #999ba3;
|
||||
}
|
||||
.text2 {
|
||||
color: #4ea6ff;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.text3 {
|
||||
color: #999ba3;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #387df7;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
.ant-table-thead > tr > th {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
}
|
||||
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
.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>
|
||||
473
src/components/drawers/TimeManage.vue
Normal file
473
src/components/drawers/TimeManage.vue
Normal file
@@ -0,0 +1,473 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="Tvisible"
|
||||
class="drawerStyle"
|
||||
placement="right"
|
||||
width="60%"
|
||||
@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="endtime">起止时间:2022-07-21 14:00 ~ 2022-7-30 14:00</div>
|
||||
<div class="search">
|
||||
<div class="namecon" style="margin-right: 30px">
|
||||
<div class="name">姓名:</div>
|
||||
<a-input
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</div>
|
||||
<div class="namecon" style="margin-right: 50px">
|
||||
<div class="name">任务状态:</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="projectName"
|
||||
style="width: 270px"
|
||||
placeholder="请选择"
|
||||
:options="projectNameList"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btns">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">重置</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnss" style="margin-top: 20px">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">催促学习</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tablecolumns"
|
||||
:data-source="tabledata"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ x: 900, y: 350 }"
|
||||
@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">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
export default {
|
||||
name: "TimeManage",
|
||||
props: {
|
||||
Tvisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
name: null,
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
projectNameList: [
|
||||
{
|
||||
id: 1,
|
||||
value: "项目一",
|
||||
label: "项目一",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "项目二",
|
||||
label: "项目二",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "项目三",
|
||||
label: "项目三",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: "项目四",
|
||||
label: "项目四",
|
||||
},
|
||||
],
|
||||
tabledata: [
|
||||
{
|
||||
key: 1,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "-",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
name: "哈哈",
|
||||
bum: "产品部",
|
||||
gangw: "产品经理",
|
||||
time: "2022-10-31 23:12:00",
|
||||
state: "未完成",
|
||||
},
|
||||
],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在部门",
|
||||
dataIndex: "bum",
|
||||
key: "bum",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "gangw",
|
||||
key: "gangw",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "完成时间",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
});
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Tvisible", false);
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
closeDrawer,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss" >
|
||||
.drawerStyle {
|
||||
.ant-drawer-content-wrapper {
|
||||
// max-width: 1000px;
|
||||
.ant-drawer-header {
|
||||
display: none !important;
|
||||
}
|
||||
.ant-drawer-body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20px;
|
||||
|
||||
.namecon {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 10px;
|
||||
// .name {
|
||||
// margin-top: 8px;
|
||||
|
||||
// color: rgba(0, 0, 0, 0.85);
|
||||
// font-size: 14px;
|
||||
// font-weight: 400;
|
||||
// }
|
||||
}
|
||||
.btns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(../../assets/images/courseManage/reset1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #388be1;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnss {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
background-image: url(../../assets/images/coursewareManage/export.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #388be1;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
.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>
|
||||
@@ -697,12 +697,16 @@
|
||||
<div class="bs_left">状态:</div>
|
||||
<div class="bs_right">已审核</div>
|
||||
</div>
|
||||
<div class="b_menu">
|
||||
<a-menu v-model:selectedKeys="current" mode="horizontal">
|
||||
<a-menu-item key="mail"> 报名管理 </a-menu-item>
|
||||
<a-menu-item key="sub2"> 学习记录 </a-menu-item>
|
||||
</a-menu>
|
||||
</div>
|
||||
<a-tabs
|
||||
class="b_menu"
|
||||
v-model:activeKey="activeKey"
|
||||
size="large"
|
||||
:tabBarStyle="{ marginLeft: '10px' }"
|
||||
>
|
||||
<a-tab-pane key="1" tab="报名管理">
|
||||
1
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="学习记录">
|
||||
<div class="b_menunav">
|
||||
<div class="bm_select">
|
||||
<a-select
|
||||
@@ -748,6 +752,59 @@
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
<!-- <div class="b_menu">
|
||||
<a-menu v-model:selectedKeys="current" mode="horizontal">
|
||||
<a-menu-item key="mail"> 报名管理 </a-menu-item>
|
||||
<a-menu-item key="sub2"> 学习记录 </a-menu-item>
|
||||
</a-menu>
|
||||
</div> -->
|
||||
<!-- <div class="b_menunav">
|
||||
<div class="bm_select">
|
||||
<a-select
|
||||
class="select"
|
||||
ref="select"
|
||||
placeholder="请选择状态"
|
||||
v-model:value="value14"
|
||||
style="width: 200px"
|
||||
@focus="focus"
|
||||
@change="handleChange"
|
||||
>
|
||||
<a-select-option value="status">状态</a-select-option>
|
||||
<a-select-option value="passed">已通过</a-select-option>
|
||||
<a-select-option value="weishenhe">未审核</a-select-option>
|
||||
<a-select-option value="reject">管理员拒绝</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="bm_input">
|
||||
<a-input
|
||||
v-model:value="value15"
|
||||
style="width: 200px; height: 40px; border-radius: 8px"
|
||||
placeholder="姓名"
|
||||
/>
|
||||
</div>
|
||||
<div class="bm_btn">
|
||||
<div class="btn btn1">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">搜索</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bm_table" style="margin-bottom: 20px">
|
||||
<a-table
|
||||
:columns="columns2"
|
||||
:data-source="tableData3"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column }">
|
||||
<template v-if="column.key === 'opacation'">
|
||||
<a @click="ckxq_hs">查看详情</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -354,12 +354,6 @@ export default {
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
// ellipsis: true,
|
||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
// customRender: (text, record) => {
|
||||
// console.log(text, record);
|
||||
// return <span>{text.text}</span>;
|
||||
// },
|
||||
},
|
||||
{
|
||||
title: "路径图名称",
|
||||
@@ -411,38 +405,6 @@ export default {
|
||||
key: "opacation",
|
||||
width: 200,
|
||||
align: "center",
|
||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
// customRender: (text) => {
|
||||
// console.log(text);
|
||||
// return (
|
||||
// <div class="opa">
|
||||
// <div class="opacation">
|
||||
// <span class={text.record.haspub ? "activecls" : "errorCls"}>
|
||||
// 发布
|
||||
// </span>
|
||||
// <span style={{ "margin-left": "25px" }}>编辑</span>
|
||||
// <router-link to="/leveladd">
|
||||
// <span style={{ "margin-left": "25px" }}>关卡</span>
|
||||
// </router-link>
|
||||
|
||||
// <div style={{ "margin-left": "25px" }} class="more">
|
||||
// <span>授权</span>
|
||||
// <div class="moreArrow"></div>
|
||||
// <div class="moreItems"></div>
|
||||
// </div>
|
||||
|
||||
// <div
|
||||
// style={{ "margin-left": "21px", "margin-right": "30px" }}
|
||||
// class="more"
|
||||
// >
|
||||
// <span>更多</span>
|
||||
// <div class="moreArrow"></div>
|
||||
// <div class="moreItems"></div>
|
||||
// </div>
|
||||
// </div>
|
||||
// </div>
|
||||
// );
|
||||
// },
|
||||
},
|
||||
];
|
||||
return columns;
|
||||
|
||||
@@ -152,11 +152,7 @@
|
||||
class="taskbox"
|
||||
style="
|
||||
margin-right: 24px;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(221, 234, 255, 1) 100%,
|
||||
rgba(240, 248, 254, 1) 100%
|
||||
);
|
||||
background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
|
||||
"
|
||||
>
|
||||
<div class="leftt">
|
||||
@@ -176,11 +172,7 @@
|
||||
class="taskbox"
|
||||
@click="showModal3"
|
||||
style="
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(254, 243, 221, 1) 100%,
|
||||
rgba(255, 250, 240, 1) 100%
|
||||
);
|
||||
background: linear-gradient(180deg, #fef3dd 0%, #fffaf0 100%);
|
||||
"
|
||||
>
|
||||
<div class="leftt">
|
||||
@@ -248,11 +240,7 @@
|
||||
<div
|
||||
class="taskbox"
|
||||
style="
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(221, 234, 255, 1) 100%,
|
||||
rgba(240, 248, 254, 1) 100%
|
||||
);
|
||||
background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
|
||||
"
|
||||
>
|
||||
<div class="leftt">
|
||||
@@ -277,11 +265,7 @@
|
||||
@click="showModal2"
|
||||
style="
|
||||
margin-bottom: 40px;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(229, 246, 236, 1) 100%,
|
||||
rgba(238, 249, 243, 1) 100%
|
||||
);
|
||||
background: linear-gradient(180deg, #e5f6ec 0%, #eef9f3 100%);
|
||||
"
|
||||
>
|
||||
<div class="leftt">
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
<div class="allCon">
|
||||
<div class="left clearfix">
|
||||
<div class="leftmain">
|
||||
<div class="tit">阶段<img src="../../assets/images/projectadd/right.png" style="margin-left: 10px"/></div>
|
||||
<div class="tit">
|
||||
阶段<img
|
||||
src="../../assets/images/projectadd/right.png"
|
||||
style="margin-left: 10px"
|
||||
/>
|
||||
</div>
|
||||
<div class="btn btn3" @click="showModal" style="margin-left: 19px">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">添加阶段</div>
|
||||
@@ -29,7 +34,10 @@
|
||||
<div class="filt">
|
||||
<div class="le">
|
||||
<div class="leftimg">
|
||||
<img class="img" src="../../assets/images/projectadd/picture.png" />
|
||||
<img
|
||||
class="img"
|
||||
src="../../assets/images/projectadd/picture.png"
|
||||
/>
|
||||
</div>
|
||||
<div class="imgfor">
|
||||
<div class="forz" style="font-weight: 700">管理者进阶-腾飞班</div>
|
||||
@@ -62,12 +70,17 @@
|
||||
</div>
|
||||
<div class="mid">
|
||||
<div class="item">
|
||||
<div class="itcon">
|
||||
<div class="itcon" @click="showDrawerOnline">
|
||||
<div class="img">
|
||||
<img src="../../assets/images/leveladd/zai.png" />
|
||||
</div>
|
||||
<div class="text">在线</div>
|
||||
</div>
|
||||
<!-- 添加在线侧弹窗 -->
|
||||
<div>
|
||||
<add-online v-model:addonlineVisible="visible" />
|
||||
</div>
|
||||
<!-- 添加在线侧弹窗 -->
|
||||
<div class="lin"></div>
|
||||
</div>
|
||||
<div class="item">
|
||||
@@ -173,9 +186,12 @@
|
||||
<div class="boomcen">
|
||||
<div class="onerow">
|
||||
<div class="taskmain">任务列表</div>
|
||||
<button class="btn">移动到任务阶段</button>
|
||||
<button class="btn">移动任务到阶段</button>
|
||||
<div class="edit">
|
||||
<img class="editimg" src="../../assets/images/projectadd/delete.png"/>
|
||||
<img
|
||||
class="editimg"
|
||||
src="../../assets/images/projectadd/delete.png"
|
||||
/>
|
||||
<span class="editext">批量删除</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -220,43 +236,12 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 编辑在线侧弹窗 -->
|
||||
<div>
|
||||
<add-online v-model:addonlineVisible="visible" />
|
||||
</div>
|
||||
<!-- 编辑在线侧弹窗 -->
|
||||
</div>
|
||||
<div class="draw" style="position: relative">
|
||||
<a-drawer
|
||||
v-model:visible="visible"
|
||||
class="drawerStyle"
|
||||
title="关联项目"
|
||||
placement="right"
|
||||
width="80%"
|
||||
@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="showDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="drawerbox">
|
||||
<a-table
|
||||
:columns="drawercolumns"
|
||||
:data-source="drawertableData"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:scroll="{ x: 700 }"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
>
|
||||
</a-table>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button @click="showDrawer" class="btn1">取消</button>
|
||||
<button @click="showDrawer" class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
@@ -270,28 +255,43 @@
|
||||
width="624px"
|
||||
height="388px"
|
||||
>
|
||||
<div class="modalHeader"
|
||||
style="width: 100%;height: 68px;display: flex;align-items: center;justify-content: space-between;background:linear-gradient(0deg,rgba(78, 166, 255, 0) 0%,rgba(78, 166, 255, 0.2000) 100%)"
|
||||
<div
|
||||
class="modalHeader"
|
||||
style="
|
||||
width: 100%;
|
||||
height: 68px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
rgba(78, 166, 255, 0) 0%,
|
||||
rgba(78, 166, 255, 0.2) 100%
|
||||
);
|
||||
"
|
||||
>
|
||||
<div class="headerLeft" style="margin-left: 32px">
|
||||
<span class="headerLeftText" style="font-size: 16px">添加阶段</span>
|
||||
</div>
|
||||
<div style="cursor: pointer;margin-right:32px" @click="closeModal">
|
||||
<div style="cursor: pointer; margin-right: 32px" @click="closeModal">
|
||||
<img
|
||||
style="width: 22px; height: 22px"
|
||||
src="../../assets/images/basicinfo/close22.png"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modalMain"
|
||||
style="width: 100%;"
|
||||
>
|
||||
<div class="modalMain" style="width: 100%">
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<div class="inname">阶段名称:</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" show-count :maxlength="20" placeholder="请输入阶段名称" />
|
||||
<a-input
|
||||
v-model:value="valueE"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
placeholder="请输入阶段名称"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name" style="display: flex; align-items: flex-start">
|
||||
@@ -299,16 +299,53 @@
|
||||
<div class="inname">阶段说明:</div>
|
||||
</div>
|
||||
<div class="intext" style="margin-left: 14px">
|
||||
<a-textarea v-model:value="value" style="height: 88px" show-count :maxlength="100" placeholder="请输入阶段说明" />
|
||||
<a-textarea
|
||||
v-model:value="value"
|
||||
style="height: 88px"
|
||||
show-count
|
||||
:maxlength="100"
|
||||
placeholder="请输入阶段说明"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex;width: 100%;justify-content: center;margin-top: 40px">
|
||||
<button @click="closeModal"
|
||||
style=" cursor: pointer;height: 40px;width: 100px;border: 1px solid #409EFF;border-radius: 4px;color: #409EFF;background-color: #FFFFFF"
|
||||
>取消</button>
|
||||
<button @click="closeModal"
|
||||
style=" cursor: pointer;margin-left: 16px;margin-bottom: 40px;height: 40px;width: 100px;border: 1px solid #409EFF;border-radius: 4px;color: #FFFFFF;background-color: #409EFF"
|
||||
>确定</button>
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
margin-top: 40px;
|
||||
"
|
||||
>
|
||||
<button
|
||||
@click="closeModal"
|
||||
style="
|
||||
cursor: pointer;
|
||||
height: 40px;
|
||||
width: 100px;
|
||||
border: 1px solid #409eff;
|
||||
border-radius: 4px;
|
||||
color: #409eff;
|
||||
background-color: #ffffff;
|
||||
"
|
||||
>
|
||||
取消
|
||||
</button>
|
||||
<button
|
||||
@click="closeModal"
|
||||
style="
|
||||
cursor: pointer;
|
||||
margin-left: 16px;
|
||||
margin-bottom: 40px;
|
||||
height: 40px;
|
||||
width: 100px;
|
||||
border: 1px solid #409eff;
|
||||
border-radius: 4px;
|
||||
color: #ffffff;
|
||||
background-color: #409eff;
|
||||
"
|
||||
>
|
||||
确定
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
@@ -318,6 +355,7 @@
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
|
||||
import AddOnline from "../../components/drawers/AddOnline.vue";
|
||||
const drawercolumns = [
|
||||
{
|
||||
title: "项目名称",
|
||||
@@ -358,6 +396,9 @@ const drawercolumns = [
|
||||
];
|
||||
export default {
|
||||
name: "LevelAddDetail",
|
||||
components: {
|
||||
AddOnline,
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
projectNameList: [
|
||||
@@ -523,7 +564,6 @@ export default {
|
||||
key: "1-1",
|
||||
projectName: "管理者进阶-腾飞班",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
children: [
|
||||
@@ -549,7 +589,6 @@ export default {
|
||||
key: "2-1",
|
||||
projectName: "管理者进阶-腾飞班",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
children: [
|
||||
@@ -564,12 +603,10 @@ export default {
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
key: 3,
|
||||
projectName: "管理者进阶-腾飞班K1",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
},
|
||||
@@ -577,7 +614,6 @@ export default {
|
||||
key: 4,
|
||||
projectName: "管理者进阶-腾飞班K1",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
},
|
||||
@@ -585,7 +621,6 @@ export default {
|
||||
key: 5,
|
||||
projectName: "管理者进阶-腾飞班K1",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
},
|
||||
@@ -593,7 +628,6 @@ export default {
|
||||
key: 6,
|
||||
projectName: "管理者进阶-腾飞班K1",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
},
|
||||
@@ -601,7 +635,6 @@ export default {
|
||||
key: 7,
|
||||
projectName: "管理者进阶-腾飞班K1",
|
||||
manager: "黄华 刘俊",
|
||||
|
||||
creater: "毛继禹",
|
||||
time: "2022-07-20 14:00:03",
|
||||
},
|
||||
@@ -610,6 +643,7 @@ export default {
|
||||
tableDataTotal: 100,
|
||||
pageSize: 10,
|
||||
visible: false,
|
||||
visible2: false,
|
||||
stage: false,
|
||||
selectedRowKeys: [],
|
||||
});
|
||||
@@ -619,9 +653,6 @@ export default {
|
||||
const selectProjectName2 = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const showDrawer = () => {
|
||||
state.visible = !state.visible;
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("visible", bool);
|
||||
};
|
||||
@@ -635,7 +666,7 @@ export default {
|
||||
width: 60,
|
||||
align: "left",
|
||||
className: "classify",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
scopedSlots: { customRender: "action" },
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
@@ -654,7 +685,7 @@ export default {
|
||||
<a-checkbox class="ch" checked={text.record.checkedd}>
|
||||
{text.record.lei}
|
||||
</a-checkbox>
|
||||
*/}
|
||||
*/}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
@@ -675,7 +706,7 @@ export default {
|
||||
// width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
scopedSlots: { customRender: "action" },
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
@@ -722,12 +753,17 @@ export default {
|
||||
key: "opacation",
|
||||
// width: 100,
|
||||
align: "center",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
scopedSlots: { customRender: "action" },
|
||||
customRender: () => {
|
||||
return (
|
||||
<div class="opa">
|
||||
<div class="opacation">
|
||||
<span style="color:#4EA6FF;margin-right:25px;cursor:pointer">
|
||||
<span
|
||||
onClick={() => {
|
||||
state.visible2 = true;
|
||||
}}
|
||||
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||
>
|
||||
编辑
|
||||
</span>
|
||||
<span style="color:#4EA6FF;cursor:pointer">删除</span>
|
||||
@@ -739,12 +775,10 @@ export default {
|
||||
];
|
||||
return columns;
|
||||
};
|
||||
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
|
||||
// const getClientHeight = () => {
|
||||
// state.rightheight =
|
||||
// document.getElementsByClassName("addhead")[0].offsetHeight +
|
||||
@@ -769,6 +803,9 @@ export default {
|
||||
document.getElementsByTagName("main")[0].style.boxShadow =
|
||||
"0px 1px 35px 0px rgba(118, 136, 166, 0.07)";
|
||||
});
|
||||
const showDrawerOnline = () => {
|
||||
state.visible = true;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
@@ -776,17 +813,17 @@ export default {
|
||||
tableDataFunc,
|
||||
showModal,
|
||||
closeModal,
|
||||
showDrawer,
|
||||
// showDrawer,
|
||||
afterVisibleChange,
|
||||
drawercolumns,
|
||||
onSelectChange,
|
||||
showDrawerOnline,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
@@ -798,7 +835,6 @@ export default {
|
||||
.ant-modal-body {
|
||||
padding: 0 !important;
|
||||
.modalMain {
|
||||
|
||||
.ant-input-textarea-show-count {
|
||||
position: relative;
|
||||
height: 88px;
|
||||
@@ -839,7 +875,7 @@ export default {
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
@@ -907,7 +943,7 @@ export default {
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.drawerStyle {
|
||||
.ant-drawer-content-wrapper {
|
||||
// max-width: 1000px;
|
||||
@@ -1172,7 +1208,7 @@ export default {
|
||||
margin-right: 18px;
|
||||
}
|
||||
.pub {
|
||||
color: #57C887;
|
||||
color: #57c887;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
margin-right: 30px;
|
||||
@@ -1316,22 +1352,22 @@ export default {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 130px;
|
||||
background-color: #409EFF;
|
||||
background-color: #409eff;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #409EFF;
|
||||
color: #FFFFFF;
|
||||
border: 1px solid #409eff;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.edit {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
color: #409EFF;
|
||||
color: #409eff;
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
border: 1px solid #409EFF;
|
||||
border: 1px solid #409eff;
|
||||
border-radius: 8px;
|
||||
.editimg {
|
||||
width: 15px;
|
||||
@@ -1345,8 +1381,8 @@ export default {
|
||||
}
|
||||
}
|
||||
.edit:hover {
|
||||
color: #FFFFFF;
|
||||
background-color: #409EFF;
|
||||
color: #ffffff;
|
||||
background-color: #409eff;
|
||||
cursor: pointer;
|
||||
.editimg {
|
||||
background-image: url("../../assets/images/projectadd/delete1.png");
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,14 @@
|
||||
<!-- 调研管理-基础信息页面 -->
|
||||
<template>
|
||||
<div class="researchadd">
|
||||
<div class="researchadd">
|
||||
<div class="header">
|
||||
<span class="title">创建调研</span>
|
||||
<router-link to="/researchmanage" class="goback"><span class="return"></span><router-link class="returntext" to="/researchmanage">返回</router-link></router-link>
|
||||
<router-link to="/researchmanage" class="goback"
|
||||
><span class="return"></span
|
||||
><router-link class="returntext" to="/researchmanage"
|
||||
>返回</router-link
|
||||
></router-link
|
||||
>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="name">
|
||||
@@ -11,9 +16,28 @@
|
||||
<div class="inname">类型</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<input type="radio" name="type" id="single" checked="checked"/><label for="single" class="text" style="margin-left: 5px">单选</label>
|
||||
<input type="radio" name="type" id="double" style="margin-left: 10px"/><label for="double" class="text" style="margin-left: 5px">多选</label>
|
||||
<input type="radio" name="type" id="score" style="margin-left: 10px"/><label for="score" class="text" style="margin-left: 5px">评分题</label>
|
||||
<input type="radio" name="type" id="single" checked="checked" /><label
|
||||
for="single"
|
||||
class="text"
|
||||
style="margin-left: 5px"
|
||||
>单选</label
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
name="type"
|
||||
id="double"
|
||||
style="margin-left: 10px"
|
||||
/><label for="double" class="text" style="margin-left: 5px"
|
||||
>多选</label
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
name="type"
|
||||
id="score"
|
||||
style="margin-left: 10px"
|
||||
/><label for="score" class="text" style="margin-left: 5px"
|
||||
>评分题</label
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
@@ -25,46 +49,81 @@
|
||||
<div class="inname">提干</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" placeholder="请输入项目名称" show-count :maxlength="20" style="border-radius: 8px"/>
|
||||
<a-input
|
||||
v-model:value="valueE"
|
||||
placeholder="请输入项目名称"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
style="border-radius: 8px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="in" style="margin-left: 133px">
|
||||
<a-button type="primary" style="width: 100px;height: 40px;border-radius: 8px;background-color: #409EFF">添加选项</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
background-color: #409eff;
|
||||
"
|
||||
>添加选项</a-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="options">
|
||||
<div class="name" >
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<div class="inname">选项1</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" show-count :maxlength="20" style="border-radius: 8px" />
|
||||
<a-input
|
||||
v-model:value="valueE"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
style="border-radius: 8px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="delete">删除</div>
|
||||
</div>
|
||||
<div class="name" >
|
||||
<div class="name">
|
||||
<div class="in" style="margin-left: 133px">
|
||||
<div class="addimg">+添加图片</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="options">
|
||||
<div class="name" >
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<div class="inname">选项1</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" show-count :maxlength="20" style="border-radius: 8px"/>
|
||||
<a-input
|
||||
v-model:value="valueE"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
style="border-radius: 8px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="delete">删除</div>
|
||||
</div>
|
||||
<div class="picture" style="position: relative">
|
||||
<img class="pictureimg" src="../../assets/images/research/picture.png"/>
|
||||
<img
|
||||
class="pictureimg"
|
||||
src="../../assets/images/research/picture.png"
|
||||
/>
|
||||
<div class="picturename">图片名称1.jpg</div>
|
||||
<img
|
||||
style="cursor: pointer; width: 20px; height: 20px;position: absolute;right: 0;top:0"
|
||||
style="
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
/>
|
||||
</div>
|
||||
@@ -73,25 +132,42 @@
|
||||
<span class="title" style="font-size: 14px">选项设置</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="name" >
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<div class="inname">最低分</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" />
|
||||
<div class="in numberInp">
|
||||
<a-input-number
|
||||
:value="minScore"
|
||||
:min="1"
|
||||
:max="10"
|
||||
@change="minChange"
|
||||
/>
|
||||
</div>
|
||||
<div class="namebox" style="margin-left: -50px">
|
||||
<div class="namebox" style="margin-left: -180px">
|
||||
<div class="inname">最高分</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input v-model:value="valueE" />
|
||||
<div class="in numberInp">
|
||||
<a-input-number
|
||||
:value="maxScore"
|
||||
:min="1"
|
||||
:max="10"
|
||||
@change="maxChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="scorebox">
|
||||
<div class="scoretext">非常满意</div>
|
||||
<div class="number">
|
||||
<a-button class="btn" style="margin-left:10px">1</a-button>
|
||||
<a-button class="btn">2</a-button>
|
||||
<div
|
||||
class="btn"
|
||||
style="margin-left: 10px"
|
||||
v-for="(value, index) in scoreList"
|
||||
:key="index"
|
||||
>
|
||||
{{ value.text }}
|
||||
</div>
|
||||
<!-- <a-button class="btn">2</a-button>
|
||||
<a-button class="btn">3</a-button>
|
||||
<a-button class="btn">4</a-button>
|
||||
<a-button class="btn">5</a-button>
|
||||
@@ -99,8 +175,7 @@
|
||||
<a-button class="btn">7</a-button>
|
||||
<a-button class="btn">8</a-button>
|
||||
<a-button class="btn">9</a-button>
|
||||
<a-button class="btn" style="display: flex;align-items:center;margin-right: 10px;justify-content: center">10</a-button>
|
||||
|
||||
<a-button class="btn" style="display: flex;align-items:center;margin-right: 10px;justify-content: center">10</a-button> -->
|
||||
</div>
|
||||
<div class="scoretext">非常不满意</div>
|
||||
</div>
|
||||
@@ -109,23 +184,162 @@
|
||||
<div class="inname" style="margin-top: 13px">备注</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-textarea
|
||||
v-model:value="valuei"
|
||||
style="height: 80px"
|
||||
/>
|
||||
<a-textarea v-model:value="valuei" style="height: 80px" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="btn">
|
||||
<a-button type="primary" style="width: 100px;height: 40px;border-radius: 8px;background-color: #409EFF">保存</a-button>
|
||||
<a-button type="primary" ghost style="width: 100px;height: 40px;margin-left: 14px;border-radius: 8px">取消</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
background-color: #409eff;
|
||||
"
|
||||
>保存</a-button
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
ghost
|
||||
style="
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
margin-left: 14px;
|
||||
border-radius: 8px;
|
||||
"
|
||||
>取消</a-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
export default {
|
||||
name: "ResearchAdd",
|
||||
setup() {
|
||||
const state = reactive({
|
||||
minScore: 1,
|
||||
maxScore: 10,
|
||||
scoreList: [
|
||||
{
|
||||
id: 1,
|
||||
text: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
text: 2,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
text: 3,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
text: 4,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
text: 5,
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
text: 6,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
text: 7,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
text: 8,
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
text: 9,
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
text: 10,
|
||||
},
|
||||
],
|
||||
scoreListClone: [
|
||||
{
|
||||
id: 1,
|
||||
text: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
text: 2,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
text: 3,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
text: 4,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
text: 5,
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
text: 6,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
text: 7,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
text: 8,
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
text: 9,
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
text: 10,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const minChange = (e) => {
|
||||
// console.log("eee", e);
|
||||
if (e > state.maxScore) return message.info("最低分不能超过最高分");
|
||||
state.minScore = e;
|
||||
let arr = state.scoreListClone.concat([]);
|
||||
arr.map((value, index) => {
|
||||
if (value.id === e) {
|
||||
arr = arr.slice(index, state.maxScore);
|
||||
}
|
||||
});
|
||||
state.scoreList = arr;
|
||||
};
|
||||
const maxChange = (e) => {
|
||||
if (e < state.minScore) return message.info("最高分不能低于最低分");
|
||||
state.maxScore = e;
|
||||
let arr = state.scoreListClone.concat([]);
|
||||
arr.map((value, index) => {
|
||||
if (value.id === e) {
|
||||
arr = arr.slice(state.minScore - 1, index + 1);
|
||||
}
|
||||
});
|
||||
state.scoreList = arr;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
minChange,
|
||||
maxChange,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.researchadd {
|
||||
@@ -160,7 +374,7 @@
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
top: 27px;
|
||||
color: #4EA6FF;
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
@@ -169,27 +383,34 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.scorebox {
|
||||
display:flex;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
margin-left:70px;
|
||||
margin-left: 70px;
|
||||
.scoretext {
|
||||
font-size: 14px;
|
||||
color: #56A3F9;
|
||||
color: #56a3f9;
|
||||
}
|
||||
.number {
|
||||
display: flex;
|
||||
border: 1px solid #D7E5FD;
|
||||
border: 1px solid #d7e5fd;
|
||||
border-radius: 5px;
|
||||
margin: 0 10px;
|
||||
padding: 5px;
|
||||
.btn {
|
||||
border: 1px solid #56A3F9;
|
||||
border-radius: 5px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: #56A3F9;
|
||||
border: 1px solid #56a3f9;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 5px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #56a3f9;
|
||||
line-height: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -204,7 +425,7 @@
|
||||
height: 100px;
|
||||
}
|
||||
.picturename {
|
||||
color: #6F6F6F;
|
||||
color: #6f6f6f;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
@@ -213,14 +434,14 @@
|
||||
align-items: flex-start;
|
||||
}
|
||||
.options {
|
||||
display:flex;
|
||||
display: flex;
|
||||
}
|
||||
.delete {
|
||||
cursor: pointer;
|
||||
margin-top: 32px;
|
||||
margin-left: 20px;
|
||||
float: right;
|
||||
color: #4EA6FF;
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
}
|
||||
.name {
|
||||
@@ -251,7 +472,7 @@
|
||||
margin-left: 14px;
|
||||
flex: 1;
|
||||
.addimg {
|
||||
cursor:pointer;
|
||||
cursor: pointer;
|
||||
color: rgba(78, 166, 255, 1);
|
||||
font-size: 14px;
|
||||
}
|
||||
@@ -275,6 +496,15 @@
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
.numberInp {
|
||||
width: 200px;
|
||||
.ant-input-number {
|
||||
width: 200px;
|
||||
}
|
||||
// .ant-input-number-input-wrap {
|
||||
// width: 200px;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
@@ -289,5 +519,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user