90618714 by renchao@pashanhoo.com

style:综合查询

1 parent abdd1e64
......@@ -6,8 +6,7 @@
:model="queryForm"
ref="queryForm"
@submit.native.prevent
label-width="80px"
>
label-width="80px">
<el-row>
<el-col :span="5">
<el-form-item label="业务来源" label-width="70px">
......@@ -18,14 +17,12 @@
class="width100"
filterable
clearable
placeholder="请选择业务来源"
>
placeholder="请选择业务来源">
<el-option
v-for="item in dictData['ywly']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode"
>
:value="item.dcode">
</el-option>
</el-select>
</el-form-item>
......@@ -39,14 +36,12 @@
class="width100"
filterable
clearable
placeholder="请选择权利类型"
>
placeholder="请选择权利类型">
<el-option
v-for="item in dictData['A8']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode"
>
:value="item.dcode">
</el-option>
</el-select>
</el-form-item>
......@@ -60,14 +55,12 @@
class="width100"
filterable
clearable
placeholder="请选择登记类型"
>
placeholder="请选择登记类型">
<el-option
v-for="item in dictData['A21']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode"
>
:value="item.dcode">
</el-option>
</el-select>
</el-form-item>
......@@ -78,17 +71,14 @@
placeholder="请输入业务号"
v-model="queryForm.ywh"
clearable
class="width200px"
>
class="width200px">
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="handleSearch"
>查询</el-button
>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick">高级查询</el-button>
</el-form-item>
</el-col>
......@@ -100,16 +90,14 @@
{{ item.name }}:{{ item.value }}
<i
class="el-icon-circle-close"
@click="handelItem(item, index)"
></i>
@click="handelItem(item, index)"></i>
</li>
</ul>
<el-button
class="clean-btn"
type="text"
v-if="searchList.length > 0"
@click.native="hanldeCleanAll"
>清除全部
@click.native="hanldeCleanAll">清除全部
</el-button>
</el-row>
</el-form>
......@@ -126,25 +114,24 @@
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
:data="tableData.data">
</lb-table>
</div>
<searchBox v-model="isSearch" @getSearch="getSearch" :advancedForm="otherForm" />
</div>
</template>
<script>
import { mapGetters } from "vuex";
import searchMin from "../components/mixin/index";
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./ybxdata";
import { searchTaskDone } from "@/api/ywbl";
import searchBox from "../components/search.vue";
export default {
import { mapGetters } from "vuex";
import searchMin from "../components/mixin/index";
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./ybxdata";
import { searchTaskDone } from "@/api/ywbl";
import searchBox from "../components/search.vue";
export default {
name: "ybx",
components: { searchBox },
mixins: [table, searchMin],
mounted() {
mounted () {
window["getBpageList"] = () => {
this.queryClick();
};
......@@ -153,7 +140,7 @@ export default {
computed: {
...mapGetters(["dictData"]),
},
data() {
data () {
return {
queryForm: {
ywly: "",
......@@ -176,7 +163,7 @@ export default {
},
methods: {
// 列表渲染接口
queryClick() {
queryClick () {
this.$startLoading();
this.searchForm.ywh = this.queryForm.ywh;
this.iterationData();
......@@ -199,12 +186,12 @@ export default {
}
});
},
handleSort(val) {
handleSort (val) {
this.queryForm.sortField = val.prop;
this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc";
this.queryClick();
},
ywhClick(item) {
ywhClick (item) {
const { href } = this.$router.resolve(
"/workFrameView?bsmSlsq=" +
item.bsmSlsq +
......@@ -216,8 +203,8 @@ export default {
window.open(href, `urlname${item.bsmSlsq}`);
},
},
};
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/public.scss";
</style>
......
......@@ -117,24 +117,6 @@
this.$endLoading()
if (res.code === 200) {
let { total, records } = res.result
// let str = ''
// records.forEach(item => {
// if (item.userNameList.length != 0) {
// str = String(item.userNameList)
// item.blStatus = item.zbhj + '(' + str.replace(/,/g, "+") + ')'
// }
// if (item.qlrmc.length != 0) {
// item.qlrmcStr = String(item.qlrmc)
// }
// if (item.ywrmc.length != 0) {
// item.ywrmcStr = String(item.ywrmc)
// }
// if (item.zlList.length != 0) {
// item.zlStr = String(item.zlList)
// }
// })
// this.pageData.total = total;
// this.tableData.data = records
this.tableData.total = total ? total : 0;
this.tableData.data = records ? records : [];
}
......@@ -146,7 +128,7 @@
moreQueryClick () { },
openDialog (item) {
const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3')
window.open(href, `urlname${item.bsmSlsq}`);
window.open(href, `urlname${item.bsmSlsq}`)
}
}
}
......
......@@ -66,16 +66,12 @@
zddm: "",
zrzh: "",
},
pageData: {
currentPage: 1,
pageSize: 10,
total: 0,
},
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
};
}
}
},
methods: {
// 初始化数据
......@@ -84,7 +80,7 @@
getLpZrz({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
if (res.code === 200) {
this.pageData.total = res.result.total;
this.tableData.total = total ? total : 0;
this.tableData.data = res.result.records;
}
});
......@@ -95,7 +91,6 @@
moreQueryClick () { },
//打开楼盘表
openlpbClick (scope) {
// var zrzbsm = scope.row.bsm;
this.$popup('楼盘表', 'lpb/index', {
width: '90%',
height: "92%",
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-19 13:27:58
* @LastEditTime: 2023-06-19 13:32:04
-->
<template>
<div class="from-clues">
......@@ -77,14 +77,14 @@
this.$endLoading()
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.total = total ? total : 0
this.tableData.data = records ? records : []
}
})
},
},
};
moreQueryClick () { }
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......