From ecdc04930dba6981489ff8d66ce6a4a9c2888231 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Thu, 30 Jun 2022 21:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=8D=E6=89=B9=E7=94=B3=E8=AF=B7=E3=80=81?= =?UTF-8?q?=E5=85=8D=E8=B4=B9=E8=AF=95=E7=94=A8=E6=8C=89=E9=92=AE=E5=8F=96?= =?UTF-8?q?=E6=B6=88=20&&=20=E8=AF=A6=E6=83=85=E9=A1=B5=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=8A=98=E8=A1=8C=E9=97=AE=E9=A2=98=20&&=20=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E6=96=BD=E6=84=9F=E7=9F=A5=E4=B8=BA=E7=A9=BA=20&&?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/activiti/my-work-dynamics.vue | 4 +- .../src/views/detailsAll/AlgorithmDetails.vue | 1 + .../Algorithm/AlgorithmChargingStandard.vue | 47 ++++++++++++++++--- .../Algorithm/AlgorithmTopDetails.vue | 4 +- .../Algorithm/AlgorithmUsageMode.vue | 22 ++++++--- .../Application/ApplicationTopDetails.vue | 4 +- .../Business/BusinessTopDetails.vue | 4 +- .../Developer/DeveloperTopDetails.vue | 4 +- .../LayerService/LayerServiceTopDetails.vue | 4 +- .../home/components/searchResultList.vue | 8 ++-- front/src/views/home/infrastructurePage.vue | 2 +- 11 files changed, 73 insertions(+), 31 deletions(-) diff --git a/back/src/views/modules/activiti/my-work-dynamics.vue b/back/src/views/modules/activiti/my-work-dynamics.vue index 7e0d92d5..db462c81 100644 --- a/back/src/views/modules/activiti/my-work-dynamics.vue +++ b/back/src/views/modules/activiti/my-work-dynamics.vue @@ -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!') diff --git a/front/src/views/detailsAll/AlgorithmDetails.vue b/front/src/views/detailsAll/AlgorithmDetails.vue index 81159a55..f215bd10 100644 --- a/front/src/views/detailsAll/AlgorithmDetails.vue +++ b/front/src/views/detailsAll/AlgorithmDetails.vue @@ -138,6 +138,7 @@ }) const init = (id) => { + console.log(id, '-------------------------------------------------') if (id) { selectOne(id).then((res) => { // console.clear() diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue index a32c4304..455161db 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue @@ -39,12 +39,45 @@ obj.attrValue = JSON.parse(obj.attrValue) // dataFrom.value = obj obj.attrValue.map((item) => { - let params = { - title: item.type, - content: item.desc, - value: item.price, - time: '/年起', - unit: '¥', + let params = {} + switch (item.type) { + 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 + 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 diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue index f7ed512b..6d2288af 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmTopDetails.vue @@ -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 { diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index f49ebce5..121718e2 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -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 || '--' } }) } diff --git a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue index 1e3c06f0..42b48cc9 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue @@ -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 { diff --git a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue index 42bea3df..33ffb300 100644 --- a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue +++ b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue @@ -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 { diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue b/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue index 4eeea3ba..e7c71332 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue @@ -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 { diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue index f307a4fe..c8c5b45b 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue @@ -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 { diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 13fdcfac..c22c6c89 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -174,15 +174,15 @@ > 查看详情 - 免费试用 - - --> +
diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 970ada79..15f9cf34 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -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) }