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

View File

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