From 3acee93e23e7272b82d13869c3dea18ce9a60437 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Fri, 15 Jul 2022 14:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=B8=8A=E6=9E=B6-=E8=AE=A1?= =?UTF-8?q?=E8=B4=B9=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../putOnTheShelf/components/special.vue | 48 +++++++++++++++++-- .../src/views/modules/putOnTheShelf/index.vue | 6 +-- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/back/src/views/modules/putOnTheShelf/components/special.vue b/back/src/views/modules/putOnTheShelf/components/special.vue index 54e3a782..d5de6cfe 100644 --- a/back/src/views/modules/putOnTheShelf/components/special.vue +++ b/back/src/views/modules/putOnTheShelf/components/special.vue @@ -36,13 +36,32 @@
添加更多{{ configure.name }}
{{ val.name }} - + + - + @@ -68,7 +87,8 @@ export default { data () { return { data: [], - showKey: 0 + showKey: 0, + numType: '一次性买断' } }, methods: { @@ -85,7 +105,21 @@ export default { if (flag) { const obj = {} list.forEach((item) => { - obj[item.field] = item.note1 + if (item.type === 'input2') { + obj[item.field] = + item.note1 + + (this.numType === '一次性买断' + ? '元' + : this.numType === '按调用次数' + ? '元/次' + : this.numType === '按并发路数' + ? '元/路' + : this.numType === '按年计费' + ? '元/年' + : '') + } else { + obj[item.field] = item.note1 + } }) this.data.push(obj) this.$emit('changeInfoList', { @@ -108,6 +142,10 @@ export default { attrValue: JSON.stringify(this.data), delFlag: 0 }) + }, + radioChange (e) { + console.log(e, 'wewewe') + this.numType = e.target.value } }, created () { diff --git a/back/src/views/modules/putOnTheShelf/index.vue b/back/src/views/modules/putOnTheShelf/index.vue index 14fb8d39..85763ee6 100644 --- a/back/src/views/modules/putOnTheShelf/index.vue +++ b/back/src/views/modules/putOnTheShelf/index.vue @@ -106,13 +106,13 @@ export default { field: 'type', type: 'radio', options: ['一次性买断', '按调用次数', '按并发路数', '按年计费'], - note1: '' + note1: '一次性买断' }, { name: '计费标准', field: 'price', - type: 'input', - company: '元', + type: 'input2', + // company: '元', note1: '' }, {