Browse Source

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

shibei_master
jiangyy 3 years ago
parent
commit
9cadaf0c21
  1. 4
      src/i18n/zh-CN.js
  2. 62
      src/router/index.js
  3. 30
      src/utils/index.js
  4. 2
      src/views/components/editResi.vue
  5. 55
      src/views/components/resiForm.vue
  6. 2
      src/views/components/resiSearch.vue
  7. 12
      src/views/modules/base/collect.vue
  8. 10
      src/views/modules/base/community/community.vue
  9. 12
      src/views/modules/base/community/roomForm.vue
  10. 35
      src/views/modules/base/community/roomTable.vue
  11. 18
      src/views/modules/base/resi.vue
  12. 14
      src/views/modules/communityParty/elegant/index.vue
  13. 8
      src/views/modules/communityParty/regionalParty/activitys.vue
  14. 8
      src/views/modules/communityParty/regionalParty/units.vue
  15. 13
      src/views/modules/communityService/measure/index.vue
  16. 4
      src/views/modules/communityService/sqzzz/index.vue
  17. 11
      src/views/modules/importRecord/index.vue
  18. 12
      src/views/modules/secretaryLog/difficulty/difficultyList.vue
  19. 12
      src/views/modules/secretaryLog/humanisticCare/careList.vue
  20. 7
      src/views/modules/secretaryLog/workLog/index.vue
  21. 12
      src/views/modules/systemManagement/serviceMatter/service.vue
  22. 2
      src/views/modules/visual/basicinfo/people.vue
  23. 11
      src/views/modules/workPc/guidance/categoryList.vue
  24. 6
      src/views/modules/workPc/guidance/guidanceList.vue
  25. 14
      src/views/modules/workSys/demandCate.vue
  26. 20
      src/views/modules/workSys/elegantCate.vue
  27. 14
      src/views/modules/workSys/resiCate.vue

4
src/i18n/zh-CN.js

@ -3,9 +3,9 @@ const t = {}
t.loading = '加载中...' t.loading = '加载中...'
t.brand = {} t.brand = {}
t.brand.lg = '数字社区工作平台' t.brand.lg = '数字社区综合服务平台'
t.brand.mini = '数字' t.brand.mini = '数字'
t.brand.work = '数字社区工作平台' t.brand.work = '数字社区综合服务平台'
t.brand.workMini = '工作端' t.brand.workMini = '工作端'
t.add = '新增' t.add = '新增'

62
src/router/index.js

@ -237,6 +237,29 @@ router.beforeEach((to, from, next) => {
name: "人员预警", name: "人员预警",
url: "visual/warning/index", url: "visual/warning/index",
}, },
{
icon: "icon-setting",
id: "2221321001",
name: "社区党建",
// url: "visual/basicinfo/basicInfoMain",
children: [
{
url: "/visual/communityParty/party",
name: "党员信息统计",
id: "5feawfwaefwa578",
},
{
url: "/visual/communityParty/community",
name: "区域化党建",
id: "5fwaefwaefawef588",
},
{
url: "/visual/communityParty/elegant",
name: "党员风采榜",
id: "5fwaefwaefawef589",
},
],
},
{ {
icon: "icon-setting", icon: "icon-setting",
id: "6", id: "6",
@ -244,63 +267,40 @@ router.beforeEach((to, from, next) => {
children: [ children: [
{ {
url: "visual/communityGovern/processAnalyze", url: "visual/communityGovern/processAnalyze",
name: "项目处理分析", name: "事件处置分析",
id: "processAnalyze", id: "processAnalyze",
}, },
{ {
url: "/visual/communityGovern/typeAnalyze", url: "/visual/communityGovern/typeAnalyze",
name: "项目分类分析", name: "事件分类分析",
id: "typeAnalyze", id: "typeAnalyze",
}, },
{ {
url: "/visual/communityGovern/resibuzz", url: "/visual/communityGovern/resibuzz",
name: "居民热议", name: "居民热议分析",
id: "resibuzz", id: "resibuzz",
}, },
{ {
url: "/visual/communityGovern/distributionAnalyze", url: "/visual/communityGovern/distributionAnalyze",
name: "项目分布分析", name: "事件分布分析",
id: "distributionAnalyze", id: "distributionAnalyze",
}, },
], ],
}, },
{
icon: "icon-setting",
id: "2221321001",
name: "社区党建",
// url: "visual/basicinfo/basicInfoMain",
children: [
{
url: "/visual/communityParty/party",
name: "党员信息统计",
id: "5feawfwaefwa578",
},
{
url: "/visual/communityParty/community",
name: "区域化党建",
id: "5fwaefwaefawef588",
},
{
url: "/visual/communityParty/elegant",
name: "党员风采",
id: "5fwaefwaefawef589",
},
],
},
{ {
icon: "icon-setting", icon: "icon-setting",
id: "2221321123", id: "2221321123",
name: "措施清单", name: "社区服务",
// url: "visual/basicinfo/basicInfoMain", // url: "visual/basicinfo/basicInfoMain",
children: [ children: [
{ {
url: "/visual/measure/service", url: "/visual/measure/service",
name: "服务措施分析", name: "需求服务分析",
id: "5feawfwaefwa57", id: "5feawfwaefwa57",
}, },
{ {
url: "/visual/measure/volunteer", url: "/visual/measure/volunteer",
name: "志愿服务分析", name: "志愿服务分析",
id: "5fwaefwaefawef58", id: "5fwaefwaefawef58",
}, },
], ],
@ -315,7 +315,7 @@ router.beforeEach((to, from, next) => {
{ {
icon: "icon-setting", icon: "icon-setting",
id: "44rq22222q2222", id: "44rq22222q2222",
name: "AI安防", name: "智慧安防",
// url: "visual/basicinfo/basicInfoMain", // url: "visual/basicinfo/basicInfoMain",
children: [ children: [
{ {

30
src/utils/index.js

@ -115,3 +115,33 @@ export function dateFormats(fmt, date) {
} }
return fmt return fmt
} }
// 根据身份证计算出生日期,性别,年龄
export function computedCard(idCard) {
let sex = null;
let birth = null;
let myDate = new Date();
let month = myDate.getMonth() + 1;
let day = myDate.getDate();
let age = 0;
if(idCard.length===18){
age = myDate.getFullYear() - idCard.substring(6, 10) - 1;
sex = idCard.substring(16,17);
birth = idCard.substring(6,10)+"-"+idCard.substring(10,12)+"-"+idCard.substring(12,14);
if (idCard.substring(10, 12) < month || idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day) age++;
}
if(idCard.length===15){
age = myDate.getFullYear() - idCard.substring(6, 8) - 1901;
sex = idCard.substring(13,14);
birth = "19"+idCard.substring(6,8)+"-"+idCard.substring(8,10)+"-"+idCard.substring(10,12);
if (idCard.substring(8, 10) < month || idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day) age++;
}
if(sex%2 === 0)
sex = '0'; // 性别代码 1代表男,0代表女,暂时不涉及其他类型性别
else
sex = '1';
return {age , sex, birth}
}

2
src/views/components/editResi.vue

@ -33,7 +33,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form-item label="所属家庭" required> <el-form-item label="所属房屋" required>
<div class="resi-cell-value"> <div class="resi-cell-value">
<div class="resi-cell-col"> <div class="resi-cell-col">
<el-form-item prop="VILLAGE_ID"> <el-form-item prop="VILLAGE_ID">

55
src/views/components/resiForm.vue

@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form-item label="所属家庭" required> <el-form-item label="所属房屋" required>
<div class="resi-cell-value"> <div class="resi-cell-value">
<div class="resi-cell-col"> <div class="resi-cell-col">
<el-form-item prop="VILLAGE_ID"> <el-form-item prop="VILLAGE_ID">
@ -99,48 +99,7 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="6">
<el-form-item :prop="form.BUILD_ID" label="所属楼宇">
<div class="resi-cell-value">
<el-select v-model.trim="form.BUILD_ID" placeholder="请选择楼号" size="small"
clearable class="resi-cell-select" @change="handleChangeB"
>
<el-option
v-for="item in optionsB"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :prop="form.HOME_ID" label="所属家庭">
<div class="resi-cell-value">
<el-select v-model.trim="form.HOME_ID" placeholder="请选择" size="small"
clearable class="resi-cell-select resi-cell-select-small"
>
<el-option
v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-select v-model.trim="form.HOME_ID" placeholder="请选择" size="small"
clearable class="resi-cell-select-small"
>
<el-option
v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-form-item>
</el-col> -->
</el-row> </el-row>
<el-row v-for="(item, index) in sliceList(formList, columns)" :key="index" class="resi-row"> <el-row v-for="(item, index) in sliceList(formList, columns)" :key="index" class="resi-row">
<!-- <el-col v-for="n in item" :key="n.id" :span="n.itemType === 'textarea'&&24 || (24/columns)"> --> <!-- <el-col v-for="n in item" :key="n.id" :span="n.itemType === 'textarea'&&24 || (24/columns)"> -->
@ -158,6 +117,7 @@
size="small" size="small"
clearable clearable
placeholder="请输入内容" placeholder="请输入内容"
@blur="handleValidBlur(n)"
> >
</el-input> </el-input>
<el-input <el-input
@ -267,6 +227,7 @@
<script> <script>
import { isCard, isMobile } from '@/utils/validate' import { isCard, isMobile } from '@/utils/validate'
import { computedCard } from '@/utils/index'
export default { export default {
name: 'resiForm', name: 'resiForm',
@ -525,6 +486,14 @@ export default {
// } // }
}) })
}, },
handleValidBlur(n) {
console.log('n---', n)
if (n.columnName !== 'ID_CARD') return
if (!isCard(this.form.ID_CARD)) return
const { sex, birth } = computedCard(this.form.ID_CARD)
this.form.BIRTHDAY = birth
this.form.GENDER = sex == 1 ? '1' : '2'
},
handleOpenSearch () { handleOpenSearch () {
this.openSearch = !this.openSearch this.openSearch = !this.openSearch
}, },

2
src/views/components/resiSearch.vue

@ -28,7 +28,7 @@
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<div class="resi-cell"> <div class="resi-cell">
<div class="resi-cell-label">所属小区</div> <div class="resi-cell-label">所属房屋</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-select <el-select
v-model.trim="form.VILLAGE_ID" v-model.trim="form.VILLAGE_ID"

12
src/views/modules/base/collect.vue

@ -61,7 +61,7 @@
border border
style="width: 100%" style="width: 100%"
class="resi-table" class="resi-table"
:height="maxTableHeight" :height="tableHeight"
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
> >
<el-table-column label="序号" prop="desc" align="center" width="50" /> <el-table-column label="序号" prop="desc" align="center" width="50" />
@ -189,10 +189,12 @@ export default {
}; };
}, },
computed: { computed: {
maxTableHeight() { ...mapGetters(['clientHeight', 'iframeHeight']),
return this.clientHeight - 360; tableHeight() {
}, const h = this.clientHeight - 360 + this.iframeHeigh
...mapGetters(["clientHeight"]), const _h = this.clientHeight - 360
return this.$store.state.inIframe ? h : _h
}
}, },
watch: { watch: {
timeRange(val) { timeRange(val) {

10
src/views/modules/base/community/community.vue

@ -98,12 +98,16 @@ export default {
}, },
computed: { computed: {
rowHeight () { rowHeight () {
return (this.clientHeight - 120) + 'px'
return this.$store.state.inIframe ? this.clientHeight - 120 + this.iframeHeight + 'px' : this.clientHeight - 120 + 'px'
}, },
treeHeight () { treeHeight () {
return (this.clientHeight - 200) + 'px' return this.$store.state.inIframe ? this.clientHeight - 200 + this.iframeHeight + 'px' : this.clientHeight - 200 + 'px'
}, },
...mapGetters(['clientHeight'])
...mapGetters(['clientHeight', 'iframeHeight'])
}, },
methods: { methods: {
async loadTree (isRefresh) { async loadTree (isRefresh) {

12
src/views/modules/base/community/roomForm.vue

@ -11,7 +11,7 @@
<el-form-item label="所属楼栋" <el-form-item label="所属楼栋"
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<span>{{ agencyObj.communityName }}{{agencyObj.label}}</span> <span>{{ agencyObj.neighborHoodName }}{{agencyObj.label}}</span>
</el-form-item> </el-form-item>
<el-form-item label="单元号" <el-form-item label="单元号"
@ -231,7 +231,7 @@ export default {
async addRoom () { async addRoom () {
const regCard = /(^\d{15}$)|(^\d{17}(\d|X)$)/; //1518151817X const regCard = /(^\d{15}$)|(^\d{17}(\d|X)$)/; //1518151817X
if (regCard.test(this.dataForm.ownerIdCard) === false) { if (this.dataForm.ownerIdCard && regCard.test(this.dataForm.ownerIdCard) === false) {
this.btnDisable = false this.btnDisable = false
this.$message({ this.$message({
type: 'warning', type: 'warning',
@ -240,7 +240,7 @@ export default {
return false; return false;
} }
const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; // const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //
if (regPhone.test(this.dataForm.ownerPhone) === false) { if (this.dataForm.ownerPhone && regPhone.test(this.dataForm.ownerPhone) === false) {
this.btnDisable = false this.btnDisable = false
this.$message({ this.$message({
type: 'warning', type: 'warning',
@ -335,13 +335,13 @@ export default {
{ required: true, message: '是否出租不能为空', trigger: 'blur' } { required: true, message: '是否出租不能为空', trigger: 'blur' }
], ],
ownerPhone: [ ownerPhone: [
{ required: true, message: '房主电话不能为空', trigger: 'blur' } { required: false }
], ],
ownerName: [ ownerName: [
{ required: true, message: '房主姓名不能为空', trigger: 'blur' } { required: false }
], ],
ownerIdCard: [ ownerIdCard: [
{ required: true, message: '房主身份证号不能为空', trigger: 'blur' } { required: false }
], ],
} }
}, },

35
src/views/modules/base/community/roomTable.vue

@ -80,34 +80,41 @@
:selectable="checkSelect" :selectable="checkSelect"
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column prop="houseName" <el-table-column prop="houseNameShow"
label="房屋名称" label="房屋名称"
width="120"> min-width="160">
</el-table-column> </el-table-column>
<el-table-column prop="neighborHoodName" <el-table-column prop="neighborHoodName"
label="所属小区" label="所属小区"
width="160"> min-width="150">
</el-table-column> </el-table-column>
<el-table-column prop="buildingName" <el-table-column prop="buildingName"
label="所属楼栋"> label="所属楼栋"
width="80">
</el-table-column> </el-table-column>
<el-table-column prop="unitNum" <el-table-column prop="unitNumShow"
label="单元号"> label="单元号"
width="70">
</el-table-column> </el-table-column>
<el-table-column prop="doorName" <el-table-column prop="doorName"
label="门牌号"> label="门牌号"
width="70">
</el-table-column> </el-table-column>
<el-table-column prop="houseType" <el-table-column prop="houseType"
label="类型"> label="类型"
width="50">
</el-table-column> </el-table-column>
<el-table-column prop="purpose" <el-table-column prop="purpose"
label="用途"> label="用途"
width="50">
</el-table-column> </el-table-column>
<el-table-column prop="rentFlag" <el-table-column prop="rentFlag"
label="是否出租"> label="是否出租"
width="80">
</el-table-column> </el-table-column>
<el-table-column prop="ownerName" <el-table-column prop="ownerName"
label="房主姓名"> label="房主姓名"
width="90">
</el-table-column> </el-table-column>
<el-table-column prop="ownerPhone" <el-table-column prop="ownerPhone"
label="房主电话" label="房主电话"
@ -214,6 +221,8 @@ export default {
selection: [], selection: [],
showDeletBtn: false, showDeletBtn: false,
tableData: [],
//form //form
formShow: false, formShow: false,
formTitle: '新增房屋', formTitle: '新增房屋',
@ -229,7 +238,6 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300 return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300
}, },
@ -298,6 +306,8 @@ export default {
this.total = data.total this.total = data.total
this.validTableDataNum = 0 this.validTableDataNum = 0
data.list.forEach(item => { data.list.forEach(item => {
item.houseNameShow = item.neighborHoodName + item.buildingName + item.unitNum + '单元' + item.doorName
item.unitNumShow = item.unitNum + '单元'
if (item.agencyId === this.staffAgencyId) { if (item.agencyId === this.staffAgencyId) {
item.showBtn = true item.showBtn = true
this.validTableDataNum++ this.validTableDataNum++
@ -327,6 +337,7 @@ export default {
}, },
handleAdd () { handleAdd () {
this.formTitle = '新增房屋' this.formTitle = '新增房屋'
this.formShow = true this.formShow = true
this.$nextTick(() => { this.$nextTick(() => {

18
src/views/modules/base/resi.vue

@ -297,7 +297,7 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
total: null, total: null,
tableHeight: 0, searchH: 0,
conditions: [], conditions: [],
activeName: '', activeName: '',
tableData: [], tableData: [],
@ -336,6 +336,14 @@ export default {
} }
}, },
computed: {
...mapGetters(['clientHeight', 'iframeHeight']),
tableHeight() {
const h = this.clientHeight - this.searchH - 280 + this.iframeHeigh
const _h = this.clientHeight - 280 - this.searchH
return this.$store.state.inIframe ? h : _h
}
},
async created () { async created () {
if (this.$route.query) { if (this.$route.query) {
let query = this.$route.query let query = this.$route.query
@ -352,12 +360,16 @@ export default {
// this.handleSearch() // this.handleSearch()
// this.getTableData() // this.getTableData()
this.pageLoading = true this.pageLoading = true
this.searchH = this.$refs.resiSearch.$el.offsetHeight
console.log('storeoooo----0000', this.$store) console.log('storeoooo----0000', this.$store)
console.log('resiSearch', this.$refs.resiSearch.$el.offsetHeight) console.log('resiSearch', this.$refs.resiSearch.$el.offsetHeight)
this.tableHeight = document.documentElement.clientHeight - this.$refs.resiSearch.$el.offsetHeight - 280 + 'px'
}, },
mounted () { mounted () {
// this.$nextTick(() => {
// this.tableHeight = document.documentElement.clientHeight - this.$refs.resiSearch.$el.offsetHeight - 280 + 'px'
// })
console.log('document.documentElement.clientWidth', document.documentElement.clientHeight) console.log('document.documentElement.clientWidth', document.documentElement.clientHeight)
}, },
methods: { methods: {

14
src/views/modules/communityParty/elegant/index.vue

@ -235,6 +235,7 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
@ -253,7 +254,7 @@ export default {
pageSize: 20, pageSize: 20,
total: null, total: null,
tableData: [], tableData: [],
tableHeight: 400, searchH: 0,
unloadPencent: 0, unloadPencent: 0,
addLevel: '1', addLevel: '1',
addType: 'add', addType: 'add',
@ -321,6 +322,14 @@ export default {
mainDeed: [{ required: true, message: '主要事迹不能为空', trigger: 'blur' }], mainDeed: [{ required: true, message: '主要事迹不能为空', trigger: 'blur' }],
} }
} }
},
computed: {
...mapGetters(['clientHeight', 'iframeHeight']),
tableHeight() {
const h = this.clientHeight - this.searchH - 280 + this.iframeHeigh
const _h = this.clientHeight - 280 - this.searchH
return this.$store.state.inIframe ? h : _h
}
}, },
async created() { async created() {
this.customerId = localStorage.getItem('customerId') this.customerId = localStorage.getItem('customerId')
@ -340,10 +349,11 @@ export default {
// this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px' // this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px'
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px' this.searchH = this.$refs.searchCard.$el.offsetHeight
console.log('tableHeight', this.tableHeight) console.log('tableHeight', this.tableHeight)
}) })

8
src/views/modules/communityParty/regionalParty/activitys.vue

@ -634,13 +634,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 430) return this.$store.state.inIframe ? this.clientHeight - 430 + this.iframeHeight : this.clientHeight - 430
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

8
src/views/modules/communityParty/regionalParty/units.vue

@ -675,13 +675,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 430) return this.$store.state.inIframe ? this.clientHeight - 430 + this.iframeHeight : this.clientHeight - 430
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

13
src/views/modules/communityService/measure/index.vue

@ -589,6 +589,7 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
@ -601,7 +602,7 @@ export default {
pageSize: 20, pageSize: 20,
total: null, total: null,
tableData: [], tableData: [],
tableHeight: 400, searchH: 0,
addLevel: "1", addLevel: "1",
addType: "add", addType: "add",
value: "", value: "",
@ -846,6 +847,14 @@ export default {
}, },
}; };
}, },
computed: {
...mapGetters(['clientHeight', 'iframeHeight']),
tableHeight() {
const h = this.clientHeight - this.searchH - 280 + this.iframeHeigh
const _h = this.clientHeight - 280 - this.searchH
return this.$store.state.inIframe ? h : _h
}
},
async created() { async created() {
this.customerId = localStorage.getItem("customerId"); this.customerId = localStorage.getItem("customerId");
@ -860,7 +869,7 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px' this.searchH = this.$refs.searchCard.$el.offsetHeight
console.log('tableHeight', this.tableHeight) console.log('tableHeight', this.tableHeight)
}) })
}, },

4
src/views/modules/communityService/sqzzz/index.vue

@ -257,10 +257,10 @@ export default {
computed: { computed: {
maxTableHeight() { maxTableHeight() {
return this.$store.state.inIframe return this.$store.state.inIframe
? this.clientHeight - 360 + 120 ? this.clientHeight - 360 + this.iframeHeigh
: this.clientHeight - 360; : this.clientHeight - 360;
}, },
...mapGetters(["clientHeight"]), ...mapGetters(['clientHeight', 'iframeHeight']),
}, },
watch: { watch: {
"fmData.createTime": function (val) { "fmData.createTime": function (val) {

11
src/views/modules/importRecord/index.vue

@ -6,7 +6,7 @@
:data="tableData" :data="tableData"
border border
style="width: 100%" style="width: 100%"
:height="maxTableHeight" :height="tableHeight"
class="resi-table" class="resi-table"
> >
<el-table-column label="序号" type="index" align="center" width="50" /> <el-table-column label="序号" type="index" align="center" width="50" />
@ -82,10 +82,13 @@ export default {
}; };
}, },
computed: { computed: {
maxTableHeight() { tableHeight () {
return this.clientHeight - 280; const h = this.clientHeight - 240 + this.iframeHeigh
const _h = this.clientHeight - 240
return this.$store.state.inIframe ? h : _h
}, },
...mapGetters(["clientHeight"]),
...mapGetters(['clientHeight', 'iframeHeight'])
}, },
watch: {}, watch: {},
mounted() { mounted() {

12
src/views/modules/secretaryLog/difficulty/difficultyList.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div class="div_search"> <div ref="div_search" class="div_search">
<el-form :inline="true" <el-form :inline="true"
:model="formData" :model="formData"
ref="ref_searchform" ref="ref_searchform"
@ -218,7 +218,7 @@ export default {
scheduledStartTime: '',//yyyy-mm-dd scheduledStartTime: '',//yyyy-mm-dd
scheduledEndTime: '',// yyyy-mm-dd scheduledEndTime: '',// yyyy-mm-dd
}, },
sHeight: 0,
tableData: [], tableData: [],
//form //form
@ -239,6 +239,7 @@ export default {
// //
await this.loadTable() await this.loadTable()
this.sHeight = this.$refs.div_search.offsetHeight + 270
}, },
methods: { methods: {
@ -473,12 +474,13 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
const h = this.clientHeight - this.sHeight + this.iframeHeigh
return (this.clientHeight - 380) const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight', 'iframeHeight']),
}, },
watch: { watch: {

12
src/views/modules/secretaryLog/humanisticCare/careList.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div class="div_search"> <div ref="div_search" class="div_search">
<el-form :inline="true" <el-form :inline="true"
:model="formData" :model="formData"
ref="ref_searchform" ref="ref_searchform"
@ -288,7 +288,7 @@ export default {
scheduledStartTime: '',//怀 yyyy-mm-dd scheduledStartTime: '',//怀 yyyy-mm-dd
scheduledEndTime: '',//怀 yyyy-mm-dd scheduledEndTime: '',//怀 yyyy-mm-dd
}, },
sHeight: 0,
tableData: [], tableData: [],
//form //form
@ -308,6 +308,7 @@ export default {
// //
await this.loadTable() await this.loadTable()
this.sHeight = this.$refs.div_search.offsetHeight + 270
}, },
methods: { methods: {
@ -546,12 +547,13 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
const h = this.clientHeight - this.sHeight + this.iframeHeigh
return (this.clientHeight - 430) const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight', 'iframeHeight']),
}, },
watch: { watch: {

7
src/views/modules/secretaryLog/workLog/index.vue

@ -414,12 +414,13 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
const h = this.clientHeight - this.sHeight + this.iframeHeigh
return (this.clientHeight - this.sHeight) const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight', 'iframeHeight']),
}, },
watch: { watch: {

12
src/views/modules/systemManagement/serviceMatter/service.vue

@ -256,14 +256,12 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
const h = this.clientHeight - 210 + this.iframeHeigh
return (this.clientHeight - 210) const _h = this.clientHeight - 210
return this.$store.state.inIframe ? h : _h
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

2
src/views/modules/visual/basicinfo/people.vue

@ -126,7 +126,7 @@
src="@/assets/img/shuju/people/huzhu.png" /> src="@/assets/img/shuju/people/huzhu.png" />
<img class="huzhu-ico" <img class="huzhu-ico"
src="@/assets/img/shuju/people/huzhu-home.png" /> src="@/assets/img/shuju/people/huzhu-home.png" />
<div class="huzhu-name">{{ houseInfo.ownerName }}</div> <div class="huzhu-name">{{ houseInfo&&houseInfo.ownerName?houseInfo.ownerName:'暂不清楚' }}</div>
<p>户主</p> <p>户主</p>
</div> </div>

11
src/views/modules/workPc/guidance/categoryList.vue

@ -123,6 +123,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import { mapGetters } from 'vuex'
export default { export default {
name: 'RoleList', name: 'RoleList',
@ -164,9 +165,13 @@ export default {
}, },
computed: { computed: {
tableHeight() { tableHeight () {
return document.documentElement.clientHeight - 220; const h = this.clientHeight - 220 + this.iframeHeigh
} const _h = this.clientHeight - 220
return this.$store.state.inIframe ? h : _h
},
...mapGetters(['clientHeight', 'iframeHeight'])
}, },
methods: { methods: {

6
src/views/modules/workPc/guidance/guidanceList.vue

@ -201,10 +201,12 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
return this.clientHeight - 360 const h = this.clientHeight - 360 + this.iframeHeigh
const _h = this.clientHeight - 360
return this.$store.state.inIframe ? h : _h
}, },
...mapGetters(['clientHeight', 'env']) ...mapGetters(['clientHeight', 'iframeHeight', 'env'])
}, },
methods: { methods: {
// //

14
src/views/modules/workSys/demandCate.vue

@ -136,6 +136,7 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'
export default { export default {
data () { data () {
return { return {
@ -148,7 +149,7 @@ export default {
pageSize: 20, pageSize: 20,
total: null, total: null,
tableData: [], tableData: [],
tableHeight: 500, sHeight: 0,
addLevel: '1', addLevel: '1',
addType: 'add', addType: 'add',
value: '', value: '',
@ -192,6 +193,15 @@ export default {
} }
} }
}, },
computed: {
tableHeight () {
const h = this.clientHeight - this.sHeight + this.iframeHeigh
const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
},
...mapGetters(['clientHeight', 'iframeHeight'])
},
async created () { async created () {
this.customerId = localStorage.getItem('customerId') this.customerId = localStorage.getItem('customerId')
this.getTableData() this.getTableData()
@ -200,7 +210,7 @@ export default {
}, },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px' this.sHeight = this.$refs.searchCard.$el.offsetHeight + 280
console.log('tableHeight', this.tableHeight) console.log('tableHeight', this.tableHeight)
}) })
}, },

20
src/views/modules/workSys/elegantCate.vue

@ -69,6 +69,7 @@
import { requestPost } from '@/js/dai/request' import { requestPost } from '@/js/dai/request'
import elegantEdit from './elegantEdit.vue' import elegantEdit from './elegantEdit.vue'
import { mapGetters } from 'vuex'
export default { export default {
data () { data () {
@ -79,7 +80,7 @@ export default {
tableParams: { tableParams: {
customerId: '' customerId: ''
}, },
tableHeight: 500, // tableHeight: 500,
search: '', search: '',
dataList: [], dataList: [],
@ -101,7 +102,14 @@ export default {
} }
console.log('this.dataList', this.dataList) console.log('this.dataList', this.dataList)
return this.dataList return this.dataList
} },
tableHeight () {
const h = this.clientHeight - 220 + this.iframeHeigh
const _h = this.clientHeight - 220
return this.$store.state.inIframe ? h : _h
},
...mapGetters(['clientHeight', 'iframeHeight'])
}, },
components: { components: {
elegantEdit elegantEdit
@ -112,10 +120,10 @@ export default {
this.initData(user.customerId, user.customerName) this.initData(user.customerId, user.customerName)
}, },
mounted() { mounted() {
this.$nextTick(() => { // this.$nextTick(() => {
this.tableHeight = document.documentElement.clientHeight - 220 + 'px' // this.tableHeight = document.documentElement.clientHeight - 220 + 'px'
console.log('tableHeight', this.tableHeight) // console.log('tableHeight', this.tableHeight)
}) // })
}, },
methods: { methods: {
cellStyle ({ row, column, rowIndex, columnIndex }) { cellStyle ({ row, column, rowIndex, columnIndex }) {

14
src/views/modules/workSys/resiCate.vue

@ -192,6 +192,7 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
@ -206,7 +207,7 @@ export default {
total: null, total: null,
conditions: [], conditions: [],
tableData: [], tableData: [],
tableHeight: 500, sHeight: 0,
isWarn: null, isWarn: null,
level: null, level: null,
options: [ options: [
@ -286,6 +287,15 @@ export default {
} }
} }
}, },
computed: {
tableHeight () {
const h = this.clientHeight - this.sHeight + this.iframeHeigh
const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
},
...mapGetters(['clientHeight', 'iframeHeight'])
},
async created() { async created() {
this.customerId = localStorage.getItem('customerId') this.customerId = localStorage.getItem('customerId')
this.getTableData() this.getTableData()
@ -294,7 +304,7 @@ export default {
mounted() { mounted() {
this.rowDrop() this.rowDrop()
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 230 + 'px' this.sHeight = this.$refs.searchCard.$el.offsetHeight + 230
console.log('tableHeight', this.tableHeight) console.log('tableHeight', this.tableHeight)
}) })
}, },

Loading…
Cancel
Save