@@ -1868,8 +1909,8 @@ watch([currentStatusList, productMode], () => {
{
flat
bordered
:grid="modeView"
- :rows="
- (productMode === 'type' ? productType : productGroup) ||
- []
- "
+ :rows="productGroup || []"
:columns="tbColumn.groupAndType"
class="full-width"
card-container-class="q-col-gutter-md"
@@ -1931,18 +1969,19 @@ watch([currentStatusList, productMode], () => {
@click="
async () => {
filterStat.push(productMode);
- if (productMode === 'type') {
- await enterType(
- props.row.id,
- props.row.name,
- props.row.status,
- );
- }
+ // if (productMode === 'type') {
+ // await enterType(
+ // props.row.id,
+ // props.row.name,
+ // props.row.status,
+ // );
+ // }
if (productMode === 'group') {
await enterGroup(
props.row.id,
props.row.name,
props.row.status,
+ true,
);
}
}
@@ -1957,13 +1996,9 @@ watch([currentStatusList, productMode], () => {
"
>
{{
- productMode === 'type'
- ? (currentPageType - 1) * pageSizeType +
- props.rowIndex +
- 1
- : (currentPageGroup - 1) * pageSizeGroup +
- props.rowIndex +
- 1
+ (currentPageGroup - 1) * pageSizeGroup +
+ props.rowIndex +
+ 1
}}
{
flat
@click.stop="
() => {
- if (productMode === 'type') {
- editByTree = 'type';
- currentStatusProduct =
- props.row.status === 'INACTIVE';
- clearFormGroup();
- currentIdType = props.row.id;
- assignFormDataGroup(props.row);
- isEdit = false;
- drawerInfo = true;
- }
+ // if (productMode === 'type') {
+ // editByTree = 'type';
+ // currentStatusProduct =
+ // props.row.status === 'INACTIVE';
+ // clearFormGroup();
+ // currentIdType = props.row.id;
+ // assignFormDataGroup(props.row);
+ // isEdit = false;
+ // drawerInfo = true;
+ // }
if (productMode === 'group') {
editByTree = 'group';
currentStatusProduct =
@@ -2079,16 +2114,16 @@ watch([currentStatusList, productMode], () => {
:idName="props.row.name"
@view="
() => {
- if (productMode === 'type') {
- editByTree = 'type';
- currentStatusProduct =
- props.row.status === 'INACTIVE';
- clearFormGroup();
- currentIdType = props.row.id;
- assignFormDataGroup(props.row);
- isEdit = false;
- drawerInfo = true;
- }
+ // if (productMode === 'type') {
+ // editByTree = 'type';
+ // currentStatusProduct =
+ // props.row.status === 'INACTIVE';
+ // clearFormGroup();
+ // currentIdType = props.row.id;
+ // assignFormDataGroup(props.row);
+ // isEdit = false;
+ // drawerInfo = true;
+ // }
if (productMode === 'group') {
editByTree = 'group';
currentStatusProduct =
@@ -2103,14 +2138,14 @@ watch([currentStatusList, productMode], () => {
"
@edit="
() => {
- if (productMode === 'type') {
- editByTree = 'type';
- clearFormGroup();
- currentIdType = props.row.id;
- assignFormDataGroup(props.row);
- isEdit = true;
- drawerInfo = true;
- }
+ // if (productMode === 'type') {
+ // editByTree = 'type';
+ // clearFormGroup();
+ // currentIdType = props.row.id;
+ // assignFormDataGroup(props.row);
+ // isEdit = true;
+ // drawerInfo = true;
+ // }
if (productMode === 'group') {
editByTree = 'group';
clearFormGroup();
@@ -2124,9 +2159,9 @@ watch([currentStatusList, productMode], () => {
"
@delete="
() => {
- if (productMode === 'type') {
- deleteProductById(props.row.id);
- }
+ // if (productMode === 'type') {
+ // deleteProductById(props.row.id);
+ // }
if (productMode === 'group') {
deleteProductById(props.row.id);
}
@@ -2147,8 +2182,8 @@ watch([currentStatusList, productMode], () => {
+
{
"
@viewCard="
() => {
- if (productMode === 'type') {
- editByTree = 'type';
- currentStatusProduct =
- props.row.status === 'INACTIVE';
- clearFormGroup();
- currentIdType = props.row.id;
- assignFormDataGroup(props.row);
- isEdit = false;
- drawerInfo = true;
- }
+ // if (productMode === 'type') {
+ // editByTree = 'type';
+ // currentStatusProduct =
+ // props.row.status === 'INACTIVE';
+ // clearFormGroup();
+ // currentIdType = props.row.id;
+ // assignFormDataGroup(props.row);
+ // isEdit = false;
+ // drawerInfo = true;
+ // }
if (productMode === 'group') {
editByTree = 'group';
currentStatusProduct =
@@ -2198,13 +2233,13 @@ watch([currentStatusList, productMode], () => {
"
@updateCard="
() => {
- if (productMode === 'type') {
- clearFormGroup();
- currentIdType = props.row.id;
- assignFormDataGroup(props.row);
- isEdit = true;
- drawerInfo = true;
- }
+ // if (productMode === 'type') {
+ // clearFormGroup();
+ // currentIdType = props.row.id;
+ // assignFormDataGroup(props.row);
+ // isEdit = true;
+ // drawerInfo = true;
+ // }
if (productMode === 'group') {
clearFormGroup();
assignFormDataGroup(props.row);
@@ -2217,9 +2252,9 @@ watch([currentStatusList, productMode], () => {
"
@deleteCard="
() => {
- if (productMode === 'type') {
- deleteProductById(props.row.id);
- }
+ // if (productMode === 'type') {
+ // deleteProductById(props.row.id);
+ // }
if (productMode === 'group') {
deleteProductById(props.row.id);
}
@@ -2228,18 +2263,19 @@ watch([currentStatusList, productMode], () => {
@on-click="
async () => {
filterStat.push(productMode);
- if (productMode === 'type') {
- await enterType(
- props.row.id,
- props.row.name,
- props.row.status,
- );
- }
+ // if (productMode === 'type') {
+ // await enterType(
+ // props.row.id,
+ // props.row.name,
+ // props.row.status,
+ // );
+ // }
if (productMode === 'group') {
await enterGroup(
props.row.id,
props.row.name,
props.row.status,
+ true,
);
}
}
@@ -2315,7 +2351,7 @@ watch([currentStatusList, productMode], () => {
-
@@ -2377,13 +2413,13 @@ watch([currentStatusList, productMode], () => {
"
/>
-