Browse Source

人房信息搜索栏统一修改

feature
mk 3 years ago
parent
commit
77d8af1487
  1. 16
      src/views/modules/base/collect.vue
  2. 8
      src/views/modules/base/community/communityTable.vue
  3. 26
      src/views/modules/base/huji/immigration/index.vue
  4. 22
      src/views/modules/plugins/change/changedeath.vue
  5. 15
      src/views/modules/plugins/change/changerelocation.vue

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

@ -59,18 +59,18 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<div class="u-search-btn"> </el-form>
<el-button class="diy-button--white" <el-row>
<el-col :span="24" align="right">
<el-button class="diy-button--white"
size="small" size="small"
@click="resetForm('searchForm')">重置</el-button> @click="resetForm('searchForm')">重置</el-button>
<el-button style="margin-left:10px" <el-button style="margin-left:10px"
size="small" size="small"
class="diy-button--blue" class="diy-button--blue"
@click="handleSearch">查询</el-button> @click="handleSearch">查询</el-button>
</el-col>
</div> </el-row>
</el-form>
</div> </div>
<div class="m-table"> <div class="m-table">
<div class="u-table-btn1"> <div class="u-table-btn1">
@ -421,8 +421,8 @@ export default {
computed: { computed: {
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
tableHeight () { tableHeight () {
const h = this.clientHeight - 360 + this.iframeHeigh; const h = this.clientHeight - 400 + this.iframeHeigh;
const _h = this.clientHeight - 360; const _h = this.clientHeight - 400;
return this.$store.state.inIframe ? h : _h; return this.$store.state.inIframe ? h : _h;
}, },
dialogTableHeight () { dialogTableHeight () {

8
src/views/modules/base/community/communityTable.vue

@ -176,7 +176,7 @@
>下载房屋模板</el-button >下载房屋模板</el-button
> >
</div> </div>
<div <!-- <div
v-if=" v-if="
showYhymInfo && customerId !== '1535072605621841922' showYhymInfo && customerId !== '1535072605621841922'
" "
@ -206,7 +206,7 @@
@click="createBatchNeiQrUrl" @click="createBatchNeiQrUrl"
>补全小程序小区码</el-button >补全小程序小区码</el-button
> >
</div> </div> -->
<div v-if="displayedBaobiaoBtn" class="table-more-btn"> <div v-if="displayedBaobiaoBtn" class="table-more-btn">
<el-button <el-button
size="small" size="small"
@ -216,7 +216,7 @@
>智能填报</el-button >智能填报</el-button
> >
</div> </div>
<div <!-- <div
v-if="agencyObj.level == 'community'" v-if="agencyObj.level == 'community'"
class="table-more-btn" class="table-more-btn"
> >
@ -227,7 +227,7 @@
@click="handleDownQr(agencyObj, 'community')" @click="handleDownQr(agencyObj, 'community')"
>社区二维码</el-button >社区二维码</el-button
> >
</div> </div> -->
<el-button <el-button
size="small" size="small"
style="float: right" style="float: right"

26
src/views/modules/base/huji/immigration/index.vue

@ -155,8 +155,9 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
</el-form>
<div class="u-search-btn"> <el-row>
<el-col :span="24" align="right">
<el-button <el-button
class="diy-button--white" class="diy-button--white"
size="small" size="small"
@ -170,8 +171,8 @@
@click="handleSearch" @click="handleSearch"
>查询</el-button >查询</el-button
> >
</div> </el-col>
</el-form> </el-row>
</div> </div>
<div class="m-table"> <div class="m-table">
@ -547,13 +548,16 @@ export default {
importLoading: false, importLoading: false,
searchH: 0, searchH: 0,
tableHeight: 0,
changeRecordShow: false, changeRecordShow: false,
}; };
}, },
computed: { computed: {
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
tableHeight(){
const h = this.clientHeight - 450 + this.iframeHeigh;
const _h = this.clientHeight - 450;
return this.$store.state.inIframe ? h : _h;
},
changeVDisabled() { changeVDisabled() {
return !this.fmData.villageId; return !this.fmData.villageId;
}, },
@ -563,6 +567,7 @@ export default {
changeDDisabled() { changeDDisabled() {
return !this.fmData.unitId; return !this.fmData.unitId;
}, },
}, },
watch: { watch: {
rangeTime: function (val) { rangeTime: function (val) {
@ -575,15 +580,6 @@ export default {
this.fmData.endTime = ""; this.fmData.endTime = "";
} }
}, },
searchH() {
const h = this.clientHeight - this.searchH + this.iframeHeight;
const _h = this.clientHeight - this.searchH;
console.log("computed-searchH---_h", _h);
this.$nextTick(() => {
this.tableHeight = this.$store.state.inIframe ? h : _h;
});
},
}, },
mounted() { mounted() {
this.getGridList(); this.getGridList();

22
src/views/modules/plugins/change/changedeath.vue

@ -69,8 +69,11 @@
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<div class="u-search-btn">
<el-button class="diy-button--white" size="small" @click="resetForm" </el-form>
<el-row>
<el-col :span="24" align="right">
<el-button class="diy-button--white" size="small" @click="resetForm"
>重置</el-button >重置</el-button
> >
<el-button <el-button
@ -80,8 +83,8 @@
@click="getDataList" @click="getDataList"
>查询</el-button >查询</el-button
> >
</div> </el-col>
</el-form> </el-row>
</div> </div>
<div class="m-table"> <div class="m-table">
<div class="u-table-btn1"> <div class="u-table-btn1">
@ -96,6 +99,7 @@
class="m-table-item" class="m-table-item"
v-loading="dataListLoading" v-loading="dataListLoading"
:data="dataList" :data="dataList"
:height="tableHeight"
border border
> >
<!--<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>--> <!--<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>-->
@ -277,7 +281,7 @@ import nextTick from "dai-js/tools/nextTick";
import resiChangeRecord from "@/views/components/resiChangeRecord.vue"; import resiChangeRecord from "@/views/components/resiChangeRecord.vue";
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import resiInfo from "@/views/components/resiInfo.vue"; import resiInfo from "@/views/components/resiInfo.vue";
import { mapGetters } from "vuex";
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data() { data() {
@ -328,6 +332,14 @@ export default {
resiInfo, resiInfo,
resiChangeRecord, resiChangeRecord,
}, },
computed:{
...mapGetters(["clientHeight", "iframeHeight"]),
tableHeight(){
const h = this.clientHeight - 410 + this.iframeHeigh;
const _h = this.clientHeight - 410;
return this.$store.state.inIframe ? h : _h;
},
},
methods: { methods: {
async handleRecovery(rowData) { async handleRecovery(rowData) {
console.log("11111"); console.log("11111");

15
src/views/modules/plugins/change/changerelocation.vue

@ -441,7 +441,6 @@ export default {
changeRecordShow: false, changeRecordShow: false,
searchH: 0, searchH: 0,
tableHeight: 0,
}; };
}, },
components: { components: {
@ -451,6 +450,11 @@ export default {
}, },
computed: { computed: {
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
tableHeight(){
const h = this.clientHeight - 420 + this.iframeHeigh;
const _h = this.clientHeight - 420;
return this.$store.state.inIframe ? h : _h;
},
changeVDisabled() { changeVDisabled() {
return !this.dataForm.villageId; return !this.dataForm.villageId;
}, },
@ -479,15 +483,6 @@ export default {
this.dataForm.endTime = ""; this.dataForm.endTime = "";
} }
}, },
searchH() {
const h = this.clientHeight - this.searchH + this.iframeHeight;
const _h = this.clientHeight - this.searchH;
console.log("computed-searchH---_h", _h);
this.$nextTick(() => {
this.tableHeight = this.$store.state.inIframe ? h : _h;
});
},
}, },
methods: { methods: {
async handleRecovery(rowData) { async handleRecovery(rowData) {

Loading…
Cancel
Save