免批申请、免费试用按钮取消 && 详情页标签折行问题 && 基础设施感知为空 &&新建工作流程提示错误

This commit is contained in:
gaoyuanwei 2022-06-30 21:19:57 +08:00
parent d898bbec7e
commit ecdc04930d
11 changed files with 73 additions and 31 deletions

View File

@ -578,7 +578,7 @@ export default {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isImage) {
this.$message.error('上传头像图片只能是 JPG 格式!')
this.$message.error('上传头像图片只能是 jpg/png 格式!')
}
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!')
@ -601,7 +601,7 @@ export default {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isImage) {
this.$message.error('上传头像图片只能是 JPG 格式!')
this.$message.error('上传头像图片只能是 jpg/png 格式!')
}
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!')

View File

@ -138,6 +138,7 @@
})
const init = (id) => {
console.log(id, '-------------------------------------------------')
if (id) {
selectOne(id).then((res) => {
// console.clear()

View File

@ -39,13 +39,46 @@
obj.attrValue = JSON.parse(obj.attrValue)
// dataFrom.value = obj
obj.attrValue.map((item) => {
let params = {
let params = {}
switch (item.type) {
case '一次性买断':
params = {
title: item.type,
content: item.desc,
value: item.price,
time: '/年起',
time: '',
unit: '¥',
}
break
case '按调用次数':
params = {
title: item.type,
content: item.desc,
value: item.price,
time: '/次',
unit: '¥',
}
break
case '按并发路数':
params = {
title: item.type,
content: item.desc,
value: item.price,
time: '/路',
unit: '¥',
}
break
case '按年计费':
params = {
title: item.type,
content: item.desc,
value: item.price,
time: '/年',
unit: '¥',
}
break
}
dataFrom.value.push(params)
})
}
@ -70,7 +103,7 @@
title: item.type,
content: item.desc,
value: item.price,
time: '/元',
time: '',
unit: '¥',
}
break

View File

@ -162,8 +162,8 @@
}
.lable-father {
position: absolute;
min-width: 2.5rem;
right: -2.5rem;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {

View File

@ -73,13 +73,13 @@
titleSon: '调用接口',
link: {
name: '接口地址:',
value: 'http://localhost:9999/#/details?id=1532278256619307010',
value: '',
},
postMethod: {
name: '请求方式:',
value: 'POST',
value: '',
},
contact: '联系厂商',
contact: '联系厂商',
facilitator: { name: '服务商:', value: '科大讯飞' },
people: { name: '联系人:', value: '李四' },
phone: {
@ -116,8 +116,12 @@
dataFrom.value.content[0].people.value = item.attrValue || '--'
} else if (item.attrType === '服务商联系电话') {
dataFrom.value.content[0].phone.value = item.attrValue || '--'
} else if (item.attrType === '技术文档') {
dataFrom.value.link = item.attrValue || '--'
}
// } else if (item.attrType === '') {
// dataFrom.value.link = item.attrValue || '--'
// }
else if (item.attrType === '服务接口') {
dataFrom.value.content[0].link.value = item.attrValue || '--'
}
})
}
@ -143,8 +147,12 @@
dataFrom.value.content[0].people.value = item.attrValue || '--'
} else if (item.attrType === '服务商联系电话') {
dataFrom.value.content[0].phone.value = item.attrValue || '--'
} else if (item.attrType === '技术文档') {
dataFrom.value.link = item.attrValue || '--'
}
// else if (item.attrType === '') {
// dataFrom.value.link = item.attrValue || '--'
// }
else if (item.attrType === '服务接口') {
dataFrom.value.content[0].link.value = item.attrValue || '--'
}
})
}

View File

@ -148,8 +148,8 @@
}
.lable-father {
position: absolute;
min-width: 2.5rem;
right: -2.5rem;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {

View File

@ -162,8 +162,8 @@
}
.lable-father {
position: absolute;
min-width: 2.5rem;
right: -2.5rem;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {

View File

@ -161,8 +161,8 @@
}
.lable-father {
position: absolute;
min-width: 2.5rem;
right: -2.5rem;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {

View File

@ -162,8 +162,8 @@
}
.lable-father {
position: absolute;
min-width: 2.5rem;
right: -2.8rem;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {

View File

@ -174,15 +174,15 @@
>
查看详情
</a-button>
<a-button
<!-- <a-button
style="margin-left: 10px"
v-show="
cardType == '组件服务' && findComponentName(item, '智能算法')
"
>
免费试用
</a-button>
<a-button
</a-button> -->
<!-- <a-button
type="primary"
@click="toView('apply', item)"
v-show="
@ -196,7 +196,7 @@
{{
item.shareCondition == '免批申请' ? '免批申请' : '立即申请'
}}
</a-button>
</a-button> -->
</div>
<div class="right" v-else>
<a-button type="primary" @click="openVideo(item)">

View File

@ -295,7 +295,7 @@
showMap.value = true
clickList.value[1].content = []
clickList.value[indexFather].content[0] = name
tabList.value[1].content = ['333333', '213124']
tabList.value[1].content = []
} else {
clickList.value[indexFather].content.push(name)
}