refactor: refs #8363 clone fixed price in same dialog as create, changed item filter and vncolor height
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
93e85c536e
commit
28c8e93a61
|
@ -10,7 +10,7 @@ const $props = defineProps({
|
|||
|
||||
const colorArray = computed(() => JSON.parse($props.colors)?.value);
|
||||
const maxHeight = 30;
|
||||
const colorHeight = maxHeight / colorArray?.length;
|
||||
const colorHeight = maxHeight / colorArray.value?.length;
|
||||
</script>
|
||||
<template>
|
||||
<div v-if="colors" class="color-div" :style="{ height: `${maxHeight}px` }">
|
||||
|
|
|
@ -37,17 +37,23 @@ const columns = computed(() => [
|
|||
label: t('item.fixedPrice.itemFk'),
|
||||
labelAbbreviation: 'Id',
|
||||
toolTip: t('item.fixedPrice.itemFk'),
|
||||
component: 'select',
|
||||
attrs: {
|
||||
url: 'Items',
|
||||
fields: ['id', 'name', 'subName'],
|
||||
optionLabel: 'name',
|
||||
optionValue: 'id',
|
||||
uppercase: false,
|
||||
},
|
||||
component: 'number',
|
||||
columnFilter: {
|
||||
component: 'select',
|
||||
attrs: {
|
||||
url: 'Items',
|
||||
fields: ['id', 'name', 'subName'],
|
||||
optionLabel: 'name',
|
||||
optionValue: 'id',
|
||||
uppercase: false,
|
||||
},
|
||||
inWhere: true,
|
||||
},
|
||||
cellEvent: {
|
||||
'update:modelValue': async (value, oldValue, row) => {
|
||||
tableRef.value.CrudModelRef.saveChanges();
|
||||
},
|
||||
},
|
||||
width: '55px',
|
||||
},
|
||||
{
|
||||
|
@ -55,7 +61,7 @@ const columns = computed(() => [
|
|||
name: 'hex',
|
||||
columnSearch: false,
|
||||
isEditable: false,
|
||||
width: '10px',
|
||||
width: '9px',
|
||||
component: 'select',
|
||||
attrs: {
|
||||
url: 'Inks',
|
||||
|
|
|
@ -136,7 +136,7 @@ const closeForm = () => {
|
|||
padding: 0 !important;
|
||||
}
|
||||
.editOption.is-select .q-field__inner .q-field__control {
|
||||
padding: 1px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Reference in New Issue