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

@@ -57,16 +57,23 @@
<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>
<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>
<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)"
<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"
@@ -102,60 +109,64 @@
</template>
<script>
import { reactive, toRefs, ref } from "vue";
const options1 = ref([
const options1 = ref([
{
value: "value1",
label: "请选择状态",
},
]);
const columns1 = [
]);
const columns1 = [
{
title: "课程编号",
width: '20%',
width: "20%",
dataIndex: "num",
key: "num",
align: "center",
},
{
title: "名称",
width: '20%',
width: "20%",
dataIndex: "name",
key: "name",
align: "center",
},
{
title: "内容分类",
width: '13%',
width: "13%",
dataIndex: "content",
key: "content",
align: "center",
},
{
title: "授课教师",
width: '13%',
width: "13%",
dataIndex: "teacher",
key: "teacher",
align: "center",
},
{
title: "创建人",
width: '13%',
width: "13%",
dataIndex: "creator",
key: "creator",
align: "center",
},
{
title: "完成时间",
width: '20%',
width: "20%",
dataIndex: "time",
key: "time",
align: "center",
},
]
const rowSelection = ref({
];
const rowSelection = ref({
checkStrictly: false,
onChange: (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
console.log(
`selectedRowKeys: ${selectedRowKeys}`,
"selectedRows: ",
selectedRows
);
},
onSelect: (record, selected, selectedRows) => {
console.log(record, selected, selectedRows);
@@ -163,8 +174,8 @@ import { reactive, toRefs, ref } from "vue";
onSelectAll: (selected, selectedRows, changeRows) => {
console.log(selected, selectedRows, changeRows);
},
});
export default {
});
export default {
name: "AddFaceteach",
props: {
addfaceteachVisible: {
@@ -177,84 +188,84 @@ import { reactive, toRefs, ref } from "vue";
tableData1: [
{
key: "1",
num: 'JDF2022071100001',
name:'时间管理课程',
content:'通用力',
teacher:'BOE教师',
creator:'管理员',
time:'2022-10-31 23:12:00',
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',
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',
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',
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',
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',
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',
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',
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',
num: "JDF2022071100001",
name: "时间管理课程",
content: "领导力",
teacher: "BOE教师",
creator: "管理员",
time: "2022-10-31 23:12:00",
},
],
currentPage: 1,
@@ -304,24 +315,24 @@ import { reactive, toRefs, ref } from "vue";
}
}
.contentMain {
.main_items{
.main_items {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
flex-wrap: wrap;
.mi_ipts{
.mi_ipts {
display: flex;
margin-bottom: 20px;
.mii_ipt{
.mii_ipt {
display: flex;
align-items: center;
margin-right: 24px;
.ipt_name{
.ipt_name {
white-space: nowrap;
}
}
}
.mi_btns{
.mi_btns {
display: flex;
margin-left: 38px;
margin-bottom: 20px;
@@ -353,7 +364,7 @@ import { reactive, toRefs, ref } from "vue";
height: 17px;
background-image: url("@/assets/images/coursewareManage/search0.png");
}
.btnText{
.btnText {
color: rgb(255, 255, 255);
}
}
@@ -364,7 +375,7 @@ import { reactive, toRefs, ref } from "vue";
height: 17px;
background-image: url("@/assets/images/coursewareManage/reset1.png");
}
.btnText{
.btnText {
color: rgb(64, 158, 255);
}
}
@@ -374,7 +385,7 @@ import { reactive, toRefs, ref } from "vue";
background-image: url("@/assets/images/courseManage/search1.png");
}
.btnText {
color: #388BE1;
color: #388be1;
}
}
.btn2:hover {
@@ -388,17 +399,17 @@ import { reactive, toRefs, ref } from "vue";
}
}
}
.main_notice{
.main_notice {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
height: 40px;
background-color: #E9F6FE;
.mntc_left{
background-color: #e9f6fe;
.mntc_left {
display: flex;
align-items: center;
.notice_icon{
.notice_icon {
width: 14px;
height: 14px;
margin-right: 9px;
@@ -407,11 +418,11 @@ import { reactive, toRefs, ref } from "vue";
background-size: 100% 100%;
}
}
.mntc_right{
.mntc_right {
cursor: pointer;
}
}
.main_btns{
.main_btns {
height: 72px;
width: 100%;
position: absolute;

View File

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

View File

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

View File

@@ -119,13 +119,27 @@
width="764px"
height="356px"
>
<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>
<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"
@@ -133,17 +147,46 @@
</div>
</div>
<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%);">
<div class="leftt"><img src="../../assets/images/taskpage/left2.png"/></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
to="/sonproject"
class="taskbox"
style="
margin-right: 24px;
background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
"
>
<div class="leftt">
<img src="../../assets/images/taskpage/left2.png" />
</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,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="rightt"><img src="../../assets/images/taskpage/right1.png"/></div>
<div class="centerbox" style="color: rgba(255, 182, 78, 1)">多层子项目</div>
<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>
</a-modal>
@@ -162,13 +205,30 @@
width="638px"
height="468px"
>
<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>
<span class="headerLeftText" style="font-size: 16px"
>请选择项目类别</span
>
</div>
<div style="cursor: pointer;margin-right:32px" @click="closeModal1">
<div
style="cursor: pointer; margin-right: 32px"
@click="closeModal1"
>
<img
style="width: 22px; height: 22px"
src="../../assets/images/basicinfo/close22.png"
@@ -177,20 +237,52 @@
</div>
<div class="modalMain">
<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 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
class="taskbox"
style="
background: linear-gradient(180deg, #ddeaff 0%, #f0f8fe 100%);
"
>
<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
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>
</a-modal>
@@ -209,13 +301,27 @@
width="624px"
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.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>
<span class="headerLeftText" style="font-size: 16px"
>创建多层项目</span
>
</div>
<div style="cursor: pointer;margin-right:32px" @click="closeModal2">
<div style="cursor: pointer; margin-right: 32px" @click="closeModal2">
<img
style="width: 22px; height: 22px"
src="../../assets/images/basicinfo/close22.png"
@@ -234,7 +340,8 @@
<div class="in">
<a-input
v-model:value="value"
show-count :maxlength="30"
show-count
:maxlength="30"
placeholder="请输入项目名称"
style="border-radius: 8px"
/>
@@ -252,7 +359,7 @@
<a-select
v-model:value="value"
placeholder="四个养成"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -268,7 +375,7 @@
<a-input
v-model:value="value"
placeholder="请选择项目经理"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -283,7 +390,7 @@
<div class="in">
<a-input
v-model:value="value"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -307,13 +414,27 @@
width="624px"
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.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>
<span class="headerLeftText" style="font-size: 16px"
>创建多层子项目</span
>
</div>
<div style="cursor: pointer;margin-right:32px" @click="closeModal3">
<div style="cursor: pointer; margin-right: 32px" @click="closeModal3">
<img
style="width: 22px; height: 22px"
src="../../assets/images/basicinfo/close22.png"
@@ -321,9 +442,11 @@
</div>
</div>
<div class="modalMain">
<div style="margin-left: 40px;margin-top: 40px">
<span style="color: #000000;font-size: 14px">项目归属</span>
<span style="color:#999999;font-size: 14px; margin-left: 10px">管理者进阶</span>
<div style="margin-left: 40px; margin-top: 40px">
<span style="color: #000000; font-size: 14px">项目归属</span>
<span style="color: #999999; font-size: 14px; margin-left: 10px"
>管理者进阶</span
>
</div>
<div class="name">
<div class="star" style="margin-top: -4px">
@@ -337,7 +460,7 @@
<a-input
v-model:value="value"
placeholder="请输入项目名称"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -353,7 +476,7 @@
<a-select
v-model:value="value"
placeholder="四个养成"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -369,7 +492,7 @@
<a-input
v-model:value="value"
placeholder="自动带出 可编辑"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -384,7 +507,7 @@
<div class="in">
<a-input
v-model:value="value"
style="border-radius: 8px;height: 40px"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
@@ -739,7 +862,6 @@ export default {
doublesonpro: false,
});
onMounted(() => {
// console.log("执行");
});
@@ -788,10 +910,15 @@ export default {
</a-select-option>
</a-select>
</div>
<span class="operation3" style="cursor: pointer"
<span
class="operation3"
style="cursor: pointer"
onClick={() => {
state.sonproject = true;
}}>创建子项目</span>
}}
>
创建子项目
</span>
<div class="tableSelect">
<a-select
style="width: 50px"
@@ -912,7 +1039,9 @@ export default {
</a-select-option>
</a-select>
</div>
<router-link to="/classadd" class="operation3">创建班级</router-link>
<router-link to="/classadd" class="operation3">
创建班级
</router-link>
<div class="tableSelect">
<a-select
style="width: 50px"
@@ -960,7 +1089,9 @@ export default {
</a-select>
</div>
<router-link to="/classadd" class="operation3">创建班级</router-link>
<router-link to="/classadd" class="operation3">
创建班级
</router-link>
<span class="more">复制</span>
</div>
) : item.state === "已结束" ? (
@@ -1005,7 +1136,7 @@ export default {
a.operation =
a.state === "草稿" ? (
<div class="operation">
<span class="operation1"></span>
<span class="operation1">编辑</span>
<div class="tableSelect">
<a-select
style="width: 50px"
@@ -1222,7 +1353,7 @@ export default {
item.operation =
item.state === "草稿" ? (
<div class="operation">
<span class="operation1"></span>
<span class="operation1">编辑</span>
<div class="tableSelect">
<a-select
style="width: 50px"
@@ -1441,7 +1572,11 @@ export default {
//单层项目
value.operation = (
<div class="operation">
{value.state === "草稿" ? (
<span class="operation1">编辑</span>
) : (
<span class="operation1"></span>
)}
<div class="tableSelect">
<a-select
style="width: 50px"
@@ -1565,20 +1700,16 @@ export default {
const showModal = () => {
state.sonproject = true;
};
const closeModal = () => {
state.sonproject = false;
};
const showModal1 = () => {
state.estabish = true;
};
const closeModal1 = () => {
state.estabish = false;
};
const showModal2 = () => {
@@ -1587,7 +1718,6 @@ export default {
};
const closeModal2 = () => {
state.doublepro = false;
};
const showModal3 = () => {
@@ -1596,7 +1726,6 @@ export default {
};
const closeModal3 = () => {
state.doublesonpro = false;
};
return {
...toRefs(state),
@@ -1825,7 +1954,6 @@ export default {
}
}
}
}
.pubtn {
display: flex;
@@ -1837,25 +1965,25 @@ export default {
height: 40px;
margin-right: 16px;
margin-bottom: 29px;
border: 1px solid #409EFF;
border: 1px solid #409eff;
border-radius: 4px;
color: rgba(78, 166, 255, 1);
font-size: 14px;
//line-height: 36px;
align-items: center;
background: rgba(255, 255, 255, 1)
background: rgba(255, 255, 255, 1);
}
.pubtn2 {
width: 100px;
height: 40px;
margin-bottom: 29px;
border: 1px solid #409EFF;
border: 1px solid #409eff;
border-radius: 4px;
color: #FFFFFF;
color: #ffffff;
font-size: 14px;
align-items: center;
//line-height: 36px;
background: #409EFF;
background: #409eff;
}
}
}
@@ -1907,7 +2035,6 @@ export default {
}
}
}
}
.pubtn {
display: flex;
@@ -1919,25 +2046,25 @@ export default {
height: 40px;
margin-right: 16px;
margin-bottom: 29px;
border: 1px solid #409EFF;
border: 1px solid #409eff;
border-radius: 4px;
color: rgba(78, 166, 255, 1);
font-size: 14px;
//line-height: 36px;
align-items: center;
background: rgba(255, 255, 255, 1)
background: rgba(255, 255, 255, 1);
}
.pubtn2 {
width: 100px;
height: 40px;
margin-bottom: 29px;
border: 1px solid #409EFF;
border: 1px solid #409eff;
border-radius: 4px;
color: #FFFFFF;
color: #ffffff;
font-size: 14px;
align-items: center;
//line-height: 36px;
background: #409EFF;
background: #409eff;
}
}
}

View File

@@ -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>
@@ -66,7 +74,7 @@
<div class="img">
<img src="../../assets/images/leveladd/zai.png" />
</div>
<div class="text" >在线</div>
<div class="text">在线</div>
</div>
<!-- 添加在线侧弹窗 -->
<div>
@@ -183,9 +191,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>
@@ -249,28 +260,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">
@@ -278,16 +304,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>
@@ -299,7 +362,7 @@
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
import AddOnline from "../../components/drawers/AddOnline.vue";
import EditOnline from "../../components/drawers/EditOnline.vue";
import AddFaceteach from "../../components/drawers/AddFaceteach.vue"
import AddFaceteach from "../../components/drawers/AddFaceteach.vue";
const drawercolumns = [
{
title: "项目名称",
@@ -571,14 +634,7 @@ export default {
time: "2022-07-20 14:00:03",
},
{
key: 6,
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
time: "2022-07-20 14:00:03",
},
{
key: 7,
key: "1-1-1",
projectName: "管理者进阶-腾飞班K1",
manager: "黄华 刘俊",
creater: "毛继禹",
@@ -616,10 +672,15 @@ export default {
scopedSlots: { customRender: "action" },
customRender: (text) => {
// console.log(text.record.checked1);
return (<div class="racona">
<div class="img" style={{ cursor: "pointer" }} onClick={() => {
return (
<div class="racona">
<div
class="img"
style={{ cursor: "pointer" }}
onClick={() => {
console.log("点击了");
}}></div>
}}
></div>
<span> {text.record.lei}</span>
{/**
@@ -628,7 +689,8 @@ export default {
{text.record.lei}
</a-checkbox>
*/}
</div>);
</div>
);
},
},
{
@@ -650,20 +712,33 @@ export default {
scopedSlots: { customRender: "action" },
customRender: (text) => {
// console.log(text.record.checked1);
return (<div class="opat">
return (
<div class="opat">
<div class="opacationt clearfix">
<a-switch style="margin-left:-50px;margin-top:3px" checked={text.record.checked1} size="small" active-color="red" onClick={() => {
<a-switch
style="margin-left:-50px;margin-top:3px"
checked={text.record.checked1}
size="small"
active-color="red"
onClick={() => {
console.log("点击了");
text.record.checked1 = !text.record.checked1;
}}/>
}}
/>
<div class="showt clearfix">
<div class="bi" style={text.record.checked1 ? "z-index:999" : "z-index:998"}>
<div
class="bi"
style={
text.record.checked1 ? "z-index:999" : "z-index:998"
}
>
必修
</div>
<div class="xuan">选修</div>
</div>
</div>
</div>);
</div>
);
},
},
{
@@ -683,7 +758,8 @@ export default {
align: "center",
scopedSlots: { customRender: "action" },
customRender: () => {
return (<div class="opa">
return (
<div class="opa">
<div class="opacation">
<span
onClick={() => {
@@ -695,7 +771,8 @@ export default {
</span>
<span style="color:#4EA6FF;cursor:pointer">删除</span>
</div>
</div>);
</div>
);
},
},
];
@@ -731,7 +808,6 @@ export default {
});
const showDrawerOnline = () => {
state.visible = true;
};
const showDrawerFaceteach = () => {
state.visible3 = true;
@@ -756,7 +832,6 @@ export default {
</script>
<style lang="scss">
.ant-input {
border-radius: 8px;
// height: 120%;
@@ -768,7 +843,6 @@ export default {
.ant-modal-body {
padding: 0 !important;
.modalMain {
.ant-input-textarea-show-count {
position: relative;
height: 88px;
@@ -809,7 +883,7 @@ export default {
resize: none;
}
}
}
}
.name {
width: 78%;
// background-color: lightcoral;
@@ -877,7 +951,7 @@ export default {
height: 30px;
}
}
}
}
.drawerStyle {
.ant-drawer-content-wrapper {
// max-width: 1000px;
@@ -1142,7 +1216,7 @@ export default {
margin-right: 18px;
}
.pub {
color: #57C887;
color: #57c887;
font-size: 14px;
margin-top: 5px;
margin-right: 30px;
@@ -1286,22 +1360,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;
@@ -1315,8 +1389,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");

View File

@@ -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>

View File

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