Browse Source

Merge branch 'yantai_dev' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into yantai_dev

dev-烟台0301
jiangyy 3 years ago
parent
commit
05844c9ede
  1. 62
      src/assets/scss/pages/yantai-index.scss
  2. 3
      src/element-ui/theme-variables.scss
  3. 61
      src/views/components/fixed1920.vue
  4. 534
      src/views/components/resiSearch.vue
  5. 9
      src/views/main-shuju/main.vue
  6. 178
      src/views/pages/yantai-index.vue
  7. 2
      src/views/pages/yantai-login.vue

62
src/assets/scss/pages/yantai-index.scss

@ -1,28 +1,19 @@
@import "~@/assets/scss/c/config.scss";
@import "~@/assets/scss/c/function.scss";
.g-bd {
&::before,
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
content: "";
}
&::before {
background-image: url(~@/assets/img/yantai/index/bg.png);
background-size: cover;
}
&::after {
// background-color: rgba(38, 50, 56, 0.1);
}
.g-cnt {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url(~@/assets/img/yantai/index/bg.png);
background-size: cover;
background-position: center;
}
.m-top {
position: fixed;
position: absolute;
top: 0;
width: 1920px;
left: -1000px;
@ -46,7 +37,7 @@
}
.m-list {
position: fixed;
position: absolute;
top: 50%;
left: 0;
right: 0;
@ -59,6 +50,7 @@
align-items: center;
width: 100%;
margin: 0 auto;
.menu {
position: relative;
@ -79,6 +71,7 @@
border-radius: 60px;
text-align: center;
transition: all 0.2s ease;
cursor: pointer;
&.z-zuo {
left: 60px;
@ -98,26 +91,26 @@
}
&.z-you {
right: 70px;
left: 70px;
background: linear-gradient(to right, rgba(rgb(67, 67, 210), 0.3), rgba(#00a, 0));
box-shadow: 4px 4px 6px 0 inset rgba(#fff, 0.2);
&:nth-child(2),
&:nth-child(6) {
margin-right: 20px;
margin-left: -20px;
}
&:nth-child(3),
&:nth-child(5) {
margin-right: 20px * 2;
margin-left: -20px * 2;
}
&:nth-child(4) {
margin-right: 20px * 2 + 1px;
margin-left: -20px * 2 - 1px;
}
}
&:hover,
&.z-on {
transform: scale(1.2);
transform: scale(1.15);
color: rgba(#fff, 0.95);
}
}
@ -125,16 +118,23 @@
}
.arrow {
width: 60px;
margin: 0 20px;
}
.item {
position: relative;
margin: 0 50px;
width: 420px;
margin: 0 20px;
max-width: 612px;
text-align: center;
cursor: pointer;
.item-wrap {
text-align: center;
cursor: pointer;
transition: all 0.2s ease;
&:hover {
transform: scale(1.1);
}
}
&.z-on {
.name {
@ -151,11 +151,11 @@
}
.name {
position: absolute;
top: 0;
top: 12%;
left: 0;
width: 100%;
font-size: 36px;
line-height: 140px;
line-height: 40px;
color: #fff;
}
}

3
src/element-ui/theme-variables.scss

@ -16,7 +16,8 @@ $--color-transition-base: color .2s cubic-bezier(.645,.045,.355,1) !default;
/* Color
-------------------------- */
/// color|1|Brand Color|0
$--color-primary: #17B3A3 !default;
// $--color-primary: #17B3A3 !default;
$--color-primary: #3E8EF7 !default;
/// color|1|Background Color|4
$--color-white: #FFFFFF !default;
/// color|1|Background Color|4

61
src/views/components/fixed1920.vue

@ -0,0 +1,61 @@
<template>
<div class="g-app">
<div class="g-bd" :style="bdStyle">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
data() {
return {
clientHeight: document.documentElement.clientHeight,
clientWidth: document.documentElement.clientWidth,
};
},
components: {},
computed: {
bdStyle() {
const { clientHeight, clientWidth } = this;
console.log("clientHeight", clientHeight);
const scale = clientWidth / 1920;
const height = clientHeight / scale;
const top = (clientHeight - height) / 2;
const left = (clientWidth - 1920) / 2;
return {
transform: `scale(${scale})`,
height: `${height}px`,
left: `${left}px`,
top: `${top}px`,
};
},
},
created() {},
mounted() {
window.addEventListener("resize", () => {
this.clientHeight = document.documentElement.clientHeight;
this.clientWidth = document.documentElement.clientWidth;
});
},
methods: {},
};
</script>
<style lang="scss" scoped>
.g-app {
position: absolute;
// width: 1920px;
width: 100%;
height: 100vh;
overflow: hidden;
}
.g-bd {
position: absolute;
width: 1920px;
overflow-x: hidden;
overflow-y: auto;
}
</style>

534
src/views/components/resiSearch.vue

@ -1,9 +1,25 @@
<template>
<div class="resi-container">
<!-- <el-card class="resi-card"> -->
<el-row class="resi-row-box" :class="!isArrow && 'resi-row-more'">
<el-row v-if="showGrid" class="resi-row">
<el-col :span="6">
<el-row class="resi-row-box"
:class="!isArrow && 'resi-row-more'">
<el-row v-if="showGrid"
class="resi-row">
<el-col :span="6">
<div class="resi-cell">
<div class="resi-cell-label">所属组织</div>
<div class="resi-cell-value">
<el-cascader class="customer_cascader"
ref="myCascader"
v-model="agencyIdArray"
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"></el-cascader>
</div>
</div>
</el-col>
<!-- <el-col :span="6">
<div class="resi-cell">
<div class="resi-cell-label">所属网格</div>
<div class="resi-cell-value">
@ -25,196 +41,176 @@
</el-select>
</div>
</div>
</el-col>
<el-col :span="18">
<div class="resi-cell">
<div class="resi-cell-label">所属房屋</div>
<div class="resi-cell-value">
<el-select
v-model.trim="form.VILLAGE_ID"
placeholder="请选择小区"
size="small"
clearable
class="resi-cell-select"
@clear="handleClearVillage"
@change="handleChangeV"
>
<el-option
v-for="item in optionsV"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-select
v-model.trim="form.BUILD_ID"
placeholder="楼号"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select"
:disabled="changeVDisabled"
@clear="handleClearBuild"
@change="handleChangeB"
>
<el-option
v-for="item in optionsB"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-select
v-model.trim="form.UNIT_ID"
:disabled="changeBDisabled"
placeholder="单元"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select"
@click="handleClearDan"
@change="handleChangeD"
>
<el-option
v-for="item in optionsD"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-select
v-model.trim="form.HOME_ID"
:disabled="changeDDisabled"
placeholder="房号"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select"
>
<el-option
v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
</el-col>-->
<el-col :span="18">
<div class="resi-cell">
<div class="resi-cell-label">所属房屋</div>
<div class="resi-cell-value">
<el-select v-model.trim="form.VILLAGE_ID"
placeholder="请选择小区"
size="small"
clearable
class="resi-cell-select"
@clear="handleClearVillage"
@change="handleChangeV">
<el-option v-for="item in optionsV"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-select v-model.trim="form.BUILD_ID"
placeholder="楼号"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select"
:disabled="changeVDisabled"
@clear="handleClearBuild"
@change="handleChangeB">
<el-option v-for="item in optionsB"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-select v-model.trim="form.UNIT_ID"
:disabled="changeBDisabled"
placeholder="单元"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select"
@click="handleClearDan"
@change="handleChangeD">
<el-option v-for="item in optionsD"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-select v-model.trim="form.HOME_ID"
:disabled="changeDDisabled"
placeholder="房号"
size="small"
clearable
style="width: 120px;"
class="resi-cell-select">
<el-option v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-col>
</el-row>
<el-row
v-for="(item, index) in sliceList(itemList, 4)"
:key="index"
class="resi-row"
>
<el-col v-for="n in item" :key="n.id" :span="computdSpan(item.length)">
<div class="resi-cell">
<div class="resi-cell-label" :class="item.length != 4 && 'resi-cell-label1'">{{ n.label }}</div>
<div
class="resi-cell-value"
:class="n.itemType === 'radio' && 'resi-cell-value-radio'"
>
<el-input
v-if="n.itemType === 'input' || n.itemType === 'textarea'"
v-model.trim="form[n.columnName]"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入内容"
>
</el-input>
<template v-else-if="n.itemType == 'inputRange'">
<!-- <el-input
</div>
</el-col>
</el-row>
<el-row v-for="(item, index) in sliceList(itemList, 4)"
:key="index"
class="resi-row">
<el-col v-for="n in item"
:key="n.id"
:span="computdSpan(item.length)">
<div class="resi-cell">
<div class="resi-cell-label"
:class="item.length != 4 && 'resi-cell-label1'">{{ n.label }}</div>
<div class="resi-cell-value"
:class="n.itemType === 'radio' && 'resi-cell-value-radio'">
<el-input v-if="n.itemType === 'input' || n.itemType === 'textarea'"
v-model.trim="form[n.columnName]"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入内容">
</el-input>
<template v-else-if="n.itemType == 'inputRange'">
<!-- <el-input
v-model.trim="form[n.columnName]"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入内容"
/> -->
<inputRange v-model="form[n.columnName]" :type="n.validType" @change="handleAgeChange" />
</template>
<template v-else-if="n.itemType === 'datepicker'">
<el-date-picker
v-if="n.queryType === 'daterange'"
v-model.trim="form[n.columnName]"
type="daterange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
class="resi-cell--daterange"
size="small"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
>
</el-date-picker>
<el-date-picker
v-else
v-model.trim="form[n.columnName]"
class="resi-cell-input"
type="date"
size="small"
clearable
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
</el-date-picker>
</template>
<el-select
v-else-if="n.itemType === 'select' || n.itemType === 'radio'"
v-model.trim="form[n.columnName]"
placeholder="请选择"
size="small"
clearable
class="resi-cell-select"
:collapse-tags="n.multiSelect == 1 ? true : false"
:multiple="n.multiSelect == 1 ? true : false"
>
<el-option
v-for="item in n.options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-cascader
v-else-if="n.itemType === 'cascader'"
v-model.trim="form[n.columnName]"
:options="n.options"
:props="{ checkStrictly: true }"
clearable
size="small"
class="resi-cell-select"
>
</el-cascader>
<template v-else-if="n.itemType === 'checkbox'">
<el-checkbox-group v-model="form[n.columnName]">
<el-checkbox v-for="ns in n.options" :key="ns.value" :label="ns.value">{{ns.label}}</el-checkbox>
<!-- <el-checkbox label="n.la"></el-checkbox> -->
</el-checkbox-group>
</template>
</div>
<inputRange v-model="form[n.columnName]"
:type="n.validType"
@change="handleAgeChange" />
</template>
<template v-else-if="n.itemType === 'datepicker'">
<el-date-picker v-if="n.queryType === 'daterange'"
v-model.trim="form[n.columnName]"
type="daterange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
class="resi-cell--daterange"
size="small"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd">
</el-date-picker>
<el-date-picker v-else
v-model.trim="form[n.columnName]"
class="resi-cell-input"
type="date"
size="small"
clearable
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</template>
<el-select v-else-if="n.itemType === 'select' || n.itemType === 'radio'"
v-model.trim="form[n.columnName]"
placeholder="请选择"
size="small"
clearable
class="resi-cell-select"
:collapse-tags="n.multiSelect == 1 ? true : false"
:multiple="n.multiSelect == 1 ? true : false">
<el-option v-for="item in n.options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-cascader v-else-if="n.itemType === 'cascader'"
v-model.trim="form[n.columnName]"
:options="n.options"
:props="{ checkStrictly: true }"
clearable
size="small"
class="resi-cell-select">
</el-cascader>
<template v-else-if="n.itemType === 'checkbox'">
<el-checkbox-group v-model="form[n.columnName]">
<el-checkbox v-for="ns in n.options"
:key="ns.value"
:label="ns.value">{{ns.label}}</el-checkbox>
<!-- <el-checkbox label="n.la"></el-checkbox> -->
</el-checkbox-group>
</template>
</div>
</el-col>
</el-row>
</div>
</el-col>
</el-row>
<el-row v-if="isArrow" class="resi-search">
<!-- <el-col :span="20">
</el-row>
<el-row v-if="isArrow"
class="resi-search">
<!-- <el-col :span="20">
<el-button type="primary" size="mini">查询</el-button>
</el-col> -->
<el-col :span="24">
<el-button type="primary" size="small" @click="handleSearch">查询</el-button>
<el-button class="diy-button--reset" size="small" @click="resetForm">重置</el-button>
</el-col>
</el-row>
<!-- <div v-if="isArrow" class="resi-down" @click="handleOpenSearch">
<el-col :span="24">
<el-button type="primary"
size="small"
@click="handleSearch">查询</el-button>
<el-button class="diy-button--reset"
size="small"
@click="resetForm">重置</el-button>
</el-col>
</el-row>
<!-- <div v-if="isArrow" class="resi-down" @click="handleOpenSearch">
<img v-if="openSearch" src="../../assets/img/arrow-up.png" />
<img v-else src="../../assets/img/arrow-down.png" />
</div> -->
@ -247,7 +243,7 @@ export default {
default: false
}
},
data() {
data () {
let initForm = (arr, columnName) => {
let _form = {}
// console.log('formInfo', obj)
@ -258,7 +254,7 @@ export default {
arr.forEach((item) => {
if (item.itemType == 'checkbox') _form[item.columnName] = []
else if (columnName && columnName === item.columnName) _form[item.columnName] = '1'
else if (item.itemType == 'inputRange') _form[item.columnName] = { start: '', end: ''}
else if (item.itemType == 'inputRange') _form[item.columnName] = { start: '', end: '' }
else _form[item.columnName] = ''
})
return _form
@ -273,7 +269,7 @@ export default {
})
let form = initForm(itemList, this.columnName)
let tempFormList = itemList.map(item => {
return {
...item,
isChange: this.columnName && this.columnName === item.columnName ? true : false
@ -287,6 +283,14 @@ export default {
UNIT_ID: '',
HOME_ID: ''
}
let orgOptionProps = {
multiple: false,
value: 'agencyId',
label: 'agencyName',
children: 'subAgencyList',
checkStrictly: true
}
return {
pageLoading: false,
openSearch: false,
@ -295,10 +299,14 @@ export default {
optionsH: [],
optionsD: [],
optionsG: [],
orgOptions: [],
orgOptionProps,
agencyIdArray: [],
value: '',
itemList,
fixedList: [],
fixedForm: {
AGENCY_ID: '',
GRID_ID: '',
VILLAGE_ID: '',
BUILD_ID: '',
@ -308,6 +316,7 @@ export default {
constForm,
form: {
...form,
AGENCY_ID: '',
GRID_ID: '',
VILLAGE_ID: '',
BUILD_ID: '',
@ -319,7 +328,7 @@ export default {
shortcuts: [
{
text: '最近一周',
onClick(picker) {
onClick (picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
@ -328,7 +337,7 @@ export default {
},
{
text: '最近一个月',
onClick(picker) {
onClick (picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
@ -337,7 +346,7 @@ export default {
},
{
text: '最近三个月',
onClick(picker) {
onClick (picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
@ -345,11 +354,15 @@ export default {
}
}
]
},
queryType: {
'AGENCY_ID': 'like'
}
}
},
computed: {
sliceList() {
sliceList () {
return function (data, count) {
if (data !== undefined) {
let index = 0
@ -365,19 +378,19 @@ export default {
}
}
},
changeVDisabled() {
changeVDisabled () {
return !this.form.VILLAGE_ID
},
changeBDisabled() {
changeBDisabled () {
return !this.form.BUILD_ID
},
changeDDisabled() {
changeDDisabled () {
return !this.form.UNIT_ID
},
},
watch: {
form: {
handler(val, val2) {
handler (val, val2) {
// console.log('valpppp----', val, val2)
for (let n in val) {
if (this.constForm[n] !== val[n]) {
@ -390,39 +403,39 @@ export default {
deep: true
}
},
created() {
created () {
// this.initForm()
// console.log('formcccc---', this.form)
this.getOrgTreeList()
this.getGridList()
this.getValiheList()
if (this.columnName) this.handleChangeForm(this.columnName)
},
methods: {
initForm() {
initForm () {
this.formList.forEach((item) => {
this.$set(this.form, item.columnName, '')
})
console.log('formcccc---', this.form)
},
computdSpan(len) {
computdSpan (len) {
return len == 1 ? 24 : 6
},
handleClearVillage() {
handleClearVillage () {
this.form.BUILD_ID = ''
this.form.HOME_ID = ''
},
handleClearBuild() {
handleClearBuild () {
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
},
handleClearDan() {
handleClearDan () {
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
},
resetForm(formName) {
for(const n in this.form) {
resetForm (formName) {
for (const n in this.form) {
if (n == 'age') {
this.form.age = {
start: '',
@ -430,29 +443,30 @@ export default {
}
} else if (typeof this.form[n] == 'object') this.form[n] = []
else this.form[n] = ''
}
// let arr3 = [...arr1, ...arr]
this.$emit('search', [])
// this.handleSearch()
this.orgOptions = [];
},
handleSearch() {
handleSearch () {
// console.log('formmmmm---', this.form)
const itemTypes = ['daterange', 'timerange', 'checkbox']
let a = this.tempFormList.filter(item => item.itemType != 'inputRange')
let arr = a.filter((n) => n.isChange).map((item) => {
return {
queryType: item.queryType,
tableName: item.tableName,
columnName: item.columnName,
// columnValue: []
columnValue: this.form[item.columnName] &&
(itemTypes.includes(item.queryType) ||
return {
queryType: item.queryType,
tableName: item.tableName,
columnName: item.columnName,
// columnValue: []
columnValue: this.form[item.columnName] &&
(itemTypes.includes(item.queryType) ||
itemTypes.includes(item.itemType) || item.multiSelect == 1
? this.form[item.columnName]
: [this.form[item.columnName].toString()])
}
})
? this.form[item.columnName]
: [this.form[item.columnName].toString()])
}
})
const arr2 = arr.filter(item => item.columnValue.length > 0)
let arr1 = this.fixedList
.filter((n) => n.columnValue.length > 0)
@ -465,10 +479,10 @@ export default {
this.$emit('search', arr3)
return arr3
},
handleOpenSearch() {
handleOpenSearch () {
this.openSearch = !this.openSearch
},
handleAgeChange(val) {
handleAgeChange (val) {
console.log('val----age---', val)
if (val.end) {
const s = this.computedBirth(val.end)
@ -476,7 +490,29 @@ export default {
this.form.BIRTHDAY = [s, e]
}
},
handleChangeGrid(val) {
handleChangeAgency (val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) {
if (obj.level === 'grid') {
this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.AGENCY_ID = ''
} else {
this.form.AGENCY_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.GRID_ID = ''
}
} else {
this.form.AGENCY_ID = ''
this.form.GRID_ID = ''
}
this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getValiheList()
},
handleChangeGrid (val) {
console.log('val', val)
this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ''
@ -484,27 +520,28 @@ export default {
this.form.HOME_ID = ''
this.getValiheList()
},
handleChangeV(val) {
handleChangeV (val) {
console.log('val', val)
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getBuildList()
},
handleChangeB(val) {
handleChangeB (val) {
console.log('val', val)
this.form.UNIT_ID = ''
this.form.HOME_ID = ''
this.getUniList()
},
handleChangeD(val) {
handleChangeD (val) {
console.log('val', val)
this.form.HOME_ID = ''
this.getHouseList()
},
// form
handleChangeForm(val) {
handleChangeForm (val) {
for (let n in this.fixedForm) {
if (n === val) {
if (this.fixedList.length > 0) {
let _item = {}
@ -517,7 +554,7 @@ export default {
console.log('fixedList----val', this.fixedList)
} else {
_item = {
queryType: 'equal',
queryType: this.queryType[val] ? this.queryType[val] : 'equal',//'equal',
tableName: 'ic_resi_user',
columnName: val,
columnValue: [this.form[val]]
@ -529,7 +566,7 @@ export default {
if (Object.keys(_item).length > 0 && !hasVal) this.fixedList.push(_item)
} else {
this.$set(this.fixedList, 0, {
queryType: 'equal',
queryType: this.queryType[val] ? this.queryType[val] : 'equal',//'equal',
tableName: 'ic_resi_user',
columnName: val,
columnValue: [this.form[val]]
@ -542,7 +579,24 @@ export default {
if (item.columnName === val) item.isChange = true
})
},
getGridList() {
getOrgTreeList () {
const { user } = this.$store.state
this.$http
.post('/gov/org/customeragency/agencygridtree', {})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取组织树成功', res.data)
this.orgOptions = []
this.orgOptions.push(res.data)
}
})
.catch(() => {
return this.$message.error('网络错误')
})
},
getGridList () {
const { user } = this.$store.state
this.$http
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' })
@ -558,12 +612,12 @@ export default {
return this.$message.error('网络错误')
})
},
getValiheList() {
getValiheList () {
const { user } = this.$store.state
this.$http
.post('/gov/org/icneighborhood/neighborhoodoption', {
gridId: this.form.GRID_ID,
agencyId: ''
agencyId: this.form.AGENCY_ID,
// agencyId: user.agencyId
})
.then(({ data: res }) => {
@ -578,7 +632,7 @@ export default {
return this.$message.error('网络错误')
})
},
getBuildList() {
getBuildList () {
this.$http
.post('/gov/org/icbuilding/buildingoption', {
neighborHoodId: this.form.VILLAGE_ID
@ -595,7 +649,7 @@ export default {
return this.$message.error('网络错误')
})
},
getUniList() {
getUniList () {
this.$http
.post('/gov/org/icbuildingunit/unitoption', {
buildingId: this.form.BUILD_ID
@ -612,7 +666,7 @@ export default {
return this.$message.error('网络错误')
})
},
getHouseList() {
getHouseList () {
this.$http
.post('/gov/org/ichouse/houseoption', { unitId: this.form.UNIT_ID })
.then(({ data: res }) => {
@ -627,19 +681,19 @@ export default {
return this.$message.error('网络错误')
})
},
computedBirth(age) {
let now = new Date();
let nowYear = now.getFullYear();
let nowMonth = now.getMonth()+1;
let nowDay = now.getDate(); // daymonthmonthyearyear
computedBirth (age) {
let now = new Date();
let nowYear = now.getFullYear();
let nowMonth = now.getMonth() + 1;
let nowDay = now.getDate(); // daymonthmonthyearyear
let subYear = nowYear - age
if(nowMonth < 10){
nowMonth = '0'+ nowMonth
if (nowMonth < 10) {
nowMonth = '0' + nowMonth
}
if(nowDay < 10){
if (nowDay < 10) {
nowDay = '0' + nowDay
}
console.log(subYear+'-'+nowMonth+'-'+nowDay);
console.log(subYear + '-' + nowMonth + '-' + nowDay);
return subYear + '-' + nowMonth + '-' + nowDay
}
}
@ -714,7 +768,7 @@ export default {
max-width: 200px;
}
.resi-cell--daterange {
max-width: 240px;
max-width: 235px;
}
.resi-cell-select {
max-width: 200px;

9
src/views/main-shuju/main.vue

@ -29,6 +29,7 @@ import debounce from "lodash/debounce";
import { mapGetters } from "vuex";
import nextTick from "dai-js/tools/nextTick";
import { requestPost } from "@/js/dai/request";
import fixed1920 from "@/views/components/fixed1920.vue";
export default {
provide() {
@ -51,6 +52,7 @@ export default {
components: {
MainNavbar,
MainContent,
fixed1920,
},
watch: {
@ -145,7 +147,8 @@ export default {
&::-webkit-scrollbar-corner,
/* 滚动条角落 */
&::-webkit-scrollbar-thumb,
&::-webkit-scrollbar-track { /*滚动条的轨道*/
&::-webkit-scrollbar-track {
/*滚动条的轨道*/
border-radius: 4px;
}
@ -153,13 +156,13 @@ export default {
&::-webkit-scrollbar-track {
/* 滚动条轨道 */
background: rgba(12, 129, 254, .24);
background: rgba(12, 129, 254, 0.24);
// box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5);
}
&::-webkit-scrollbar-thumb {
/* 滚动条手柄 */
background: linear-gradient(270deg, #1257c9, #0095FF);
background: linear-gradient(270deg, #1257c9, #0095ff);
}
}
</style>

178
src/views/pages/yantai-index.vue

@ -1,64 +1,124 @@
<template>
<div class="g-app">
<div class="g-bd" v-if="true">
<div class="m-top">
<fixed1920>
<div class="g-cnt">
<div class="m-top animate__animated menu animate__fadeInDown">
<img class="logo" src="@/assets/img/yantai/index/db.png" />
<div class="name">烟台市智慧社区平台</div>
</div>
<div class="m-list">
<div class="list">
<div class="menu">
<img class="menu-bg" src="@/assets/img/yantai/index/yuanhu-you.png" />
<div class="animate__animated menu animate__fadeInLeft">
<img
class="menu-bg"
src="@/assets/img/yantai/index/yuanhu-you.png"
/>
<div class="menu-list">
<div class="menu-item z-zuo">基础信息</div>
<div class="menu-item z-zuo">疫情防控</div>
<div class="menu-item z-zuo">社区治理</div>
<div class="menu-item z-zuo z-on">社区党建</div>
<div class="menu-item z-zuo">社区服务</div>
<div class="menu-item z-zuo">AI安防</div>
<div class="menu-item z-zuo">其他</div>
<div class="menu-item z-zuo" @click="toPage('/main/base-resi')">
基础信息
</div>
<div
class="menu-item z-zuo"
@click="toPage('/main/base-epidemic-antiInfo')"
>
疫情防控
</div>
<div
class="menu-item z-zuo"
@click="toPage('/main/shequzhili-event-eventList')"
>
社区治理
</div>
<div
class="menu-item z-zuo z-on"
@click="toPage('/main/communityParty-members-index')"
>
社区党建
</div>
<div
class="menu-item z-zuo"
@click="toPage('/main/communityService-measure-index')"
>
社区服务
</div>
<div class="menu-item z-zuo" @click="toPage('/main')">AI安防</div>
<div class="menu-item z-zuo" @click="toPage('/main')">其他</div>
</div>
</div>
<div class="arrow">
<img src="@/assets/img/yantai/index/zuo.png" />
</div>
<img class="arrow" src="@/assets/img/yantai/index/zuo.png" />
<div class="item" @click="handleClickItem(1)">
<img
class="logo"
src="@/assets/img/yantai/index/guanli.png"
alt=""
/>
<!-- 党建引领基层治理互联管理平台 -->
<div class="name">管理平台</div>
<div
class="item animate__animated animate__pulse"
@click="handleClickItem(1)"
>
<div class="item-wrap">
<img class="logo" src="@/assets/img/yantai/index/guanli.png" />
<div class="name">管理平台</div>
</div>
</div>
<div class="item z-on" @click="handleClickItem(2)">
<img
class="logo"
src="@/assets/img/yantai/index/shuju.png"
alt=""
/>
<!-- 数据分析可视化平台 -->
<div class="name">数据分析平台</div>
<div
class="item animate__animated animate__pulse"
@click="handleClickItem(2)"
>
<div class="item-wrap">
<img class="logo" src="@/assets/img/yantai/index/shuju.png" />
<div class="name">数据分析平台</div>
</div>
</div>
<div class="arrow">
<img src="@/assets/img/yantai/index/you.png" />
</div>
<img class="arrow" src="@/assets/img/yantai/index/you.png" />
<div class="menu">
<img class="menu-bg" src="@/assets/img/yantai/index/yuanhu-zuo.png" />
<div class="menu animate__animated menu animate__fadeInRight">
<img
class="menu-bg"
src="@/assets/img/yantai/index/yuanhu-zuo.png"
/>
<div class="menu-list">
<div class="menu-item z-you">基础信息</div>
<div class="menu-item z-you">人员预警</div>
<div class="menu-item z-you">需求清单</div>
<div class="menu-item z-you z-on">社区党建</div>
<div class="menu-item z-you">社区治理</div>
<div class="menu-item z-you">初心互助</div>
<div class="menu-item z-you">AI安防</div>
<div
class="menu-item z-you"
@click="toPage('/main-shuju/visual-basicinfo-basicInfoMain')"
>
基础信息
</div>
<div
class="menu-item z-you"
@click="toPage('/main-shuju/visual-warning-index')"
>
人员预警
</div>
<div
class="menu-item z-you"
@click="toPage('/main-shuju/visual-measure-service')"
>
需求清单
</div>
<div
class="menu-item z-you z-on"
@click="toPage('/main-shuju/visual-communityParty-party')"
>
社区党建
</div>
<div
class="menu-item z-you"
@click="
toPage(
'/main-shuju/visual-communityGovern-shijianchuli-shijianchulifenxi'
)
"
>
社区治理
</div>
<div
class="menu-item z-you"
@click="toPage('/main-shuju/visual-heart-index')"
>
初心互助
</div>
<div class="menu-item z-you" @click="toPage('/main-shuju')">
AI安防
</div>
</div>
</div>
</div>
@ -73,17 +133,12 @@
</div>
</div>
</div>
</div>
</fixed1920>
</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"; //
import fixed1920 from "@/views/components/fixed1920.vue";
let loading; //
export default {
data() {
return {
@ -92,8 +147,23 @@ export default {
i18nMessages: messages,
};
},
components: {},
computed: {},
components: { fixed1920 },
computed: {
bdStyle() {
console.log("clientHeight", document.documentElement.clientHeight);
const scale = document.documentElement.clientWidth / 1920;
const height = document.documentElement.clientHeight / scale;
const top = (document.documentElement.clientHeight - height) / 2;
const left = (document.documentElement.clientWidth - 1920) / 2;
return {
transform: `scale(${scale})`,
height: `${height}px`,
left: `${left}px`,
top: `${top}px`,
};
},
},
created() {},
mounted() {},
@ -106,6 +176,10 @@ export default {
}
},
toPage(path) {
this.$router.push({ path });
},
//
getAutoLogin(platformToken) {
this.dataForm.thirdToken = platformToken;

2
src/views/pages/yantai-login.vue

@ -3,7 +3,7 @@
<div class="g-bd" v-if="isShowLogin || true">
<div class="m-snow-box" id="snow_box"></div>
<div class="m-fm animate__animated animate__backInLeft">
<div class="m-fm animate__animated animate__rotateInDownLeft">
<div class="wrap">
<h2 class="title">{{ $t("brand.work") }}</h2>
<div class="fm">

Loading…
Cancel
Save