|
@@ -116,9 +116,17 @@ export default {
|
|
|
try {
|
|
|
// try
|
|
|
this.loading = true;
|
|
|
+ const { tabName, TabColumns } = this;
|
|
|
+ const { TableColumns } = TabColumns.find(
|
|
|
+ ({ item: { key } }) => key === tabName
|
|
|
+ );
|
|
|
const { code, data } = await ITEM(prop);
|
|
|
if (code === 200) {
|
|
|
this.params = data;
|
|
|
+ this.params.priceApplyItems = data.priceApplyItems.map((item) => ({
|
|
|
+ ...this.$init.params(TableColumns),
|
|
|
+ ...item,
|
|
|
+ }));
|
|
|
return true;
|
|
|
} else {
|
|
|
return false;
|