feat: hide btn on service view info
This commit is contained in:
parent
4c4bca12eb
commit
9ce656ae45
5 changed files with 27 additions and 17 deletions
|
|
@ -1,20 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils';
|
||||
|
||||
import NoData from 'src/components/NoData.vue';
|
||||
import WorkManagementComponent from './WorkManagementComponent.vue';
|
||||
|
||||
import useProductServiceStore from 'src/stores/product-service';
|
||||
|
||||
const productServiceStore = useProductServiceStore();
|
||||
const { t } = useI18n();
|
||||
|
||||
import { WorkItems, ProductList } from 'src/stores/product-service/types';
|
||||
import { WorkItems } from 'src/stores/product-service/types';
|
||||
|
||||
const serviceName = defineModel<string>('serviceName');
|
||||
const product = defineModel<ProductList[]>();
|
||||
const workItems = defineModel<WorkItems[]>('workItems', { default: [] });
|
||||
|
||||
defineProps<{
|
||||
|
|
@ -59,6 +53,7 @@ function confirmDelete(items: unknown[], index: number) {
|
|||
<div class="col-1 app-text-muted row items-start">
|
||||
• {{ $t(`workInformation`) }}
|
||||
<q-btn
|
||||
v-if="!readonly"
|
||||
icon="mdi-plus"
|
||||
dense
|
||||
flat
|
||||
|
|
@ -77,6 +72,7 @@ function confirmDelete(items: unknown[], index: number) {
|
|||
:index="index"
|
||||
:length="workItems.length"
|
||||
:workIndex="index"
|
||||
:readonly="readonly"
|
||||
v-model:work-name="workItems[index].name"
|
||||
v-model:product-items="work.product"
|
||||
@add-product="$emit('addProduct', index)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue