mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
feat:调研管理操作的所有弹窗
This commit is contained in:
@@ -69,21 +69,25 @@
|
|||||||
@expand="expandTable"
|
@expand="expandTable"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pa">
|
<div class="pa">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
showSizeChanger="true"
|
showSizeChanger="true"
|
||||||
showQuickJumper="true"
|
showQuickJumper="true"
|
||||||
hideOnSinglePage="true"
|
hideOnSinglePage="true"
|
||||||
:pageSize="pageSize"
|
:pageSize="pageSize"
|
||||||
:current="currentPage"
|
:current="currentPage"
|
||||||
:total="tableDataTotal"
|
:total="tableDataTotal"
|
||||||
class="pagination"
|
class="pagination"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<a-modal v-model:visible="out" :footer="null" :closable="false" style="margin-top: 250px">
|
<a-modal
|
||||||
|
v-model:visible="out"
|
||||||
|
:footer="null"
|
||||||
|
:closable="false"
|
||||||
|
style="margin-top: 250px"
|
||||||
|
>
|
||||||
<div class="out">
|
<div class="out">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<img class="topimg" src="../../assets/images/courseManage/add1.png" />
|
<img class="topimg" src="../../assets/images/courseManage/add1.png" />
|
||||||
@@ -107,7 +111,8 @@
|
|||||||
<div class="in">
|
<div class="in">
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="value"
|
v-model:value="value"
|
||||||
show-count :maxlength="15"
|
show-count
|
||||||
|
:maxlength="15"
|
||||||
style="border-radius: 8px"
|
style="border-radius: 8px"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,6 +124,53 @@
|
|||||||
</div>
|
</div>
|
||||||
</div></a-modal
|
</div></a-modal
|
||||||
>
|
>
|
||||||
|
<!--操作弹窗 -->
|
||||||
|
<a-modal
|
||||||
|
v-model:visible="delete_hs"
|
||||||
|
:footer="null"
|
||||||
|
:closable="closableQR"
|
||||||
|
wrapClassName="DelModal"
|
||||||
|
style="margin-top: 400px"
|
||||||
|
@cancel="delete_exit"
|
||||||
|
>
|
||||||
|
<div class="delete" :style="{ display: delete_hs ? 'block' : 'none' }">
|
||||||
|
<div class="del_header"></div>
|
||||||
|
<div class="del_main">
|
||||||
|
<div class="header">
|
||||||
|
<div class="del-icon" :style="{ display: del_hs || over_hs ? 'block' : 'none' }"><img src="@/assets/images/coursewareManage/notice.png" alt=""></div>
|
||||||
|
<div class="del-icon" :style="{ display: copy_hs || back_hs || pub_hs ? 'block' : 'none' }"><img src="@/assets/images/coursewareManage/QR.png" alt=""></div>
|
||||||
|
<span>提示</span>
|
||||||
|
<div class="close_exit" @click="delete_exit"></div>
|
||||||
|
</div>
|
||||||
|
<div class="body">
|
||||||
|
<div :style="{ display: del_hs ? 'block' : 'none' }">
|
||||||
|
<span>您确定要删除此调研吗</span>
|
||||||
|
</div>
|
||||||
|
<div :style="{ display: over_hs ? 'block' : 'none' }">
|
||||||
|
<span>您确定要结束此调研吗</span>
|
||||||
|
</div>
|
||||||
|
<div :style="{ display: copy_hs ? 'block' : 'none' }">
|
||||||
|
<span>您确定要复制此调研吗</span>
|
||||||
|
</div>
|
||||||
|
<div :style="{ display: back_hs ? 'block' : 'none' }">
|
||||||
|
<span>您确定要撤回此调研吗</span>
|
||||||
|
</div>
|
||||||
|
<div :style="{ display: pub_hs ? 'block' : 'none' }">
|
||||||
|
<span>您确定要发布此调研吗</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="del_btnbox">
|
||||||
|
<div class="del_btn btn1">
|
||||||
|
<div class="btnText" @click="delete_exit">取消</div>
|
||||||
|
</div>
|
||||||
|
<div class="del_btn btn2">
|
||||||
|
<div class="btnText" @click="delete_exit">确定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
|
<!--操作弹窗 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -219,6 +271,12 @@ export default {
|
|||||||
valueE: ref(" "),
|
valueE: ref(" "),
|
||||||
valueEE: ref(" "),
|
valueEE: ref(" "),
|
||||||
valuei: ref(" "),
|
valuei: ref(" "),
|
||||||
|
delete_hs: false,
|
||||||
|
del_hs: false,
|
||||||
|
over_hs: false,
|
||||||
|
copy_hs: false,
|
||||||
|
back_hs: false,
|
||||||
|
pub_hs: false,
|
||||||
});
|
});
|
||||||
const tableDataFunc = () => {
|
const tableDataFunc = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
@@ -286,7 +344,6 @@ export default {
|
|||||||
key: "opacation",
|
key: "opacation",
|
||||||
width: 200,
|
width: 200,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
return columns;
|
return columns;
|
||||||
@@ -299,38 +356,74 @@ export default {
|
|||||||
//单层项目
|
//单层项目
|
||||||
value.opacation = (
|
value.opacation = (
|
||||||
<div class="operation">
|
<div class="operation">
|
||||||
|
{value.state === "已发布" ? (
|
||||||
{value.state === "已发布" ? (
|
<div class="fb">
|
||||||
<div class="fb">
|
<router-link to="/managepage" class="jc">
|
||||||
<router-link to="/managepage" class="jc">管理</router-link>
|
管理
|
||||||
<div class="jc">复制</div>
|
</router-link>
|
||||||
<div class="jc">撤回</div>
|
<div class="jc"
|
||||||
<div class="jc">结束</div>
|
onClick={()=>{
|
||||||
</div>
|
state.delete_hs = true;
|
||||||
) : (
|
state.copy_hs = true;
|
||||||
<div></div>
|
}}>复制</div>
|
||||||
)}
|
<div class="jc"
|
||||||
{value.state === "待发布" ? (
|
onClick={()=>{
|
||||||
<div class="fb">
|
state.delete_hs = true;
|
||||||
<router-link to="/researchadd" class="jc">基础信息</router-link>
|
state.back_hs = true;
|
||||||
<router-link to="/managepage" class="jc">管理</router-link>
|
}}>撤回</div>
|
||||||
<div class="jc">复制</div>
|
<div class="jc"
|
||||||
<div class="jc">编辑</div>
|
onClick={()=>{
|
||||||
<div class="jc">删除</div>
|
state.delete_hs = true;
|
||||||
</div>
|
state.over_hs = true;
|
||||||
) : (
|
}}>结束</div>
|
||||||
<div></div>
|
</div>
|
||||||
)}
|
) : (
|
||||||
{value.state === "已结束" ? (
|
<div></div>
|
||||||
<div class="fb">
|
)}
|
||||||
<div class="jc">复制</div>
|
{value.state === "待发布" ? (
|
||||||
<div class="jc">删除</div>
|
<div class="fb">
|
||||||
|
<router-link to="/researchadd" class="jc">
|
||||||
</div>
|
基础信息
|
||||||
) : (
|
</router-link>
|
||||||
<div></div>
|
<router-link to="/managepage" class="jc">
|
||||||
)}
|
管理
|
||||||
|
</router-link>
|
||||||
|
<div class="jc"
|
||||||
|
onClick={()=>{
|
||||||
|
state.delete_hs = true;
|
||||||
|
state.pub_hs = true;
|
||||||
|
}}>发布</div>
|
||||||
|
<div class="jc"
|
||||||
|
onClick={()=>{
|
||||||
|
state.delete_hs = true;
|
||||||
|
state.copy_hs = true;
|
||||||
|
}}>复制</div>
|
||||||
|
<div class="jc">编辑</div>
|
||||||
|
<div class="jc"
|
||||||
|
onClick={()=>{
|
||||||
|
state.delete_hs = true;
|
||||||
|
state.del_hs = true;
|
||||||
|
}}>删除</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div></div>
|
||||||
|
)}
|
||||||
|
{value.state === "已结束" ? (
|
||||||
|
<div class="fb">
|
||||||
|
<div class="jc"
|
||||||
|
onClick={()=>{
|
||||||
|
state.delete_hs = true;
|
||||||
|
state.copy_hs = true;
|
||||||
|
}}>复制</div>
|
||||||
|
<div class="jc"
|
||||||
|
onClick={()=>{
|
||||||
|
state.delete_hs = true;
|
||||||
|
state.del_hs = true;
|
||||||
|
}}>删除</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div></div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -357,6 +450,14 @@ export default {
|
|||||||
const chooseImg = (id) => {
|
const chooseImg = (id) => {
|
||||||
console.log(id);
|
console.log(id);
|
||||||
};
|
};
|
||||||
|
const delete_exit = () => {
|
||||||
|
state.delete_hs = false;
|
||||||
|
state.del_hs = false;
|
||||||
|
state.over_hs = false;
|
||||||
|
state.copy_hs = false;
|
||||||
|
state.back_hs = false;
|
||||||
|
state.pub_hs = false;
|
||||||
|
};
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
selectProjectName,
|
selectProjectName,
|
||||||
@@ -366,6 +467,7 @@ export default {
|
|||||||
tableDataFunc,
|
tableDataFunc,
|
||||||
chooseImg,
|
chooseImg,
|
||||||
getTableDate,
|
getTableDate,
|
||||||
|
delete_exit,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -378,108 +480,108 @@ export default {
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.out {
|
.out {
|
||||||
//display: flex;
|
//display: flex;
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 120px;
|
top: 120px;
|
||||||
width: 680px;
|
width: 680px;
|
||||||
// height: 525px;
|
// height: 525px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
box-shadow: 0 0 10px rgba(118, 136, 166, 0.21);
|
box-shadow: 0 0 10px rgba(118, 136, 166, 0.21);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 20%;
|
top: 20%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
.top {
|
.top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
|
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
rgba(78, 166, 255, 0.2) 0%,
|
rgba(78, 166, 255, 0.2) 0%,
|
||||||
rgba(78, 166, 255, 0) 100%
|
rgba(78, 166, 255, 0) 100%
|
||||||
);
|
);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.topimg {
|
.topimg {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
margin-left: 27px;
|
margin-left: 27px;
|
||||||
}
|
|
||||||
.topc {
|
|
||||||
color: #000000;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.mid {
|
.topc {
|
||||||
width: 100%;
|
color: #000000;
|
||||||
height: 100%;
|
font-size: 16px;
|
||||||
background-color: #fff;
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.mid {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
.d {
|
||||||
|
// margin-top: 8px;
|
||||||
|
// color: #ff4e4e;
|
||||||
|
margin-left: -5px;
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
width: 78%;
|
||||||
|
// background-color: lightcoral;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
margin-top: 20px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.d {
|
height: 40px;
|
||||||
// margin-top: 8px;
|
// border: 1px solid black;
|
||||||
// color: #ff4e4e;
|
|
||||||
margin-left: -5px;
|
|
||||||
}
|
|
||||||
.name {
|
|
||||||
width: 78%;
|
|
||||||
// background-color: lightcoral;
|
|
||||||
display: flex;
|
|
||||||
margin-top: 20px;
|
|
||||||
align-items: center;
|
|
||||||
height: 40px;
|
|
||||||
// border: 1px solid black;
|
|
||||||
|
|
||||||
.inname {
|
.inname {
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
.in {
|
||||||
|
margin-left: 14px;
|
||||||
|
width: 81%;
|
||||||
|
.ant-input {
|
||||||
|
border-radius: 5px;
|
||||||
|
// height: 120%;
|
||||||
|
width: 100%;
|
||||||
|
height: 30px;
|
||||||
}
|
}
|
||||||
.in {
|
.showcount {
|
||||||
margin-left: 14px;
|
|
||||||
width: 81%;
|
|
||||||
.ant-input {
|
|
||||||
border-radius: 5px;
|
|
||||||
// height: 120%;
|
|
||||||
width: 100%;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
.showcount {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
color: #c7cbd2;
|
color: #c7cbd2;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.btn {
|
}
|
||||||
width: 33%;
|
.btn {
|
||||||
margin-top: 30px;
|
width: 33%;
|
||||||
display: flex;
|
margin-top: 30px;
|
||||||
justify-content: space-between;
|
display: flex;
|
||||||
margin-bottom: 30px;
|
justify-content: space-between;
|
||||||
.samtn {
|
margin-bottom: 30px;
|
||||||
width: 100px;
|
.samtn {
|
||||||
height: 40px;
|
width: 100px;
|
||||||
font-size: 14px;
|
height: 40px;
|
||||||
border: 1px solid #409EFF;
|
font-size: 14px;
|
||||||
border-radius: 8px;
|
border: 1px solid #409eff;
|
||||||
cursor: pointer;
|
border-radius: 8px;
|
||||||
}
|
cursor: pointer;
|
||||||
.btn1 {
|
}
|
||||||
background-color: #fff;
|
.btn1 {
|
||||||
color: #4ea6ff;
|
background-color: #fff;
|
||||||
}
|
color: #4ea6ff;
|
||||||
.btn2 {
|
}
|
||||||
margin-left: 10px;
|
.btn2 {
|
||||||
background-color: #409EFF;
|
margin-left: 10px;
|
||||||
color: #fff;
|
background-color: #409eff;
|
||||||
}
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.researchmanage {
|
.researchmanage {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -581,12 +683,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tableBox {
|
.tableBox {
|
||||||
margin: 20px 38px 30px ;
|
margin: 20px 38px 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
//position: relative;
|
//position: relative;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
th.h {
|
th.h {
|
||||||
background-color: #eff4fc !important;
|
background-color: #eff4fc !important;
|
||||||
}
|
}
|
||||||
@@ -596,38 +698,142 @@ export default {
|
|||||||
> td {
|
> td {
|
||||||
background: #f6f9fd;
|
background: #f6f9fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.pa {
|
.pa {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 20px;
|
// height: 20px;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
//position: absolute;
|
//position: absolute;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
.pagination {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
.pagination {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.unout {
|
.unout {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.operation {
|
.operation {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
justify-content: right;
|
||||||
.fb {
|
.fb {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
.jc {
|
.jc {
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.DelModal {
|
||||||
|
.ant-modal {
|
||||||
|
.ant-modal-content {
|
||||||
|
width: 424px !important;
|
||||||
|
.ant-modal-body {
|
||||||
|
.delete {
|
||||||
|
z-index: 999;
|
||||||
|
width: 424px;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
|
border-radius: 4px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 10%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
.del_header {
|
||||||
|
position: absolute;
|
||||||
|
width: calc(100%);
|
||||||
|
height: 40px;
|
||||||
|
background: linear-gradient(
|
||||||
|
rgba(78, 166, 255, 0.2) 0%,
|
||||||
|
rgba(78, 166, 255, 0) 100%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
.del_main {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-left: 26px;
|
||||||
|
font-size: 16px;
|
||||||
|
.del-icon {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 10px;
|
||||||
|
// background-image: url(@/assets/images/coursewareManage/notice.png);
|
||||||
|
img{
|
||||||
|
background-size: 100% 100%;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
.close_exit {
|
||||||
|
position: absolute;
|
||||||
|
right: 42px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
background-image: url(@/assets/images/coursewareManage/close.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.body {
|
||||||
|
width: 100%;
|
||||||
|
margin: 34px auto 56px auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.del_btnbox {
|
||||||
|
display: flex;
|
||||||
|
margin: 30px auto;
|
||||||
|
justify-content: center;
|
||||||
|
.del_btn {
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
background: rgba(64, 158, 255, 0);
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-right: 14px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
.btnText {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn1 {
|
||||||
|
border: 1px solid rgba(64, 158, 255, 1);
|
||||||
|
color: #4ea6ff;
|
||||||
|
}
|
||||||
|
.btn2 {
|
||||||
|
background-color: #4ea6ff;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user