Browse Source

暂存

dev-新版ui
dai 3 years ago
parent
commit
41c53133f1
  1. BIN
      src/assets/imgs/index/arrow-down.png
  2. BIN
      src/assets/imgs/index/title-icon-sqcx.png
  3. BIN
      src/assets/imgs/index/title-icon-sqzl.png
  4. BIN
      src/assets/imgs/index/title-icon-zntb.png
  5. BIN
      src/assets/imgs/index/title-icon-zntx.png
  6. 19
      src/assets/scss/modules/index.scss
  7. 288
      src/views/modules/home/index.vue
  8. 6
      src/views/pages/index.vue

BIN
src/assets/imgs/index/arrow-down.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
src/assets/imgs/index/title-icon-sqcx.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

BIN
src/assets/imgs/index/title-icon-sqzl.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 B

BIN
src/assets/imgs/index/title-icon-zntb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

BIN
src/assets/imgs/index/title-icon-zntx.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

19
src/assets/scss/modules/index.scss

@ -0,0 +1,19 @@
.m-info {
padding: 15px;
background: #f6f6f6;
border: 1px solid #d3dce6;
.header {
font-size: 15px;
font-weight: 500;
color: #002765;
line-height: 17px;
> img {
vertical-align: bottom;
margin-right: 5px;
width: 17px;
height: 17px;
}
}
}

288
src/views/modules/home/index.vue

@ -4,8 +4,9 @@
<div v-show="!showedFuncPanel">
<div class="m-info">
<div class="wrap">
<div class="logo">
<img src="@/assets/img/shequ/logo.png" />
<div class="header">
<img src="@/assets/imgs/index/title-icon-sqcx.png" />
<span>社区查询</span>
</div>
<div class="search">
@ -287,291 +288,10 @@
>
<div class="tb"></div>
</div>
<div class="m-list" v-if="searchStatus == 'ini'">
<div class="list-title">常用功能</div>
<div class="list">
<div
class="item"
:key="item.menuId"
@click="handleClickFunc(item)"
v-for="item in funcList"
>
<div class="icon">
<div
class="icon-wrap"
:style="{
color: item.color ? '#fff' : '#333',
backgroundColor: item.color || '#f4f4f4',
}"
>
<svg
class="icon-svg aui-sidebar__menu-icon"
aria-hidden="true"
>
<use :xlink:href="`#${item.icon}`" />
</svg>
</div>
</div>
<p>{{ item.menuName }}</p>
</div>
<div class="item" @click="showedFuncPanel = true">
<div class="icon">
<img
src="@/assets/img/shequ/function/tianjiayingyong.png"
/>
</div>
<p>添加应用</p>
</div>
</div>
</div>
</div>
</div>
<div class="m-data" v-if="searchStatus == 'ini'">
<div class="wrap">
<div class="header">
<div class="headline">人员预警</div>
<div class="notice" v-if="noticeList.length > 0">
<div class="notice-btn" @click="toNoticeInfo">通知</div>
<div class="notice-list">
<scroll-notice :list="noticeList">
<a
class="notice-item"
v-for="(item, index) in noticeList"
:key="item.configId + item.buildingId + index"
@click="toNoticeInfo(item)"
>
{{ item.noticeContent }}
</a>
</scroll-notice>
</div>
</div>
</div>
<div class="cnt">
<div class="chart">
<bar-chart
:width="520"
:height="420"
v-if="warningChart.loading"
:total="warningChart.total"
:list="warningChart.list"
@clickBar="changeCategoryCode"
/>
</div>
<div class="tb">
<el-table
:data="warningTb.list"
border
style="width: 100%"
class="resi-table"
:max-height="maxTableHeight"
>
<el-table-column
label="序号"
type="index"
align="center"
width="50"
/>
<el-table-column prop="typeName" label="类型">
</el-table-column>
<el-table-column prop="gridName" label="所属网格">
</el-table-column>
<el-table-column prop="name" label="姓名" width="80">
</el-table-column>
<el-table-column prop="family" label="所属家庭">
</el-table-column>
<el-table-column prop="mobile" label="电话">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
align="center"
width="60"
>
<template slot-scope="scope">
<el-button
@click="handleWatchWarning(scope.$index)"
type="text"
size="small"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination
@size-change="handleSizeChangeWarning"
@current-change="handleCurrentChangeWarning"
:current-page.sync="warningTb.pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(warningTb.pageSize)"
layout="sizes, prev, pager, next, total"
:total="warningTb.total"
>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 修改弹出框 -->
<div
v-show="showedFuncPanel"
v-if="
Array.isArray($store.state.sidebarMenuList) &&
$store.state.sidebarMenuList.length > 0
"
>
<div class="m-panel">
<div
class="m-list"
v-if="selectedFuncList && selectedFuncList.length > 0"
>
<div class="list-title">常用功能</div>
<div class="list">
<div
class="item"
:key="item.menuId"
@click="selectFuncItem(item.menuId)"
v-for="item in selectedFuncList"
>
<div class="corner-mark z-on">
<i class="el-icon-success"></i>
</div>
<div class="icon">
<div
class="icon-wrap"
:style="{
color: item.color ? '#fff' : '#333',
backgroundColor: item.color || '#f4f4f4',
}"
>
<svg
class="icon-svg aui-sidebar__menu-icon"
aria-hidden="true"
>
<use :xlink:href="`#${item.icon}`" />
</svg>
</div>
</div>
<p>{{ item.menuName }}</p>
</div>
</div>
</div>
<div class="m-list">
<div class="list-title">所有功能</div>
<div
:key="'one' + menu.id"
v-show="menu.children && menu.children.length > 0"
v-for="menu in $store.state.sidebarMenuList"
>
<div class="list-title2">{{ menu.name }}</div>
<div class="list">
<div
class="item"
:key="'two' + item.id"
@click="selectFuncItem(item.id)"
v-for="item in menu.children"
>
<div
class="corner-mark"
:class="{
'z-on': selectedFuncIdList.indexOf(item.id) !== -1,
}"
>
<i class="el-icon-success"></i>
</div>
<div class="icon">
<div
class="icon-wrap"
:style="{
color: item.color ? '#fff' : '#333',
backgroundColor: item.color || '#f4f4f4',
}"
>
<svg
class="icon-svg aui-sidebar__menu-icon"
aria-hidden="true"
>
<use :xlink:href="`#${item.icon}`" />
</svg>
</div>
</div>
<p>{{ item.name }}</p>
</div>
</div>
</div>
</div>
<div class="operate">
<el-button round @click="showedFuncPanel = false">返回</el-button>
<el-button type="primary" round @click="editFuncList"
>确认</el-button
>
</div>
</div>
</div>
</div>
<div v-if="currentPage == 'yujing'">
<div class="m-crumbs">
<a @click="currentPage = 'chaxun'">社区查询</a>
<i> > </i>
<span>人员预警</span>
</div>
<warning-list
:buildingId="currentNoticeBuildingId"
:configId="currentNoticeConfigId"
/>
</div>
<people-more
v-if="showedPeopleMoreInfo && currentPepeleId"
:userId="currentPepeleId"
:gridName="currentPepeleGridName"
@close="showedPeopleMoreInfo = false"
/>
<!-- 修改弹出框 -->
<el-dialog
:visible.sync="showedFangwuInfo"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="房屋详情"
width="900px"
@closed="showedFangwuInfo = false"
>
<fangwu-info
ref="fangwu_info"
@dialogCancle="showedFangwuInfo = false"
></fangwu-info>
</el-dialog>
<!-- 修改弹出框 -->
<el-dialog
:visible.sync="showedXuqiuInfo"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="需求详情"
width="900px"
@closed="showedXuqiuInfo = false"
>
<xuqiu-info
ref="xuqiu_info"
@dialogCancle="showedXuqiuInfo = false"
></xuqiu-info>
</el-dialog>
</div>
</template>
@ -1180,4 +900,4 @@ export default {
};
</script>
<style lang="scss" src="@/assets/scss/modules/search.scss" scoped></style>
<style lang="scss" src="@/assets/scss/modules/index.scss" scoped></style>

6
src/views/pages/index.vue

@ -31,14 +31,8 @@
</div>
</template>
<script>
import Cookies from "js-cookie";
import debounce from "lodash/debounce";
import { messages } from "@/i18n";
import { getUUID } from "@/utils";
import { Loading } from "element-ui"; // Loading
import JSEncrypt from "jsencrypt"; //
let loading; //
export default {
data() {
return {

Loading…
Cancel
Save