style:申请查询记录
Showing
7 changed files
with
89 additions
and
29 deletions
src/api/sqcx.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | // 根据条件进行列表查询 | ||
3 | export function getJtfcPage (data) { | ||
4 | return request({ | ||
5 | url: '/sqcx/getJtfcPage', | ||
6 | method: 'post', | ||
7 | data | ||
8 | }) | ||
9 | } | ||
10 | // 新增申请查询家庭房产信息 | ||
11 | export function addJtfcCxjgXx (data) { | ||
12 | return request({ | ||
13 | url: '/sqcx/addJtfcCxjgXx', | ||
14 | method: 'post', | ||
15 | data | ||
16 | }) | ||
17 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -23,6 +23,11 @@ export default { | ... | @@ -23,6 +23,11 @@ export default { |
23 | handleCurrentChange (val) { | 23 | handleCurrentChange (val) { |
24 | this.pageData.currentPage = val | 24 | this.pageData.currentPage = val |
25 | this.fetchData() | 25 | this.fetchData() |
26 | }, | ||
27 | handleDel () { | ||
28 | let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) | ||
29 | let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage | ||
30 | this.pageData.currentPage = currentPage < 1 ? 1 : currentPage | ||
26 | } | 31 | } |
27 | } | 32 | } |
28 | } | 33 | } | ... | ... |
... | @@ -113,7 +113,7 @@ export default { | ... | @@ -113,7 +113,7 @@ export default { |
113 | }, | 113 | }, |
114 | dataList: { | 114 | dataList: { |
115 | handler (newValue, oldName) { | 115 | handler (newValue, oldName) { |
116 | this.tableData.data = newValue | 116 | this.tableData.data = _.cloneDeep(newValue) |
117 | }, | 117 | }, |
118 | deep: true, | 118 | deep: true, |
119 | immediate: true | 119 | immediate: true | ... | ... |
... | @@ -49,8 +49,9 @@ | ... | @@ -49,8 +49,9 @@ |
49 | </div> | 49 | </div> |
50 | </template> | 50 | </template> |
51 | <script> | 51 | <script> |
52 | import table from "@/utils/mixin/table"; | 52 | import table from "@/utils/mixin/table" |
53 | import { datas, sendThis } from "./jtfcdata"; | 53 | import { datas, sendThis } from "./jtfcdata" |
54 | import { getJtfcPage } from '@/api/sqcx' | ||
54 | export default { | 55 | export default { |
55 | name: "jtfc", | 56 | name: "jtfc", |
56 | components: {}, | 57 | components: {}, |
... | @@ -88,7 +89,13 @@ export default { | ... | @@ -88,7 +89,13 @@ export default { |
88 | }, | 89 | }, |
89 | methods: { | 90 | methods: { |
90 | // 初始化数据 | 91 | // 初始化数据 |
91 | fetchData () { }, | 92 | fetchData () { |
93 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then(res => { | ||
94 | let { records, total } = res.result | ||
95 | // this.tableData.data = records | ||
96 | this.tableData.total = total | ||
97 | }) | ||
98 | }, | ||
92 | handleSort (name, sort) { | 99 | handleSort (name, sort) { |
93 | console.log(name, sort); | 100 | console.log(name, sort); |
94 | } | 101 | } | ... | ... |
... | @@ -23,9 +23,9 @@ | ... | @@ -23,9 +23,9 @@ |
23 | </el-row> | 23 | </el-row> |
24 | </el-form> | 24 | </el-form> |
25 | <b class="title">权利人</b> | 25 | <b class="title">权利人</b> |
26 | <personInfoTable :dataList="qldataList" /> | 26 | <personInfoTable :dataList="qldataList" @getInfoList="handleGetQlList" /> |
27 | <div class="submit-button"> | 27 | <div class="submit-button"> |
28 | <el-button type="primary" icon="el-icon-search">查询</el-button> | 28 | <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> |
29 | <el-button icon="el-icon-refresh-left" @click="handleReset">重置</el-button> | 29 | <el-button icon="el-icon-refresh-left" @click="handleReset">重置</el-button> |
30 | </div> | 30 | </div> |
31 | <b class="title">查询结果</b> | 31 | <b class="title">查询结果</b> |
... | @@ -45,6 +45,7 @@ | ... | @@ -45,6 +45,7 @@ |
45 | 45 | ||
46 | <script> | 46 | <script> |
47 | import personInfoTable from '@/views/components/personInfoTable' | 47 | import personInfoTable from '@/views/components/personInfoTable' |
48 | import { addJtfcCxjgXx } from '@/api/sqcx' | ||
48 | export default { | 49 | export default { |
49 | components: { | 50 | components: { |
50 | personInfoTable | 51 | personInfoTable |
... | @@ -61,8 +62,8 @@ export default { | ... | @@ -61,8 +62,8 @@ export default { |
61 | sqrzjhm: '', | 62 | sqrzjhm: '', |
62 | lxdh: '' | 63 | lxdh: '' |
63 | }], | 64 | }], |
64 | qldataList: [], | ||
65 | sqdataList: [], | 65 | sqdataList: [], |
66 | qldataList: [], | ||
66 | options: [{ | 67 | options: [{ |
67 | name: '1', | 68 | name: '1', |
68 | value: 1 | 69 | value: 1 |
... | @@ -137,6 +138,10 @@ export default { | ... | @@ -137,6 +138,10 @@ export default { |
137 | ruleForm: { | 138 | ruleForm: { |
138 | name: '', | 139 | name: '', |
139 | radio: 1 | 140 | radio: 1 |
141 | }, | ||
142 | addJtfc: { | ||
143 | sqxx: [], | ||
144 | qlrxx: [], | ||
140 | } | 145 | } |
141 | } | 146 | } |
142 | }, | 147 | }, |
... | @@ -145,10 +150,16 @@ export default { | ... | @@ -145,10 +150,16 @@ export default { |
145 | this.myValue = val | 150 | this.myValue = val |
146 | this.qldataList = _.cloneDeep(this.dataList) | 151 | this.qldataList = _.cloneDeep(this.dataList) |
147 | this.sqdataList = _.cloneDeep(this.dataList) | 152 | this.sqdataList = _.cloneDeep(this.dataList) |
153 | this.addJtfc.sqxx = _.cloneDeep(this.dataList) | ||
154 | this.addJtfc.qlrxx = _.cloneDeep(this.dataList) | ||
148 | }, | 155 | }, |
149 | 'ruleForm.radio' (val) { | 156 | 'ruleForm.radio' (val) { |
150 | if (val != 1) { | 157 | if (val != 1) { |
151 | this.qldataList = _.cloneDeep(this.dataList) | 158 | this.qldataList = _.cloneDeep(this.dataList) |
159 | this.addJtfc.qlrxx = _.cloneDeep(this.dataList) | ||
160 | } else { | ||
161 | this.qldataList = this.addJtfc.sqxx | ||
162 | this.addJtfc.qlrxx = this.addJtfc.sqxx | ||
152 | } | 163 | } |
153 | } | 164 | } |
154 | }, | 165 | }, |
... | @@ -159,8 +170,20 @@ export default { | ... | @@ -159,8 +170,20 @@ export default { |
159 | handleGetSqList (val) { | 170 | handleGetSqList (val) { |
160 | if (!_.isEqual(val, this.dataList) && this.ruleForm.radio == 1) { | 171 | if (!_.isEqual(val, this.dataList) && this.ruleForm.radio == 1) { |
161 | this.qldataList = val | 172 | this.qldataList = val |
173 | this.addJtfc.qlrxx = val | ||
174 | } else | ||
175 | this.addJtfc.sqxx = val | ||
176 | }, | ||
177 | handleGetQlList (val) { | ||
178 | if (this.ruleForm.radio != 1) { | ||
179 | this.addJtfc.qlrxx = val | ||
162 | } | 180 | } |
163 | }, | 181 | }, |
182 | handleSearch () { | ||
183 | addJtfcCxjgXx(this.addJtfc).then(res => { | ||
184 | // console.log(res); | ||
185 | }) | ||
186 | }, | ||
164 | handleReset () { | 187 | handleReset () { |
165 | this.qldataList = _.cloneDeep(this.dataList) | 188 | this.qldataList = _.cloneDeep(this.dataList) |
166 | this.sqdataList = _.cloneDeep(this.dataList) | 189 | this.sqdataList = _.cloneDeep(this.dataList) | ... | ... |
... | @@ -52,8 +52,9 @@ | ... | @@ -52,8 +52,9 @@ |
52 | </template> | 52 | </template> |
53 | <script> | 53 | <script> |
54 | import editDialog from "./components/editDialog.vue" | 54 | import editDialog from "./components/editDialog.vue" |
55 | import table from "@/utils/mixin/table"; | 55 | import table from "@/utils/mixin/table" |
56 | import { datas, sendThis } from "./sqcxjldata"; | 56 | import { datas, sendThis } from "./sqcxjldata" |
57 | import { getJtfcPage } from '@/api/sqcx' | ||
57 | export default { | 58 | export default { |
58 | name: "sqcxjl", | 59 | name: "sqcxjl", |
59 | components: { editDialog }, | 60 | components: { editDialog }, |
... | @@ -93,7 +94,13 @@ export default { | ... | @@ -93,7 +94,13 @@ export default { |
93 | }, | 94 | }, |
94 | methods: { | 95 | methods: { |
95 | // 初始化数据 | 96 | // 初始化数据 |
96 | fetchData () { }, | 97 | fetchData () { |
98 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then(res => { | ||
99 | let { records, total } = res.result | ||
100 | // this.tableData.data = records | ||
101 | this.tableData.total = total | ||
102 | }) | ||
103 | }, | ||
97 | handleSort (name, sort) { | 104 | handleSort (name, sort) { |
98 | console.log(name, sort); | 105 | console.log(name, sort); |
99 | }, | 106 | }, | ... | ... |
... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
57 | <script> | 57 | <script> |
58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
59 | import { datas, sendThis } from "./dbxdata"; | 59 | import { datas, sendThis } from "./dbxdata"; |
60 | import { searchTaskToDo,deleteFlow } from "@/api/ywbl.js" | 60 | import { searchTaskToDo, deleteFlow } from "@/api/ywbl.js" |
61 | import { mapGetters } from 'vuex' | 61 | import { mapGetters } from 'vuex' |
62 | export default { | 62 | export default { |
63 | name: "dbx", | 63 | name: "dbx", |
... | @@ -126,25 +126,26 @@ export default { | ... | @@ -126,25 +126,26 @@ export default { |
126 | let formdata = new FormData(); | 126 | let formdata = new FormData(); |
127 | formdata.append("bsmSlsq", item.bsmSlsq); | 127 | formdata.append("bsmSlsq", item.bsmSlsq); |
128 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | 128 | this.$confirm('确定要删除吗, 是否继续?', '提示', { |
129 | confirmButtonText: '确定', | 129 | confirmButtonText: '确定', |
130 | cancelButtonText: '取消', | 130 | cancelButtonText: '取消', |
131 | type: 'warning' | 131 | type: 'warning' |
132 | }).then(() => { | 132 | }).then(() => { |
133 | deleteFlow(formdata).then(res => { | 133 | deleteFlow(formdata).then(res => { |
134 | if (res.code === 200) { | 134 | if (res.code === 200) { |
135 | this.$message({ | 135 | this.handleDel() |
136 | type: 'success', | 136 | this.$message({ |
137 | message: '删除成功!' | 137 | type: 'success', |
138 | }); | 138 | message: '删除成功!' |
139 | this.fetchData() | 139 | }); |
140 | } | 140 | this.fetchData() |
141 | }) | 141 | } |
142 | }).catch(() => { | 142 | }) |
143 | this.$message({ | 143 | }).catch(() => { |
144 | type: 'info', | 144 | this.$message({ |
145 | message: '已取消删除' | 145 | type: 'info', |
146 | }); | 146 | message: '已取消删除' |
147 | }); | 147 | }); |
148 | }); | ||
148 | }, | 149 | }, |
149 | ywhClick (item) { | 150 | ywhClick (item) { |
150 | const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid) | 151 | const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid) | ... | ... |
-
Please register or sign in to post a comment