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: '' }, {