From 73ed69f315ea7b65dd85cb4803509b45d3d27c13 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Tue, 26 Jul 2022 10:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E5=BF=85=E5=A1=AB=E9=A1=B9?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capacityOnTheShelf/Algorithm.vue | 174 ++++++-- .../views/capacityOnTheShelf/Application.vue | 97 +++- .../capacityOnTheShelf/BusinessComponent.vue | 156 +++++-- .../DevelopmentComponents.vue | 156 +++++-- .../capacityOnTheShelf/LayerServices.vue | 157 +++++-- .../components/PutOnTheShelf.vue | 419 ++++++++++-------- .../Algorithm/AlgorithmUsageMode.vue | 4 +- .../LayerService/LayerServiceUsageMode.vue | 4 +- 8 files changed, 812 insertions(+), 355 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/Algorithm.vue b/front/src/views/capacityOnTheShelf/Algorithm.vue index 3c2205dd..df8d2d41 100644 --- a/front/src/views/capacityOnTheShelf/Algorithm.vue +++ b/front/src/views/capacityOnTheShelf/Algorithm.vue @@ -37,6 +37,8 @@ '部门联系人', '部门联系人电话', ]" + :required="required" + :notFilled="notFilled" > - - - 请选择关联组件 - - - + - {{ itemSelect.dictLabel }} - - - - + - {{ itemSelect.dictLabel }} - - - -
+ + {{ itemSelect.dictLabel }} + + + + + {{ itemSelect.dictLabel }} + + +
- {{ itemson.dictLabel }} +
+ {{ itemson.dictLabel }} +
+
+ 请填写{{ item.name }}! +
+
+ 请选择{{ item.name }}! +
@@ -466,7 +498,6 @@ import upload from '@/views/components/upload' import { message } from 'ant-design-vue' import { getUserInfo, getDeptAll } from '@/api/user' - import VueTemplateDemo from '@/views/personalCenter/VueTemplateDemo.vue' import { getCategoryTreePage, queryApplicationRelByResourceId, @@ -477,6 +508,7 @@ const router = useRouter() const abilityToType = router.currentRoute.value.query.abilityToType const componentTypeValue = router.currentRoute.value.query.componentTypeValue + const changeField = ref([]) const props = defineProps({ // 展示数据 refData: { type: Object, default: null }, @@ -495,6 +527,8 @@ externalField: { type: Array, default: null }, // 多条的配置 configure: { type: Array, default: null }, + required: { type: Array, default: null }, + notFilled: { type: Array, default: null }, // [{ // name:'计费标准信息', // list:[ @@ -551,6 +585,15 @@ const radioChange = (e) => { numType.value = e.target.value } + const changeIiem = (name, value) => { + if (value && value !== '' && changeField.value.indexOf(name) == -1) { + changeField.value.push(name) + } else if (!value || value == '') { + if (changeField.value.indexOf(name) > -1) { + changeField.value.splice(changeField.value.indexOf(name), 1) + } + } + } props.refData.children.map((item) => { if (item.name == '基本信息') { item.children.map((val) => { @@ -979,9 +1022,6 @@ } }) }) - const handleChange2 = (value) => { - console.log(`selected ${value}`) - } const applicationsChange = (value) => { data.value.list.map((item) => { if (item.name === '来源应用') { @@ -1275,4 +1315,31 @@ cursor: pointer; } } + .item { + position: relative; + span:first-child { + width: unset; + } + .box { + display: flex; + align-items: center; + // margin: 15px 0; + & > div:nth-of-type(1) { + width: 105px; + display: flex; + align-items: center; + } + .required { + color: #f56c6c; + margin-right: 3px; + } + } + .requiredTips { + font-size: 14px; + color: #f56c6c; + position: absolute; + bottom: -20px; + left: 110px; + } + } diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index ae318480..36dfbb5c 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -287,7 +287,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传使用手册') + message.error('暂未开放使用手册') } } function SDKClick() { @@ -300,7 +300,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('SDK安装包') + message.error('暂未上传SDK安装包') } } diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue index ae406496..59c5ffc3 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue @@ -204,7 +204,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传接口文档') + message.error('暂未开放技术文档') } } function technicalNew() { @@ -228,7 +228,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传使用手册') + message.error('暂未开放新手指引') } }