代办事项

This commit is contained in:
2023-08-23 17:49:00 +08:00
parent 68621396ad
commit cc7ac29d4d
2 changed files with 36 additions and 36 deletions

View File

@ -1,5 +1,6 @@
<template> <template>
<div v-if="show" style="width:100%;height:100%;background: #F1F5F9;;display: flex;align-items: center;justify-content: center"> <div v-if="show"
style="width:100%;height:100%;background: #F1F5F9;;display: flex;align-items: center;justify-content: center">
<img src="@/assets/empty.png" style="width:65%;"> <img src="@/assets/empty.png" style="width:65%;">
</div> </div>
<div class="wrap" v-else> <div class="wrap" v-else>
@ -23,6 +24,7 @@
<script> <script>
import {getToDoList, toDoAudit} from "@/api/order" import {getToDoList, toDoAudit} from "@/api/order"
export default { export default {
name: "toDoList", name: "toDoList",
data() { data() {
@ -37,15 +39,12 @@ export default {
methods: { methods: {
async getList() { async getList() {
let result = await getToDoList(); let result = await getToDoList();
// if(result.code === 200){
this.todolist = result.data; this.todolist = result.data;
if (this.todolist?.length === 0) { if (this.todolist?.length === 0) {
this.show = true this.show = true
} else { } else {
this.show = false this.show = false
} }
// console.log("this.todolist",this.todolist?.length)
// }
}, },
async noPass(item) { async noPass(item) {
let result = await toDoAudit({ let result = await toDoAudit({
@ -68,6 +67,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/styles/mixin.scss"; @import "@/styles/mixin.scss";
@import "@/styles/common.scss"; @import "@/styles/common.scss";
.wrap { .wrap {
@include wh(100%, 100%); @include wh(100%, 100%);
box-sizing: border-box; box-sizing: border-box;