diff --git a/front/src/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue b/front/src/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue
index 2eb4c234..2df46475 100644
--- a/front/src/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue
+++ b/front/src/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue
@@ -18,9 +18,7 @@
-
-
@@ -248,6 +166,7 @@
import mybus from '@/myplugins/mybus'
import upload from '@/views/components/upload'
import { message } from 'ant-design-vue'
+ import { getCategoryTreePage } from '@/api/personalCenter'
// import { baseURL } from '@/config'
const props = defineProps({
refData: { type: Object, default: null },
@@ -256,11 +175,32 @@
imgList: { type: Array, default: null },
})
const data = ref({
- list: props.refData.children.filter((item) => item.name === '使用方式')[0]
- .children,
+ list: [],
freightBasis: [],
commonProblem: [],
})
+ let arr = props.refData.children.filter((item) => item.name !== '常见问题')
+ data.value.list = []
+ arr.forEach((val) => {
+ val.children.forEach((item) => {
+ if (item.isLinkToDic === 'true' && item.linkValue) {
+ getCategoryTreePage({
+ page: 1,
+ limit: 20,
+ dictTypeId: item.linkValue,
+ deFlage: 0,
+ }).then((res) => {
+ // console.log(res.data.data)
+ if (item.type === 'radio') {
+ item.options = res.data.data.list.map((radio) => radio.dictLabel)
+ }
+ data.value.list.push(item)
+ })
+ } else {
+ data.value.list.push(item)
+ }
+ })
+ })
if (props.dataFrom) {
console.log(props.dataFrom, data.value.list)
props.dataFrom.infoList.forEach((item) => {
@@ -277,8 +217,6 @@
const question = ref('')
const answer = ref('')
const plainOptions = ['一次性买断', '按调用次数', '按并发路数', '按年计费']
- const plainOptions2 = ['GET', 'POST']
- const plainOptions3 = ['是', '否']
const limitNumber = (value) => {
if (typeof value === 'string') {
return !isNaN(Number(value)) ? value.replace(/\./g, '') : 0