BUG修改

This commit is contained in:
a0049873 2022-07-15 11:49:14 +08:00
parent c933eeb642
commit e2209f7694
2 changed files with 47 additions and 13 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-13 10:22:27
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-15 11:31:36
* @LastEditTime: 2022-07-15 11:48:55
* @Description: 算法上架
-->
<template>
@ -163,7 +163,7 @@
name: '计费标准',
field: 'price',
type: 'input2',
company: '元',
// company: '',
note1: '',
},
{

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-17 14:11:08
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-15 11:31:55
* @LastEditTime: 2022-07-15 11:48:16
* @Description: 上架
-->
<template>
@ -58,11 +58,25 @@
:placeholder="'请填写' + val.name + ',不超过24个字符'"
v-if="val.type == 'input'"
/>
<template v-if="val.type == 'input2'">
<a-input
v-model:value="val.note1"
:placeholder="'请填写' + val.name"
v-if="val.type == 'input2'"
/>
<span style="width: 0.5rem; padding-left: 0.1rem">
{{
numType == '一次性买断'
? '元'
: numType == '按调用次数'
? '元/次'
: numType == '按并发路数'
? '元/路'
: numType == '按年计费'
? '元/年'
: ''
}}
</span>
</template>
<a-textarea
v-model:value="val.note1"
:showCount="true"
@ -82,6 +96,7 @@
<a-radio-group
v-model:value="val.note1"
:options="val.options"
@change="radioChange"
v-else-if="val.type == 'radio'"
/>
<upload
@ -337,6 +352,10 @@
list: [],
})
const showKey = ref(0)
const numType = ref('')
const radioChange = (e) => {
numType.value = e.target.value
}
props.refData.children.map((item) => {
if (item.name == '基本信息') {
item.children.map((val) => {
@ -444,7 +463,21 @@
if (flag) {
let obj = {}
list.forEach((item) => {
if (item.type === 'input2') {
obj[item.field] =
item.note1 +
(numType.value == '一次性买断'
? '元'
: numType.value == '按调用次数'
? '元/次'
: numType.value == '按并发路数'
? '元/路'
: numType.value == '按年计费'
? '元/年'
: '')
} else {
obj[item.field] = item.note1
}
})
data.value[title].push(obj)
// console.log(data.value[title])
@ -693,17 +726,18 @@
margin-top: 20px;
display: flex;
justify-content: flex-start;
align-items: center;
span:first-child {
width: 120px;
}
:deep(.ant-input-textarea) {
width: 570px;
width: 520px;
}
:deep(.ant-radio-group) {
width: 570px;
width: 520px;
}
:deep(.ant-input-number) {
@ -712,7 +746,7 @@
:deep(.ant-input) {
resize: none;
width: 570px;
width: 520px;
}
.ant-btn {
@ -750,7 +784,7 @@
}
.application-Area {
width: 570px;
width: 520px;
display: grid;
margin-top: -5px;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;