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';