From c1f86bcbb484e9a846df81e0bf57970cb6f23d05 Mon Sep 17 00:00:00 2001 From: denghy Date: Thu, 3 Jan 2019 18:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=97=E9=A4=90=E7=BC=96=E7=A0=81=E4=B8=BA?= =?UTF-8?q?=E5=A4=A7=E5=86=99=E5=AD=97=E6=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/virtual/packages/js/index.js | 29 ++++--------------- 1 file changed, 5 insertions(+), 24 deletions(-) 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: {