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('暂未开放新手指引') } }