1
Showing
2 changed files
with
28 additions
and
24 deletions
src/api/sbbwcx.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | |||
3 | class sbbwcx { | ||
4 | |||
5 | // 定时任务查询接口 | ||
6 | async getDataReportPage (data) { | ||
7 | return request({ | ||
8 | url: '/sjsb/DataReport/getDataReportPage', | ||
9 | method: 'post', | ||
10 | data | ||
11 | }) | ||
12 | } | ||
13 | |||
14 | } | ||
15 | export default new sbbwcx() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -78,6 +78,9 @@ import data from "./data" | ... | @@ -78,6 +78,9 @@ import data from "./data" |
78 | import tableMixin from '@/mixins/tableMixin.js' | 78 | import tableMixin from '@/mixins/tableMixin.js' |
79 | // 引入详情弹框 | 79 | // 引入详情弹框 |
80 | import dataDetails from '@/components/dataDetails/edit-dialog' | 80 | import dataDetails from '@/components/dataDetails/edit-dialog' |
81 | import { getDataReportPage } from "@/api/sbbwcx.js"; | ||
82 | import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js" | ||
83 | |||
81 | export default { | 84 | export default { |
82 | name: "sbbwcx", | 85 | name: "sbbwcx", |
83 | mixins: [tableMixin], | 86 | mixins: [tableMixin], |
... | @@ -120,27 +123,6 @@ export default { | ... | @@ -120,27 +123,6 @@ export default { |
120 | pcode: '', | 123 | pcode: '', |
121 | currentPage: 1 | 124 | currentPage: 1 |
122 | }, | 125 | }, |
123 | // 表单验证 | ||
124 | rules: { | ||
125 | bdcdyh: [ | ||
126 | { required: true, message: '不动产单元号', trigger: 'change' } | ||
127 | ], | ||
128 | startTime: [ | ||
129 | { required: true, message: '开始日期', trigger: 'change' } | ||
130 | ], | ||
131 | endTime: [ | ||
132 | { required: true, message: '结束日期', trigger: 'change' } | ||
133 | ], | ||
134 | ywmc: [ | ||
135 | { required: true, message: '业务名称', trigger: 'change' } | ||
136 | ], | ||
137 | status: [ | ||
138 | { required: true, message: '响应结果', trigger: 'change' } | ||
139 | ], | ||
140 | pcode: [ | ||
141 | { required: true, message: '响应结果', trigger: 'change' } | ||
142 | ], | ||
143 | }, | ||
144 | // table数据 | 126 | // table数据 |
145 | tableData: { | 127 | tableData: { |
146 | // 表头数据 | 128 | // 表头数据 |
... | @@ -163,8 +145,8 @@ export default { | ... | @@ -163,8 +145,8 @@ export default { |
163 | } | 145 | } |
164 | } | 146 | } |
165 | ]), | 147 | ]), |
166 | // 列表数据 | 148 | total: 0, |
167 | data: [{}] | 149 | data: [], |
168 | }, | 150 | }, |
169 | // 分页 | 151 | // 分页 |
170 | pageData: { | 152 | pageData: { |
... | @@ -199,7 +181,14 @@ export default { | ... | @@ -199,7 +181,14 @@ export default { |
199 | this.$refs.ruleForm.resetFields(); | 181 | this.$refs.ruleForm.resetFields(); |
200 | }, | 182 | }, |
201 | // 初始化数据 | 183 | // 初始化数据 |
202 | async featchData () { | 184 | featchData () { |
185 | getDataReportPage({ ...this.form, ...this.pageData }).then(res => { | ||
186 | if (res.code === 200) { | ||
187 | let { total, records } = res.result | ||
188 | this.tableData.total = total; | ||
189 | this.tableData.data = records ? records : [] | ||
190 | } | ||
191 | }) | ||
203 | }, | 192 | }, |
204 | // 多选 | 193 | // 多选 |
205 | handleSelectionChange (val) { | 194 | handleSelectionChange (val) { | ... | ... |
-
Please register or sign in to post a comment