-
+
+
+
+
+
+
+
+
+
{{ item.menuName }}
+
+
+
+
+

+
+
添加应用
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.residentCategoryName }}
+
+
+
+
+ {{scope.row.total}}
+
+
+
+
+ {{scope.row.nonIntegratedNum}}
+
+
+
+
+ {{scope.row.userName}}
+
+
+
+
+ {{ scope.row.updatePeriod ? scope.row.updatePeriod
+ == 'month' ? '每自然月' : scope.row.updatePeriod == 'halfMonth' ? '每半自然月' : scope.row.updatePeriod
+ == 'week' ? '每周' : '' : '' }}
+
+
+
+
+
+
+
+
+
+
+
+
常用功能
+
+
+
+
+
+
+
+
{{ item.menuName }}
+
+
+
+
+
+
所有功能
+
+
+
{{ menu.name }}
+
+
+
+
+
+
+
+
{{ item.name }}
+
+
+
+
+
+
+ 返回
+ 确认
+
+
+
@@ -203,6 +391,16 @@ export default {
data() {
return {
+ selectedFuncIdList: [],
+ showedFuncPanel:false,
+ funcList: [
+ // {
+ // url: '',
+ // menuId: '',
+ // menuName: '',
+ // icon: '',
+ // }
+ ],
yesterdayDate:null,
searchStatus: "ini", //ing over
searchData: {
@@ -251,9 +449,51 @@ export default {
agencyLevel: '',
yData: [],
myChartStyle: { float: "left", width: "140%", height: "100%" },
+ activeIndex: 0,
+ activeLevel: "1",
+ warningTb: {
+ pageNo: 1,
+ pageSize: window.localStorage.getItem("pageSize") || 20,
+ total: 1,
+ list: [],
+ },
+
}
},
- computed: {},
+ computed: {
+ selectedFuncList() {
+ const {
+ selectedFuncIdList,
+ $store: {
+ state: { sidebarMenuList },
+ },
+ } = this;
+ let obj = {};
+ sidebarMenuList.forEach((menu) => {
+ if (selectedFuncIdList.indexOf(menu.id) !== -1) {
+ obj[menu.id] = {
+ menuId: menu.id,
+ menuName: menu.name,
+ icon: menu.icon,
+ url: menu.url,
+ };
+ }
+ if (menu.children && menu.children.length > 0) {
+ menu.children.forEach((item) => {
+ if (selectedFuncIdList.indexOf(item.id) !== -1) {
+ obj[item.id] = {
+ menuId: item.id,
+ menuName: item.name,
+ icon: item.icon,
+ url: item.url,
+ };
+ }
+ });
+ }
+ });
+ return selectedFuncIdList.map((id) => obj[id]);
+ },
+ },
watch: {
"searchData.searchKey": function (val) {
if (val == "") {
@@ -274,6 +514,10 @@ export default {
created() {
},
mounted() {
+ this.getWarningTb()
+ this.getBuildingwarnlist()
+ this.getFuncList()
+ this.getUserwarnlist()
// this.ehso();
//图形
@@ -283,6 +527,7 @@ export default {
this.initChart()
this.initEcharts();
})
+
this.getYesterdayDate()
// this.agencyLevel = localStorage.getItem("level", data.level);
console.log(
@@ -291,6 +536,137 @@ export default {
);
},
methods: {
+ //预警人数列表
+ async getWarningTb() {
+ const url = "/epmetuser/icresiuser/personwarn/rightlist";
+ const {
+ warningTb: { pageSize, pageNo },
+ } = this;
+ const { data, code, msg } = await requestPost(url, {
+ pageSize,
+ pageNo,
+ categoryCode: this.currentCategoryCode,
+ });
+ if (code === 0) {
+
+ this.warningTb.total = data.total || 0;
+ this.warningTb.list = data.list
+ ? data.list.map((item) => {
+ item.typeName = item.type.join("、");
+ return item;
+ })
+ : [];
+ } else {
+ }
+ },
+ //具体人员列表
+ async getUserwarnlist() {
+ const { activeIndex, activeLevel, warningList } = this;
+ const reqItem = warningList[activeIndex];
+ let tableData = [];
+ const url = "/epmetuser/statsresiwarn/userwarnlist";
+ let params = {
+ configId: reqItem.configId,
+ buildingIdList: reqItem["buildingIdList" + activeLevel],
+ pageNo: 1,
+ pageSize: 20,
+ };
+ const { data, code, msg } = await requestPost(url, params);
+ if (code === 0) {
+ data.list.forEach((item, index) => {
+ tableData.push([
+ index + 1,
+ item.gridName,
+ item.neighborhoodName,
+ item.buildingName,
+ item.count,
+ {
+ type: "btn",
+ name: "查看人员",
+ buildingId: item.buildingId,
+ configId: item.configId,
+ gridName: item.gridName,
+ },
+ ]);
+ });
+ this.tableData = tableData;
+ this.total = data.total;
+ } else {
+ }
+ },
+ //人员预警
+ // 【人员预警】 楼宇预警数量列表
+ async getBuildingwarnlist() {
+ const url = "/epmetuser/statsresiwarn/buildingwarnlist";
+ let params = {
+ agencyId: this.$store.state.user.agencyId,
+ };
+ const { data, code, msg } = await requestPost(url, params);
+ if (code === 0) {
+ this.warningList = data;
+ this.visibleLoading = false;
+ this.getUserwarnlist();
+ } else {
+ }
+ },
+ //选中常用功能
+ selectFuncItem(id) {
+ let index = this.selectedFuncIdList.indexOf(id);
+ if (index === -1) {
+ this.selectedFuncIdList.push(id);
+ } else {
+ this.selectedFuncIdList.splice(index, 1);
+ }
+ },
+
+ //加载组织数据
+ async getFuncList() {
+ const url = "/gov/access/icoftenusefunction/oftenusefunctionlist";
+ let params = {};
+
+ const { data, code, msg } = await requestPost(url, params);
+
+ if (code === 0) {
+ this.funcList = data || [];
+ this.selectedFuncIdList = this.funcList.map((item) => item.menuId);
+ } else {
+ this.$message.error(msg);
+ }
+ },
+ //加载组织数据
+ async editFuncList() {
+ const url = "/gov/access/icoftenusefunction/addoftenusefunction";
+ const { selectedFuncIdList } = this;
+ let params = selectedFuncIdList.map((menuId, sort) => {
+ return { menuId, sort };
+ });
+
+ const { data, code, msg } = await requestPost(url, params);
+
+ if (code === 0) {
+ this.$message.success("修改成功");
+ this.showedFuncPanel = false;
+ this.getFuncList();
+ } else {
+ this.$message.error(msg);
+ }
+ },
+ //常用功能添加
+ handleClickFunc(menu) {
+ console.log(menu,"dskjlfdsjkljkfs");
+ const menuId = menu.menuId;
+ var route = window.SITE_CONFIG["dynamicMenuRoutes"].filter(
+ (item) => item.meta.menuId === menuId
+ )[0];
+ if (route) {
+ if (route.meta.iframeURL.endsWith("【跳转新页面】")) {
+ window.open(route.meta.iframeURL.slice(0, -7));
+ } else {
+ this.$router.push({ name: route.name });
+ }
+ }
+ },
+
// 获取昨天时间
getYesterdayDate() {
const now = new Date();
@@ -780,8 +1156,110 @@ export default {
+
diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue
index 73b569c8c..089e83b96 100644
--- a/src/views/modules/shequ/chaxun.vue
+++ b/src/views/modules/shequ/chaxun.vue
@@ -23,7 +23,7 @@
:class="searchData.type == 'xuqiu' ? 'z-on' : ''"
@click="handelClickTab('xuqiu')"
>
- 查诉求
+ 查需求