diff --git a/frontend/src/views/virtual/packages/js/index.js b/frontend/src/views/virtual/packages/js/index.js index e23e70c1..d14616f2 100644 --- a/frontend/src/views/virtual/packages/js/index.js +++ b/frontend/src/views/virtual/packages/js/index.js @@ -16,10 +16,6 @@ export default { show: false, data: null }, - detailObj: { - show: false, - data: null - }, search: { show: false }, @@ -102,30 +98,15 @@ export default { }) => { let html = []; + row.cost_price = Number(row.cost_price); + row.guide_price = Number(row.guide_price); + row.renewal_cost_price = Number(row.renewal_cost_price); + row.renewal_guide_price = Number(row.renewal_guide_price); + if (row.deleted_at) { return h('Tag', { props: { color: 'default' } }, '该套餐已被删除'); } - if (this.haveJurisdiction('show')) { - html.push(h('Button', { - props: { - type: 'success', - size: 'small', - disabled: false, - icon: 'md-eye' - }, - class: ['btn'], - on: { - click: (event) => { - this.detailObj = { - show: true, - data: row - }; - } - } - }, '查看')); - } - if (this.haveJurisdiction('update')) { html.push(h('Button', { props: {