9f987026 by 任超

style:高级查询

1 parent b1f1fb16
...@@ -218,7 +218,7 @@ aside { ...@@ -218,7 +218,7 @@ aside {
218 } 218 }
219 219
220 .width100 { 220 .width100 {
221 width: 100%!important; 221 width: 100% !important;
222 } 222 }
223 223
224 .sub-navbar { 224 .sub-navbar {
...@@ -327,10 +327,17 @@ aside { ...@@ -327,10 +327,17 @@ aside {
327 .allow, 327 .allow,
328 .prohibit { 328 .prohibit {
329 position: relative; 329 position: relative;
330 width: 60px;
331 margin: 0 auto; 330 margin: 0 auto;
332 } 331 }
333 332
333 .allow {
334 color: $green;
335 }
336
337 .prohibit {
338 color: $pink;
339 }
340
334 .allow::before { 341 .allow::before {
335 content: ''; 342 content: '';
336 position: absolute; 343 position: absolute;
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 display: flex; 18 display: flex;
19 font-size: 12px; 19 font-size: 12px;
20 flex-wrap: wrap; 20 flex-wrap: wrap;
21 line-height: 36px;
21 22
22 span { 23 span {
23 display: flex; 24 display: flex;
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
39 border: 1px solid $light-blue; 40 border: 1px solid $light-blue;
40 border-radius: 10px; 41 border-radius: 10px;
41 padding: 2px 8px; 42 padding: 2px 8px;
43 line-height: 16px;
42 } 44 }
43 } 45 }
44 46
......
...@@ -42,6 +42,7 @@ class data extends filter { ...@@ -42,6 +42,7 @@ class data extends filter {
42 }, 42 },
43 { 43 {
44 label: "是否启用", 44 label: "是否启用",
45 width: '72',
45 render: (h, scope) => { 46 render: (h, scope) => {
46 return ( 47 return (
47 <div> 48 <div>
......
...@@ -45,9 +45,12 @@ ...@@ -45,9 +45,12 @@
45 <el-row class="advanced-search"> 45 <el-row class="advanced-search">
46 <span>高级搜索条件:</span> 46 <span>高级搜索条件:</span>
47 <ul> 47 <ul>
48 <li>不动产单元号:201252222<i class="el-icon-circle-close"></i></li> 48 <li v-for="(item,index) in searchList" :key="index">
49 {{item.name}}:{{item.value}}
50 <i class="el-icon-circle-close" @click="handelItem(index)"></i>
51 </li>
49 </ul> 52 </ul>
50 <el-button class="clean-btn" type="text">清除全部</el-button> 53 <el-button class="clean-btn" type="text" v-if="searchList.length>0">清除全部</el-button>
51 </el-row> 54 </el-row>
52 </el-form> 55 </el-form>
53 </div> 56 </div>
...@@ -57,22 +60,25 @@ ...@@ -57,22 +60,25 @@
57 @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> 60 @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
58 </lb-table> 61 </lb-table>
59 </div> 62 </div>
63 <searchBox v-model="isSearch" @getSearch="getSearch"></searchBox>
60 </div> 64 </div>
61 </template> 65 </template>
62 <script> 66 <script>
67 import { mapGetters } from 'vuex'
68 import searchBox from './search.vue'
63 import table from "@/utils/mixin/table"; 69 import table from "@/utils/mixin/table";
64 import { datas, sendThis } from "./dbxdata"; 70 import { datas, sendThis } from "./dbxdata";
65 import { searchTaskToDo, deleteFlow } from "@/api/ywbl.js" 71 import { searchTaskToDo, deleteFlow } from "@/api/ywbl.js"
66 import { mapGetters } from 'vuex'
67 export default { 72 export default {
68 name: "dbx", 73 name: "dbx",
69 components: {}, 74 components: { searchBox },
70 mixins: [table], 75 mixins: [table],
71 computed: { 76 computed: {
72 ...mapGetters(['dictData']), 77 ...mapGetters(['dictData']),
73 }, 78 },
74 data () { 79 data () {
75 return { 80 return {
81 isSearch: false,
76 queryForm: { 82 queryForm: {
77 ywly: "", 83 ywly: "",
78 qllx: "", 84 qllx: "",
...@@ -84,11 +90,11 @@ export default { ...@@ -84,11 +90,11 @@ export default {
84 columns: datas.columns(), 90 columns: datas.columns(),
85 data: [], 91 data: [],
86 }, 92 },
87 }; 93 searchList: []
94 }
88 }, 95 },
89 mounted () { 96 mounted () {
90 sendThis(this); 97 sendThis(this);
91 let that = this
92 window.addEventListener('visibilitychange', this.init, true) 98 window.addEventListener('visibilitychange', this.init, true)
93 }, 99 },
94 destroyed () { 100 destroyed () {
...@@ -111,7 +117,6 @@ export default { ...@@ -111,7 +117,6 @@ export default {
111 searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => { 117 searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => {
112 if (res.code === 200) { 118 if (res.code === 200) {
113 let { total, records } = res.result 119 let { total, records } = res.result
114 let str = ''
115 records.forEach(item => { 120 records.forEach(item => {
116 item.qlrmc = item.qlrmc.join(',') 121 item.qlrmc = item.qlrmc.join(',')
117 item.ywh = item.ywh.join(',') 122 item.ywh = item.ywh.join(',')
...@@ -120,7 +125,6 @@ export default { ...@@ -120,7 +125,6 @@ export default {
120 item.qlrmcStr = item.qlrmc ? String(item.qlrmc) : '' 125 item.qlrmcStr = item.qlrmc ? String(item.qlrmc) : ''
121 item.ywrmcStr = item.ywrmc ? String(item.ywrmc) : '' 126 item.ywrmcStr = item.ywrmc ? String(item.ywrmc) : ''
122 }) 127 })
123 console.log(records);
124 this.tableData.total = total; 128 this.tableData.total = total;
125 this.tableData.data = records ? records : [] 129 this.tableData.data = records ? records : []
126 } 130 }
...@@ -129,6 +133,20 @@ export default { ...@@ -129,6 +133,20 @@ export default {
129 queryClick () { 133 queryClick () {
130 this.fetchData() 134 this.fetchData()
131 }, 135 },
136 getSearch (val) {
137 let obj = { ywlymc: '业务来源', sqywmc: '申请业务名称', qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间' }
138 this.searchList = Object.entries(val).map((item) => {
139 const [name, value] = item
140 if (value) return { name: obj[name], value }
141 }).filter(Boolean)
142 },
143 moreQueryClick () {
144 this.isSearch = true
145 },
146 handelItem (index) {
147 console.log(index);
148 this.searchList.splice(index, 1)
149 },
132 handleSort (val) { 150 handleSort (val) {
133 this.queryForm.sortField = val.prop 151 this.queryForm.sortField = val.prop
134 this.queryForm.sortOrder = val.order == "ascending" ? 'asc' : 'desc' 152 this.queryForm.sortOrder = val.order == "ascending" ? 'asc' : 'desc'
...@@ -158,8 +176,8 @@ export default { ...@@ -158,8 +176,8 @@ export default {
158 this.$message({ 176 this.$message({
159 type: 'info', 177 type: 'info',
160 message: '已取消删除' 178 message: '已取消删除'
161 }); 179 })
162 }); 180 })
163 }, 181 },
164 ywhClick (item) { 182 ywhClick (item) {
165 const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); 183 const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
......
...@@ -33,9 +33,9 @@ class data extends filter { ...@@ -33,9 +33,9 @@ class data extends filter {
33 render: (h, scope) => { 33 render: (h, scope) => {
34 switch (scope.row.lczt) { 34 switch (scope.row.lczt) {
35 case '1': 35 case '1':
36 return <span>进行中</span> 36 return <div class='allow'>进行中</div>
37 case '2': 37 case '2':
38 return <span>已结束</span> 38 return <div class='prohibit'>已结束</div>
39 case '3': 39 case '3':
40 return <span>进行中</span> 40 return <span>进行中</span>
41 } 41 }
......
1 <!--
2 功能:高级搜索
3 作者:calliope
4 -->
5 <template>
6 <dialogBox :isButton="false" :isFullscreen="false" width="50%" @closeDialog="closeDialog" v-model="myValue"
7 title="高级搜索">
8 <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
9 <el-row>
10 <el-col :span="8">
11 <el-form-item label="业务来源" prop="ywlymc">
12 <el-input v-model="ruleForm.ywlymc"></el-input>
13 </el-form-item>
14 </el-col>
15 <el-col :span="8">
16 <el-form-item label="申请业务名称" prop="sqywmc">
17 <el-input v-model="ruleForm.sqywmc"></el-input>
18 </el-form-item>
19 </el-col>
20 <el-col :span="8">
21 <el-form-item label="权利人" prop="qlrmc">
22 <el-input v-model="ruleForm.qlrmc"></el-input>
23 </el-form-item>
24 </el-col>
25 </el-row>
26 <el-row>
27 <el-col :span="8">
28 <el-form-item label="义务人" prop="ywrmc">
29 <el-input v-model="ruleForm.ywrmc"></el-input>
30 </el-form-item>
31 </el-col>
32 <el-col :span="8">
33 <el-form-item label="受理时间" prop="slsj">
34 <el-date-picker v-model="ruleForm.slsj" class="width100" type="date" placeholder="请选择日期" clearable>
35 </el-date-picker>
36 </el-form-item>
37 </el-col>
38 </el-row>
39 <el-row class="search-btn">
40 <el-button type="text" @click.native="closeDialog">收起搜索</el-button>
41 <el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
42 <el-button icon="el-icon-refresh-left" @click="resetForm('ruleForm')">重置</el-button>
43 </el-row>
44 </el-form>
45 </dialogBox>
46 </template>
47 <script>
48
49 export default {
50 props: {
51 value: { type: Boolean, default: false },
52 },
53 data () {
54 return {
55 myValue: this.value,
56 ruleForm: {
57 ywlymc: '',
58 sqywmc: '',
59 qlrmc: '',
60 ywrmc: '',
61 slsj: ''
62 }
63 }
64 },
65 watch: {
66 value (val) {
67 this.myValue = val
68 }
69 },
70 methods: {
71 closeDialog () {
72 this.$emit('input', false)
73 },
74 resetForm () {
75 this.$refs['ruleForm'].resetFields()
76 },
77 submitForm () {
78 this.$emit('getSearch', this.ruleForm)
79 this.$refs['ruleForm'].resetFields()
80 this.$emit('input', false)
81 }
82 }
83 }
84 </script>
85 <style scoped lang='scss'>
86 @import '~@/styles/public.scss';
87
88 .search-btn {
89 padding: 0 20px 20px 20px;
90 text-align: right;
91 }
92
93 /deep/.el-icon-date {
94 display: none;
95 }
96 </style>
...\ No newline at end of file ...\ No newline at end of file