fix: can add work name when empty
This commit is contained in:
parent
6795453795
commit
23725ad730
1 changed files with 10 additions and 10 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
// import { useI18n } from 'vue-i18n';
|
||||||
import { storeToRefs } from 'pinia';
|
// import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
import useProductServiceStore from 'src/stores/product-service';
|
// import useProductServiceStore from 'src/stores/product-service';
|
||||||
|
|
||||||
import NoData from '../NoData.vue';
|
import NoData from '../NoData.vue';
|
||||||
|
|
||||||
|
|
@ -53,11 +53,8 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div v-if="cloneList" class="full-width column no-wrap full-height">
|
<div v-if="cloneList" class="full-width column no-wrap full-height">
|
||||||
<div
|
<div class="bordered rounded surface-1 flex col column justify-between">
|
||||||
v-if="cloneList.length > 0"
|
<q-list v-if="cloneList.length > 0" class="full-width col scroll">
|
||||||
class="bordered rounded surface-1 flex col column justify-between"
|
|
||||||
>
|
|
||||||
<q-list class="full-width col scroll">
|
|
||||||
<q-item
|
<q-item
|
||||||
class="items-center row q-px-lg"
|
class="items-center row q-px-lg"
|
||||||
v-for="(item, index) in cloneList"
|
v-for="(item, index) in cloneList"
|
||||||
|
|
@ -133,6 +130,9 @@ watch(
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
|
<div v-else class="flex col justify-center items-center">
|
||||||
|
<NoData />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="bordered-t full-width">
|
<div class="bordered-t full-width">
|
||||||
<q-item
|
<q-item
|
||||||
|
|
@ -152,11 +152,11 @@ watch(
|
||||||
</q-item>
|
</q-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<!-- <div
|
||||||
v-else
|
v-else
|
||||||
class="bordered rounded surface-1 flex justify-center items-center col"
|
class="bordered rounded surface-1 flex justify-center items-center col"
|
||||||
>
|
>
|
||||||
<NoData />
|
<NoData />
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue