mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
feat:催促学习,催促考试
This commit is contained in:
BIN
src/assets/images/taskpage/check.png
Normal file
BIN
src/assets/images/taskpage/check.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 563 B |
@@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnss" style="margin-top: 20px">
|
<div class="btnss" style="margin-top: 20px">
|
||||||
<div class="btn btn1" style="margin-right: 20px; cursor: pointer">
|
<div class="btn btn1" @click="showopen" style="margin-right: 20px; cursor: pointer">
|
||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">催促考试</div>
|
<div class="wz">催促考试</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,12 +80,17 @@
|
|||||||
<button class="btn1">取消</button>
|
<button class="btn1">取消</button>
|
||||||
<button class="btn2">确定</button>
|
<button class="btn2">确定</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="noticebox" v-show="open">
|
||||||
|
<div><img src="../../assets/images/taskpage/check.png"/></div>
|
||||||
|
<div class="notext">催促学员成功</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { toRefs, reactive } from "vue";
|
import { toRefs, reactive, onMounted, onUnmounted} from "vue";
|
||||||
export default {
|
export default {
|
||||||
name: "TestManage",
|
name: "TestManage",
|
||||||
props: {
|
props: {
|
||||||
@@ -102,6 +107,7 @@ export default {
|
|||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
name: null,
|
name: null,
|
||||||
|
open: false,
|
||||||
projectNameList: [
|
projectNameList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -291,11 +297,25 @@ export default {
|
|||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:TMvisible", false);
|
ctx.emit("update:TMvisible", false);
|
||||||
};
|
};
|
||||||
|
const showopen=()=>{
|
||||||
|
state.open = true;
|
||||||
|
};
|
||||||
|
let timer;
|
||||||
|
onMounted(()=> {
|
||||||
|
timer = setInterval(()=>{
|
||||||
|
state.open = false;
|
||||||
|
},3000);
|
||||||
|
});
|
||||||
|
onUnmounted(()=>{
|
||||||
|
clearInterval(timer);
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
selectProjectName,
|
selectProjectName,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
|
showopen,
|
||||||
|
onMounted,
|
||||||
|
onUnmounted,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -324,6 +344,24 @@ export default {
|
|||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
.noticebox {
|
||||||
|
width: 240px;
|
||||||
|
height: 64px;
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 4px;
|
||||||
|
position: absolute;
|
||||||
|
top: 161px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.notext {
|
||||||
|
color: rgba(51, 51, 51, 1);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.header {
|
.header {
|
||||||
height: 73px;
|
height: 73px;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnss" style="margin-top: 20px">
|
<div class="btnss" style="margin-top: 20px">
|
||||||
<div class="btn btn1" style="margin-right: 20px">
|
<div class="btn btn1" @click="showopen" style="margin-right: 20px">
|
||||||
<div class="img1"></div>
|
<div class="img1"></div>
|
||||||
<div class="wz">催促学习</div>
|
<div class="wz">催促学习</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -91,12 +91,16 @@
|
|||||||
<button class="btn1">取消</button>
|
<button class="btn1">取消</button>
|
||||||
<button class="btn2">确定</button>
|
<button class="btn2">确定</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="noticebox" v-show="open">
|
||||||
|
<div><img src="../../assets/images/taskpage/check.png"/></div>
|
||||||
|
<div class="notext">催促学员成功</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { toRefs, reactive } from "vue";
|
import { toRefs, reactive, onMounted, onUnmounted} from "vue";
|
||||||
export default {
|
export default {
|
||||||
name: "TimeManage",
|
name: "TimeManage",
|
||||||
props: {
|
props: {
|
||||||
@@ -113,6 +117,7 @@ export default {
|
|||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
name: null,
|
name: null,
|
||||||
|
open: false,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: 100,
|
tableDataTotal: 100,
|
||||||
@@ -269,10 +274,25 @@ export default {
|
|||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:Tvisible", false);
|
ctx.emit("update:Tvisible", false);
|
||||||
};
|
};
|
||||||
|
const showopen=()=>{
|
||||||
|
state.open = true;
|
||||||
|
};
|
||||||
|
let timer;
|
||||||
|
onMounted(()=> {
|
||||||
|
timer = setInterval(()=>{
|
||||||
|
state.open = false;
|
||||||
|
},3000);
|
||||||
|
});
|
||||||
|
onUnmounted(()=>{
|
||||||
|
clearInterval(timer);
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
selectProjectName,
|
selectProjectName,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
|
showopen,
|
||||||
|
onMounted,
|
||||||
|
onUnmounted,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -297,6 +317,23 @@ export default {
|
|||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
.noticebox {
|
||||||
|
width: 240px;
|
||||||
|
height: 64px;
|
||||||
|
background: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 4px;
|
||||||
|
position: absolute;
|
||||||
|
top: 161px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.notext {
|
||||||
|
color: rgba(51, 51, 51, 1);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.header {
|
.header {
|
||||||
height: 73px;
|
height: 73px;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
|||||||
Reference in New Issue
Block a user