代办事项
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
<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%;">
|
||||
</div>
|
||||
<div class="wrap" v-else>
|
||||
@ -23,6 +24,7 @@
|
||||
|
||||
<script>
|
||||
import {getToDoList, toDoAudit} from "@/api/order"
|
||||
|
||||
export default {
|
||||
name: "toDoList",
|
||||
data() {
|
||||
@ -37,15 +39,12 @@ export default {
|
||||
methods: {
|
||||
async getList() {
|
||||
let result = await getToDoList();
|
||||
// if(result.code === 200){
|
||||
this.todolist = result.data;
|
||||
if (this.todolist?.length === 0) {
|
||||
this.show = true
|
||||
} else {
|
||||
this.show = false
|
||||
}
|
||||
// console.log("this.todolist",this.todolist?.length)
|
||||
// }
|
||||
},
|
||||
async noPass(item) {
|
||||
let result = await toDoAudit({
|
||||
@ -68,6 +67,7 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/mixin.scss";
|
||||
@import "@/styles/common.scss";
|
||||
|
||||
.wrap {
|
||||
@include wh(100%, 100%);
|
||||
box-sizing: border-box;
|
||||
|
Reference in New Issue
Block a user