From 5876a3488ec4abe0fcda1b59b376c31ed5802e55 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 22 Jul 2022 16:02:49 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/capacityOnTheShelf/Application.vue | 1 + front/src/views/capacityOnTheShelf/LayerServices.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index 81236fb1..0469ef71 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -56,6 +56,7 @@ @back="back()" > Date: Fri, 22 Jul 2022 16:06:40 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E8=B5=8B=E8=83=BD=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=EF=BC=8C=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1=E6=8C=82=E6=8E=A5?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ability/IntegratedServices-add.vue | 213 ++-------- .../modules/ability/IntegratedServices.vue | 39 +- .../assignedScene/add-update-scene.vue | 250 ++++++------ .../components/scene-one-input.vue | 120 ++++++ .../components/scene-use-step.vue | 16 +- .../modules/ability/assignedScene/index.vue | 12 +- .../ability/components/combine-ability.vue | 370 ++++++++++++++++++ .../ability/components/common-question.vue | 15 +- .../components/integrated-combine-ability.vue | 9 +- front/public/index.html | 3 +- 10 files changed, 712 insertions(+), 335 deletions(-) create mode 100644 back/src/views/modules/ability/assignedScene/components/scene-one-input.vue rename back/src/views/modules/ability/{ => assignedScene}/components/scene-use-step.vue (84%) create mode 100644 back/src/views/modules/ability/components/combine-ability.vue diff --git a/back/src/views/modules/ability/IntegratedServices-add.vue b/back/src/views/modules/ability/IntegratedServices-add.vue index d56937be..da6482f6 100644 --- a/back/src/views/modules/ability/IntegratedServices-add.vue +++ b/back/src/views/modules/ability/IntegratedServices-add.vue @@ -1,8 +1,8 @@ + \ No newline at end of file diff --git a/back/src/views/modules/ability/components/scene-use-step.vue b/back/src/views/modules/ability/assignedScene/components/scene-use-step.vue similarity index 84% rename from back/src/views/modules/ability/components/scene-use-step.vue rename to back/src/views/modules/ability/assignedScene/components/scene-use-step.vue index b2f8a669..afc0d6eb 100644 --- a/back/src/views/modules/ability/components/scene-use-step.vue +++ b/back/src/views/modules/ability/assignedScene/components/scene-use-step.vue @@ -16,8 +16,8 @@ v-if="!disabledType && dataInfo.length > 1">删除 - 添加 + 添加 @@ -87,6 +87,13 @@ export default { }, // 新增 addItem() { + let index = this.dataInfo.length - 1; + if (this.dataInfo[index].question === '' || this.dataInfo[index].answer === '') { + return this.$message.warning('请填写完整信息!') + } + if (this.dataInfo.length >= 6) { + return this.$message.warning('最多添加6个使用步骤!') + } this.dataInfo.push({ question: "", answer: "", @@ -115,4 +122,9 @@ export default { .step-box { padding: 20px 10px 10px 10px; } + +.add-btn { + margin-top: -12px; + margin-left: 100px; +} \ No newline at end of file diff --git a/back/src/views/modules/ability/assignedScene/index.vue b/back/src/views/modules/ability/assignedScene/index.vue index 19e2c87f..8ad45a6d 100644 --- a/back/src/views/modules/ability/assignedScene/index.vue +++ b/back/src/views/modules/ability/assignedScene/index.vue @@ -32,7 +32,7 @@ @click="handleUpdate(scope.row)">{{ $t("update") }} {{ $t("delete") }} - 能力展示 + 详情 @@ -131,15 +131,9 @@ export default { closeModal() { this.addOrUpdateVisible = false; }, - // 展示 + // 详情 showDetail(val) { - this.addOrUpdateVisible = true; - this.modalType = 'display'; - const cloneVal = JSON.parse(JSON.stringify(val)) - this.$nextTick(() => { - this.$refs.addOrUpdate.dataForm = cloneVal; - this.$refs.addOrUpdate.getDisPlayData() - }) + window.open(window.SITE_CONFIG.previewUrl + '#/details?id=' + val.id) }, fullScreen() { if (window.outerHeight === screen.availHeight) { diff --git a/back/src/views/modules/ability/components/combine-ability.vue b/back/src/views/modules/ability/components/combine-ability.vue new file mode 100644 index 00000000..4d0693d7 --- /dev/null +++ b/back/src/views/modules/ability/components/combine-ability.vue @@ -0,0 +1,370 @@ + + + + + + diff --git a/back/src/views/modules/ability/components/common-question.vue b/back/src/views/modules/ability/components/common-question.vue index bc67d874..c653cedb 100644 --- a/back/src/views/modules/ability/components/common-question.vue +++ b/back/src/views/modules/ability/components/common-question.vue @@ -17,8 +17,8 @@ v-if="dataInfo.length > 1">删除 - 添加 + + 添加 @@ -84,7 +84,6 @@ export default { }) } else { arr = [] - console.log('this.keyTextObj.nameObj.key------------>', this.keyTextObj.nameObj.key); arr.push({ [this.keyTextObj.nameObj.key]: '', [this.keyTextObj.descObj.key]: '', @@ -92,7 +91,6 @@ export default { } } else { arr = [] - console.log('this.keyTextObj.nameObj.key------------>', this.keyTextObj.nameObj.key); arr.push({ [this.keyTextObj.nameObj.key]: '', [this.keyTextObj.descObj.key]: '', @@ -102,6 +100,10 @@ export default { }, // 新增 addItem() { + let index = this.dataInfo.length - 1; + if (this.dataInfo[index][this.keyTextObj.nameObj.key] === '' || this.dataInfo[index][this.keyTextObj.descObj.key] === '') { + return this.$message.warning('请填写完整信息!') + } this.dataInfo.push({ [this.keyTextObj.nameObj.key]: '', [this.keyTextObj.descObj.key]: '', @@ -123,4 +125,9 @@ export default { margin-bottom: 10px; } } + +.add-btn { + margin-top: -12px; + margin-left: 100px; +} \ No newline at end of file diff --git a/back/src/views/modules/ability/components/integrated-combine-ability.vue b/back/src/views/modules/ability/components/integrated-combine-ability.vue index 80eea64b..3a34b330 100644 --- a/back/src/views/modules/ability/components/integrated-combine-ability.vue +++ b/back/src/views/modules/ability/components/integrated-combine-ability.vue @@ -24,7 +24,7 @@ v-if="!disabledType && dataInfo.length > 1">删除 - 添加 @@ -57,15 +57,9 @@ export default { { value: '组件服务', }, - { - value: '应用资源', - }, { value: '基础设施', }, - { - value: '知识库', - }, ], dataInfo: [], abilityArrayCopy: [], @@ -157,7 +151,6 @@ export default { // 过滤掉已选的 item.abilityOptions = arr.filter(v => !selectArray.includes(v.id)) console.log('abilityOptions------------>', item.abilityOptions); - }, } } diff --git a/front/public/index.html b/front/public/index.html index 97a19eed..a697cdf0 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -49,7 +49,8 @@ window.SITE_CONFIG['backUrl'] = 'http://localhost:8001'; window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/'; window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/'; - window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin'; + // window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin'; + window.SITE_CONFIG['apiURL'] = 'http://10.18.1.99:8889/renren-admin'; window.SITE_CONFIG['POI_URL'] = 'http://15.2.21.238:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address'; // 穿透版本 // window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797'; From d92cf6925f8ceddaf9703960301b1db4fe3e4f5a Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 22 Jul 2022 16:46:03 +0800 Subject: [PATCH 3/7] bug448 --- front/src/views/home/algorithmCompare.vue | 126 ++++++++++++---------- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/front/src/views/home/algorithmCompare.vue b/front/src/views/home/algorithmCompare.vue index bab19889..fd66bb38 100644 --- a/front/src/views/home/algorithmCompare.vue +++ b/front/src/views/home/algorithmCompare.vue @@ -57,13 +57,22 @@ :id="data.title" :title="data.title" :ref="data.title" + v-if=" + !( + data.title == '算法优势' || + data.title == '应用场景' || + data.title == '应用案例' || + data.title == '常见问题' || + data.title == '计费标准信息' + ) + " > {{ data.title }} -
- -
+ + + +
Date: Fri, 22 Jul 2022 16:51:00 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=99=90=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/apply.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 3a488731..2a3bb77c 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -151,6 +151,7 @@ :headers="headers" @change="handleChange" :before-upload="beforeUpload" + :maxCount="1" > 支持doc、docx、jpg、png、jpeg、pdf、xlxs、ppt类型文件 +
+ +
上传限一个文件
+
From b8afda6f0a90abfc1a10d653b3a49c4a591029f5 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 22 Jul 2022 16:58:19 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=B5=8F=E8=A7=88bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/personalCenter/components/MyBrowse.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/views/personalCenter/components/MyBrowse.vue b/front/src/views/personalCenter/components/MyBrowse.vue index cbf4345e..db6fb3da 100644 --- a/front/src/views/personalCenter/components/MyBrowse.vue +++ b/front/src/views/personalCenter/components/MyBrowse.vue @@ -39,7 +39,9 @@