This commit is contained in:
姚宇浩 2024-11-12 16:50:20 +08:00
parent cb9ea999ab
commit a5e613a8f3
2 changed files with 19 additions and 5 deletions

View File

@ -167,7 +167,7 @@ router.beforeEach((to, form, next) => {
next(); next();
} else { } else {
if (to.fullPath == '/home/index/map') { if (to.fullPath == '/home/index/map') {
//当未重新登录时menu为空或没有权限标识,无法访问, //当未重新登录时menu为空或没有权限标识,无法访问,
if (!menu || menu.indexOf('ggfw:ystp') == -1) { if (!menu || menu.indexOf('ggfw:ystp') == -1) {
ElMessage.error("您无权限访问该模块,若有需求请联系大数据中心!"); ElMessage.error("您无权限访问该模块,若有需求请联系大数据中心!");
} else { } else {

View File

@ -37,6 +37,7 @@
:prop="item.property" :prop="item.property"
:show-overflow-tooltip="item.tooltip" :show-overflow-tooltip="item.tooltip"
:width="item.width || ''" :width="item.width || ''"
:align="item.align || 'left'"
> >
<template #default="scope"> <template #default="scope">
<!-- 补助类型 --> <!-- 补助类型 -->
@ -52,6 +53,7 @@
:width="item.width || ''" :width="item.width || ''"
:prop="item.property" :prop="item.property"
:show-overflow-tooltip="item.tooltip" :show-overflow-tooltip="item.tooltip"
:align="item.align || 'left'"
/> />
</template> </template>
</el-table> </el-table>
@ -104,6 +106,7 @@
:label="item.label" :label="item.label"
:width="item.width || ''" :width="item.width || ''"
:prop="item.property" :prop="item.property"
:align="item.align || 'left'"
/> />
</template> </template>
</el-table> </el-table>
@ -228,6 +231,7 @@
:width="item.width || ''" :width="item.width || ''"
:prop="item.property" :prop="item.property"
:show-overflow-tooltip="item.tooltip" :show-overflow-tooltip="item.tooltip"
:align="item.align || 'left'"
/> />
</template> </template>
</el-table> </el-table>
@ -318,7 +322,8 @@ const data = reactive({
{ {
label: "姓名", label: "姓名",
property: "xm", property: "xm",
width: "90", width: "100",
align: "center",
}, },
{ {
label: "地址", label: "地址",
@ -329,6 +334,7 @@ const data = reactive({
label: "年龄", label: "年龄",
property: "nl", property: "nl",
width: "80", width: "80",
align: "center",
}, },
{ {
label: "人口标签", label: "人口标签",
@ -364,8 +370,9 @@ const data = reactive({
{ {
label: "姓名", label: "姓名",
property: "xm", property: "xm",
width: "90", width: "100",
type: "slot", type: "slot",
align: "center",
}, },
{ {
label: "状态", label: "状态",
@ -383,6 +390,7 @@ const data = reactive({
label: "年龄", label: "年龄",
property: "nl", property: "nl",
width: "80", width: "80",
align: "center",
}, },
{ {
label: "人口标签", label: "人口标签",
@ -467,7 +475,8 @@ const lampScreen = (val) => {
{ {
label: "姓名", label: "姓名",
property: "xm", property: "xm",
width: "90", width: "100",
align: "center",
type: "slot", type: "slot",
}, },
{ {
@ -485,6 +494,7 @@ const lampScreen = (val) => {
{ {
label: "年龄", label: "年龄",
property: "nl", property: "nl",
align: "center",
width: "80", width: "80",
}, },
{ {
@ -496,6 +506,8 @@ const lampScreen = (val) => {
label: "推送次数", label: "推送次数",
property: "pushSendTotal", property: "pushSendTotal",
type: "slot", type: "slot",
width: "80",
align: "center",
}, },
]; ];
} else { } else {
@ -503,7 +515,8 @@ const lampScreen = (val) => {
{ {
label: "姓名", label: "姓名",
property: "xm", property: "xm",
width: "90", width: "100",
align: "center",
type: "slot", type: "slot",
}, },
{ {
@ -521,6 +534,7 @@ const lampScreen = (val) => {
{ {
label: "年龄", label: "年龄",
property: "nl", property: "nl",
align: "center",
width: "80", width: "80",
}, },
{ {