diff --git a/package.json b/package.json index 1adb91ab..ff972c4b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.15", + "jetlinks-ui-components": "^1.0.16", "js-cookie": "^3.0.1", "less": "^4.1.3", "less-loader": "^11.1.0", diff --git a/src/views/link/AccessConfig/Detail/index.vue b/src/views/link/AccessConfig/Detail/index.vue index bfc01002..06b9e5c5 100644 --- a/src/views/link/AccessConfig/Detail/index.vue +++ b/src/views/link/AccessConfig/Detail/index.vue @@ -16,11 +16,13 @@ diff --git a/src/views/link/AccessConfig/components/Cloud/Ctwing.vue b/src/views/link/AccessConfig/components/Cloud/Ctwing.vue index 147aba15..a03d5888 100644 --- a/src/views/link/AccessConfig/components/Cloud/Ctwing.vue +++ b/src/views/link/AccessConfig/components/Cloud/Ctwing.vue @@ -177,6 +177,7 @@ @search="procotolSearch" /> @@ -352,6 +354,10 @@ const props = defineProps({ type: Object, default: () => {}, }, + bindProduct: { + type: Boolean, + default: false + } }); const formRef1 = ref(); @@ -368,6 +374,10 @@ const formData = ref
({ description: '', }); +const showAddBtn = computed(() => { + return route.query.view === 'false' && !props.bindProduct +}) + const current = ref(0); const stepCurrent = ref(0); const steps = ref(['接入配置', '消息协议', '完成']); diff --git a/src/views/link/AccessConfig/components/Cloud/OneNet.vue b/src/views/link/AccessConfig/components/Cloud/OneNet.vue index 6e06e45f..479a41a9 100644 --- a/src/views/link/AccessConfig/components/Cloud/OneNet.vue +++ b/src/views/link/AccessConfig/components/Cloud/OneNet.vue @@ -260,6 +260,7 @@ @search="procotolSearch" /> @@ -434,6 +436,10 @@ const props = defineProps({ type: Object, default: () => {}, }, + bindProduct: { + type: Boolean, + default: false + } }); const route = useRoute(); @@ -462,6 +468,10 @@ const procotolList: any = ref([]); const allProcotolList = ref([]); const procotolCurrent: any = ref(''); +const showAddBtn = computed(() => { + return route.query.view === 'false' && !props.bindProduct +}) + const procotolChange = (id: string) => { procotolCurrent.value = id; }; diff --git a/src/views/link/AccessConfig/components/Cloud/index.vue b/src/views/link/AccessConfig/components/Cloud/index.vue index f1f4658a..4ed73d08 100644 --- a/src/views/link/AccessConfig/components/Cloud/index.vue +++ b/src/views/link/AccessConfig/components/Cloud/index.vue @@ -3,11 +3,13 @@ @@ -26,6 +28,10 @@ const props = defineProps({ type: Object, default: () => {}, }, + bindProduct: { + type: Boolean, + default: false + } }); const channel = props.provider.channel; diff --git a/src/views/link/AccessConfig/components/Media/GB28181.vue b/src/views/link/AccessConfig/components/Media/GB28181.vue index 20251b43..e5d0c744 100644 --- a/src/views/link/AccessConfig/components/Media/GB28181.vue +++ b/src/views/link/AccessConfig/components/Media/GB28181.vue @@ -530,7 +530,7 @@ const props = defineProps({ data: { type: Object, default: () => {}, - }, + } }); const route = useRoute(); diff --git a/src/views/link/AccessConfig/components/Network/index.vue b/src/views/link/AccessConfig/components/Network/index.vue index d35822b4..a34494a7 100644 --- a/src/views/link/AccessConfig/components/Network/index.vue +++ b/src/views/link/AccessConfig/components/Network/index.vue @@ -17,6 +17,7 @@ @search="networkSearch" /> @@ -352,6 +354,10 @@ const props = defineProps({ type: Object, default: () => {}, }, + bindProduct: { + type: Boolean, + default: false + } }); const clientHeight = document.body.clientHeight; @@ -396,6 +402,10 @@ const { resetFields, validate, validateInfos } = useForm( }), ); +const showAddBtn = computed(() => { + return route.query.view === 'false' && !props.bindProduct +}) + const queryNetworkList = async (id: string, include: string, data = {}) => { const resp = await getNetworkList( NetworkTypeMapping.get(id), diff --git a/src/views/link/AccessConfig/components/Plugin/index.vue b/src/views/link/AccessConfig/components/Plugin/index.vue index de06dd8a..9363a5fa 100644 --- a/src/views/link/AccessConfig/components/Plugin/index.vue +++ b/src/views/link/AccessConfig/components/Plugin/index.vue @@ -14,6 +14,7 @@ @search="pluginSearch" />