+
@@ -649,37 +653,46 @@
})
} else {
if (type === 'apply') {
- console.log('一键申请===================>', item)
- localStorage.setItem(
- 'applyList',
- JSON.stringify([
- {
- arr: [
- {
- delFlag: item.delFlag,
- description: item.description,
- resourceId: item.id,
- resourceName: item.name,
- time: item.createDate,
- type: item.type,
- componentType:
- (item.infoList.filter(
- (val) => val.attrType == '组件类型'
- )[0] &&
- item.infoList.filter(
+ // 外部服务地址跳转到外部
+ const webUrl = item.infoList.filter(
+ (val) => val.attrType == '外部服务地址'
+ )[0]?.attrValue
+ if (webUrl) {
+ window.open(webUrl)
+ } else {
+ // 内部跳转申请页面
+ console.log('一键申请===================>', item)
+ localStorage.setItem(
+ 'applyList',
+ JSON.stringify([
+ {
+ arr: [
+ {
+ delFlag: item.delFlag,
+ description: item.description,
+ resourceId: item.id,
+ resourceName: item.name,
+ time: item.createDate,
+ type: item.type,
+ componentType:
+ (item.infoList.filter(
(val) => val.attrType == '组件类型'
- )[0].attrValue) ||
- '',
- },
- ],
- deptId: item.deptId,
- deptName: item.deptName,
- },
- ])
- )
- router.push({
- path: '/apply',
- })
+ )[0] &&
+ item.infoList.filter(
+ (val) => val.attrType == '组件类型'
+ )[0].attrValue) ||
+ '',
+ },
+ ],
+ deptId: item.deptId,
+ deptName: item.deptName,
+ },
+ ])
+ )
+ router.push({
+ path: '/apply',
+ })
+ }
} else {
console.log(
'111111111111111111===========>',
diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue
index 88449dbe..99519f49 100644
--- a/front/src/views/home/infrastructurePage.vue
+++ b/front/src/views/home/infrastructurePage.vue
@@ -149,9 +149,10 @@
@@ -166,7 +167,7 @@
wrapClassName="batch-preview-modal"
v-model:visible="batchVisible"
title="视频批量预览"
- :width="1250"
+ :width="1060"
destroyOnClose
@cancel="videoClean"
>
@@ -177,9 +178,18 @@
:key="item.id"
style="width: 100%; height: 100%"
>
+
+