diff --git a/src/App.vue b/src/App.vue
index d1217999..5d1e546d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -133,11 +133,11 @@ export default {
.dialog-h {
.el-dialog__body {
position: relative;
- height: 82vh;
+ max-height: 82vh;
box-sizing: border-box;
padding: 0 10px 20px !important;
.dialog-h-content {
- height: calc(82vh - 80px);
+ max-height: calc(82vh - 80px);
box-sizing: border-box;
overflow: auto;
}
diff --git a/src/assets/scss/main-shuju.scss b/src/assets/scss/main-shuju.scss
index 64eaa42c..092ff796 100644
--- a/src/assets/scss/main-shuju.scss
+++ b/src/assets/scss/main-shuju.scss
@@ -5,6 +5,14 @@
body {
}
+.m-iframe {
+ position: relative;
+ width: 100vw;
+ height: calc(100vh - 55px);
+ margin: -10px;
+ z-index: 100;
+}
+
/* Reset element-ui
------------------------------ */
.g-bd {
diff --git a/src/router/index.js b/src/router/index.js
index 932df895..b8763839 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -298,11 +298,13 @@ router.beforeEach((to, from, next) => {
// url: "visual/basicinfo/basicInfoMain",
children: [
{
- url: "/visual/ai/index",
+ url: "https://test-rxs-job.elinkservice.cn/haiqin-ai/aisecurity.html#/monitor-panel",
+ // url: "/visual/ai/index",
name: "AI安防",
id: "5feawfwa111111efwa57",
},
{
+ // url: "http://www.baidu.com",
url: "/visual/ai/renliu",
name: "人流数据",
id: "5fwaefwae222112fawef58",
@@ -323,7 +325,8 @@ router.beforeEach((to, from, next) => {
id: "fewafwafewaefddd",
},
{
- url: "/visual/ai/yujing",
+ // url: "/visual/ai/yujing",
+ url: "https://test-rxs-job.elinkservice.cn/haiqin-ai/aisecurity.html#/data-analysis",
name: "预警事件",
id: "545345fdsfs",
},
@@ -402,8 +405,21 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) {
eval(s2)
); // URL支持{{ window.xxx }}占位符变量
if (isURL(URL)) {
- route["path"] = route["name"] = `i-${menuList[i].id}`;
- route["meta"]["iframeURL"] = URL;
+ if (menuList[i].children && menuList[i].children.length >= 1) {
+ let item = menuList[i].children.find(
+ (subMenu) => subMenu.url == menuList[i].url
+ );
+ if (item) {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["redirect"] = `i-${item.id}`;
+ } else {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["meta"]["iframeURL"] = URL;
+ }
+ } else {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["meta"]["iframeURL"] = URL;
+ }
} else {
URL = URL.replace(/^\//, "").replace(/_/g, "-");
if (URL.startsWith("unopen")) {
@@ -464,12 +480,33 @@ function fnAddDynamicMenuRoutes2(menuList = [], routes = []) {
eval(s2)
); // URL支持{{ window.xxx }}占位符变量
if (isURL(URL)) {
- route["path"] = route["name"] = `i-${menuList[i].id}`;
- route["meta"]["iframeURL"] = URL;
+ if (menuList[i].children && menuList[i].children.length >= 1) {
+ let item = menuList[i].children.find(
+ (subMenu) => subMenu.url == menuList[i].url
+ );
+ if (item) {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["redirect"] = `i-${item.id}`;
+ } else {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["meta"]["iframeURL"] = URL;
+ }
+ } else {
+ route["path"] = route["name"] = `i-${menuList[i].id}`;
+ route["meta"]["iframeURL"] = URL;
+ }
} else {
URL = URL.replace(/^\//, "").replace(/_/g, "-");
- route["path"] = route["name"] = URL.replace(/\//g, "-");
- route["component"] = () => import(`@/views/modules/${URL}`);
+ if (URL.startsWith("unopen")) {
+ route["path"] = route["name"] = URL.replace(/\//g, "-");
+ route["component"] = () => import(`@/views/modules/unopen`);
+ } else if (menuList[i].children && menuList[i].children.length >= 1) {
+ route["path"] = route["name"] = URL;
+ route["redirect"] = URL.replace(/\//g, "-");
+ } else {
+ route["path"] = route["name"] = URL.replace(/\//g, "-");
+ route["component"] = () => import(`@/views/modules/${URL}`);
+ }
}
routes.push(route);
}
diff --git a/src/views/components/CTable.vue b/src/views/components/CTable.vue
index 86449a94..f5d2a8ee 100644
--- a/src/views/components/CTable.vue
+++ b/src/views/components/CTable.vue
@@ -93,10 +93,10 @@
{{item.lable}}
diff --git a/src/views/main-shuju/main-content.vue b/src/views/main-shuju/main-content.vue
index e78235c6..a67827be 100644
--- a/src/views/main-shuju/main-content.vue
+++ b/src/views/main-shuju/main-content.vue
@@ -1,98 +1,126 @@
-
+
-
-
+
+
+
+
+
-
diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index cf2cc061..9e35e8d6 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -17,7 +17,7 @@
class="upload-demo"
action="uploadUlr"
:limit="1"
- :accept="'.xls,xlsx'"
+ :accept="'.xls,.xlsx'"
:with-credentials="true"
:show-file-list="false"
:auto-upload="true"
diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue
index 3ba47ef1..1366c673 100644
--- a/src/views/modules/communityParty/elegant/index.vue
+++ b/src/views/modules/communityParty/elegant/index.vue
@@ -57,6 +57,7 @@
class="upload-demo"
action="uploadUlr"
:limit="1"
+ :accept="'.xls,.xlsx'"
:with-credentials="true"
:show-file-list="false"
:auto-upload="true"
diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue
index 221cf14e..e54a2355 100644
--- a/src/views/modules/communityService/measure/index.vue
+++ b/src/views/modules/communityService/measure/index.vue
@@ -163,14 +163,14 @@
:prop="item.columnName"
:label="item.label"
:align="item.align"
- :width="item.width"
+ :min-width="item.width"
:show-overflow-tooltip="true"
>
{{ handleFilterSpan(scope.row, item) }}
-
+
{
return true
@@ -148,11 +149,12 @@ export default {
},
{
lable: '修改', // 按钮显示名称
- size: 'mini',
+ size: 'small',
style: 'margin: 0 6px;',
type: 'text',
slot: '',
plain: false,
+ class: 'div-table-button--edit',
methodName: 'edit', // 回调方法名称
isShow: (row) => {
// return true
@@ -165,11 +167,12 @@ export default {
},
{
lable: '删除', // 按钮显示名称
- size: 'mini',
+ size: 'small',
style: 'margin: 0 6px;',
type: 'text',
slot: '',
plain: false,
+ class: 'div-table-button--delete',
methodName: 'confirmDel', // 回调方法名称
isShow: (row) => {
if (row.createdId === this.userId) {
diff --git a/src/views/modules/workSys/resiCate.vue b/src/views/modules/workSys/resiCate.vue
index a768a5d9..d6594778 100644
--- a/src/views/modules/workSys/resiCate.vue
+++ b/src/views/modules/workSys/resiCate.vue
@@ -75,7 +75,7 @@
{{ handleFilterSpan(scope.row, item) }}
-
+