-
-
- {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
![]()
+
+
-
-
-
-
-
-
+
+
+
-
+
diff --git a/src/views/pqs/cockpit/setUp/components/popup.vue b/src/views/pqs/cockpit/setUp/components/popup.vue
index 8796b83..473f871 100644
--- a/src/views/pqs/cockpit/setUp/components/popup.vue
+++ b/src/views/pqs/cockpit/setUp/components/popup.vue
@@ -19,9 +19,13 @@
:min="0"
:step="1"
step-strictly
- style="width: 100%"
/>
+
+
+
+
+
('left')
const form: any = reactive({
@@ -147,6 +154,8 @@ const form: any = reactive({
containerConfig: [],
sort: '100',
id: '',
+ pagePath: '',
+ pathName: '',
remark: ''
})
const activeNames = ref([])
@@ -171,6 +180,13 @@ const layout: any = ref([
const treeComponents: any = ref([]) //组件树
const treeComponentsCopy: any = ref([]) //组件树
const info = () => {
+ pageList.value = router
+ .getRoutes()
+ .filter(item => item?.meta?.component == '/src/views/pqs/cockpit/homePage/index.vue')
+ .map(item => {
+ return { name: item?.meta?.title, path: item?.meta?.path }
+ })
+
activeNames.value = []
activeNames1.value = []
componentTree().then(res => {
@@ -188,6 +204,8 @@ const info = () => {
queryById({ id: query.id }).then(res => {
layout.value = JSON.parse(res.data.containerConfig)
form.pageName = res.data.pageName
+ form.pagePath = res.data.pagePath
+ form.pathName = res.data.pathName
form.sort = res.data.sort
form.remark = res.data.remark
form.id = res.data.id
@@ -343,6 +361,8 @@ const onSubmit = () => {
}).then(canvas => {
url = canvas.toDataURL('image/png')
})
+ form.pagePath = form.pagePath || ''
+ form.pathName = pageList.value.filter((item: any) => item.path == form.pagePath)?.[0]?.name || ''
if (valid) {
if (form.id == '') {
diff --git a/src/views/pqs/cockpit/setUp/components/view.vue b/src/views/pqs/cockpit/setUp/components/view.vue
index 1826abb..60059d2 100644
--- a/src/views/pqs/cockpit/setUp/components/view.vue
+++ b/src/views/pqs/cockpit/setUp/components/view.vue
@@ -189,6 +189,7 @@ const fetchLayoutData = async () => {
// 可以添加错误提示逻辑
}
}
+// 计算组件高度
const seRowHeight = (value: any) => {
if (value == 6) return 0
if (value == 5) return 12
diff --git a/src/views/pqs/cockpit/setUp/index.vue b/src/views/pqs/cockpit/setUp/index.vue
index 9fbc9d9..26c92f5 100644
--- a/src/views/pqs/cockpit/setUp/index.vue
+++ b/src/views/pqs/cockpit/setUp/index.vue
@@ -31,8 +31,15 @@
>
{{ item.pageName }}
+
+
+ 绑定页面:{{ item.pathName }}
+
+
暂未绑定
+
+
-
激活
-
+ -->