This commit is contained in:
dongwug
2022-10-18 16:22:01 +08:00
7 changed files with 1964 additions and 1518 deletions

View File

@@ -1,286 +1,297 @@
<template> <template>
<a-drawer <a-drawer
:visible="addfaceteachVisible" :visible="addfaceteachVisible"
class="drawerStyle" class="drawerStyle"
width="80%" width="80%"
title="添加在线" title="添加在线"
placement="right" placement="right"
@after-visible-change="afterVisibleChange" @after-visible-change="afterVisibleChange"
> >
<div class="drawerMain"> <div class="drawerMain">
<div class="header"> <div class="header">
<div class="headerTitle">添加在线</div> <div class="headerTitle">添加在线</div>
<img <img
style="width: 29px; height: 29px; cursor: pointer" style="width: 29px; height: 29px; cursor: pointer"
src="../../assets/images/basicinfo/close.png" src="../../assets/images/basicinfo/close.png"
@click="closeDrawer" @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: 240px; height: 40px; border-radius: 8px"
placeholder="请输入项目名称"
/> />
</div>
</div> </div>
<div class="contentMain"> <div class="mii_ipt">
<div class="main_items"> <div class="ipt_name">内容分类</div>
<div class="mi_ipts"> <div class="select">
<div class="mii_ipt"> <a-select
<div class="ipt_name">课程编号</div> dropdownClassName="dropdown-style"
<div class="fi_input"> style="width: 240px"
<a-input placeholder="请选择"
v-model:value="value1" :options="options1"
style="width: 240px; height: 40px; border-radius: 8px" allowClear
placeholder="请输入项目名称" showSearch
/> />
</div> </div>
</div>
<div class="mii_ipt">
<div class="ipt_name">内容分类</div>
<div class="select">
<a-select
dropdownClassName="dropdown-style"
style="width: 240px"
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>
</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>
</a-drawer> <div class="main_notice">
<div class="mntc_left">
<div class="notice_icon"></div>
<span style="color: rgba(0, 0, 0, 0.65); margin-right: 17px"
>已选择 <span style="color: #388be1">4</span> </span
>
<span style="color: rgba(0, 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> </template>
<script> <script>
import { reactive, toRefs, ref } from "vue"; import { reactive, toRefs, ref } from "vue";
const options1 = ref([ const options1 = ref([
{ {
value: "value1", value: "value1",
label: "请选择状态", label: "请选择状态",
}, },
]); ]);
const columns1 = [ 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: "AddFaceteach",
props: {
addfaceteachVisible: {
type: Boolean,
default: false,
},
},
setup(props, ctx) {
const state = reactive({
tableData1: [
{ {
title: "课程编号", key: "1",
width: '20%', num: "JDF2022071100001",
dataIndex: "num", name: "时间管理课程",
key: "num", content: "通用力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
{ {
title: "名称", key: "2",
width: '20%', num: "JDF2022071100001",
dataIndex: "name", name: "管理能力课程",
key: "name", content: "领导力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
{ {
title: "内容分类", key: "3",
width: '13%', num: "JDF2022071100001",
dataIndex: "content", name: "快速换模SMED",
key: "content", content: "通用力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
{ {
title: "授课教师", key: "4",
width: '13%', num: "JDF2022071100001",
dataIndex: "teacher", name: "巧妙对话人见人夸",
key: "teacher", content: "领导力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
{ {
title: "创建人", key: "5",
width: '13%', num: "JDF2022071100001",
dataIndex: "creator", name: "管理能力课程",
key: "creator", content: "领导力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
{ {
title: "完成时间", key: "6",
width: '20%', num: "JDF2022071100001",
dataIndex: "time", name: "时间管理课程",
key: "time", content: "领导力",
align: "center", teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
] {
const rowSelection = ref({ key: "7",
checkStrictly: false, num: "JDF2022071100001",
onChange: (selectedRowKeys, selectedRows) => { name: "时间管理课程",
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); content: "领导力",
teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
onSelect: (record, selected, selectedRows) => { {
console.log(record, selected, selectedRows); key: "8",
num: "JDF2022071100001",
name: "时间管理课程",
content: "领导力",
teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
onSelectAll: (selected, selectedRows, changeRows) => { {
console.log(selected, selectedRows, changeRows); key: "9",
num: "JDF2022071100001",
name: "时间管理课程",
content: "领导力",
teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
}, },
],
currentPage: 1,
tableDataTotal: 100,
pageSize: 10,
}); });
export default { const closeDrawer = () => {
name: "AddFaceteach", ctx.emit("update:addfaceteachVisible", false);
props: { };
addfaceteachVisible: { const afterVisibleChange = (bool) => {
type: Boolean, console.log("state", bool);
default: false, };
}, const showDrawerFaceteach = () => {
}, state.visible3 = true;
setup(props, ctx) { };
const state = reactive({ return {
tableData1: [ ...toRefs(state),
{ afterVisibleChange,
key: "1", showDrawerFaceteach,
num: 'JDF2022071100001', closeDrawer,
name:'时间管理课程', options1,
content:'通用力', columns1,
teacher:'BOE教师', rowSelection,
creator:'管理员', // change,
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:addfaceteachVisible", false);
};
const afterVisibleChange = (bool) => {
console.log("state", bool);
};
const showDrawerFaceteach = () => {
state.visible3 = true;
};
return {
...toRefs(state),
afterVisibleChange,
showDrawerFaceteach,
closeDrawer,
options1,
columns1,
rowSelection,
// change,
};
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@@ -288,160 +299,160 @@ import { reactive, toRefs, ref } from "vue";
background-color: #fafafa !important; background-color: #fafafa !important;
} }
.drawerStyle { .drawerStyle {
.drawerMain { .drawerMain {
.header { .header {
height: 73px; height: 73px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.headerTitle { .headerTitle {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 25px; line-height: 25px;
margin-left: 24px; margin-left: 24px;
} }
}
.contentMain {
.main_items{
display: flex;
justify-content: space-between;
margin-bottom: 12px;
flex-wrap: wrap;
.mi_ipts{
display: flex;
margin-bottom: 20px;
.mii_ipt{
display: flex;
align-items: center;
margin-right: 24px;
.ipt_name{
white-space: nowrap;
}
}
}
.mi_btns{
display: flex;
margin-left: 38px;
margin-bottom: 20px;
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;
}
}
}
} }
.contentMain {
.main_items {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
flex-wrap: wrap;
.mi_ipts {
display: flex;
margin-bottom: 20px;
.mii_ipt {
display: flex;
align-items: center;
margin-right: 24px;
.ipt_name {
white-space: nowrap;
}
}
}
.mi_btns {
display: flex;
margin-left: 38px;
margin-bottom: 20px;
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> </style>

View File

@@ -2,8 +2,7 @@
<a-drawer <a-drawer
:visible="addvoteVisible" :visible="addvoteVisible"
class="drawerStyle" class="drawerStyle"
style="color: red" width="70%"
width="80%"
title="添加投票" title="添加投票"
placement="right" placement="right"
@after-visible-change="afterVisibleChange" @after-visible-change="afterVisibleChange"

View File

@@ -2767,6 +2767,7 @@ export default defineComponent({
// color: #4EA6FF !important; // color: #4EA6FF !important;
// } // }
// } // }
.courseManage { .courseManage {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@@ -54,11 +54,11 @@
<div class="btn btn2"> <div class="btn btn2">
<div class="search"></div> <div class="search"></div>
<div class="btnText">重置</div> <div class="btnText">重置</div>
</div> </div>
<div class="btn btn3" @click="showModal1"> <div class="btn btn3" @click="showModal1">
<div class="search"></div> <div class="search"></div>
<div class="btnText">创建项目</div> <div class="btnText">创建项目</div>
</div> </div>
</div> </div>
</div> </div>
<!-- 搜索框及按钮 --> <!-- 搜索框及按钮 -->
@@ -109,7 +109,7 @@
<!-- 表格 --> <!-- 表格 -->
<!-- 创建子项目弹窗 --> <!-- 创建子项目弹窗 -->
<div> <div>
<a-modal <a-modal
v-model:visible="sonproject" v-model:visible="sonproject"
:title="null" :title="null"
@ok="closeModal" @ok="closeModal"
@@ -119,13 +119,27 @@
width="764px" width="764px"
height="356px" height="356px"
> >
<div class="modalHeader" <div
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%)" 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"> <div class="headerLeft" style="margin-left: 32px">
<span class="headerLeftText" style="font-size: 16px">请选择项目类别</span> <span class="headerLeftText" style="font-size: 16px"
>请选择项目类别</span
>
</div> </div>
<div style="cursor: pointer;margin-right:32px" @click="closeModal"> <div style="cursor: pointer; margin-right: 32px" @click="closeModal">
<img <img
style="width: 22px; height: 22px" style="width: 22px; height: 22px"
src="../../assets/images/basicinfo/close22.png" src="../../assets/images/basicinfo/close22.png"
@@ -133,18 +147,47 @@
</div> </div>
</div> </div>
<div class="modalMain"> <div class="modalMain">
<router-link to="/sonproject" class="taskbox" style="margin-right: 24px;background:linear-gradient(180deg,rgba(221, 234, 255, 1) 100%,rgba(240, 248, 254, 1) 100%);"> <router-link
<div class="leftt"><img src="../../assets/images/taskpage/left2.png"/></div> to="/sonproject"
<div class="photo"><img src="../../assets/images/taskpage/picture4.png"/></div> class="taskbox"
<div class="rightt"><img src="../../assets/images/taskpage/right2.png"/></div> style="
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">单层子项目</div> margin-right: 24px;
</router-link> background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
<div class="taskbox" @click="showModal3" style="background:linear-gradient(180deg,rgba(254, 243, 221, 1) 100%,rgba(255, 250, 240, 1) 100%);"> "
<div class="leftt"><img src="../../assets/images/taskpage/left1.png"/></div> >
<div class="photo"><img src="../../assets/images/taskpage/picture5.png"/></div> <div class="leftt">
<div class="rightt"><img src="../../assets/images/taskpage/right1.png"/></div> <img src="../../assets/images/taskpage/left2.png" />
<div class="centerbox" style="color: rgba(255, 182, 78, 1)">多层子项目</div>
</div> </div>
<div class="photo">
<img src="../../assets/images/taskpage/picture4.png" />
</div>
<div class="rightt">
<img src="../../assets/images/taskpage/right2.png" />
</div>
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">
单层子项目
</div>
</router-link>
<div
class="taskbox"
@click="showModal3"
style="
background: linear-gradient(180deg, #fef3dd 0%, #fffaf0 100%);
"
>
<div class="leftt">
<img src="../../assets/images/taskpage/left1.png" />
</div>
<div class="photo">
<img src="../../assets/images/taskpage/picture5.png" />
</div>
<div class="rightt">
<img src="../../assets/images/taskpage/right1.png" />
</div>
<div class="centerbox" style="color: rgba(255, 182, 78, 1)">
多层子项目
</div>
</div>
</div> </div>
</a-modal> </a-modal>
</div> </div>
@@ -153,22 +196,39 @@
<div> <div>
<div> <div>
<a-modal <a-modal
v-model:visible="estabish" v-model:visible="estabish"
:title="null" :title="null"
@ok="closeModal1" @ok="closeModal1"
:footer="null" :footer="null"
:closable="false" :closable="false"
wrapClassName="estabish" wrapClassName="estabish"
width="638px" width="638px"
height="468px" height="468px"
> >
<div class="modalHeader" <div
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%)" 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"> <div class="headerLeft" style="margin-left: 32px">
<span class="headerLeftText" style="font-size: 16px">添加阶段</span> <span class="headerLeftText" style="font-size: 16px"
>请选择项目类别</span
>
</div> </div>
<div style="cursor: pointer;margin-right:32px" @click="closeModal1"> <div
style="cursor: pointer; margin-right: 32px"
@click="closeModal1"
>
<img <img
style="width: 22px; height: 22px" style="width: 22px; height: 22px"
src="../../assets/images/basicinfo/close22.png" src="../../assets/images/basicinfo/close22.png"
@@ -176,22 +236,54 @@
</div> </div>
</div> </div>
<div class="modalMain"> <div class="modalMain">
<router-link to="/projectadd"> <router-link to="/projectadd">
<div class="taskbox" style="background:linear-gradient(180deg,rgba(221, 234, 255, 1) 100%,rgba(240, 248, 254, 1) 100%);"> <div
<div class="leftt"><img src="../../assets/images/taskpage/left2.png"/></div> class="taskbox"
<div class="photo"><img src="../../assets/images/taskpage/picture6.png"/></div> style="
<div class="rightt"><img src="../../assets/images/taskpage/right2.png"/></div> background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">单层项目</div> "
<div class="centermain">不包含子项目直接填写项目基础信息后创建任务</div> >
<div class="leftt">
<img src="../../assets/images/taskpage/left2.png" />
</div>
<div class="photo">
<img src="../../assets/images/taskpage/picture6.png" />
</div>
<div class="rightt">
<img src="../../assets/images/taskpage/right2.png" />
</div>
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">
单层项目
</div>
<div class="centermain">
不包含子项目直接填写项目基础信息后创建任务
</div> </div>
</router-link>
<div class="taskbox" @click="showModal2" style="margin-bottom: 40px;background:linear-gradient(180deg,rgba(229, 246, 236, 1) 100%,rgba(238, 249, 243, 1) 100%);">
<div class="leftt"><img src="../../assets/images/taskpage/left3.png"/></div>
<div class="photo"><img src="../../assets/images/taskpage/picture7.png"/></div>
<div class="rightt"><img src="../../assets/images/taskpage/right3.png"/></div>
<div class="centerbox1" style="color: rgba(93, 201, 136, 1)">多层项目</div>
<div class="centermain1">包含子项目分为多层子项目和单层子项目多层子项目可创建班级通过班级填写基础信息并创建任务</div>
</div> </div>
</router-link>
<div
class="taskbox"
@click="showModal2"
style="
margin-bottom: 40px;
background: linear-gradient(180deg, #e5f6ec 0%, #eef9f3 100%);
"
>
<div class="leftt">
<img src="../../assets/images/taskpage/left3.png" />
</div>
<div class="photo">
<img src="../../assets/images/taskpage/picture7.png" />
</div>
<div class="rightt">
<img src="../../assets/images/taskpage/right3.png" />
</div>
<div class="centerbox1" style="color: rgba(93, 201, 136, 1)">
多层项目
</div>
<div class="centermain1">
包含子项目分为多层子项目和单层子项目多层子项目可创建班级通过班级填写基础信息并创建任务
</div>
</div>
</div> </div>
</a-modal> </a-modal>
</div> </div>
@@ -208,19 +300,33 @@
wrapClassName="doublepro" wrapClassName="doublepro"
width="624px" width="624px"
height="476px" height="476px"
>
<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="modalHeader" <div class="headerLeft" style="margin-left: 32px">
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%)" <span class="headerLeftText" style="font-size: 16px"
>创建多层项目</span
> >
<div class="headerLeft" style="margin-left: 32px"> </div>
<span class="headerLeftText" style="font-size: 16px">创建多层项目</span> <div style="cursor: pointer; margin-right: 32px" @click="closeModal2">
</div> <img
<div style="cursor: pointer;margin-right:32px" @click="closeModal2"> style="width: 22px; height: 22px"
<img src="../../assets/images/basicinfo/close22.png"
style="width: 22px; height: 22px" />
src="../../assets/images/basicinfo/close22.png" </div>
/>
</div>
</div> </div>
<div class="modalMain"> <div class="modalMain">
<div class="name"> <div class="name">
@@ -234,7 +340,8 @@
<div class="in"> <div class="in">
<a-input <a-input
v-model:value="value" v-model:value="value"
show-count :maxlength="30" show-count
:maxlength="30"
placeholder="请输入项目名称" placeholder="请输入项目名称"
style="border-radius: 8px" style="border-radius: 8px"
/> />
@@ -252,7 +359,7 @@
<a-select <a-select
v-model:value="value" v-model:value="value"
placeholder="四个养成" placeholder="四个养成"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
@@ -268,7 +375,7 @@
<a-input <a-input
v-model:value="value" v-model:value="value"
placeholder="请选择项目经理" placeholder="请选择项目经理"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
@@ -283,13 +390,13 @@
<div class="in"> <div class="in">
<a-input <a-input
v-model:value="value" v-model:value="value"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
<div class="pubtn"> <div class="pubtn">
<a-button class="pubtn1" @click="closeModal2">取消</a-button> <a-button class="pubtn1" @click="closeModal2">取消</a-button>
<a-button class="pubtn2" @click="closeModal2">确定</a-button> <a-button class="pubtn2" @click="closeModal2">确定</a-button>
</div> </div>
</div> </div>
</a-modal> </a-modal>
@@ -306,24 +413,40 @@
wrapClassName="doublesonpro" wrapClassName="doublesonpro"
width="624px" width="624px"
height="476px" height="476px"
>
<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="modalHeader" <div class="headerLeft" style="margin-left: 32px">
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%)" <span class="headerLeftText" style="font-size: 16px"
>创建多层子项目</span
> >
<div class="headerLeft" style="margin-left: 32px"> </div>
<span class="headerLeftText" style="font-size: 16px">创建多层项目</span> <div style="cursor: pointer; margin-right: 32px" @click="closeModal3">
</div> <img
<div style="cursor: pointer;margin-right:32px" @click="closeModal3"> style="width: 22px; height: 22px"
<img src="../../assets/images/basicinfo/close22.png"
style="width: 22px; height: 22px" />
src="../../assets/images/basicinfo/close22.png" </div>
/>
</div>
</div> </div>
<div class="modalMain"> <div class="modalMain">
<div style="margin-left: 40px;margin-top: 40px"> <div style="margin-left: 40px; margin-top: 40px">
<span style="color: #000000;font-size: 14px">项目归属</span> <span style="color: #000000; font-size: 14px">项目归属</span>
<span style="color:#999999;font-size: 14px; margin-left: 10px">管理者进阶</span> <span style="color: #999999; font-size: 14px; margin-left: 10px"
>管理者进阶</span
>
</div> </div>
<div class="name"> <div class="name">
<div class="star" style="margin-top: -4px"> <div class="star" style="margin-top: -4px">
@@ -337,7 +460,7 @@
<a-input <a-input
v-model:value="value" v-model:value="value"
placeholder="请输入项目名称" placeholder="请输入项目名称"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
@@ -353,7 +476,7 @@
<a-select <a-select
v-model:value="value" v-model:value="value"
placeholder="四个养成" placeholder="四个养成"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
@@ -369,7 +492,7 @@
<a-input <a-input
v-model:value="value" v-model:value="value"
placeholder="自动带出 可编辑" placeholder="自动带出 可编辑"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
@@ -384,13 +507,13 @@
<div class="in"> <div class="in">
<a-input <a-input
v-model:value="value" v-model:value="value"
style="border-radius: 8px;height: 40px" style="border-radius: 8px; height: 40px"
/> />
</div> </div>
</div> </div>
<div class="pubtn"> <div class="pubtn">
<a-button class="pubtn1" @click="closeModal3">取消</a-button> <a-button class="pubtn1" @click="closeModal3">取消</a-button>
<a-button class="pubtn2" @click="closeModal3">确定</a-button> <a-button class="pubtn2" @click="closeModal3">确定</a-button>
</div> </div>
</div> </div>
</a-modal> </a-modal>
@@ -739,7 +862,6 @@ export default {
doublesonpro: false, doublesonpro: false,
}); });
onMounted(() => { onMounted(() => {
// console.log("执行"); // console.log("执行");
}); });
@@ -788,10 +910,15 @@ export default {
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
<span class="operation3" style="cursor: pointer" <span
onClick={() => { class="operation3"
state.sonproject = true; style="cursor: pointer"
}}>创建子项目</span> onClick={() => {
state.sonproject = true;
}}
>
创建子项目
</span>
<div class="tableSelect"> <div class="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -912,7 +1039,9 @@ export default {
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
<router-link to="/classadd" class="operation3">创建班级</router-link> <router-link to="/classadd" class="operation3">
创建班级
</router-link>
<div class="tableSelect"> <div class="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -960,7 +1089,9 @@ export default {
</a-select> </a-select>
</div> </div>
<router-link to="/classadd" class="operation3">创建班级</router-link> <router-link to="/classadd" class="operation3">
创建班级
</router-link>
<span class="more">复制</span> <span class="more">复制</span>
</div> </div>
) : item.state === "已结束" ? ( ) : item.state === "已结束" ? (
@@ -1005,7 +1136,7 @@ export default {
a.operation = a.operation =
a.state === "草稿" ? ( a.state === "草稿" ? (
<div class="operation"> <div class="operation">
<span class="operation1"></span> <span class="operation1">编辑</span>
<div class="tableSelect"> <div class="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -1222,7 +1353,7 @@ export default {
item.operation = item.operation =
item.state === "草稿" ? ( item.state === "草稿" ? (
<div class="operation"> <div class="operation">
<span class="operation1"></span> <span class="operation1">编辑</span>
<div class="tableSelect"> <div class="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -1441,7 +1572,11 @@ export default {
//单层项目 //单层项目
value.operation = ( value.operation = (
<div class="operation"> <div class="operation">
<span class="operation1"></span> {value.state === "草稿" ? (
<span class="operation1">编辑</span>
) : (
<span class="operation1"></span>
)}
<div class="tableSelect"> <div class="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -1565,38 +1700,32 @@ export default {
const showModal = () => { const showModal = () => {
state.sonproject = true; state.sonproject = true;
}; };
const closeModal = () => { const closeModal = () => {
state.sonproject = false; state.sonproject = false;
}; };
const showModal1 = () => { const showModal1 = () => {
state.estabish = true; state.estabish = true;
}; };
const closeModal1 = () => { const closeModal1 = () => {
state.estabish = false; state.estabish = false;
}; };
const showModal2 = () => { const showModal2 = () => {
state.doublepro = true; state.doublepro = true;
state.estabish = false; state.estabish = false;
}; };
const closeModal2 = () => { const closeModal2 = () => {
state.doublepro = false; state.doublepro = false;
}; };
const showModal3 = () => { const showModal3 = () => {
state.doublesonpro = true; state.doublesonpro = true;
state.sonproject = false; state.sonproject = false;
}; };
const closeModal3 = () => { const closeModal3 = () => {
state.doublesonpro = false; state.doublesonpro = false;
}; };
return { return {
...toRefs(state), ...toRefs(state),
@@ -1818,45 +1947,44 @@ export default {
width: 80%; width: 80%;
height: 40px; height: 40px;
.ant-select-selector { .ant-select-selector {
border-radius: 8px; border-radius: 8px;
// height: 120%; // height: 120%;
width: 100%; width: 100%;
height: 40px; height: 40px;
} }
} }
} }
}
} .pubtn {
.pubtn { display: flex;
display: flex; justify-content: center;
justify-content: center; margin-top: 25px;
margin-top: 25px; //margin-bottom: 29px;
//margin-bottom: 29px; .pubtn1 {
.pubtn1 { width: 100px;
width: 100px; height: 40px;
height: 40px; margin-right: 16px;
margin-right: 16px; margin-bottom: 29px;
margin-bottom: 29px; border: 1px solid #409eff;
border: 1px solid #409EFF; border-radius: 4px;
border-radius: 4px; color: rgba(78, 166, 255, 1);
color: rgba(78, 166, 255, 1); font-size: 14px;
font-size: 14px; //line-height: 36px;
//line-height: 36px; align-items: center;
align-items: center; background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1) }
} .pubtn2 {
.pubtn2 { width: 100px;
width: 100px; height: 40px;
height: 40px; margin-bottom: 29px;
margin-bottom: 29px; border: 1px solid #409eff;
border: 1px solid #409EFF; border-radius: 4px;
border-radius: 4px; color: #ffffff;
color: #FFFFFF; font-size: 14px;
font-size: 14px; align-items: center;
align-items: center; //line-height: 36px;
//line-height: 36px; background: #409eff;
background: #409EFF; }
}
} }
} }
} }
@@ -1900,45 +2028,44 @@ export default {
width: 100%; width: 100%;
height: 40px; height: 40px;
.ant-select-selector { .ant-select-selector {
border-radius: 8px; border-radius: 8px;
// height: 120%; // height: 120%;
width: 100%; width: 100%;
height: 40px; height: 40px;
} }
} }
} }
}
} .pubtn {
.pubtn { display: flex;
display: flex; justify-content: center;
justify-content: center; margin-top: 25px;
margin-top: 25px; //margin-bottom: 29px;
//margin-bottom: 29px; .pubtn1 {
.pubtn1 { width: 100px;
width: 100px; height: 40px;
height: 40px; margin-right: 16px;
margin-right: 16px; margin-bottom: 29px;
margin-bottom: 29px; border: 1px solid #409eff;
border: 1px solid #409EFF; border-radius: 4px;
border-radius: 4px; color: rgba(78, 166, 255, 1);
color: rgba(78, 166, 255, 1); font-size: 14px;
font-size: 14px; //line-height: 36px;
//line-height: 36px; align-items: center;
align-items: center; background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1) }
} .pubtn2 {
.pubtn2 { width: 100px;
width: 100px; height: 40px;
height: 40px; margin-bottom: 29px;
margin-bottom: 29px; border: 1px solid #409eff;
border: 1px solid #409EFF; border-radius: 4px;
border-radius: 4px; color: #ffffff;
color: #FFFFFF; font-size: 14px;
font-size: 14px; align-items: center;
align-items: center; //line-height: 36px;
//line-height: 36px; background: #409eff;
background: #409EFF; }
}
} }
} }
} }
@@ -1947,49 +2074,49 @@ export default {
.sonproject { .sonproject {
.ant-modal { .ant-modal {
.ant-modal-body { .ant-modal-body {
padding: 0 !important; padding: 0 !important;
.modalMain { .modalMain {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 48px; margin-top: 48px;
//margin-bottom: 40px; //margin-bottom: 40px;
.taskbox { .taskbox {
width: 310px; width: 310px;
height: 160px; height: 160px;
border-radius: 10px; border-radius: 10px;
position: relative; position: relative;
margin-bottom: 80px; margin-bottom: 80px;
cursor: pointer; cursor: pointer;
.leftt { .leftt {
position: absolute; position: absolute;
top: 18px; top: 18px;
left: 0; left: 0;
} }
.photo { .photo {
position: absolute; position: absolute;
top: 44px; top: 44px;
left: 40px; left: 40px;
} }
.rightt { .rightt {
position: absolute; position: absolute;
top: 69px; top: 69px;
right: 26px; right: 26px;
} }
.centerbox { .centerbox {
position: absolute; position: absolute;
top: 66px; top: 66px;
left: 136px; left: 136px;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
//line-height: 36px; //line-height: 36px;
} }
.centermain { .centermain {
color: rgba(135, 139, 146, 1); color: rgba(135, 139, 146, 1);
font-size: 14px; font-size: 14px;
position: absolute; position: absolute;
left: 144px; left: 144px;
bottom: 49px; bottom: 49px;
} }
} }
} }
} }
@@ -1998,7 +2125,7 @@ export default {
.estabish { .estabish {
.ant-modal { .ant-modal {
.ant-modal-body { .ant-modal-body {
padding: 0 !important; padding: 0 !important;
.modalMain { .modalMain {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -2006,61 +2133,61 @@ export default {
margin-top: 48px; margin-top: 48px;
//margin-bottom: 40px; //margin-bottom: 40px;
.taskbox { .taskbox {
width: 438px; width: 438px;
height: 160px; height: 160px;
border-radius: 10px; border-radius: 10px;
position: relative; position: relative;
margin-bottom: 24px; margin-bottom: 24px;
cursor: pointer; cursor: pointer;
.leftt { .leftt {
position: absolute; position: absolute;
top: 18px; top: 18px;
left: 0; left: 0;
} }
.photo { .photo {
position: absolute; position: absolute;
top: 44px; top: 44px;
left: 40px; left: 40px;
} }
.rightt { .rightt {
position: absolute; position: absolute;
top: 69px; top: 69px;
right: 26px; right: 26px;
} }
.centerbox { .centerbox {
position: absolute; position: absolute;
top: 42px; top: 42px;
left: 120px; left: 120px;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
//line-height: 36px; //line-height: 36px;
} }
.centerbox1 { .centerbox1 {
position: absolute; position: absolute;
top: 32px; top: 32px;
left: 120px; left: 120px;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
//line-height: 36px; //line-height: 36px;
} }
.centermain { .centermain {
color: rgba(135, 139, 146, 1); color: rgba(135, 139, 146, 1);
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
position: absolute; position: absolute;
width: 252px; width: 252px;
left: 120px; left: 120px;
top: 78px; top: 78px;
} }
.centermain1 { .centermain1 {
color: rgba(135, 139, 146, 1); color: rgba(135, 139, 146, 1);
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
position: absolute; position: absolute;
width: 252px; width: 252px;
left: 120px; left: 120px;
top: 68px; top: 68px;
} }
} }
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,97 +1,173 @@
<!-- 调研管理-基础信息页面 --> <!-- 调研管理-基础信息页面 -->
<template> <template>
<div class="researchadd"> <div class="researchadd">
<div class="header"> <div class="header">
<span class="title">创建调研</span> <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>
<div class="content"> <div class="content">
<div class="name">
<div class="namebox">
<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
>
</div>
</div>
<div class="name">
<div class="namebox">
<img
class="nameimg"
src="../../assets/images/basicinfo/asterisk.png"
/>
<div class="inname">提干</div>
</div>
<div class="in">
<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
>
</div>
</div>
<div class="options">
<div class="name"> <div class="name">
<div class="namebox"> <div class="namebox">
<div class="inname">类型</div> <div class="inname">选项1</div>
</div> </div>
<div class="in"> <div class="in">
<input type="radio" name="type" id="single" checked="checked"/><label for="single" class="text" style="margin-left: 5px">单选</label> <a-input
<input type="radio" name="type" id="double" style="margin-left: 10px"/><label for="double" class="text" style="margin-left: 5px">多选</label> v-model:value="valueE"
<input type="radio" name="type" id="score" style="margin-left: 10px"/><label for="score" class="text" style="margin-left: 5px">评分题</label> show-count
:maxlength="20"
style="border-radius: 8px"
/>
</div> </div>
</div> </div>
<div class="delete">删除</div>
</div>
<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="namebox">
<img <div class="inname">选项1</div>
class="nameimg"
src="../../assets/images/basicinfo/asterisk.png"
/>
<div class="inname">提干</div>
</div> </div>
<div class="in"> <div class="in">
<a-input v-model:value="valueE" placeholder="请输入项目名称" show-count :maxlength="20" style="border-radius: 8px"/> <a-input
</div> v-model:value="valueE"
</div> show-count
<div class="name"> :maxlength="20"
<div class="in" style="margin-left: 133px"> style="border-radius: 8px"
<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="namebox">
<div class="inname">选项1</div>
</div>
<div class="in">
<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="in" style="margin-left: 133px">
<div class="addimg">+添加图片</div>
</div>
</div>
<div class="options">
<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"/>
</div>
</div>
<div class="delete">删除</div>
</div>
<div class="picture" style="position: relative">
<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"
src="../../assets/images/basicinfo/close.png"
/> />
</div>
</div> </div>
<div class="delete">删除</div>
</div>
<div class="picture" style="position: relative">
<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;
"
src="../../assets/images/basicinfo/close.png"
/>
</div>
</div> </div>
<div class="header"> <div class="header">
<span class="title" style="font-size: 14px">选项设置</span> <span class="title" style="font-size: 14px">选项设置</span>
</div> </div>
<div class="content"> <div class="content">
<div class="name" > <div class="name">
<div class="namebox"> <div class="namebox">
<div class="inname">最低分</div> <div class="inname">最低分</div>
</div>
<div class="in">
<a-input v-model:value="valueE" />
</div>
<div class="namebox" style="margin-left: -50px">
<div class="inname">最高分</div>
</div>
<div class="in">
<a-input v-model:value="valueE" />
</div>
</div> </div>
<div class="scorebox"> <div class="in numberInp">
<div class="scoretext">非常满意</div> <a-input-number
<div class="number"> :value="minScore"
<a-button class="btn" style="margin-left:10px">1</a-button> :min="1"
<a-button class="btn">2</a-button> :max="10"
@change="minChange"
/>
</div>
<div class="namebox" style="margin-left: -180px">
<div class="inname">最高分</div>
</div>
<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">
<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">3</a-button>
<a-button class="btn">4</a-button> <a-button class="btn">4</a-button>
<a-button class="btn">5</a-button> <a-button class="btn">5</a-button>
@@ -99,195 +175,348 @@
<a-button class="btn">7</a-button> <a-button class="btn">7</a-button>
<a-button class="btn">8</a-button> <a-button class="btn">8</a-button>
<a-button class="btn">9</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> </div>
<div class="name name2"> <div class="scoretext">非常不满意</div>
<div class="namebox"> </div>
<div class="inname" style="margin-top: 13px">备注</div> <div class="name name2">
</div> <div class="namebox">
<div class="in"> <div class="inname" style="margin-top: 13px">备注</div>
<a-textarea
v-model:value="valuei"
style="height: 80px"
/>
</div>
</div> </div>
<div class="in">
<a-textarea v-model:value="valuei" style="height: 80px" />
</div>
</div>
</div> </div>
<div class="footer"> <div class="footer">
<div class="btn"> <div class="btn">
<a-button type="primary" style="width: 100px;height: 40px;border-radius: 8px;background-color: #409EFF">保存</a-button> <a-button
<a-button type="primary" ghost style="width: 100px;height: 40px;margin-left: 14px;border-radius: 8px">取消</a-button> type="primary"
</div> 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>
</div>
</template> </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> </script>
<style lang="scss"> <style lang="scss">
.researchadd { .researchadd {
width: 100%;
display: flex;
flex-direction: column;
.header {
width: 100%; width: 100%;
display: flex;
justify-content: space-between;
.title {
color: #000000;
font-size: 18px;
//line-height: 36px;
padding-top: 30px;
padding-left: 37px;
//font-weight: 500;
}
.goback {
padding-right: 70px;
//padding-top: 37px;
position: relative;
.return {
display: inline-block;
width: 42px;
height: 42px;
margin-top: 17px;
margin-right: 10px;
background-image: url("../../assets/images/projectadd/return.png");
}
.returntext {
display: inline-block;
position: absolute;
top: 27px;
color: #4ea6ff;
font-size: 14px;
}
}
}
.content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.header { .scorebox {
width: 100%; display: flex;
align-items: center;
margin-top: 20px;
margin-left: 70px;
.scoretext {
font-size: 14px;
color: #56a3f9;
}
.number {
display: flex; display: flex;
justify-content: space-between; border: 1px solid #d7e5fd;
.title { border-radius: 5px;
color: #000000; margin: 0 10px;
font-size: 18px; padding: 5px;
//line-height: 36px;
padding-top: 30px;
padding-left: 37px;
//font-weight: 500;
}
.goback {
padding-right: 70px;
//padding-top: 37px;
position: relative;
.return {
display: inline-block;
width: 42px;
height: 42px;
margin-top: 17px;
margin-right: 10px;
background-image: url("../../assets/images/projectadd/return.png");
}
.returntext {
display: inline-block;
position: absolute;
top: 27px;
color: #4EA6FF;
font-size: 14px;
}
}
}
.content {
display: flex;
flex-direction: column;
.scorebox {
display:flex;
align-items: center;
margin-top: 20px;
margin-left:70px;
.scoretext {
font-size: 14px;
color: #56A3F9;
}
.number {
display: flex;
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;
margin: 5px;
}
}
}
.picture {
width: 100px;
display: flex;
flex-direction: column;
margin-top: 20px;
margin-left: 133px;
.pictureimg {
width: 100px;
height: 100px;
}
.picturename {
color: #6F6F6F;
font-size: 14px;
}
}
.name2 {
display: flex;
align-items: flex-start;
}
.options {
display:flex;
}
.delete {
cursor: pointer;
margin-top: 32px;
margin-left: 20px;
float: right;
color: #4EA6FF;
font-size: 14px;
}
.name {
width: 50%;
// background-color: lightcoral;
display: flex;
margin-top: 20px;
//align-items: center;
//height: 40px;
// border: 1px solid black;
.namebox {
width: 120px;
display: flex;
align-items: center;
justify-content: flex-end;
flex-shrink: 0;
.nameimg {
width: 10px;
height: 10px;
}
}
.inname {
color: #6f6f6f;
font-size: 14px;
margin-left: 7px;
}
.in {
margin-left: 14px;
flex: 1;
.addimg {
cursor:pointer;
color: rgba(78, 166, 255, 1);
font-size: 14px;
}
.text {
color: rgba(109, 117, 132, 1);
font-size: 14px;
//line-height: 24px;
}
.ant-radio-wrapper {
}
.ant-input {
border-radius: 5px;
// height: 120%;
width: 100%;
height: 35px;
}
.ant-select-selector {
border-radius: 5px;
// height: 120%;
width: 100%;
height: 40px;
}
}
}
}
.footer {
width: 100%;
margin-top: 31px;
margin-bottom: 14px;
.btn { .btn {
display: flex; width: 40px;
margin-bottom: 20px; height: 40px;
justify-content: center; border: 1px solid #56a3f9;
cursor: pointer; 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;
} }
}
} }
.picture {
width: 100px;
display: flex;
flex-direction: column;
margin-top: 20px;
margin-left: 133px;
.pictureimg {
width: 100px;
height: 100px;
}
.picturename {
color: #6f6f6f;
font-size: 14px;
}
}
.name2 {
display: flex;
align-items: flex-start;
}
.options {
display: flex;
}
.delete {
cursor: pointer;
margin-top: 32px;
margin-left: 20px;
float: right;
color: #4ea6ff;
font-size: 14px;
}
.name {
width: 50%;
// background-color: lightcoral;
display: flex;
margin-top: 20px;
//align-items: center;
//height: 40px;
// border: 1px solid black;
.namebox {
width: 120px;
display: flex;
align-items: center;
justify-content: flex-end;
flex-shrink: 0;
.nameimg {
width: 10px;
height: 10px;
}
}
.inname {
color: #6f6f6f;
font-size: 14px;
margin-left: 7px;
}
.in {
margin-left: 14px;
flex: 1;
.addimg {
cursor: pointer;
color: rgba(78, 166, 255, 1);
font-size: 14px;
}
.text {
color: rgba(109, 117, 132, 1);
font-size: 14px;
//line-height: 24px;
}
.ant-radio-wrapper {
}
.ant-input {
border-radius: 5px;
// height: 120%;
width: 100%;
height: 35px;
}
.ant-select-selector {
border-radius: 5px;
// height: 120%;
width: 100%;
height: 40px;
}
}
.numberInp {
width: 200px;
.ant-input-number {
width: 200px;
}
// .ant-input-number-input-wrap {
// width: 200px;
// }
}
}
}
.footer {
width: 100%;
margin-top: 31px;
margin-bottom: 14px;
.btn {
display: flex;
margin-bottom: 20px;
justify-content: center;
cursor: pointer;
}
}
} }
</style>
</style>

View File

@@ -23,6 +23,7 @@
<div> <div>
<add-vote v-model:addvoteVisible="visible" /> <add-vote v-model:addvoteVisible="visible" />
</div> </div>
<a-radio v-model:checked="checked" @click="changeRadio">Option A</a-radio>
</div> </div>
</template> </template>
<script> <script>
@@ -36,15 +37,19 @@ export default {
setup() { setup() {
const state = reactive({ const state = reactive({
visible: false, visible: false,
checked: true,
}); });
const showDrawer = () => { const showDrawer = () => {
state.visible = true; state.visible = true;
}; };
const changeRadio = () => {
state.checked = false;
};
return { return {
...toRefs(state), ...toRefs(state),
showDrawer, showDrawer,
changeRadio,
}; };
}, },
}; };